Skip to content

Commit

Permalink
* lib/rubygems: Import RubyGems from master as of commit 4ff70cc
Browse files Browse the repository at this point in the history
* test/rubygems:  ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
drbrain committed Jul 24, 2013
1 parent 7144281 commit d6e3ee5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Jul 25 07:15:58 2013 Eric Hodel <[email protected]>

* lib/rubygems: Import RubyGems from master as of commit 4ff70cc
* test/rubygems: ditto.

Wed Jul 24 20:57:44 2013 Koichi Sasada <[email protected]>

* compile.c (iseq_set_arguments): use RARRAY_RAWPTR() instead of
Expand Down
2 changes: 1 addition & 1 deletion lib/rubygems/remote_fetcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def correct_for_windows_path(path)

def request(uri, request_class, last_modified = nil)
request = Gem::Request.new uri, request_class, last_modified, @proxy

request.fetch do |req|
yield req if block_given?
end
Expand Down
13 changes: 9 additions & 4 deletions lib/rubygems/test_case.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# TODO: $SAFE = 1

begin
gem 'minitest', '~> 4.0'
rescue NoMethodError
# for ruby tests
end

if defined? Gem::QuickLoader
Gem::QuickLoader.load_full_rubygems_library
else
Expand Down Expand Up @@ -220,8 +226,8 @@ def setup
ENV["GEM_SPEC_CACHE"] = File.join @tempdir, 'spec_cache'

@orig_ruby = if ENV['RUBY'] then
ruby = Gem.instance_variable_get :@ruby
Gem.instance_variable_set :@ruby, ENV['RUBY']
ruby = Gem.ruby
Gem.ruby = ENV['RUBY']
ruby
end

Expand Down Expand Up @@ -310,8 +316,7 @@ def teardown
ENV['GEM_HOME'] = @orig_gem_home
ENV['GEM_PATH'] = @orig_gem_path

_ = @orig_ruby
Gem.instance_variable_set :@ruby, @orig_ruby if @orig_ruby
Gem.ruby = @orig_ruby if @orig_ruby

if @orig_ENV_HOME then
ENV['HOME'] = @orig_ENV_HOME
Expand Down
9 changes: 7 additions & 2 deletions test/rubygems/test_gem_ext_ext_conf_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,13 @@ def test_class_build_unconventional
extconf.puts <<-'EXTCONF'
include RbConfig
ruby_exe = "#{CONFIG['RUBY_INSTALL_NAME']}#{CONFIG['EXEEXT']}"
ruby = File.join CONFIG['bindir'], ruby_exe
ruby =
if ENV['RUBY'] then
ENV['RUBY']
else
ruby_exe = "#{CONFIG['RUBY_INSTALL_NAME']}#{CONFIG['EXEEXT']}"
File.join CONFIG['bindir'], ruby_exe
end
open 'Makefile', 'w' do |io|
io.write <<-Makefile
Expand Down

0 comments on commit d6e3ee5

Please sign in to comment.