mbuckbee / IP-to-Earth-Gem

Other
1 stars 2 forks source link

Gem version conflicts #4

Open martinstreicher opened 3 years ago

martinstreicher commented 3 years ago

I have a Rails 6 codebase. I cannot install the ip_to_earth gem due to conflicts:

iMac-2015:proof_reading strike$ bundle install 

Fetching https://github.com/mbuckbee/IP-To-Earth-Gem.git
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Bundler could not find compatible versions for gem "addressable":
  In snapshot (Gemfile.lock):
    addressable (= 2.7.0)

  In Gemfile:
    down was resolved to 5.2.0, which depends on
      addressable (~> 2.5)

    ip_to_earth was resolved to 1.0, which depends on
      unirest (~> 1.1.2) was resolved to 1.1.2, which depends on
        addressable (~> 2.3.5)

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

bundle update did not help...

Bundler could not find compatible versions for gem "rest-client":
  In Gemfile:
    mailgun-ruby (>= 1.2.0) was resolved to 1.2.0, which depends on
      rest-client (~> 2.0.2)

    ip_to_earth was resolved to 1.0, which depends on
      unirest (~> 1.1.2) was resolved to 1.1.2, which depends on
        rest-client (~> 1.6.7)

Can the gemspec file be revised to use these newer versions of the gems?

martinstreicher commented 3 years ago

I reused the same PR (#5) to clean up these issues, too. Please review @mbuckbee