Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Allow using RubyGems\0 as the name when RG is a pre-release version
Browse files Browse the repository at this point in the history
  • Loading branch information
segiddins committed Aug 7, 2018
1 parent fcc4b60 commit 48f6a18
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bundler/source/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ class Metadata < Source
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"
Expand Down

0 comments on commit 48f6a18

Please sign in to comment.