chargify / chargify_api_ares

A Chargify API wrapper for Ruby using ActiveResource
http://chargify.com
MIT License
161 stars 95 forks source link

Unable to resolve dependencies with Rails 5 #142

Closed jznadams closed 7 years ago

jznadams commented 8 years ago

I've previously been using the Chargify gem by including the following in my gemfile:

gem "chargify_api_ares"

I wanted to start testing my application against Rails 5 today, but when I changed the Rails gem dependency I noticed that the Chargify gem downgraded itself significantly when I ran bundle update:

gem "rails", "5.0.0.1"

Installing chargify_api_ares 0.4.4 (was 1.4.7)

When I go back and explicitly specify the version of the Chargify gem I want to use, bundler is unable to resolve the discrepancies:

gem "chargify_api_ares", '1.4.7'

    chargify_api_ares (= 1.4.7) was resolved to 1.4.7, which depends on
      activeresource (>= 3.2.16) was resolved to 3.2.16, which depends on
        activesupport (= 3.2.16)

Any ideas?

santervo commented 7 years ago

Chargify depends on activeresource gem which is released as separate gem only up to version 4.1 which does not work with rails 5. You can solve the issue by depending to rails 5 version of activeresource via github in your Gemfile:

gem 'activeresource', github: 'rails/activeresource', branch: 'master'
gem "chargify_api_ares", '~> 1.4.7'
jznadams commented 7 years ago

It looks like this has magically resolved itself with the latest versions of the chargify_api_ares/rails gems so I will close this for now.