Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
194 additions
and 65 deletions.
- +8 −2 lib/ruby/stdlib/rubygems.rb
- +52 −22 lib/ruby/stdlib/rubygems/basic_specification.rb
- +0 −1 lib/ruby/stdlib/rubygems/commands/contents_command.rb
- +15 −1 lib/ruby/stdlib/rubygems/commands/pristine_command.rb
- +1 −1 lib/ruby/stdlib/rubygems/commands/uninstall_command.rb
- +0 −2 lib/ruby/stdlib/rubygems/commands/update_command.rb
- +8 −1 lib/ruby/stdlib/rubygems/core_ext/kernel_gem.rb
- +1 −1 lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb
- +1 −1 lib/ruby/stdlib/rubygems/dependency.rb
- +1 −1 lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb
- +2 −2 lib/ruby/stdlib/rubygems/installer.rb
- +2 −2 lib/ruby/stdlib/rubygems/package/old.rb
- +5 −1 lib/ruby/stdlib/rubygems/remote_fetcher.rb
- +5 −1 lib/ruby/stdlib/rubygems/request/connection_pools.rb
- +9 −0 lib/ruby/stdlib/rubygems/request/http_pool.rb
- +1 −4 lib/ruby/stdlib/rubygems/request_set.rb
- +21 −8 lib/ruby/stdlib/rubygems/request_set/lockfile.rb
- +1 −1 lib/ruby/stdlib/rubygems/resolver/api_set.rb
- +1 −1 lib/ruby/stdlib/rubygems/resolver/installer_set.rb
- +6 −2 lib/ruby/stdlib/rubygems/source.rb
- +10 −2 lib/ruby/stdlib/rubygems/specification.rb
- +11 −5 lib/ruby/stdlib/rubygems/stub_specification.rb
- +31 −0 lib/ruby/stdlib/rubygems/test_case.rb
- +2 −2 lib/ruby/stdlib/rubygems/text.rb
- +0 −1 lib/ruby/stdlib/rubygems/user_interaction.rb
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
@@ -146,7 +146,6 @@ def gem_names # :nodoc: | ||
|
||
def path_description spec_dirs # :nodoc: | ||
if spec_dirs.empty? then | ||
"default gem paths" | ||
else | ||
"specified path" | ||
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
@@ -124,7 +124,7 @@ def execute | ||
end | ||
|
||
def uninstall_all | ||
specs = Gem::Specification.reject { |spec| spec.default_gem? } | ||
|
||
specs.each do |spec| | ||
options[:version] = spec.version | ||
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
@@ -84,8 +84,6 @@ def check_update_arguments # :nodoc: | ||
end | ||
|
||
def execute | ||
if options[:system] then | ||
update_rubygems | ||
return | ||
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
@@ -66,7 +66,7 @@ def require path | ||
|
||
begin | ||
RUBYGEMS_ACTIVATION_MONITOR.exit | ||
return gem_original_require(spec.to_fullpath(path) || path) | ||
end if spec | ||
|
||
# Attempt to find +path+ in any unresolved gems... | ||
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
@@ -281,7 +281,7 @@ def matching_specs platform_only = false | ||
} | ||
end | ||
|
||
matches.sort_by { |s| s.sort_obj } # HACK: shouldn't be needed | ||
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
@@ -421,8 +421,8 @@ def generate_bin # :nodoc: | ||
next | ||
end | ||
|
||
mode = File.stat(bin_path).mode | ||
FileUtils.chmod mode | 0111, bin_path unless (mode | 0111) == mode | ||
|
||
check_executable_overwrite filename | ||
|
||
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
@@ -403,10 +403,7 @@ def tsort_each_child node # :nodoc: | ||
"Unresolved dependency found during sorting - #{dep} (requested by #{node.spec.full_name})" | ||
end | ||
|
||
yield match | ||
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
@@ -72,7 +72,7 @@ def prefetch reqs | ||
@to_fetch += needed | ||
end | ||
|
||
def prefetch_now # :nodoc: | ||
needed, @to_fetch = @to_fetch, [] | ||
|
||
uri = @dep_uri + "?gems=#{needed.sort.join ','}" | ||
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
@@ -154,7 +154,7 @@ def find_all req | ||
end | ||
|
||
def prefetch(reqs) | ||
@remote_set.prefetch(reqs) if consider_remote? | ||
end | ||
|
||
def prerelease= allow_prerelease | ||
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
Oops, something went wrong.