aboutsummaryrefslogtreecommitdiffstats
path: root/ext/json
Commit message (Collapse)AuthorAgeFilesLines
* [flori/json] Bump up json version to 2.6.0Hiroshi SHIBATA2021-10-141-1/+1
| | | | https://github.com/flori/json/commit/1942689b67
* ruby tool/update-deps --fix卜部昌平2021-10-052-28/+46
|
* Update the latest version of json.gemspec from flori/jsonHiroshi SHIBATA2021-07-291-7/+1
|
* ext/json/parser/parser.h: Add fallback MAYBE_UNUSEDNobuyoshi Nakada2021-05-191-0/+4
| | | | https://github.com/flori/json/commit/e2ad91fc2094d3cc2f76adc6c55d420cd06f34d8
* ext/json/parser/prereq.mk: fix warnings for code generated by ragelNobuyoshi Nakada2021-05-182-32/+33
| | | | | * type-limits when plain-char is unsigned * unused-const-variable for NFA constants
* Bump version of required_ruby_version to 2.3. Fixes #464Hiroshi SHIBATA2021-05-171-1/+1
|
* [flori/json] Deduplicate strings inside json_string_unescapeJean Boussier2021-05-174-72/+85
| | | | | | [ci 2] https://github.com/flori/json/commit/1982070cb8
* [flori/json] Refactor json_string_unescapeJean Boussier2021-05-173-1822/+3007
| | | | https://github.com/flori/json/commit/f398769332
* [flori/json] Fix incorrect `#` position in API docMasafumi Koba2021-05-171-1/+1
| | | | | | This change fixes an incorrect `#` position in the API documentation of the `JSON` module. https://github.com/flori/json/commit/dc4b62424f
* dependency updates卜部昌平2021-04-132-2/+0
|
* Fix GC compatibility: Don't stash encodings in global constantsAaron Patterson2021-02-011-11/+1
| | | | | | | | | | This value should either be pinned, or looked up when needed at runtime. Without pinning, the GC may move the encoding object, and that could cause a crash. In this case it is easier to find the value at runtime, and there is no performance penalty (as Ruby caches encoding indexes). We can shorten the code, be compaction friendly, and incur no performance penalty.
* Merge json-2.5.1Hiroshi SHIBATA2020-12-223-2/+4
|
* Prepare to release json-2.5.0Hiroshi SHIBATA2020-12-223-2/+3
|
* [json] Avoid method redefinitionKenta Murata2020-12-211-9/+9
|
* [json] Make json Ractor safeKenta Murata2020-12-213-1/+18
|
* [json] JSON_parse_float: Fix how to convert numberKenta Murata2020-12-212-50/+72
| | | | | | | | | | | Stop BigDecimal-specific optimization. Instead, it tries the conversion methods in the following order: 1. `try_convert`, 2. `new`, and 3. class-named function, e.g. `Foo::Bar.Baz` function for `Foo::Bar::Baz` class If all the above candidates are unavailable, it fallbacks to Float.
* [json] Make JSON.create_id thread-safeKenta Murata2020-12-211-1/+14
|
* [json] Stop using prototype objectsKenta Murata2020-12-212-13/+15
|
* expand VERSION path for ruby repository.Hiroshi SHIBATA2020-12-171-1/+1
|
* Bump version to json-2.4.1 and use VERSION file for json version same as ↵Hiroshi SHIBATA2020-12-173-73/+7
| | | | upstream
* Bump version to json-2.4.0Hiroshi SHIBATA2020-12-151-1/+1
|
* Complex and Rational is embedded classes nowHiroshi SHIBATA2020-11-102-2/+0
|
* Implement a freeze: parser optionJean Boussier2020-10-205-45/+126
| | | | | | | If set to true all parsed objects will be immediately frozen, and strings will be deduplicated if the Ruby implementation allows it.
* [flori/json] Fix JSON.load_file docJean Boussier2020-09-251-3/+3
| | | | https://github.com/flori/json/commit/cb61a00ba8
* [flori/json] Partial compliance with doc/method_documentation.rdocBurdetteLamar2020-09-251-17/+7
| | | | https://github.com/flori/json/commit/6dfa885134
* [flori/json] Enhanced RDoc for JSON.dump (#443)Burdette Lamar2020-09-251-11/+23
| | | | | * Enhanced RDoc for JSON.dump https://github.com/flori/json/commit/03f1699ec4
* bundle the LICENSE file in the gemJulien Feltesse2020-09-251-0/+1
|
* [flori/json] Nodoc for recurse_procBurdetteLamar2020-09-251-1/+1
| | | | https://github.com/flori/json/commit/f8c0fe2408
* [flori/json] RDoc for JSON.load with procBurdetteLamar2020-09-251-18/+58
| | | | https://github.com/flori/json/commit/a55c91934e
* unify json-java gemspec with the baselineKarol Bucek2020-09-251-6/+6
|
* [flori/json] RDoc example for JSON.loadBurdetteLamar2020-09-252-14/+88
| | | | https://github.com/flori/json/commit/e4eead665c
* [flori/json] Enhance RDoc for JSON.parseBurdetteLamar2020-09-251-9/+40
| | | | https://github.com/flori/json/commit/33e64ef255
* [flori/json] Move options from #generate and #parse to common areaBurdetteLamar2020-09-252-177/+181
| | | | https://github.com/flori/json/commit/20d7be605a
* [flori/json] Add `load_file` and `load_file!` methods, with tests. Fixes ↵Keith Bennett2020-09-251-0/+10
| | | | | | issue #386. https://github.com/flori/json/commit/0be363c99b
* Add an option to escape forward slash characterJean Boussier2020-09-253-8/+55
| | | | | | | | | | | | | | | | Squashed commit of the following: commit 26d181059989279a79c433cedcd893b4f52e42ee Author: Francois Chagnon <francois.chagnon@jadedpixel.com> Date: Tue Sep 15 21:17:34 2015 +0000 add config options for escape_slash commit fa282334051b16df91ca097dd7304b46f3bc7719 Author: Francois Chagnon <francois.chagnon@jadedpixel.com> Date: Mon Feb 9 21:09:33 2015 +0000 add forward slash to escape character
* sed -i '/rmodule.h/d'卜部昌平2020-08-272-2/+0
|
* sed -i '/r_cast.h/d'卜部昌平2020-08-272-2/+0
|
* sed -i '\,2/extern.h,d'卜部昌平2020-08-272-2/+0
|
* Merge json-2.3.1 from flori/jsonHiroshi SHIBATA2020-07-012-3/+3
|
* [flori/json] Typo fixMarc-Andre Lafortune2020-07-011-1/+1
| | | | https://github.com/flori/json/commit/26c1769969
* [flori/json] Added :call-seq: to RDOc for some methodsBurdetteLamar2020-07-011-0/+12
| | | | https://github.com/flori/json/commit/ee5b6a74e9
* [flori/json] Use frozen string for hash keyWatson2020-07-012-67/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When use non-frozen string for hash key with `rb_hash_aset()`, it will duplicate and freeze it internally. To avoid duplicate and freeze, this patch will give a frozen string in `rb_hash_aset()`. ``` Warming up -------------------------------------- json 14.000 i/100ms Calculating ------------------------------------- json 148.844 (± 1.3%) i/s - 756.000 in 5.079969s ``` ``` Warming up -------------------------------------- json 16.000 i/100ms Calculating ------------------------------------- json 165.608 (± 1.8%) i/s - 832.000 in 5.025367s ``` ``` require 'json' require 'securerandom' require 'benchmark/ips' obj = [] 1000.times do |i| obj << { "id": i, "uuid": SecureRandom.uuid, "created_at": Time.now } end json = obj.to_json Benchmark.ips do |x| x.report "json" do |iter| count = 0 while count < iter JSON.parse(json) count += 1 end end end ``` https://github.com/flori/json/commit/18292c0c1d
* [flori/json] RDoc enhancementsBurdetteLamar2020-07-011-17/+1
| | | | https://github.com/flori/json/commit/ada48f0236
* [flori/json] RDoc enhancementsBurdetteLamar2020-07-012-22/+22
| | | | https://github.com/flori/json/commit/470d909c0d
* [flori/json] RDoc enhancementsBurdetteLamar2020-07-012-28/+3
| | | | https://github.com/flori/json/commit/7bee2c7c13
* [flori/json] Rdoc enhancementsBurdetteLamar2020-07-012-154/+732
| | | | https://github.com/flori/json/commit/e7e3732130
* Removed nonsense `rubygems_version` in input gemspec filesNobuyoshi Nakada2020-06-251-1/+0
| | | | | As it is ignored and set at building packages automatically, it is just nonsense to set in gemspec file for input.
* [flori/json] add metadatanoraj2020-06-251-0/+8
| | | | https://github.com/flori/json/commit/9f430a7bba
* [flori/json] Gem::Specification#date is set automatically by RubyGems.org.Hiroshi SHIBATA2020-06-251-1/+0
| | | | https://github.com/flori/json/commit/1920653013
* [flori/json] keyword argument is provided after Ruby 2.0+Hiroshi SHIBATA2020-06-251-1/+1
| | | | https://github.com/flori/json/commit/78ec5e2bd3