Releases: amancevice/yake
Releases · amancevice/yake
v1.1.1
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Added Hash#deep_merge
adapted from activesupport
gem
Added Hash#to_dynamodb
and Hash#to_h_from_dynamodb
v0.8.0
Adds support for datadog-lambda
v2
v0.7.0
Change default logging pretty value to false
v0.6.5
Added Hash#to_struct
and Hash#to_deep_struct
in yake/support:
{ f: 'g', a: { d: 'e', b: 'c' } }.to_struct
# => #<OpenStruct f="g", a={:d=>"e", :b=>"c"}>
{ f: 'g', a: { d: 'e', b: 'c' } }.to_deep_struct
# => #<OpenStruct f="g", a=#<OpenStruct d="e", b="c">>
Added String#utc
in yake/support:
'2009-02-13T23:31:30Z'.utc
# => 2009-02-13 23:31:30 UTC
v0.6.4
Add Yake::Errors::[]
method to look up errors by code
v0.6.3
Fixed Hash#deep_transform_keys/#deep_transform_keys! to work for Hashes nested in Arrays
v0.6.2
Added support methods to Hash
:
Hash#deep_keys
returns all nested keys in a HashHash#deep_transform_keys
transforms all nested keys in a HashHash#deep_transform_keys!
transforms all nested keys in a Hash in placeHash#stringify_names!
stringifies names in placeHash#symbolize_names!
symbolizes names in place
Hash#symbolize_names
and Hash#stringify_names
now use Hash#deep_transform_keys
{ a: { b: 'c', d: 'e' }, f: 'g' }.deep_keys
# => [:a, :b, :d, :f]
{ a: { b: 'c', d: 'e' }, f: 'g' }.deep_transform_keys(&:to_s)
# => { "a" => { "b" => "c", "d" => "e" }, "f" => "g" }
hash = { a: { b: 'c', d: 'e' }, f: 'g' }
hash.deep_transform_keys!(&:to_s)
# => { "a" => { "b" => "c", "d" => "e" }, "f" => "g" }
v0.6.1
Logger uses STDERR by default instead of STDOUT