diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 05:08:59 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-11 05:08:59 +0000 |
commit | 05eb6111d9f7f6485d8d264cbb24e6e9836322b8 (patch) | |
tree | 429d8495b8ca53c3b49a94bf307b416ecc7adf64 /lib | |
parent | 495548ace4587df43d30b021cfa6b2f84c9d9d44 (diff) | |
download | ruby-05eb6111d9f7f6485d8d264cbb24e6e9836322b8.tar.gz |
* lib/rubygems/commands/contents_command.rb (files_in_default_gem):
remove useless sort. show_files will sort the result and
another branch, files_in_gem, doesn't sort.
it should be removed for consistency.
* test/rubygems/test_gem_commands_contents_command.rb
(test_execute_default_gem): adjust the sort algorithm with
Gem::Commands::ContentsCommand#show_files, which sort items
as array of [prefix, basename] not strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/commands/contents_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb index 15657f31a2..9a1c6c532f 100644 --- a/lib/rubygems/commands/contents_command.rb +++ b/lib/rubygems/commands/contents_command.rb @@ -102,7 +102,7 @@ prefix or only the files that are requireable. end def files_in_default_gem spec - spec.files.sort.map do |file| + spec.files.map do |file| case file when /\A#{spec.bindir}\// [RbConfig::CONFIG['bindir'], $POSTMATCH] |