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

ruby-changes:59632

From: Jeremy <ko1@a...>
Date: Mon, 6 Jan 2020 15:54:53 +0900 (JST)
Subject: [ruby-changes:59632] 1658e6b5db (master): [flori/json] Remove invalid JSON.generate description from JSON module rdoc

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

From 1658e6b5db0380c39d2423281e10acc5b6c6a8bd Mon Sep 17 00:00:00 2001
From: Jeremy Evans <code@j...>
Date: Sun, 25 Aug 2019 17:21:02 -0700
Subject: [flori/json] Remove invalid JSON.generate description from JSON
 module rdoc

This text used to be true in older versions of json, but has not
been true for a number of years (since json version 2 I think).

https://github.com/flori/json/commit/373b633f38

diff --git a/ext/json/lib/json.rb b/ext/json/lib/json.rb
index b5a6912..947ac63 100644
--- a/ext/json/lib/json.rb
+++ b/ext/json/lib/json.rb
@@ -44,14 +44,6 @@ require 'json/common' https://github.com/ruby/ruby/blob/trunk/ext/json/lib/json.rb#L44
 #   require 'json'
 #   puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}"
 #
-# <tt>JSON.generate</tt> only allows objects or arrays to be converted
-# to JSON syntax. <tt>to_json</tt>, however, accepts many Ruby classes
-# even though it acts only as a method for serialization:
-#
-#   require 'json'
-#
-#   1.to_json => "1"
-#
 module JSON
   require 'json/version'
 
-- 
cgit v0.10.2


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

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