aboutsummaryrefslogtreecommitdiffstats
path: root/ext/json
Commit message (Collapse)AuthorAgeFilesLines
* 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
* ext/json/parser/prereq.mk: remove type-limit warning if char is unsignedYusuke Endoh2020-05-142-2/+3
| | | | | | | | | | | | | | | | | | | Ragel generates a code `0 <= (*p)` where `*p` is char. As char is unsigned by default on arm and RISC-V, it is warned by gcc: ``` compiling parser.c parser.c: In function ‘JSON_parse_string’: parser.c:1566:2: warning: comparison is always true due to limited range of data type [-Wtype-limits] if ( 0 <= (*p) && (*p) <= 31 ) ^ parser.c:1596:2: warning: comparison is always true due to limited range of data type [-Wtype-limits] if ( 0 <= (*p) && (*p) <= 31 ) ^ ``` This change removes the warning by substituting the condition with `0 <= (signed char)(*p)`.
* sed -i 's|ruby/impl|ruby/internal|'卜部昌平2020-05-112-281/+281
| | | | To fix build failures.
* sed -i s|ruby/3|ruby/impl|g卜部昌平2020-05-112-281/+281
| | | | This shall fix compile errors.
* Merge pull request #2991 from shyouhei/ruby.h卜部昌平2020-04-082-0/+305
| | | Split ruby.h
* [flori/json] Add :nodoc: for GeneratorMethodszverok2020-01-061-0/+70
| | | | https://github.com/flori/json/commit/2f3f44c180
* [flori/json] Fix examples syntaxzverok2020-01-061-2/+2
| | | | https://github.com/flori/json/commit/3845491d92
* [flori/json] Enchance generic JSON and #generate docszverok2020-01-062-18/+61
| | | | https://github.com/flori/json/commit/4ede0a7d19
* [flori/json] Remove invalid JSON.generate description from JSON module rdocJeremy Evans2020-01-061-8/+0
| | | | | | | 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
* Import json-2.3.0 from flori/jsonHiroshi SHIBATA2019-12-122-4/+4
|
* Removed duplicate fileNobuyoshi Nakada2019-11-111-2/+109
| | | | | "./tests/test_helper.rb" and "tests/test_helper.rb" in `s.files` are same.
* Remove unused constant.Aaron Patterson2019-10-171-2/+1
| | | | This constant isn't used, so lets remove it.