-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
Showing
45 changed files
with
485 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
module Gem::BundlerVersionFinder | ||
@without_filtering = false | ||
|
||
def self.without_filtering | ||
without_filtering, @without_filtering = true, @without_filtering | ||
yield | ||
ensure | ||
@without_filtering = without_filtering | ||
end | ||
|
||
def self.bundler_version | ||
version, _ = bundler_version_with_reason | ||
|
||
return unless version | ||
|
||
Gem::Version.new(version) | ||
end | ||
|
||
def self.bundler_version_with_reason | ||
return if @without_filtering | ||
|
||
if v = ENV["BUNDLER_VERSION"] | ||
return [v, "`$BUNDLER_VERSION`"] | ||
end | ||
if v = bundle_update_bundler_version | ||
return if v == true | ||
return [v, "`bundle update --bundler`"] | ||
end | ||
v, lockfile = lockfile_version | ||
if v | ||
return [v, "your #{lockfile}"] | ||
end | ||
end | ||
|
||
def self.missing_version_message | ||
return unless vr = bundler_version_with_reason | ||
<<-EOS | ||
Could not find 'bundler' (#{vr.first}) required by #{vr.last}. | ||
To update to the lastest version installed on your system, run `bundle update --bundler`. | ||
To install the missing version, run `gem install bundler:#{vr.first}` | ||
EOS | ||
end | ||
|
||
def self.compatible?(spec) | ||
return true unless spec.name == "bundler".freeze | ||
return true unless bundler_version = self.bundler_version | ||
if bundler_version.segments.first >= 2 | ||
spec.version == bundler_version | ||
else # 1.x | ||
spec.version.segments.first < 2 | ||
end | ||
end | ||
|
||
def self.filter!(specs) | ||
return unless bundler_version = self.bundler_version | ||
if bundler_version.segments.first >= 2 | ||
specs.reject! { |spec| spec.version != bundler_version } | ||
else # 1.x | ||
specs.reject! { |spec| spec.version.segments.first >= 2} | ||
end | ||
end | ||
|
||
def self.bundle_update_bundler_version | ||
return unless File.basename($0) == "bundle".freeze | ||
return unless "update".start_with?(ARGV.first || " ") | ||
bundler_version = nil | ||
update_index = nil | ||
ARGV.each_with_index do |a, i| | ||
if update_index && update_index.succ == i && a =~ Gem::Version::ANCHORED_VERSION_PATTERN | ||
bundler_version = a | ||
end | ||
next unless a =~ /\A--bundler(?:[= ](#{Gem::Version::VERSION_PATTERN}))?\z/ | ||
bundler_version = $1 || true | ||
update_index = i | ||
end | ||
bundler_version | ||
end | ||
private_class_method :bundle_update_bundler_version | ||
|
||
def self.lockfile_version | ||
return unless lockfile = lockfile_contents | ||
lockfile, contents = lockfile | ||
lockfile ||= "lockfile" | ||
regexp = /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/ | ||
return unless contents =~ regexp | ||
[$1, lockfile] | ||
end | ||
private_class_method :lockfile_version | ||
|
||
def self.lockfile_contents | ||
gemfile = ENV["BUNDLE_GEMFILE"] | ||
gemfile = nil if gemfile && gemfile.empty? | ||
Gem::Util.traverse_parents Dir.pwd do |directory| | ||
next unless gemfile = Gem::GEM_DEP_FILES.find { |f| File.file?(f.untaint) } | ||
|
||
gemfile = File.join directory, gemfile | ||
break | ||
end unless gemfile | ||
|
||
return unless gemfile | ||
|
||
lockfile = case gemfile | ||
when "gems.rb" then "gems.locked" | ||
else "#{gemfile}.lock" | ||
end.untaint | ||
|
||
return unless File.file?(lockfile) | ||
|
||
[lockfile, File.read(lockfile)] | ||
end | ||
private_class_method :lockfile_contents | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# frozen_string_literal: true | ||
require 'rubygems/command' | ||
require 'rubygems/gemcutter_utilities' | ||
|
||
class Gem::Commands::SigninCommand < Gem::Command | ||
include Gem::GemcutterUtilities | ||
|
||
def initialize | ||
super 'signin', 'Sign in to any gemcutter-compatible host. '\ | ||
'It defaults to https://rubygems.org' | ||
|
||
add_option('--host HOST', 'Push to another gemcutter-compatible host') do |value, options| | ||
options[:host] = value | ||
end | ||
|
||
end | ||
|
||
def description # :nodoc: | ||
'The signin command executes host sign in for a push server (the default is'\ | ||
' https://rubygems.org). The host can be provided with the host flag or can'\ | ||
' be inferred from the provided gem. Host resolution matches the resolution'\ | ||
' strategy for the push command.' | ||
end | ||
|
||
def usage # :nodoc: | ||
program_name | ||
end | ||
|
||
def execute | ||
sign_in options[:host] | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# frozen_string_literal: true | ||
require 'rubygems/command' | ||
|
||
class Gem::Commands::SignoutCommand < Gem::Command | ||
|
||
def initialize | ||
super 'signout', 'Sign out from all the current sessions.' | ||
end | ||
|
||
def description # :nodoc: | ||
'The `signout` command is used to sign out from all current sessions,'\ | ||
' allowing you to sign in using a different set of credentials.' | ||
end | ||
|
||
def usage # :nodoc: | ||
program_name | ||
end | ||
|
||
def execute | ||
credentials_path = Gem.configuration.credentials_path | ||
|
||
if !File.exist?(credentials_path) then | ||
alert_error 'You are not currently signed in.' | ||
elsif !File.writable?(credentials_path) then | ||
alert_error "File '#{Gem.configuration.credentials_path}' is read-only."\ | ||
' Please make sure it is writable.' | ||
else | ||
Gem.configuration.unset_api_key! | ||
say 'You have successfully signed out from all sessions.' | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# frozen_string_literal: true | ||
require 'rubygems/source/specific_file' | ||
|
||
# TODO warn upon require, this file is deprecated. | ||
|
||
unless Gem::Deprecate.skip | ||
Kernel.warn "#{Gem.location_of_caller(3).join(':')}: Warning: Requiring rubygems/source_specific_file is deprecated; please use rubygems/source/specific_file instead." | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
lib/ruby/stdlib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
lib/ruby/stdlib/rubygems/ssl_certs/AddTrustExternalCARoot.pem
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
lib/ruby/stdlib/rubygems/ssl_certs/Class3PublicPrimaryCertificationAuthority.pem
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
lib/ruby/stdlib/rubygems/ssl_certs/DigiCertHighAssuranceEVRootCA.pem
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
lib/ruby/stdlib/rubygems/ssl_certs/EntrustnetSecureServerCertificationAuthority.pem
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
lib/ruby/stdlib/rubygems/ssl_certs/index.rubygems.org/GlobalSignRoot.pem
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
lib/ruby/stdlib/rubygems/ssl_certs/rubygems.org/AddTrustExternalCARoot-2048.pem
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters