diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2018-08-07 00:30:11 -0700 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-08-07 00:30:11 -0700 |
commit | 48f6a18c2645159e22b48390d02a84a513011e37 (patch) | |
tree | fada38b66d60454cb2a7519f5a2bae5d31f8bbad | |
parent | fcc4b607379b25f607ce8d003664902f58fefd23 (diff) | |
download | bundler-48f6a18c2645159e22b48390d02a84a513011e37.tar.gz |
Allow using RubyGems\0 as the name when RG is a pre-release version
-rw-r--r-- | lib/bundler/source/metadata.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/source/metadata.rb b/lib/bundler/source/metadata.rb index 639f262f74..ff8861c710 100644 --- a/lib/bundler/source/metadata.rb +++ b/lib/bundler/source/metadata.rb @@ -6,7 +6,9 @@ module Bundler def specs @specs ||= Index.build do |idx| idx << Gem::Specification.new("Ruby\0", RubyVersion.system.to_gem_version_with_patchlevel) - idx << Gem::Specification.new("RubyGems\0", Gem::VERSION) + idx << Gem::Specification.new("RubyGems\0", Gem::VERSION) do |s| + s.required_rubygems_version = Gem::Requirement.default + end idx << Gem::Specification.new do |s| s.name = "bundler" |