We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f353bbb commit 4866622Copy full SHA for 4866622
Rakefile
@@ -65,4 +65,9 @@ desc "run benchmarks"
65
task :bench do
66
ruby "bench/bench.rb"
67
end
68
-task :bench => :build
+task :bench => :build
69
+
70
+desc "build gem"
71
+task :gem do
72
+ sh "gem build hwia.gemspec"
73
+end
lib/hwia_rails.rb
@@ -6,10 +6,15 @@ class Hash
6
7
8
class StrHash
9
- alias convert_key convert
10
def stringify_keys!; self end
11
def symbolize_keys!; self end
12
- def to_options!; self end
+ def to_options!; self end
13
+ protected
14
+ # AS test suite compat only
15
+ def convert_key(key)
16
+ key.kind_of?(Symbol) ? key.to_s : key
17
+ end
18
19
20
begin
0 commit comments