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

ruby-changes:63569

From: Hiroshi <ko1@a...>
Date: Tue, 10 Nov 2020 13:15:04 +0900 (JST)
Subject: [ruby-changes:63569] 17e7a819f7 (master): Complex and Rational is embedded classes now

https://git.ruby-lang.org/ruby.git/commit/?id=17e7a819f7

From 17e7a819f71f156316a69f5e42dc7e0c077f3735 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Tue, 10 Nov 2020 12:14:14 +0900
Subject: Complex and Rational is embedded classes now


diff --git a/ext/json/lib/json/add/complex.rb b/ext/json/lib/json/add/complex.rb
index 4d977e7..e63e29f 100644
--- a/ext/json/lib/json/add/complex.rb
+++ b/ext/json/lib/json/add/complex.rb
@@ -2,7 +2,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json/add/complex.rb#L2
 unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
   require 'json'
 end
-defined?(::Complex) or require 'complex'
 
 class Complex
 
diff --git a/ext/json/lib/json/add/rational.rb b/ext/json/lib/json/add/rational.rb
index 6be4034..f776226 100644
--- a/ext/json/lib/json/add/rational.rb
+++ b/ext/json/lib/json/add/rational.rb
@@ -2,7 +2,6 @@ https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json/add/rational.rb#L2
 unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
   require 'json'
 end
-defined?(::Rational) or require 'rational'
 
 class Rational
   # Deserializes JSON string by converting numerator value <tt>n</tt>,
-- 
cgit v0.10.2


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

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