summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Specify JSON module interfacerfc-7159-jsonFlorian Frank2015-06-151-2/+1
|
* Disallow usage of symbolize_names and create_additionsFlorian Frank2015-06-152-4/+5
|
* Refactor tests and make pure parser greenFlorian Frank2015-06-1516-759/+779
|
* Remove generate restriction for […]/{…}Florian Frank2015-06-131-9/+3
|
* Remove dependency on permutationFlorian Frank2015-06-131-14/+0
| | | | Ruby can do this by now on her own.
* Move common setup into test_helper.rbFlorian Frank2015-06-139-16/+18
|
* Make generator format test backwards compatibleMichael Mac-Vicar2015-01-091-1/+1
|
* Add test for format options used by the generatorMichael Mac-Vicar2015-01-091-0/+13
| | | | | The space_before, space, indent, object_nl and array_nl options of the space were not covered.
* Merge branch 'master' into zzak-ruby-2.2Florian Frank2015-01-021-0/+6
|\
| * Don't mutate JSON.dump_default_options from dumpJason R. Clark2015-01-021-0/+6
| | | | | | | | | | | | | | The use of Hash#update from the JSON.dump method was mutating the dump_default_options hash on any call to dump with a limit provided. An individual method call with an overriding value shouldn't update the defaults in this way.
* | Only use gc stress assert if availableZachary Scott2014-12-251-9/+11
| |
* | Sync tests with trunkZachary Scott2014-12-252-15/+11
| |
* | This value has changed somehowZachary Scott2014-12-251-1/+1
| |
* | Don't mutate JSON.dump_default_options from dumpJason R. Clark2014-09-191-0/+6
|/ | | | | | | The use of Hash#update from the JSON.dump method was mutating the dump_default_options hash on any call to dump with a limit provided. An individual method call with an overriding value shouldn't update the defaults in this way.
* forgot about 1.8 againFlorian Frank2013-05-131-1/+1
|
* complete testingFlorian Frank2013-05-131-2/+7
|
* resolvedFlorian Frank2013-05-131-0/+10
|
* Add test and implement pure versiongFlorian Frank2013-02-221-0/+6
|
* Try to convert first with to_hash, then to_hFlorian Frank2013-02-211-0/+16
| | | | | | | | rb_convert_type doesn't return if conversion fails, so use rb_check_convert_type and the raise vi rb_convert_type. Make sure, that this behaviour is consisten across all generator implementations. Fixes https://github.com/flori/json/issues/162
* Security fix create_additons/JSON::GenericObjectv1.7.7Florian Frank2013-02-114-38/+65
|
* fix a bug in the JRuby implementation. getInstanceVariable() can return a ↵John Shahid2013-02-041-0/+1
| | | | null which causes NPE.
* Increase hash likeness of State objectsFlorian Frank2012-12-317-24/+32
|
* Use len for return valuesFlorian Frank2012-11-291-0/+16
|\
| * add tests to test the behavior of State::configure (and its alias State::merge).John Shahid2012-11-231-0/+16
| |
* | add merge alias for configure in jrubyFlorian Frank2012-11-291-0/+24
|/
* Increase default max_nesting to 100Erik Michaels-Ober2012-10-053-15/+15
| | | | See discussion at https://github.com/intridea/multi_json/pull/59.
* Renamed method and handle arraysjson-generic-from_hashesFlorian Frank2012-10-021-2/+6
|
* Add JSON::GenericObject.from_hashesFlorian Frank2012-10-021-0/+7
| | | | This method transforms hashes of hashes into GenericObject structures.
* Use correct end of string anchorsFlorian Frank2012-07-252-4/+4
|
* Add JSON::GenericObjectFlorian Frank2012-04-282-4/+39
|
* Throw exception unless source is a stringFlorian Frank2012-04-271-0/+2
|
* Rename test names according to fileFlorian Frank2012-04-277-10/+10
|
* Add implementation for a light objectFlorian Frank2012-04-271-0/+10
|
* Clean up code a bitFlorian Frank2012-02-112-19/+21
| | | | This should fix #117
* Support duck typed ruby array in JRuby as wellFlorian Frank2011-12-201-1/+29
|
* Support object class with duck type hashFlorian Frank2011-12-201-1/+24
|
* Small fix: JSON.load('') # => nilFlorian Frank2011-12-011-0/+1
|
* Merge branch 'extract-fbuffer'Florian Frank2011-11-231-30/+44
|\
| * Extract fbuffer and use it in parser and generatorFlorian Frank2011-11-231-6/+6
| |
| * start to make buffer_initial_length configurableFlorian Frank2011-11-091-0/+2
| |
| * start to make buffer_initial_length configurableFlorian Frank2011-11-091-30/+42
| |
* | Merge branch 'master' of https://github.com/jpartlow/json into jpartlow-masterFlorian Frank2011-11-221-1/+1
|\ \
| * | Fix for Time.json_create ensures == Time instances for roundtrip through ↵Josh Partlow2011-11-181-1/+1
| |/ | | | | | | JSON serialization in Ruby 1.9.2.
* | Make JSON.dump and JSON.load support Rails betterFlorian Frank2011-11-222-1/+16
| |
* | Add support for OpenStructFlorian Frank2011-11-211-0/+8
|/
* Add testcase for a possible crash with bignumFlorian Frank2011-11-091-0/+20
|
* always raise type error when parsing nilFlorian Frank2011-11-031-0/+2
|
* Add support for BigDecimal numbersFlorian Frank2011-10-021-0/+6
|
* Move rational and complex additions in own filesFlorian Frank2011-08-301-1/+3
| | | | | | | | | Also do not require Ruby's complex.rb and rational.rb if the top level constants are already defined. This means Ruby 1.9 implementations are extendend, but Ruby 1.8 implementations will require rational/complex before they are extended. Having rational and complex additions in their own files is an especially good thing, if one wants to avoid loading complex and rational under Ruby 1.8.
* Apply patch by Eric Wong <nocode@yhbt.net>Florian Frank2011-08-291-0/+13
| | | | See https://github.com/flori/json/issues/46