Closed sfisher closed 6 years ago
Thank you. Looking at https://www.ruby-lang.org/en/downloads/branches/, it seems reasonable to require Ruby 2.2, but not 2.3. It is easy to revert that change. And I need to update the documentation (which is from 2012).
Thanks, Martin.
I added the gem ruby_dig to make this method work.
Closed via #13.
We ended up having to upgrade Ruby to use this gem because the method #dig is not present until the Ruby 2.3 series and later. We were running Ruby 2.2.x. Dig forced an upgrade to Ruby (which then forced an upgrade to Rails because of an Integer bug in the version of Rails on a newer Ruby version).
The documentation even shows the use of Ruby 1.9.3 (where Hash#dig doesn't work).
You may want to rethink using this new Hash core library feature if you want better compatibility with other versions of Ruby or else declare Ruby 2.3+ as a dependency for people looking to use the gem.