| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \
| | | |
| | | | |
Nodoc for recurse_proc
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
RDoc for JSON.load with proc
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
[test] properly 'skip' test on JRuby
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
an early return still caused ensure to execute,
setting JSON constant to `nil` for later tests!
|
|\ \ \ \
| |/ / /
|/| | | |
unify json-java gemspec with the baseline
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
RDoc example for JSON.load
|
|/ / / |
|
|\ \ \
| | | |
| | | | |
Fixed unexpected illegal/malformed utf-8 error
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
flori/json@c34d01ff6a18dac04a90b2e0f820cdb1d5c7e1b2 does not
consider US-ASCII compatible but non-UTF-8 encodings, and causes
an error in RDoc tests.
|
|\ \ \ \
| | | | |
| | | | | |
[CI] setup supported JRubies to test against
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
Enhance RDoc for JSON.parse
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
test/json/json_fixtures_test.rb: Prevent an "out of range" warning
|
| |/ / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
with `make test-all RUBYOPT=-w`
```
/home/mame/work/ruby/.ext/common/json/common.rb:263: warning: Float 23456789012E666 out of range
```
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Do not add a relative path to $LOAD_PATH
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
... because it conflicts with test/ruby/test_m17n.rb.
An exception `incompatible character encodings: UTF-8 and UTF-16BE`
occurs when:
* a non-existence relative path is added to $LOAD_PATH,
* ASCII-incompatible encoding is set to default_external, and
* some file is loaded.
```
$LOAD_PATH << "no_existing_dir"
Encoding.default_external = Encoding::UTF_16BE
load "dummy.rb" #=> incompatible character encodings: UTF-8 and UTF-16BE
```
This issue can be actually observed by a combination of out-of-place
build and the following command:
make test-all TESTS="json ruby/m17n -n test_object_inspect_external"
http://ci.rvm.jp/logfiles/brlog.trunk-test-random.20200322-221411
ASCII-incompatible default external encoding assumes that the cwd is the
encoding, and it is attempted to beconcatenated with a non-existence
relative LOAD_PATH UTF-8 string, which causes the exception.
This changeset avoids a relative path.
|
|\ \ \ \
| | | | |
| | | | | |
Move options from #generate and #parse to common area
|
| | | | | |
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add `load_file` and `load_file!` methods, with tests. Fixes issue #386.
|
|/ / / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove generate task for gemspec
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Trivial whitespace fix
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Make changes more precise [#424]
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Update Changes for 2.3.0 [Fixes #397]
|
| | |_|_|_|/
| |/| | | | |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Small typo fix
|
|/ / / / / |
|
|\ \ \ \ \
| | |/ / /
| |/| | | |
Added :call-seq: to RDoc for some methods
|
|/ / / / |
|
|\ \ \ \
| |/ / /
|/| | | |
Rdoc enhancements
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |_|/ /
|/| | | |
Use frozen string for hash key
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
```
|
|\ \ \ \
| | | | |
| | | | | |
Sync ruby
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
As it is ignored and set at building packages automatically, it is
just nonsense to set in gemspec file for input.
ruby/ruby@9a78e24f7d269c9688a0fa50c82751b5ec8d512a
|