rails/middleman dependencies requires different versions of a gem - ruby-on-rails

I was trying to add the middleman-cloudfront gem to my middleman project, but got the following error. Most of the gems needs >= 4.0 version of the the middleman-core gem, but the middleman-cloudfront requires ~> 3.0 version.
How can I solve this issue?
Bundler could not find compatible versions for gem "middleman-core":
In Gemfile:
middleman (>= 4.0.0) was resolved to 4.0.0, which depends on
middleman-core (= 4.0.0)
middleman-cloudfront (~> 0.2.1) was resolved to 0.2.1, which depends on
middleman-core (~> 3.0)
middleman-google-analytics (>= 2.1.1, ~> 2.1) was resolved to 2.1.1, which depends on
middleman-core (>= 3.4)
middleman-s3_sync (>= 4.0.3, ~> 4.0) was resolved to 4.0.3, which depends on
middleman-core (>= 4.0.0)
middleman-s3_sync (>= 4.0.3, ~> 4.0) was resolved to 4.0.3, which depends on
middleman-core (>= 4.0.0)
middleman-sprockets (~> 4.0) was resolved to 4.0.0, which depends on
middleman-core (~> 4.0)

It looks like support for v4 has been added to middleman-cloudfront, but not yet released as a new version. You can pull directly from master:
gem 'middleman-cloudfront', github: 'andrusha/middleman-cloudfront'

Related

Bundler could not find compatible versions for gem xx

I'm upgrading rails from 4.2 to 5.0, and I'm getting some mean dependency issues.
When I run bundle update i get the following output.
The thing is that when i look through the messages, it looks like the gems should be able to install just fine when looking at the version requirements.
I also tried to delete my Gemfile.lock, that didn't help.
Any suggestions would be appreciated.
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
inherited_resources (~> 1.7) was resolved to 1.10.0, which depends on
actionpack (< 6.0, >= 5.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (= 5.0.0)
ransack (= 1.8.10) was resolved to 1.8.10, which depends on
actionpack (< 5.2, >= 3.0)
route_translator (= 5.0.0) was resolved to 5.0.0, which depends on
actionpack (< 5.1, >= 5.0.0)
simple_form (= 3.5.0) was resolved to 3.5.0, which depends on
actionpack (< 5.2, > 4)
slim-rails (~> 3.2.0) was resolved to 3.2.0, which depends on
actionpack (>= 3.1)
Bundler could not find compatible versions for gem "activeadmin":
In Gemfile:
activeadmin (~> 1.1.0)
activeadmin_quill_editor (= 0.2.0) was resolved to 0.2.0, which depends on
activeadmin (>= 1.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
openid_connect (~> 1.2.0) was resolved to 1.2.0, which depends on
activemodel
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
activemodel (>= 4.2.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activemodel (= 5.0.0)
simple_form (= 3.5.0) was resolved to 3.5.0, which depends on
activemodel (< 5.2, > 4)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
friendly_id (= 5.0.5) was resolved to 5.0.5, which depends on
activerecord (>= 4.0.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activerecord (= 5.0.0)
ransack (= 1.8.10) was resolved to 1.8.10, which depends on
activerecord (< 5.2, >= 3.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
activesupport (>= 4.2.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (= 5.0.0)
ransack (= 1.8.10) was resolved to 1.8.10, which depends on
activesupport (< 5.2, >= 3.0)
route_translator (= 5.0.0) was resolved to 5.0.0, which depends on
activesupport (< 5.1, >= 5.0.0)
Bundler could not find compatible versions for gem "autoprefixer-rails":
In Gemfile:
autoprefixer-rails (~> 9.7.4)
bootstrap (~> 4.4.1) was resolved to 4.4.1, which depends on
autoprefixer-rails (>= 9.1.0)
Bundler could not find compatible versions for gem "devise":
In Gemfile:
devise (= 4.0.0)
devise-token_authenticatable (~> 0.5.3) was resolved to 0.5.3, which depends on
devise (< 4.4.0, >= 4.0.0)
Bundler could not find compatible versions for gem "execjs":
In Gemfile:
execjs (= 1.4.0)
autoprefixer-rails (~> 9.7.4) was resolved to 9.7.6, which depends on
execjs
uglifier (~> 3.0) was resolved to 3.2.0, which depends on
execjs (< 3, >= 0.3.0)
Bundler could not find compatible versions for gem "inherited_resources":
In Gemfile:
inherited_resources
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
inherited_resources (~> 1.7)
Bundler could not find compatible versions for gem "jquery-rails":
In Gemfile:
jquery-rails (= 4.0.0)
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
jquery-rails
Bundler could not find compatible versions for gem "mimemagic":
In Gemfile:
mimemagic
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
mimemagic (~> 0.3.0)
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
nokogiri (= 1.8.2)
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
mimemagic (~> 0.3.0) was resolved to 0.3.10, which depends on
nokogiri (~> 1)
savon (~> 2.12.1) was resolved to 2.12.1, which depends on
nokogiri (>= 1.8.1)
Bundler could not find compatible versions for gem "paperclip":
In Gemfile:
paperclip (= 5.2.1)
paperclip-compression (~> 1.1) was resolved to 1.1.1, which depends on
paperclip (>= 5.2.1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (= 5.0.0) was resolved to 5.0.0, which depends on
railties (>= 5.2.0)
rails (= 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (= 10.4.2)
paperclip (= 5.2.1) was resolved to 5.2.1, which depends on
mimemagic (~> 0.3.0) was resolved to 0.3.10, which depends on
rake
rails (= 5.0.0) was resolved to 5.0.0, which depends on
railties (= 5.0.0) was resolved to 5.0.0, which depends on
rake (>= 0.8.7)
Bundler could not find compatible versions for gem "responders":
In Gemfile:
responders (~> 2.3.0)
devise (= 4.0.0) was resolved to 4.0.0, which depends on
responders
activeadmin (~> 1.1.0) was resolved to 1.1.0, which depends on
inherited_resources (~> 1.7) was resolved to 1.10.0, which depends on
responders (~> 2.0)
Most likely you have some strong constraints on some particular gems in your Gemfile that's it's blocking bundle from updating a dependency.

RoR - Bundler could not find compatible versions for gem

I am working on Ruby on Rails application. I am trying to upgrade the rails version from 4.2 to 5.0
I have changed the rails dependency in engine's gemspec file.
On running bundle update in engine it is showing the following error -
Bundler could not find compatible versions for gem "actionmailer":
In Gemfile:
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
actionmailer (= 5.2.4.4)
simple_token_authentication was resolved to 1.17.0, which depends on
actionmailer (>= 3.2.6, < 7)
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
actionpack (= 5.2.4.4)
rspec-rails was resolved to 4.0.2, which depends on
actionpack (>= 4.2)
simple_token_authentication was resolved to 1.17.0, which depends on
actionpack (>= 3.2.6, < 7)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
paranoia (~> 2.2) was resolved to 2.4.3, which depends on
activerecord (>= 4.0, < 6.2)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
activerecord (= 5.2.4.4)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
factory_girl_rails was resolved to 4.9.0, which depends on
factory_girl (~> 4.9.0) was resolved to 4.9.0, which depends on
activesupport (>= 3.0.0)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
activesupport (= 5.2.4.4)
rspec-rails was resolved to 4.0.2, which depends on
activesupport (>= 4.2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
engine was resolved to 0.0.1, which depends on
activeadmin (= 1.0.0.pre2) was resolved to 1.0.0.pre2, which depends on
rails (>= 3.2, < 5.0)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
factory_girl_rails was resolved to 4.9.0, which depends on
railties (>= 3.0.0)
engine was resolved to 0.0.1, which depends on
rails (~> 5.0) was resolved to 5.2.4.4, which depends on
railties (= 5.2.4.4)
rspec-rails was resolved to 4.0.2, which depends on
railties (>= 4.2)
I tried to delete gemfile.lock of engine and run command bundle install then it is showing the following error -
Bundler could not find compatible versions for gem "rails":
In Gemfile:
engine was resolved to 0.0.1, which depends on
activeadmin (= 1.0.0.pre2) was resolved to 1.0.0.pre2, which depends on
rails (>= 3.2, < 5.0)
engine1 was resolved to 0.0.1, which depends on
engine2 was resolved to 0.0.1, which depends on
rails (~> 5.0)
Do anyone have any idea how to resolve it? Please help!
Re-read the error message, it says exactly what's going on.
Bundler could not find compatible versions for gem "rails":
There is no single version of rails that satisfies all requirements. From your issue description I see that you're trying to update to 5, so lets see what is not okay with 5.
In Gemfile:
engine was resolved to 0.0.1, which depends on
activeadmin (= 1.0.0.pre2)
Engine depends on activeadmin with a fixed version
was resolved to 1.0.0.pre2, which depends on
rails (>= 3.2, < 5.0)
This version requires rails of at least 3.2 and less than 5.0. This disallows rails 5. You'll need to update activeadmin in engine before you update rails in the application using the engine.

Rails 4: Bundler could not find compatible versions for gem

I'm working on an old Rails 4 project and I'm having problem when running bundle install and bundle update command.
Here are the logs:
Resolving dependencies..................................................
Bundler could not find compatible versions for gem "actionpack":
In Gemfile:
active_link_to was resolved to 1.0.5, which depends on
actionpack
jquery-datatables-rails (~> 3.4) was resolved to 3.4.0, which depends on
actionpack (>= 3.1)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
actionpack (= 4.2.8)
rspec-rails (~> 3.5, >= 3.5.2) was resolved to 3.9.1, which depends on
actionpack (>= 3.0)
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
carrierwave (~> 0.11.2) was resolved to 0.11.2, which depends on
activemodel (>= 3.2.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activemodel (= 4.2.8)
validate_url was resolved to 1.0.8, which depends on
activemodel (>= 3.0.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
active_median (~> 0.1.3) was resolved to 0.1.4, which depends on
activerecord
activerecord-nulldb-adapter was resolved to 0.4.0, which depends on
activerecord (>= 2.0.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activerecord (= 4.2.8)
rails-erd was resolved to 1.6.0, which depends on
activerecord (>= 4.2)
seed_dump was resolved to 3.3.1, which depends on
activerecord (>= 4)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
activesupport-json_encoder (~> 1.1) was resolved to 1.1.0, which depends on
activesupport (>= 4.1.0, < 5.0)
carrierwave (~> 0.11.2) was resolved to 0.11.2, which depends on
activesupport (>= 3.2.0)
intercom-rails was resolved to 0.4.1, which depends on
activesupport (> 3.0)
jbuilder (~> 2.0) was resolved to 2.9.1, which depends on
activesupport (>= 4.2.0)
mailjet was resolved to 1.5.4, which depends on
activesupport (>= 3.1.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activesupport (= 4.2.8)
rspec-rails (~> 3.5, >= 3.5.2) was resolved to 3.9.1, which depends on
activesupport (>= 3.0)
seed_dump was resolved to 3.3.1, which depends on
activesupport (>= 4)
Bundler could not find compatible versions for gem "carrierwave":
In Gemfile:
carrierwave (~> 0.11.2)
carrierwave-base64 (~> 2.3) was resolved to 2.8.1, which depends on
carrierwave (>= 0.8.0)
Bundler could not find compatible versions for gem "i18n":
In Gemfile:
rails (= 4.2.8) was resolved to 4.2.8, which depends on
activesupport (= 4.2.8) was resolved to 4.2.8, which depends on
i18n (~> 0.7)
faker was resolved to 2.11.0, which depends on
i18n (>= 1.6, < 2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
rails (= 4.2.8)
secondbase (~> 2.1.0) was resolved to 2.1.6, which depends on
rails (>= 4.0)
two_factor_authentication (~> 2.0, >= 2.0.1) was resolved to 2.2.0, which depends on
rails (>= 3.1.1)
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails was resolved to 4.2.2, which depends on
railties (>= 4.0.0)
two_factor_authentication (~> 2.0, >= 2.0.1) was resolved to 2.2.0, which depends on
devise was resolved to 4.7.1, which depends on
railties (>= 4.1.0)
font-awesome-rails was resolved to 4.7.0.5, which depends on
railties (>= 3.2, < 6.1)
jquery-datatables-rails (~> 3.4) was resolved to 3.4.0, which depends on
jquery-rails was resolved to 4.3.5, which depends on
railties (>= 4.2.0)
momentjs-rails (~> 2.15, >= 2.15.1) was resolved to 2.20.1, which depends on
railties (>= 3.1)
quiet_assets was resolved to 1.1.0, which depends on
railties (>= 3.1, < 5.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
railties (= 4.2.8)
rspec-rails (~> 3.5, >= 3.5.2) was resolved to 3.9.1, which depends on
railties (>= 3.0)
Bundler could not find compatible versions for gem "rake":
In Gemfile:
rake (~> 12.0)
capistrano-figaro was resolved to 1.0.0.0, which depends on
capistrano (~> 3.1) was resolved to 3.13.0, which depends on
rake (>= 10.0.0)
rails (= 4.2.8) was resolved to 4.2.8, which depends on
railties (= 4.2.8) was resolved to 4.2.8, which depends on
rake (>= 0.8.7)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby (~> 2.4.1.0)
sidekiq was resolved to 6.0.7, which depends on
ruby (>= 2.5.0)
And, this is my RVM env (I'm on OSX 10.12.6):
rvm env
export PATH="/Users/zulhilmi/.rvm/gems/ruby-2.4.1/bin:/Users/zulhilmi/.rvm/gems/ruby-2.4.1#global/bin:/Users/zulhilmi/.rvm/rubies/ruby-2.4.1/bin:$PATH"
export GEM_HOME='/Users/zulhilmi/.rvm/gems/ruby-2.4.1'
export GEM_PATH='/Users/zulhilmi/.rvm/gems/ruby-2.4.1:/Users/zulhilmi/.rvm/gems/ruby-2.4.1#global'
export MY_RUBY_HOME='/Users/zulhilmi/.rvm/rubies/ruby-2.4.1'
export IRBRC='/Users/zulhilmi/.rvm/rubies/ruby-2.4.1/.irbrc'
unset MAGLEV_HOME
unset RBXOPT
export RUBY_VERSION='ruby-2.4.1'
And, this is my bundle env output.
How to read these logs and what I should do to fix them? Any tips?

Bundler could not find compatible versions for multiple gems that seem to fall within range of requirements

I'm trying to use a gem spree, which depends on kaminari (~> 1.0.1). In my Gemfile.lock, I have kaminari (= 1.1.1). This satisfies the requirement for spree, since it's greater than or equal to the last digit. However, I'm getting this error when I try to bundle:
Bundler could not find compatible versions for gem "kaminari":
In snapshot (Gemfile.lock):
kaminari (= 1.1.1)
In Gemfile:
activeadmin (~> 1.3) was resolved to 1.3.0, which depends on
kaminari (>= 0.15)
rails_admin (~> 1.3) was resolved to 1.3.0, which depends on
kaminari (< 2.0, >= 0.14)
spree (~> 3.5.0) was resolved to 3.5.0, which depends on
spree_core (= 3.5.0) was resolved to 3.5.0, which depends on
kaminari (~> 1.0.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
I'm not sure why v1.1.1 doesn't satisfy the requirements for all the gems in question, since it seems to fall within the range for all gems in question. I tried running bundle update, but then I get a long list of gem incompatibilities, none of which make sense to me either, since their requirements all seem to fall within range of the version I have in my lock file. For instance,
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
carrierwave (~> 1.2) was resolved to 1.2.2, which depends on
activemodel (>= 4.0.0)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activemodel (= 5.1.6)
web-console (>= 3.3.0) was resolved to 3.6.2, which depends on
activemodel (>= 5.0)
Bundler could not find compatible versions for gem "activerecord":
In Gemfile:
annotate (~> 2.7) was resolved to 2.7.4, which depends on
activerecord (< 6.0, >= 3.2)
friendly_id (~> 5.2) was resolved to 5.2.4, which depends on
activerecord (>= 4.0.0)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activerecord (= 5.1.6)
activeadmin (~> 1.3) was resolved to 1.3.0, which depends on
ransack (~> 1.3) was resolved to 1.8.8, which depends on
activerecord (>= 3.0)
spree_gateway (~> 3.3) was resolved to 3.3.3, which depends on
spree_extension was resolved to 0.0.5, which depends on
activerecord (>= 4.2)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
activeadmin (~> 1.3) was resolved to 1.3.0, which depends on
arbre (>= 1.1.1) was resolved to 1.1.1, which depends on
activesupport (>= 3.0.0)
carrierwave (~> 1.2) was resolved to 1.2.2, which depends on
activesupport (>= 4.0.0)
activeadmin (~> 1.3) was resolved to 1.3.0, which depends on
inherited_resources (>= 1.7.0) was resolved to 1.8.0, which depends on
has_scope (~> 0.6) was resolved to 0.7.2, which depends on
activesupport (>= 4.1)
jbuilder (~> 2.5) was resolved to 2.7.0, which depends on
activesupport (>= 4.2.0)
kaminari (~> 1.0.1) was resolved to 1.0.1, which depends on
activesupport (>= 4.1.0)
rails (~> 5.1.6) was resolved to 5.1.6, which depends on
activesupport (= 5.1.6)
activeadmin (~> 1.3) was resolved to 1.3.0, which depends on
ransack (~> 1.3) was resolved to 1.8.8, which depends on
activesupport (>= 3.0)
spring was resolved to 2.0.2, which depends on
activesupport (>= 4.2)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
sprockets-rails (< 4.0, >= 2.0) was resolved to 3.2.1, which depends on
activesupport (>= 4.0)
Bundler could not find compatible versions for gem "kaminari":
In Gemfile:
kaminari (~> 1.0.1)
activeadmin (~> 1.3) was resolved to 1.3.0, which depends on
kaminari (>= 0.15)
rails_admin (~> 1.3) was resolved to 1.3.0, which depends on
kaminari (< 2.0, >= 0.14)
Bundler could not find compatible versions for gem "spree_core":
In Gemfile:
spree (~> 3.5.0) was resolved to 3.5.0, which depends on
spree_core (= 3.5.0)
spree_gateway (~> 3.3) was resolved to 3.3.3, which depends on
spree_core (< 4.0, >= 3.1.0)
These errors raise a whole new set of questions, since I don't see any conflicts in versions for any of the gems.
For activemodel, why can't it use 5.1.6? Doesn't that satisfy all the requirements?
For activerecord, why can't it use 5.1.6? Doesn't that satisfy all the requirements?
For activesupport, why can't it use 5.1.6? Doesn't that satisfy all the requirements?
For kaminari, why can't it use 1.0.1? Doesn't that satisfy all the requirements?
For spree_core, why can't it use 3.5.0? Doesn't that satisfy all the requirements?
How does one go about resolving these issues? I've tried running bundle update for all gems and for individual gems, but I get the same error message either way.
This satisfies the requirement for spree, since it's greater than or equal to the last digit.
That's not quite correct, the docs for Bundler's Gemfile state:
The specifier ~> has a special meaning, best shown by example. ~> 2.0.3 is identical to >= 2.0.3 and < 2.1.
So in your case, for kaminari, ~> 1.0.1 would mean '>= 1.0.1' and '< 1.1', which (obviously) 1.1.1 does not meet.
As for the others, everything looks to me like it'd work, though I notice a lot of the ones failing need something to do with spree or kaminari, so maybe fixing the one will help those. The others could also (maybe) be cascading errors, kind of like a missing parenthesis or comma in one place can cause syntax errors through the entire file, maybe just the one error is cascading through the rest of the bundle, I'd take care of Kaminari and then see what you're left with.
Have you verified whether the version of spree you're trying to install is compatible with the higher version of kaminari? try downgrading the kaminari gem to "~> 1.0.1" to see if that helps.
if that does not work, then another suggestion would be to run "bundle update" on your current gemset "before" you add "spree" to your Gemfile to make sure you are working with all the latest versions of your currently installed gems.

How to fix bundler "can't find version" upgrading Nokogiri

I'm trying to upgrade Nokogiri to version 1.7:
gem 'nokogiri', '~> 1.7'
but when I run:
bundle update --source nokogiri
I get:
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies.............
Bundler could not find compatible versions for gem "nokogiri":
This is in my Gemfile:
nokogiri (~> 1.7)
activemerchant (~> 1.58.0) was resolved to 1.58.0, which depends on
nokogiri (~> 1.4)
activemerchant (~> 1.58.0) was resolved to 1.58.0, which depends on
nokogiri (~> 1.4)
capybara was resolved to 2.7.0, which depends on
nokogiri (>= 1.3.3)
cucumber-rails was resolved to 1.4.3, which depends on
nokogiri (~> 1.5)
haml-rails was resolved to 0.9.0, which depends on
html2haml (>= 1.0.1) was resolved to 2.0.0, which depends on
nokogiri (~> 1.6.0)
haml-rails was resolved to 0.9.0, which depends on
html2haml (>= 1.0.1) was resolved to 2.0.0, which depends on
nokogiri (~> 1.6.0)
rails (>= 4.2.6, ~> 4.2) was resolved to 4.2.6, which depends on
actionmailer (= 4.2.6) was resolved to 4.2.6, which depends on
actionview (= 4.2.6) was resolved to 4.2.6, which depends on
rails-html-sanitizer (>= 1.0.2, ~> 1.0) was resolved to 1.0.3, which depends on
loofah (~> 2.0) was resolved to 2.0.3, which depends on
nokogiri (>= 1.5.9)
roo (~> 2.4.0) was resolved to 2.4.0, which depends on
nokogiri (~> 1)
roo-xls was resolved to 1.0.0, which depends on
nokogiri
capybara was resolved to 2.7.0, which depends on
xpath (~> 2.0) was resolved to 2.0.0, which depends on
nokogiri (~> 1.3)
Does anyone have an idea why it can't find it? I see on rubygems.org that the current version is 1.7.1 as well as on github. Do I need to specify the github source?
The problem is here:
haml-rails was resolved to 0.9.0, which depends on
html2haml (>= 1.0.1) was resolved to 2.0.0, which depends on
nokogiri (~> 1.6.0)
As you can see, html2haml depends on nokogiri (~> 1.6.0), that is not 1.7. You either need to update html2haml (so it dependency becomes nokogiri (~> 1.6)) or use nokogiri, ~> 1.6.
You could try deleting your Gemfile.lock file and running bundle install again, but i will only recommend doing it if you are not yet in production.
I think other gems are depedent on Nokogiri, so
try bundle update.
bundle update will resolve a dependency tree and try and install versions that satisfy all the other gems dependencies.

Resources