Skip to content

Commit

Permalink
backport r48370 from ruby/ruby trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Nov 11, 2014
1 parent 744e413 commit 318ec40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rubygems/commands/contents_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def files_in_gem spec
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]
Expand Down
8 changes: 4 additions & 4 deletions test/rubygems/test_gem_commands_contents_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ def test_execute_default_gem
end

expected = [
File.join(RbConfig::CONFIG['bindir'], 'default_command'),
File.join(RbConfig::CONFIG['rubylibdir'], 'default/gem.rb'),
File.join(RbConfig::CONFIG['archdir'], 'default_gem.so')
].sort.join "\n"
[RbConfig::CONFIG['bindir'], 'default_command'],
[RbConfig::CONFIG['rubylibdir'], 'default/gem.rb'],
[RbConfig::CONFIG['archdir'].sub(/x86_64/,'armv7l'), 'default_gem.so']
].sort.map{|a|File.join a}.join "\n"

assert_equal expected, @ui.output.chomp
assert_equal "", @ui.error
Expand Down

0 comments on commit 318ec40

Please sign in to comment.