salsify/goldiloader

Can't install in Rails 3.2 app when using RubyGems hosted gem

Closed this issue · 1 comments

When trying to use the RubyGems hosted gem in a Rails 3.2 app I get the following error:

$ bundle install
Fetching source index from https://rubygems.org/
Fetching source index from https://rails-assets.org/
Resolving dependencies........
Bundler could not find compatible versions for gem "activesupport":
  In snapshot (Gemfile.lock):
    activesupport (3.2.18)

  In Gemfile:
    goldiloader (>= 0.0.2) ruby depends on
      activesupport (= 4.1) ruby

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

The workaround is to instead use the tag in the Gemfile:

gem 'goldiloader', github: 'salsify/goldiloader', tag: 'v0.0.2' 

Republished the gem. Note to self: make sure RAILS_VERSION isn't set when publishing the gem.