Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* test/runner.rb: Set GEM_HOME, GEM_PATH and GEM_SKIP to empty set.

  With default_gem support in RubyGems GEM_SKIP prevents loading of
  built-in gems.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 18a3774438469b6da3f44635e38c8b00f36c4cd7 1 parent 7c407e2
Eric Hodel drbrain authored

Showing 2 changed files with 7 additions and 9 deletions. Show diff stats Hide diff stats

  1. +6 0 ChangeLog
  2. +1 9 test/runner.rb
6 ChangeLog
... ... @@ -1,3 +1,9 @@
  1 +Sat Dec 1 09:33:32 2012 Eric Hodel <drbrain@segment7.net>
  2 +
  3 + * test/runner.rb: Set GEM_HOME, GEM_PATH and GEM_SKIP to empty set.
  4 + With default_gem support in RubyGems GEM_SKIP prevents loading of
  5 + built-in gems.
  6 +
1 7 Sat Dec 1 07:16:17 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
2 8
3 9 * compile.c (ADD_CATCH_ENTRY): add a cast to fix SEGV with x64 mingw
10 test/runner.rb
@@ -10,15 +10,7 @@ class Gem::TestCase < MiniTest::Unit::TestCase
10 10 @@project_dir = File.dirname($LOAD_PATH.last)
11 11 end
12 12
13   -srcdir = File.dirname(src_testdir)
14   -default_gems = Dir.glob(srcdir + "/{lib,ext}/**/*.gemspec").map {|path| File.basename(path, ".*")}
15   -File.foreach(srcdir + "/defs/default_gems") do |line|
16   - next if /^\s*#/ =~ line
17   - default_gems << line[/^\S+/]
18   -end
19   -default_gems |= (ENV["GEM_SKIP"] || '').split(/:/)
20   -ENV["GEM_SKIP"] = default_gems.join(':')
21   -ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
  13 +ENV["GEM_SKIP"] = ENV["GEM_HOME"] = ENV["GEM_PATH"] = "".freeze
22 14
23 15 require_relative 'profile_test_all' if ENV['RUBY_TEST_ALL_PROFILE'] == 'true'
24 16

0 comments on commit 18a3774

Please sign in to comment.
Something went wrong with that request. Please try again.