diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 00:23:15 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 00:23:15 +0000 |
commit | 82e6c75d145224eae63aab862c213b0ed8f0daf0 (patch) | |
tree | 0d8ee6b8721757adc73d68442c667a4677899398 /lib/rubygems/commands | |
parent | 09af9d7f7ffe1bde891040e0232038130266ccbc (diff) | |
download | ruby-82e6c75d145224eae63aab862c213b0ed8f0daf0.tar.gz |
* 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
Diffstat (limited to 'lib/rubygems/commands')
-rw-r--r-- | lib/rubygems/commands/contents_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb index 404c6745bd..42c7fabd86 100644 --- a/lib/rubygems/commands/contents_command.rb +++ b/lib/rubygems/commands/contents_command.rb @@ -75,14 +75,14 @@ class Gem::Commands::ContentsCommand < Gem::Command if Gem.configuration.verbose then say "\nDirectories searched:" - spec_dirs.each { |dir| say dir } + spec_dirs.sort.each { |dir| say dir } end terminate_interaction 1 if gem_names.length == 1 end if spec.default_gem? - files = spec.files.map do |file| + files = spec.files.sort.map do |file| case file when /\A#{spec.bindir}\// [Gem::ConfigMap[:bindir], $POSTMATCH] |