Skip to content

Instantly share code, notes, and snippets.

@znz
Last active September 15, 2016 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save znz/62946cbb55de4fe58a5101d7875a2ba1 to your computer and use it in GitHub Desktop.
Save znz/62946cbb55de4fe58a5101d7875a2ba1 to your computer and use it in GitHub Desktop.
rubygems with multi default gem problem

rubygems with multi default gem problem

This issue may affect Ruby committers only. This does not probably affect released ruby.

With development ruby, make install many times. After them, default gems are duplicated when exists updated. And gem with old version in Gemfile does not work well.

Example:

% gem list rdoc

*** LOCAL GEMS ***

rdoc (default: 5.0.0.beta2, default: 4.2.1)
% cat Gemfile
# frozen_string_literal: true
source "https://rubygems.org"

# gem "rails"
gem 'rdoc', '4.2.1'
% cat Gemfile.lock
GEM
  remote: https://rubygems.org/
  specs:
    rdoc (4.2.1)

PLATFORMS
  ruby

DEPENDENCIES
  rdoc (= 4.2.1)

BUNDLED WITH
   1.13.0
% bundle exec ruby -r rdoc -e 'p RDoc::VERSION'
"5.0.0.beta2"
@znz
Copy link
Author

znz commented Sep 15, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment