Gem not working with Rails 5
gregblass opened this issue · 3 comments
gregblass commented
When upgrading to Rails 5, bundler works for all my other gems - but when I add rails-observers, this is the error I get:
bundle update
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 "rack":
In Gemfile:
rails (= 5.0.0.beta3) ruby depends on
actioncable (= 5.0.0.beta3) ruby depends on
actionpack (= 5.0.0.beta3) ruby depends on
rack (~> 2.x) ruby
rails (= 5.0.0.beta3) ruby depends on
actioncable (= 5.0.0.beta3) ruby depends on
actionpack (= 5.0.0.beta3) ruby depends on
rack-test (~> 0.6.3) ruby depends on
rack (>= 1.0) ruby
sass-rails (>= 0) ruby depends on
sprockets (< 4.0, >= 2.8) ruby depends on
rack (< 3, > 1) ruby
capybara (>= 0) ruby depends on
rack (>= 1.0.0) ruby
passenger (>= 0) ruby depends on
rack (>= 0) ruby
thin (>= 0) ruby depends on
rack (~> 1.0) ruby
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
rails (= 5.0.0.beta3) ruby depends on
activemodel (= 5.0.0.beta3) ruby
rails (= 5.0.0.beta3) ruby depends on
activemodel (= 5.0.0.beta3) ruby
web-console (>= 0) ruby depends on
activemodel (>= 4.2) ruby
simple_form (>= 0) ruby depends on
activemodel (< 5.1, > 4) ruby
carrierwave (>= 0) ruby depends on
activemodel (>= 3.2.0) ruby
rails-observers (>= 0) ruby depends on
activemodel (~> 4.0) ruby
Bundler could not find compatible versions for gem "railties":
In Gemfile:
rails (= 5.0.0.beta3) ruby depends on
railties (= 5.0.0.beta3) ruby
lograge (~> 0.3.1) ruby depends on
railties (>= 3) ruby
coffee-rails (>= 0) ruby depends on
railties (< 5.1.x, >= 4.0.0) ruby
sass-rails (>= 0) ruby depends on
railties (< 5.0, >= 4.0.0) ruby
jquery-turbolinks (>= 0) ruby depends on
railties (>= 3.1.0) ruby
factory_girl_rails (>= 0) ruby depends on
railties (>= 3.0.0) ruby
web-console (>= 0) ruby depends on
railties (>= 4.2) ruby
jquery-rails (>= 0) ruby depends on
railties (>= 4.2.0) ruby
rails-observers (>= 0) ruby depends on
railties (~> 4.0.0.beta) ruby
gregblass commented
Sorry, I should have checked the closed issues. Looks like this has been dealt with, just not released to rubygems. I'll point my gemfile to this repository.
Thanks to the contributors.
gregblass commented
Confirming that I was able to get this to work with Rails 5 by updating my Gemfile to:
gem 'rails-observers', git: 'https://github.com/rails/rails-observers.git'
Which allowed bundle update to succeed:
Using rails-observers 0.1.3.alpha from https://github.com/rails/rails-observers.git (at master)
ericboehs commented
@rafaelfranca Any update on when this will be released to RubyGems? Thanks!