[ruby/json] Few doc tweaks:

- Also modified the gemspec files' blob as the ragel's `parser.rl`
  file was removed in https://github.com/ruby/json/commit/c8d5236a921e

https://github.com/ruby/json/commit/b2b106e314
This commit is contained in:
Edouard CHIN 2025-01-29 23:27:19 +01:00 committed by Nobuyoshi Nakada
parent 2880ec0948
commit 7f70ef64af
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ spec = Gem::Specification.new do |s|
s.files += Dir["lib/json/ext/**/*.jar"]
else
s.extensions = Dir["ext/json/**/extconf.rb"]
s.files += Dir["ext/json/**/*.{c,h,rl}"]
s.files += Dir["ext/json/**/*.{c,h}"]
end
end

View File

@ -172,10 +172,10 @@ module JSON
# JSON.generate({ count: 3, items: fragments })
#
# This allows to easily assemble multiple JSON fragments that have
# been peristed somewhere without having to parse them nor resorting
# been persisted somewhere without having to parse them nor resorting
# to string interpolation.
#
# Note: no validation is performed on the provided string. it is the
# Note: no validation is performed on the provided string. It is the
# responsability of the caller to ensure the string contains valid JSON.
Fragment = Struct.new(:json) do
def initialize(json)