acrmp/foodcritic — Issue #14: foodcritic v11 has broken requirements
Author: jaymzh
Created: 2012-02-29 19:47:22+00:00
State: open

I don't know a whole lot about multiple versions of the same gems and their interactions, but I'm using foodcritic installed into the ruby bundled with the Chef omnibuild and I get:

$ foodcritic chef/cookbooks/cron
/opt/chef/embedded/lib/ruby/1.9.1/rubygems.rb:238:in `activate': can't activate yajl-ruby (~> 1.0.0, runtime) for ["foodcritic-0.11.0"], already activated yajl-ruby-1.1.0 for ["ohai-0.6.10", "chef-0.10.8", "foodcritic-0.11.0"] (Gem::LoadError)

That's based on RPMs I built using FPM.

If I just do a straight 'gem install':

$ /opt/chef/embedded/lib/ruby/gems/1.9.1/gems/foodcritic-0.11.0/bin/foodcritic chef/cookbooks/cron
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/foodcritic-0.11.0/bin/foodcritic:2: undefined method `require_relative' for main:Object (NoMethodError)