[前][次][番号順一覧][スレッド一覧]

ruby-changes:56649

From: Hiroshi <ko1@a...>
Date: Thu, 25 Jul 2019 07:55:24 +0900 (JST)
Subject: [ruby-changes:56649] Hiroshi SHIBATA: 50076903ab (master): [ruby/psych] Drop to support fat gem support.

https://git.ruby-lang.org/ruby.git/commit/?id=50076903ab

From 50076903ab06e2301051e459925afea20325ba7c Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sun, 21 Jul 2019 12:21:27 +0900
Subject: [ruby/psych] Drop to support fat gem support.

  ref. https://github.com/ruby/bigdecimal/pull/149

https://github.com/ruby/psych/commit/25ae263252

diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
index 2a2ec2a..9513f79 100644
--- a/ext/psych/lib/psych.rb
+++ b/ext/psych/lib/psych.rb
@@ -10,11 +10,7 @@ when 'jruby' https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych.rb#L10
     org.jruby.ext.psych.PsychLibrary.new.load(JRuby.runtime, false)
   end
 else
-  begin
-    require "#{RUBY_VERSION[/\d+\.\d+/]}/psych.so"
-  rescue LoadError
-    require 'psych.so'
-  end
+  require 'psych.so'
 end
 require 'psych/nodes'
 require 'psych/streaming'
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]