Skip to content

Instantly share code, notes, and snippets.

@hodak
Created January 26, 2015 08:02
Show Gist options
  • Save hodak/c46eecad751449a15c5f to your computer and use it in GitHub Desktop.
Save hodak/c46eecad751449a15c5f to your computer and use it in GitHub Desktop.
Issues with migrating to bundler's source blocks

1. Bundler 1.7.0

Bundler doesn't (and can't) bundle itself so

gem 'bundler', '>= 1.7.0'

isn't enough. Bundler must be updated manually locally and on each stage.

$ gem update bundler

2. Circle

Circle also doesn't update bundler automatically, so I had to use this:

# circle.yml
dependencies:
  pre:
    - gem update bundler

3. Gems versions

Bundler doesn't care about Gemfile.lock when running bundle install for gems in source blocks. There's an opened issue for this. This, basically, meant I had to go through each Gemfile gem in source block and set its version manually.

# gem "rails-assets-angular", '~> 1.2.0'
source "http://rails-assets.org" do
  gem "rails-assets-angular", '1.2.27'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment