Skip to content

v0.6.0

Choose a tag to compare

@amancevice amancevice released this 29 May 23:25
· 88 commits to main since this release
a4fadf5

Added &block to Object#try in yake/support:

10.try(:some_method) { |x| x ** 2 }
# => 100

Added Hash#deep_sort and Hash#to_json_sorted in yake/support:

{ f: 'g', a: { d: 'e', b: 'c' } }.deep_sort
# => { a: { b: 'c', d: 'e' }, f: 'g' }

{ f: 'g', a: { d: 'e', b: 'c' } }.to_json_sorted
# => '{"a":{"b":"c","d":"e"},"f":"g"}'

Added String#md5sum and String#sha1sum in yake/support:

'fizz'.md5sum
# => "b6bfa6c318811be022d4f73070597660"

'fizz'.sha1sum
# => "c25f5985f2ab63baeb2408a2d7dbc79d8f29d02f"