summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Fix JSON::Parser against bigdecimal updatesmrkn2019-10-311-2/+2
| | | | | | | | | | | | | | | | | | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| * | | | [flori/json] Fixed unexpected illegal/malformed utf-8 errorNobuyoshi Nakada2019-10-312-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | flori/json@c34d01ff6a18dac04a90b2e0f820cdb1d5c7e1b2 does not consider US-ASCII compatible but non-UTF-8 encodings, and causes an error in RDoc tests. https://github.com/flori/json/commit/4f471bf590
| * | | | Ignore warnings about ambiguous first argument of regexp with assert match.Hiroshi SHIBATA2019-10-311-3/+3
| | | | |
| * | | | Make rb_scan_args handle keywords more similar to Ruby methods (#2460)Jeremy Evans2019-10-312-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cfuncs that use rb_scan_args with the : entry suffer similar keyword argument separation issues that Ruby methods suffer if the cfuncs accept optional or variable arguments. This makes the following changes to : handling. * Treats as **kw, prompting keyword argument separation warnings if called with a positional hash. * Do not look for an option hash if empty keywords are provided. For backwards compatibility, treat an empty keyword splat as a empty mandatory positional hash argument, but emit a a warning, as this behavior will be removed in Ruby 3. The argument number check needs to be moved lower so it can correctly handle an empty positional argument being added. * If the last argument is nil and it is necessary to treat it as an option hash in order to make sure all arguments are processed, continue to treat the last argument as the option hash. Emit a warning in this case, as this behavior will be removed in Ruby 3. * If splitting the keyword hash into two hashes, issue a warning, as we will not be splitting hashes in Ruby 3. * If the keyword argument is required to fill a mandatory positional argument, continue to do so, but emit a warning as this behavior will be going away in Ruby 3. * If keyword arguments are provided and the last argument is not a hash, that indicates something wrong. This can happen if a cfunc is calling rb_scan_args multiple times, and providing arguments that were not passed to it from Ruby. Callers need to switch to the new rb_scan_args_kw function, which allows passing of whether keywords were provided. This commit fixes all warnings caused by the changes above. It switches some function calls to *_kw versions with appropriate kw_splat flags. If delegating arguments, RB_PASS_CALLED_KEYWORDS is used. If creating new arguments, RB_PASS_KEYWORDS is used if the last argument is a hash to be treated as keywords. In open_key_args in io.c, use rb_scan_args_kw. In this case, the arguments provided come from another C function, not Ruby. The last argument may or may not be a hash, so we can't set keyword argument mode. However, if it is a hash, we don't want to warn when treating it as keywords. In Ruby files, make sure to appropriately use keyword splats or literal keywords when calling Cfuncs that now issue keyword argument separation warnings through rb_scan_args. Also, make sure not to pass nil in place of an option hash. Work around Kernel#warn warnings due to problems in the Rubygems override of the method. There is an open pull request to fix these issues in Rubygems, but part of the Rubygems tests for their override fail on ruby-head due to rb_scan_args not recognizing empty keyword splats, which this commit fixes. Implementation wise, adding rb_scan_args_kw is kind of a pain, because rb_scan_args takes a variable number of arguments. In order to not duplicate all the code, the function internals need to be split into two functions taking a va_list, and to avoid passing in a ton of arguments, a single struct argument is used to handle the variables previously local to the function.
| * | | | Ignore warnings about ambiguous first argument with the negative integer.Hiroshi SHIBATA2019-10-311-12/+12
| | | | |
| * | | | Remove unused constant.Aaron Patterson2019-10-311-2/+1
| | | | | | | | | | | | | | | | | | | | This constant isn't used, so lets remove it.
| * | | | Look up constant instead of caching in a globalAaron Patterson2019-10-312-6/+40
|/ / / / | | | | | | | | | | | | | | | | The global can go bad if the compactor runs, so we need to look up the constant instead of caching it in a global.
* | | | Merge pull request #381 from olleolleolle/patch-1SHIBATA Hiroshi2019-07-161-1/+0
|\ \ \ \ | | | | | | | | | | Gemspec: Drop EOL'd property rubyforge_project
| * | | | Gemspec: Drop EOL'd property rubyforge_projectOlle Jonsson2019-07-141-1/+0
|/ / / /
* | | | Recreate gemspecsFlorian Frank2019-07-132-2/+2
| | | |
* | | | Merge pull request #367 from sho-h/add-ascii_only-documentFlorian Frank2019-07-131-0/+2
|\ \ \ \ | | | | | | | | | | Add ascii_only option to JSON::Ext::Generator::State.new.
| * | | | Add ascii_only option to JSON::Ext::Generator::State.new.Sho Hashimoto2019-01-081-0/+2
| | | | |
* | | | | Merge pull request #378 from olleolleolle/patch-1SHIBATA Hiroshi2019-07-131-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Remove RubyForge homepage reference
| * | | | | Remove RubyForge homepage referenceOlle Jonsson2019-05-111-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | This shows up in the RubyGems.org linkset. This sets it to the same as the other gemspec files.
* | | | | Use newest rubygemsFlorian Frank2019-04-292-2/+2
| | | | |
* | | | | Pass args all #to_json in json/add/*.Sho Hashimoto2019-04-294-8/+8
| | | | |
* | | | | Add LICENSE fileFlorian Frank2019-04-291-0/+56
| | | | |
* | | | | Merge branch 'master' of github.com:flori/jsonFlorian Frank2019-04-2918-4335/+186
|\ \ \ \ \
| * \ \ \ \ Merge pull request #376 from olleolleolle/patch-1SHIBATA Hiroshi2019-03-041-1/+1
| |\ \ \ \ \ | | | | | | | | | | | | | | README: Docs at rubydoc.info, not on rubyforge
| | * | | | | README: Docs at rubydoc.info, not on rubyforgeOlle Jonsson2019-03-031-1/+1
| |/ / / / / | | | | | | | | | | | | - [ci skip]
| * | | | | Merge branch 'master' of github.com:flori/jsonv2.2.0Florian Frank2019-02-211-1/+1
| |\ \ \ \ \
| | * \ \ \ \ Merge pull request #366 from sho-h/fix-ascii_only-documentFlorian Frank2019-02-211-1/+1
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | fix JSON::Generator::State#ascii_only? document same as lib/json/pure/generator.rb.
| | | * | | | | fix JSON::Generator::State#ascii_only? document same as ↵Sho Hashimoto2019-01-081-1/+1
| | | |/ / / / | | | | | | | | | | | | | | | | | | | | | lib/json/pure/generator.rb.
| | * | | | | Add some missing ruby 2.6 changesFlorian Frank2019-02-216-91/+98
| | | | | | |
| | * | | | | Merge pull request #369 from sho-h/fix-typoSHIBATA Hiroshi2019-01-091-1/+1
| | |\ \ \ \ \ | | | |/ / / / | | |/| | | | Fix a typo.
| | | * | | | Fix a typo.Sho Hashimoto2019-01-091-1/+1
| | |/ / / /
| | * | | | Merge pull request #362 from mrkn/update_for_bigdecimalSHIBATA Hiroshi2018-12-202-4/+38
| | |\ \ \ \ | | | | | | | | | | | | | | Fix for bigdecimal updates
| | | * | | | Fix for bigdecimal updatesKenta Murata2018-12-022-4/+38
| | | | |_|/ | | | |/| | | | | | | | | | | | | | `BigDecimal.new` is no longer available from bigdecimal-1.4.0.
| * | | | | It's more trouble than it's worth.Florian Frank2019-02-215-4224/+1
| | | | | |
| * | | | | Use which to resolve to actual pathFlorian Frank2019-02-211-4/+9
| | | | | |
| * | | | | [fix] 2.5 compat on JRuby 9.2 Fixnum/Bignum -> Integerkares2019-02-211-10/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | slightly ugly but the only way to still compile under 1.7 once Ruby 1.9.3 gets dropped this should get ironed out ! resolves GH-336
| * | | | | Always use underscore for match stringFlorian Frank2019-02-212-4/+4
| | | | | |
| * | | | | Upgrade version to 1.6Florian Frank2019-02-211-1/+1
| | | | | |
| * | | | | Bump version to 2.2.0Florian Frank2019-02-215-5/+8
| | | | | |
| * | | | | Add some missing ruby 2.6 changesFlorian Frank2019-02-216-91/+98
| | | | | |
| * | | | | Fix a typo.Sho Hashimoto2019-02-211-1/+1
| | | | | |
| * | | | | Fix for bigdecimal updatesKenta Murata2019-02-212-4/+38
| |/ / / / | | | | | | | | | | | | | | | `BigDecimal.new` is no longer available from bigdecimal-1.4.0.
| * | | | Merge pull request #359 from flori/pick-ruby-coreSHIBATA Hiroshi2018-12-202-10/+15
| |\ \ \ \ | | | | | | | | | | | | Backport from Ruby core repository
| | * | | | ext/json/parser/parser.c: do not call rb_str_resize() on Time objectpick-ruby-coreeregon2018-10-252-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * See https://github.com/flori/json/issues/342 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| | * | | | Fix missed update of parser source in r62429eregon2018-10-251-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| * | | | | Merge pull request #363 from yui-knk/fix_typosSHIBATA Hiroshi2018-12-101-2/+2
| |\ \ \ \ \ | | |_|/ / / | |/| | | | Fix typos in README.md
| | * | | | Article is duplicatedyui-knk2018-12-101-1/+1
| | | | | |
| | * | | | "load the" is duplicatedyui-knk2018-12-101-1/+1
| |/ / / /
| * | | | Merge pull request #360 from flori/remove-control-charsSHIBATA Hiroshi2018-10-311-0/+0
| |\ \ \ \ | | | | | | | | | | | | Removed control characters from gemspec.
| | * | | | Removed control characters from gemspecSHIBATA Hiroshi2018-10-311-0/+0
| |/ / / /
| * | | | Fixup 0d1c2a0f0e62839ccc049cbd3b0810e276d1e1caSHIBATA Hiroshi2018-10-251-2/+3
| |/ / /
| * | | Temporary ignored CI result of JRuby. see https://github.com/flori/json/pull/355SHIBATA Hiroshi2018-10-251-1/+1
| | | |
| * | | Merge pull request #352 from nicolasleger/patch-1SHIBATA Hiroshi2018-10-241-2/+3
| |\ \ \ | | | | | | | | | | [CI] Test against Ruby 2.5
| | * | | [CI] Test against Ruby 2.5Nicolas Leger2018-03-261-2/+3
| | |/ /
| * | | Merge pull request #340 from lostapathy/fix_travis_widgetSHIBATA Hiroshi2018-10-231-2/+3
| |\ \ \ | | |/ / | |/| | fix link in travis widget