moneta-rb / moneta

a unified interface to key/value stores
https://github.com/moneta-rb/moneta
MIT License
1.12k stars 87 forks source link

store.update with an empty hash raises error #246

Closed Inversion-des closed 1 year ago

Inversion-des commented 1 year ago

store.update({}) causes the next error: #<NoMethodError: undefined method 'map' for nil:NilClass>

Checked with :File and :Sqlite adaptors.

Gem version is 1.5.2

asppsa commented 1 year ago

Fixed in #247

asppsa commented 1 year ago

Thanks for reporting this - I'll do a new release now with the fix.