kurenn / sabisu-rails

Simple and powerful engine for exploring your Rails api application
MIT License
127 stars 29 forks source link

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

Open mberlanda opened 7 years ago

mberlanda commented 7 years ago

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:

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

Thank you

kurenn commented 7 years ago

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

mberlanda commented 7 years ago

@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.

kurenn commented 7 years ago

@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...

theasteve commented 6 years ago

@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 :(

kurenn commented 6 years ago

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