Closed AnalogJ closed 7 years ago
@AnalogJ With the last release of this gem we bumped the requirements to Ruby 2.2 or later. Ruby 2.1 is actually EoL now so we're not going to be supporting it any further. You can upgrade to a more recent version of ChefDK and you'll get an updated version of Ruby which should resolve this issue.
That makes sense, however that first unconditional gem install ffi-yajl
command should still have worked. Bundler/Gem should just install the latest version that can run successfully on ruby 2.1.
https://github.com/chef/ffi-yajl/blob/master/ffi-yajl.gemspec.shared#L15
Something's wrong here.
Older bundler isn't actually smart enough to resolve to a gem that depends on the ruby version you have. It should, but it doesn't. I believe the latest versions of bundler have some large improvements on that front. Again updating to a new ChefDK would probably resolve that problem going forward since you'd get a new bundler release.
When installing the latest version of
ffi-yajl
on ruby 2.1, we get the following error:Here's my version info: