wunderlist-api icon indicating copy to clipboard operation
wunderlist-api copied to clipboard

Hash#stringify_keys breaks in Rails 5.2.0

Open kleinjm opened this issue 7 years ago • 1 comments

Not exactly sure what's causing this to break but I'm getting this error after upgrading my app to rails 5.2.0.

pry(main)> Recipe.new
FrozenError: can't modify frozen Hash
from /Users/jklein/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/wunderlist-api-1.1.2/lib/wunderlist/helper.rb:62:in `replace'

Related to this code https://github.com/sh8/wunderlist-api/blob/9ca337d5f768b89052ea4dbc0d0d2fce96d9d3a8/lib/wunderlist/helper.rb#L61-L63

Feel free to pull my app, add your gem back and try creating a new recipe.

kleinjm avatar Apr 29 '18 15:04 kleinjm

Fixed in my fork if you care https://github.com/kleinjm/wunderlist-api/commit/76f1f307637b1831adcc9d98237e54f3953f0522

kleinjm avatar Jun 17 '18 04:06 kleinjm