summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 00:23:15 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-30 00:23:15 +0000
commit82e6c75d145224eae63aab862c213b0ed8f0daf0 ()
tree0d8ee6b8721757adc73d68442c667a4677899398
parent09af9d7f7ffe1bde891040e0232038130266ccbc (diff)
* lib/rubygems/commands/contents_command.rb: Sort output from command.
Replaces r38004, r38005 * test/rubygems/test_gem_commands_contents_command.rb: ditto. * lib/rubygems/defaults.rb: Use Gem.path_separator for jruby support. * lib/rubygems/path_support.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog9
-rw-r--r--lib/rubygems/commands/contents_command.rb4
-rw-r--r--lib/rubygems/defaults.rb7
-rw-r--r--lib/rubygems/path_support.rb2
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb2
5 files changed, 20 insertions, 4 deletions
@@ -1,3 +1,12 @@
Fri Nov 30 08:34:03 2012 Eric Hodel <[email protected]>
* lib/rdoc/generator/darkfish.rb: Silenced warning
@@ -75,14 +75,14 @@ class Gem::Commands::ContentsCommand < Gem::Command
if Gem.configuration.verbose then
say "\nDirectories searched:"
- spec_dirs.each { |dir| say dir }
end
terminate_interaction 1 if gem_names.length == 1
end
if spec.default_gem?
- files = spec.files.map do |file|
case file
when /\A#{spec.bindir}\//
[Gem::ConfigMap[:bindir], $POSTMATCH]
@@ -58,6 +58,13 @@ module Gem
end
##
# Default gem load path
def self.default_path
@@ -54,7 +54,7 @@ class Gem::PathSupport
if gpaths.kind_of?(Array)
gem_path = gpaths.dup
else
- gem_path = gpaths.split(File::PATH_SEPARATOR)
end
if File::ALT_SEPARATOR then
@@ -146,7 +146,7 @@ lib/foo.rb
#{Gem::ConfigMap[:archdir]}/default_gem.so
EOF
- assert_equal expected.lines.sort, @ui.output.lines.sort
assert_equal "", @ui.error
end