pkgsrc/lang/ruby21-base/patches/patch-test_rubygems_test__gem.rb
taca 2f72af218d Add ruby21-base, base of Ruby 2.1.1. Ruby 2.1.1 is second release of
Ruby 2.1, post release of Ruby 2.0.

*WARNING!* Not all of ruby pkgsrc are supported yet.

Ruby 2.1 has many improvements including speedup without severe
incompatibilities. You can use this on Rails and other applications, and get a
more comfortable experience.

This release includes many bugfixes. See tickets and ChangeLog for details.

Following the previously announced changed versioning policy of Ruby 2.1, this
version is simply called ¡È2.1.1¡É.

Update: We¡Çve noticed a regression in Hash#reject. For more details, see:
Regression of Hash#reject in Ruby 2.1.1.
2014-03-14 19:40:47 +00:00

21 lines
663 B
Ruby

$NetBSD: patch-test_rubygems_test__gem.rb,v 1.1 2014/03/14 19:40:47 taca Exp $
* Use vendordir instead of sitedir.
--- test/rubygems/test_gem.rb.orig 2014-02-06 02:59:36.000000000 +0000
+++ test/rubygems/test_gem.rb
@@ -560,12 +560,12 @@ class TestGem < Gem::TestCase
end
def test_self_prefix_sitelibdir
- orig_sitelibdir = RbConfig::CONFIG['sitelibdir']
+ orig_sitelibdir = RbConfig::CONFIG['vendorlibdir']
RbConfig::CONFIG['sitelibdir'] = @@project_dir
assert_nil Gem.prefix
ensure
- RbConfig::CONFIG['sitelibdir'] = orig_sitelibdir
+ RbConfig::CONFIG['vendorlibdir'] = orig_sitelibdir
end
def test_self_read_binary