Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundler could not find compatible versions for gem #3

Open
shannonio opened this issue Feb 6, 2017 · 1 comment
Open

Bundler could not find compatible versions for gem #3

shannonio opened this issue Feb 6, 2017 · 1 comment

Comments

@shannonio
Copy link

shannonio commented Feb 6, 2017

I am getting this error when running bundle in my project.

activerecord (5.0.1)
ruby 2.3.1
rails 5.0.1

$ bundle
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 "activerecord":
  In snapshot (Gemfile.lock):
    activerecord (= 5.0.1)

  In Gemfile:
    active_nutrition was resolved to 0.5.0, which depends on
      activerecord (~> 3.0)

rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.1, which
depends on
      activerecord (= 5.0.1)

Running `bundle update` will rebuild your snapshot from scratch,
using only
the gems in your Gemfile, which may resolve the conflict.
@camertron
Copy link
Owner

Hey @shannonio, I think that error is popping up because you're using Rails 5, which active_nutrition doesn't currently support. I did some work last night to modernize it a bit. Could you try adding this to your Gemfile instead?

gem 'active_nutrition', github: 'forrager/active_nutrition', branch: 'modern_rails'

That should let you try my changes to see if they work for you. If everything looks good, I'll publish a new version of the gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants