Running bundle install after including the gem gives me this
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
neo4j-will_paginate (>= 0) ruby depends on
activesupport (~> 3.0) ruby
rails (= 4.1.6) ruby depends on
activesupport (4.1.6)
I am on gem 'rails', '4.1.6' and the app was originally created without AR and added back in later.
I have seen some other example SO but don't want to do any gemlock changes without certainy
Suggestions on troubleshooting?
Use neo4j-will_paginate_redux, not that gem. We rereleased under this name because we could not get access to the original on Rubygems.
Related
I'm trying to upgrade my rails application from 5.1.4 to 5.2.
I've gone through the steps here:
https://www.ombulabs.com/blog/rails/upgrades/upgrade-rails-from-5-1-to-5-2.html
However, this completely skips over how to update your gemfile.
When I change
gem 'rails', '~> 5.1.4'
to
gem 'rails', '~> 5.2.2'
I receive the error:
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (= 5.1.6.1)
In Gemfile:
rails (~> 5.2.2) was resolved to 5.2.2, which depends on
activesupport (= 5.2.2)
sass-rails (~> 5.0) was resolved to 5.0.7, which depends on
railties (>= 4.0.0, < 6) was resolved to 5.1.6.1, which depends on
activesupport (= 5.1.6.1)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
I can resolve these errors, but this seems to be an incomplete way to update.
What is the proper way to update your gemfile?
bundle update rails
after this you can use gem "bundleup" to see what other gems you can update.
I updated the shopify_api gem in my gem file to this:
gem 'shopify_api', '~>4.9'
When I do gem list I get
shopify_api (4.9.0, 4.3.2, 4.0.7)
When I do bundle show shopify_api I get
/home/user/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/shopify_api-4.9.0
In my Gemfile.lock I have the following entries
shopify_api (4.9.0)
activeresource (>= 3.0.0)
rack
shopify_app (7.2.8)
omniauth-shopify-oauth2 (~> 1.1.11)
rails (>= 4.2.6)
shopify_api (>= 4.3.2)
My question is which version of the shopify_api gem am I using? And is there a definitive way to find out?
The gem list command shows you all versions of the gem installed. As the gem tool doesn't have any way of knowing which you're using it can't tell you. All it can do is install, uninstall, or reinstall gems.
The bundle show command will tell you which one is being used as per your Gemfile and Gemfile.lock settings.
I'm new to Rails, and am trying to change an existing Rails app to use ES6 over Coffeescript. I've looked around online and seems like it should be as simple as adding the following to my Gemfile to get started with transpiling Babel:
gem 'sprockets'
gem 'sprockets-es6', require: 'sprockets/es6'
When I add this and then bundle install I get the following error:
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
rails (= 3.2.21) ruby depends on
railties (= 3.2.21) ruby depends on
actionpack (= 3.2.21) ruby depends on
sprockets (~> 2.2.1) ruby
sprockets (>= 3.0.0.beta) ruby
I'm really not all that familiar with Rails, but my understanding is that specified Rails gem is incompatible with the specified Sprockets gem, right? Can someone point me in the right direction about how I can resolve this?
Replace the following line in Gemfile
gem 'sprockets'
by
gem 'sprockets', '~>2.2.1'
This means that you have latest version of sprockets that is not supported by earlier version of action pack.
I am getting the following error when I run 'bundle install':
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
google-drive (>= 0) ruby depends on
middleman-core (>= 3.2.2) ruby depends on
activesupport (~> 3.2.6) ruby
rails (= 4.2.0) ruby depends on
activesupport (4.2.0)
I don't specify a version for the google-drive gemfile, but I do specify gem 'rails', '4.2.0'.
If I fail to specify a rails version, I get a really old version.
Try to update google-drive. Run bundle update google-drive.
Well - it looks like I was using the wrong gem. It's google_drive not google-drive.
I'm attempting to add an on boarding tutorial to my site. I've installed the joyride-rails gem and am getting this error when running bundle install.
Bundler could not find compatible versions for gem "rails":
In Gemfile:
joyride-rails (~> 0.0.14) ruby depends on
rails (~> 3.1) ruby
rails (4.1.6)
I've done some research and found this answer Dependency error while installing the gem "joyride-rails"
And this answer Simple Javascript Joyride plugin in rails
The problem is I think that the joyride gem just isn't compatible with rails 4 and when I down grade to 3.1 a bunch of my other gems are in conflict. I delte the gemfile.lock and run bundle install and get this error.
Bundler could not find compatible versions for gem "railties":
In Gemfile:
coffee-rails (~> 4.0.0) ruby depends on
railties (< 5.0, >= 4.0.0.beta) ruby
rails (= 3.1) ruby depends on
railties (3.1.0)
Any suggestions as to how I can implement this gem? Or do you know of another Gem that will accomplish the same goal?
Thanks!