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

ruby-changes:71888

From: Charles <ko1@a...>
Date: Fri, 20 May 2022 18:02:06 +0900 (JST)
Subject: [ruby-changes:71888] a37051ef3b (master): [flori/json] Remove unknown keyword arg from DateTime.parse

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

From a37051ef3b455a808b32d72561d50b8610d917ce Mon Sep 17 00:00:00 2001
From: Charles Oliver Nutter <headius@h...>
Date: Wed, 1 Dec 2021 09:13:13 -0600
Subject: [flori/json] Remove unknown keyword arg from DateTime.parse

This snuck in while addding tests for the `create_additions`
feature. Caught by JRuby when we added the `limit` option to the
Date/DateTime parsing methods, which causes this to be rejected as
an unknown keyword.

https://github.com/flori/json/commit/b1007dff66
---
 test/json/json_addition_test.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/json/json_addition_test.rb b/test/json/json_addition_test.rb
index e95ace8375..614c735567 100644
--- a/test/json/json_addition_test.rb
+++ b/test/json/json_addition_test.rb
@@ -165,7 +165,7 @@ class JSONAdditionTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/json/json_addition_test.rb#L165
 
   def test_utc_datetime
     now = Time.now
-    d = DateTime.parse(now.to_s, :create_additions => true) # usual case
+    d = DateTime.parse(now.to_s) # usual case
     assert_equal d, parse(d.to_json, :create_additions => true)
     d = DateTime.parse(now.utc.to_s) # of = 0
     assert_equal d, parse(d.to_json, :create_additions => true)
-- 
cgit v1.2.1


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

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