mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/rubygems/test_gem_dependency_installler.rb: gems are of course
binary files, so use a binary reading method when reading it. see [ruby-core:50388]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
952beb5ff4
commit
60317fa81d
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
Sat Dec 1 01:49:52 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* test/rubygems/test_gem_dependency_installler.rb: gems are of course
|
||||
binary files, so use a binary reading method when reading it.
|
||||
see [ruby-core:50388].
|
||||
|
||||
Sat Dec 1 01:21:07 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* lib/rubygems/command.rb (Gem::Command#get_all_gem_names_and_versions):
|
||||
|
|
|
@ -58,7 +58,7 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|||
util_setup_spec_fetcher(p1a, @a1, @a1_pre)
|
||||
util_clear_gems
|
||||
|
||||
p1a_data = File.read(gem)
|
||||
p1a_data = File.binread(gem)
|
||||
|
||||
@fetcher.data['http://gems.example.com/gems/a-10.a.gem'] = p1a_data
|
||||
|
||||
|
@ -76,7 +76,7 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|||
util_setup_spec_fetcher(p1a)
|
||||
util_clear_gems
|
||||
|
||||
p1a_data = File.read(gem)
|
||||
p1a_data = File.binread(gem)
|
||||
|
||||
@fetcher.data['http://gems.example.com/gems/p-1.a.gem'] = p1a_data
|
||||
|
||||
|
@ -94,7 +94,7 @@ class TestGemDependencyInstaller < Gem::TestCase
|
|||
util_setup_spec_fetcher(@a1, @a1_pre)
|
||||
util_clear_gems
|
||||
|
||||
p1a_data = File.read(@a1_gem)
|
||||
p1a_data = File.binread(@a1_gem)
|
||||
|
||||
@fetcher.data['http://gems.example.com/gems/a-1.gem'] = p1a_data
|
||||
|
||||
|
|
Loading…
Reference in a new issue