sabisu-rails icon indicating copy to clipboard operation
sabisu-rails copied to clipboard

Rails 5.02 Bundler could not find compatible versions for gem "actionpack" and gem "sprockets"

Open mberlanda opened this issue 7 years ago • 5 comments

I have added the following to my Gemfile:

gem 'sabisu_rails', github: "IcaliaLabs/sabisu-rails"
gem 'compass-rails'
gem 'furatto'
gem 'font-awesome-rails'
gem 'simple_form'

And I get the following error:

Bundler could not find compatible versions for gem "actionpack":
  In Gemfile:
    active_model_serializers was resolved to 0.10.5, which depends on
      actionpack (< 6, >= 4.1)

    furatto was resolved to 1.4.0, which depends on
      actionpack (>= 3.1)

    rails (~> 5.0.2) was resolved to 5.0.2, which depends on
      actionpack (= 5.0.2)

    rails (~> 5.0.2) was resolved to 5.0.2, which depends on
      actionpack (= 5.0.2)

    rails (~> 5.0.2) was resolved to 5.0.2, which depends on
      actionpack (= 5.0.2)

    rails (~> 5.0.2) was resolved to 5.0.2, which depends on
      actionpack (= 5.0.2)

    rspec-rails (~> 3.5) was resolved to 3.5.2, which depends on
      actionpack (>= 3.0)

    sabisu_rails was resolved to 0.0.2.beta, which depends on
      actionpack (~> 4.0)

    simple_form was resolved to 3.4.0, which depends on
      actionpack (< 5.1, > 4)

    rails (~> 5.0.2) was resolved to 5.0.2, which depends on
      sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
        actionpack (>= 4.0)
Bundler could not find compatible versions for gem "sprockets":
  In Gemfile:
    compass-rails was resolved to 2.0.2, which depends on
      sprockets (< 4.0)

    furatto was resolved to 1.4.0, which depends on
      compass-rails (~> 2.0) was resolved to 2.0.2, which depends on
        sprockets (< 2.13)

    sass-rails (~> 5.0) was resolved to 5.0.6, which depends on
      sprockets (< 4.0, >= 2.8)

    rails (~> 5.0.2) was resolved to 5.0.2, which depends on
      sprockets-rails (>= 2.0.0) was resolved to 3.2.0, which depends on
        sprockets (>= 3.0.0)

It seems that the main issues are related to:

  • sabisu_rails was resolved to 0.0.2.beta, which depends on actionpack (~> 4.0)
  • furatto was resolved to 1.4.0, which depends on compass-rails (~> 2.0) was resolved to 2.0.2, which depends on sprockets (< 2.13)

Do you have any suggestion different from downgrading my rails gem version?

Thank you

mberlanda avatar Mar 27 '17 14:03 mberlanda

Currently, not, but if you are following the book, I can say you can skip the sabiduría section 😢

kurenn avatar Apr 25 '17 13:04 kurenn

@kurenn this is actually what I did, but it would be useful to use the features offered by this gem.

I had a look at the broken dependencies and it seems that it should be easier to fix the issue with [gem furatto] (https://github.com/IcaliaLabs/furatto-rails). However, given this open issue, I am not 100% sure that it would be enough to update the dependency to compass-rails 3.0.2. Moreover I am not aware of the impact that the upgrade from rails 4 to rails 5 would have on your gem (activemodel, actionpack).

In case this project is not planned to be maintained for Rails 5, would you have any alternative to suggest in order to achieve the same result? Otherwise, I would be pleased to contribute.

mberlanda avatar Apr 26 '17 10:04 mberlanda

@mberlanda For now you can use something like postman, it is a chrome extension and the interface is really similar to the one on sabisu...

kurenn avatar May 24 '17 14:05 kurenn

@kurenn So if using rails 5 , skip the Sabisu section? You should release a new version of this book ! Its the best book so far I read on APIs but it sucks its on rails 4 :(

theasteve avatar Mar 01 '18 21:03 theasteve

@theasteve Yeah, skip that section, sorry about the inconvenience

kurenn avatar Mar 16 '18 18:03 kurenn