pkgsrc/lang/ruby26-base/patches/patch-lib_rubygems_defaults.rb
taca 6784ce300d lang/ruby26-base: add Ruby 2.6.1
Add Ruby release 2.6.1.

Ruby 2.6.0 (2018-12-25)

New major features:

* A new JIT compiler.
* The RubyVM::AbstractSyntaxTree module.

For more detail, please refer: <https://www.ruby-lang.org/en/news/2018/12/25/ruby-2-6-0-released/>


Ruby 2.6.1 (2019-01-30)

Major change:

* Net::Protocol::BufferedIO#write raises NoMethodError when sending large
  multi-byte string has been fixed.

For more detail, please refer: <https://www.ruby-lang.org/en/news/2019/01/30/ruby-2-6-1-released/>
2019-02-03 13:41:33 +00:00

15 lines
539 B
Ruby

$NetBSD: patch-lib_rubygems_defaults.rb,v 1.1 2019/02/03 13:41:33 taca Exp $
* Use vendordir instead of sitedir.
--- lib/rubygems/defaults.rb.orig 2018-11-21 10:20:47.000000000 +0000
+++ lib/rubygems/defaults.rb
@@ -30,7 +30,7 @@ module Gem
def self.default_dir
path = if defined? RUBY_FRAMEWORK_VERSION
[
- File.dirname(RbConfig::CONFIG['sitedir']),
+ File.dirname(RbConfig::CONFIG['vendordir']),
'Gems',
RbConfig::CONFIG['ruby_version']
]