File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 1+ ### v0.12.1.pre
2+
3+ * bug-fixes
4+ * Fix camelize function for hashes containing arrays
5+
16### v0.12.0.pre
27
38* features
Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- beyond_api (0.12.0 .pre )
4+ beyond_api (0.12.1 .pre )
55 faraday (~> 0.15 )
66
77GEM
Original file line number Diff line number Diff line change @@ -4,7 +4,14 @@ class Hash
44 def deep_transform_keys ( &block )
55 result = { }
66 each do |key , value |
7- result [ yield ( key ) ] = value . is_a? ( Hash ) ? value . deep_transform_keys ( &block ) : value
7+ result [ yield ( key ) ] = case value
8+ when Hash
9+ value . deep_transform_keys ( &block )
10+ when Array
11+ value . camelize_keys
12+ else
13+ value
14+ end
815 end
916 result
1017 end
Original file line number Diff line number Diff line change 11module BeyondApi
2- VERSION = "0.12.0 .pre" . freeze
2+ VERSION = "0.12.1 .pre" . freeze
33end
You can’t perform that action at this time.
0 commit comments