pkgsrc/lang/ruby200-base/patches/patch-lib_rubygems_defaults.rb
taca ea98d4c53f Add ruby200-base-2.0.0p247.
This is latest stable release of Ruby and it basically compatible with
Ruby 1.9.3.  Please refer full changes to NEWS/ChangeLog files or official
Web site.  Here is language changes:

* Added keyword arguments.

* Added %i and %I for symbol list creation (similar to %w and %W).

* Default source encoding is changed to UTF-8. (was US-ASCII)

* No warning for unused variables starting with '_'
2013-07-21 02:32:58 +00:00

15 lines
520 B
Ruby

$NetBSD: patch-lib_rubygems_defaults.rb,v 1.1 2013/07/21 02:32:58 taca Exp $
* Use vendordir instead of sitedir.
--- lib/rubygems/defaults.rb.orig 2013-06-21 16:16:31.000000000 +0000
+++ lib/rubygems/defaults.rb
@@ -21,7 +21,7 @@ module Gem
def self.default_dir
path = if defined? RUBY_FRAMEWORK_VERSION then
[
- File.dirname(ConfigMap[:sitedir]),
+ File.dirname(ConfigMap[:vendordir]),
'Gems',
ConfigMap[:ruby_version]
]