ruby-changes:59943
From: David <ko1@a...>
Date: Thu, 6 Feb 2020 21:57:36 +0900 (JST)
Subject: [ruby-changes:59943] 054d99d95b (master): [rubygems/rubygems] Allow releasing with a rubygems pre version
https://git.ruby-lang.org/ruby.git/commit/?id=054d99d95b From 054d99d95bc9d3c9481be3ea97dd16b39a4ba5bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Mon, 3 Feb 2020 18:48:44 +0100 Subject: [rubygems/rubygems] Allow releasing with a rubygems pre version This condition is too restrictive in my opinion. If a user has a pre version of rubygems installed, she should be fully responsible for it, and we shouldn't restrict any functionality. Also, why is a new prerelease disallowed but an old prelease allowed, or why is 2.0.0.rc2 explictly whitelisted? I believe this kind of exceptions are one more reason to actually permit this. https://github.com/rubygems/rubygems/commit/7f77a77620 diff --git a/lib/rubygems/commands/push_command.rb b/lib/rubygems/commands/push_command.rb index 41e6c7e..fe8157e 100644 --- a/lib/rubygems/commands/push_command.rb +++ b/lib/rubygems/commands/push_command.rb @@ -79,25 +79,6 @@ The push command will use ~/.gem/credentials to authenticate to a server, but yo https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/push_command.rb#L79 def send_gem(name) args = [:post, "api/v1/gems"] - latest_rubygems_version = Gem.latest_rubygems_version - - if latest_rubygems_version < Gem.rubygems_version and - Gem.rubygems_version.prerelease? and - Gem::Version.new('2.0.0.rc.2') != Gem.rubygems_version - alert_error <<-ERROR -You are using a beta release of RubyGems (#{Gem::VERSION}) which is not -allowed to push gems. Please downgrade or upgrade to a release version. - -The latest released RubyGems version is #{latest_rubygems_version} - -You can upgrade or downgrade to the latest release version with: - - gem update --system=#{latest_rubygems_version} - - ERROR - terminate_interaction 1 - end - gem_data = Gem::Package.new(name) unless @host -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/