Skip to content

Instantly share code, notes, and snippets.

@maplebed
Created April 15, 2014 02:09
Show Gist options
  • Save maplebed/10696360 to your computer and use it in GitHub Desktop.
Save maplebed/10696360 to your computer and use it in GitHub Desktop.
Gem version trouble with foodcritic and chefspec
:( ( 04/14/14@ 7:09PM )( maplebed@maplebook ):~/git/ganglia/chef-ganglia@master✗ ✹
➜ bundle install 15
Fetching gem metadata from https://rubygems.org/.......
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "yajl-ruby":
In Gemfile:
foodcritic (>= 3.0.0) ruby depends on
yajl-ruby (~> 1.1.0) ruby
chefspec (>= 0) ruby depends on
yajl-ruby (1.2.0)
:( ( 04/14/14@ 7:09PM )( maplebed@maplebook ):~/git/ganglia/chef-ganglia@master✗ ✹
➜ cat Gemfile 6
source 'https://rubygems.org'
gem 'berkshelf'
gem 'strainer'
gem 'foodcritic', '>=3.0.0'
gem 'minitest'
gem 'chefspec'
group :kitchen do
gem 'test-kitchen'
gem 'kitchen-vagrant'
end
@maplebed
Copy link
Author

Fixed this problem with the following gemfile:

source 'https://rubygems.org'

gem 'berkshelf', '>2.0.15'
gem 'strainer'
gem 'foodcritic', '>=3.0.0'
gem 'minitest'
gem 'chefspec', '
>3.3.0'

group :kitchen do
gem 'test-kitchen'
gem 'kitchen-vagrant'
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment