Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Resolve rubocop failures | Jaymala Sinha | 2019-10-10 | 1 | -10/+10 |
| | | | | Signed-off-by: Jaymala Sinha <jsinha@chef.io> | ||||
* | add check for yajl-ruby vulnerability | Lamont Granquist | 2017-11-28 | 1 | -1/+8 |
| | | | | | | it looks like this code is not vulnerable Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org> | ||||
* | Switch from reek/rubocop to chefstyle | Tim Smith | 2017-06-20 | 4 | -23/+23 |
| | | | | | | Reek doesn't work with modern Rake Signed-off-by: Tim Smith <tsmith@chef.io> | ||||
* | use new ruby #scrub method where available | Lamont Granquist | 2016-01-05 | 1 | -1/+1 |
| | |||||
* | make sure utf-8 cleaning doesn't grow without bounds | Lamont Granquist | 2016-01-05 | 1 | -0/+7 |
| | | | | | | we had a bug where we'd inject utf-8 characters that we'd mangle and then replace with even more utf-8 characters so that any normal attrs would grow without bounds with lots of utf-8 '?' characters. | ||||
* | fix validate_utf8: false encoding coercion | Lamont Granquist | 2016-01-05 | 1 | -0/+6 |
| | | | | | | | | | the string we get back from ffi is tagged as ascii encoded by default, so we must force encode it first. then we don't want to convert from binary to utf-8 since that will wind up mangling all the utf-8 characters, we want to convert from utf-8 to utf-8 while replacing invalid characters. | ||||
* | rubocop on 2.2 needs to ignore this line | Lamont Granquist | 2015-07-10 | 1 | -1/+1 |
| | | | | it breaks 1.9 through 2.1 when rubocop fixes it. | ||||
* | ruby 1.9/2.0/2.1 have unicode symbol issues | Lamont Granquist | 2015-07-10 | 1 | -1/+1 |
| | |||||
* | yet more copslcg/more-cops | Lamont Granquist | 2015-07-09 | 3 | -30/+30 |
| | |||||
* | some more cop fixes | Lamont Granquist | 2015-07-09 | 1 | -7/+7 |
| | |||||
* | fix lots of cops | Lamont Granquist | 2015-07-09 | 4 | -59/+53 |
| | | | | and add a few more to be ignored | ||||
* | derp, really force to utf8, really check | Lamont Granquist | 2015-04-24 | 1 | -0/+4 |
| | |||||
* | change :validate_utf8=false to still emit utf8lcg/utf8-string-replacement | Lamont Granquist | 2015-04-23 | 1 | -0/+4 |
| | | | | | | | | | | | validate_utf8=true raises on bad input validate_utf8=false now does not raise, but still produces valid UTF-8 clean JSON by replacing characters. the previous behavior of emitting bad JSON that was not UTF-8 clean when validate_utf8 was false is dropped (and this was behavior only of the C extension and not the ffi extension since the ffi layer must do some scrubbing of its own). | ||||
* | dropping support for ruby 1.8.7 | Lamont Granquist | 2015-04-21 | 1 | -1/+0 |
| | | | | | adding support for UTF-8 encoding issues and making it backcompat with 1.8.7 is too painful for words, goodbye... | ||||
* | emit token that failed utf-8 validation | Lamont Granquist | 2015-04-21 | 1 | -1/+1 |
| | | | | plus code cleanup of the c-extension | ||||
* | Merge pull request #19 from chef/lcg/stringio-encoding | Lamont Granquist | 2015-04-20 | 1 | -0/+5 |
|\ | | | | | support encoding StringIOs | ||||
| * | fix ffi side | Lamont Granquist | 2015-04-17 | 1 | -1/+1 |
| | | |||||
| * | add busted spec | Lamont Granquist | 2015-04-17 | 1 | -0/+5 |
| | | |||||
* | | add :unique_key_checking flag to parserlcg/unique_key_checking | Lamont Granquist | 2015-04-17 | 1 | -0/+15 |
|/ | | | | | can be used to error out if keys are duplicated in input rather than silently replacing. | ||||
* | add copyright notices | Lamont Granquist | 2015-04-14 | 4 | -0/+85 |
| | |||||
* | add specs for library mapping helperslcg/dlopen-extension | Lamont Granquist | 2015-04-13 | 1 | -0/+96 |
| | |||||
* | add explanatory comment | Lamont Granquist | 2015-04-13 | 1 | -0/+3 |
| | |||||
* | test with yajl-ruby concurrently loaded | Lamont Granquist | 2015-04-11 | 1 | -0/+6 |
| | |||||
* | add comment on why spec does not run on windows | Lamont Granquist | 2015-03-25 | 1 | -0/+2 |
| | |||||
* | Filter this test out of windows. | Lamont Granquist | 2015-03-24 | 2 | -1/+2 |
| | | | | | | For some reason on Ruby 2.0.0 on windows this test spins forever. Possibly a ruby-on-windows-bug. Might be a real issue, but without it being customer affecting don't have time for that. | ||||
* | Removing JSON gem compatibility layer | Lamont Granquist | 2015-03-17 | 1 | -382/+0 |
| | | | | | | | | | | | | | This causes issues because JSON and ffi-yajl get into fights over who monkeypatched the classes last and this causes random issues with whitespace disagreement between the JSON gem and the underlying libyajl C library. For deterministic output its better not to have fighting monkeypatches, it generates considerable chaos. If anyone wants to extract the json_gem.rb file into a gem of its own and support these monkeypatches going forwards that would be fine (there is, in fact, literally nothing that could be done to stop you), but we do not want to support these. | ||||
* | fix typo | Lamont Granquist | 2015-01-22 | 1 | -1/+1 |
| | |||||
* | support turning off validate_utf8 | Lamont Granquist | 2015-01-22 | 1 | -1/+27 |
| | |||||
* | allow arbitrary Objects as keys | Lamont Granquist | 2014-11-24 | 1 | -0/+17 |
| | | | | i fixed Hashes/Arrays/true/false/nil, but forgot Object. | ||||
* | avoid these tests on ruby 1.8.7 | Lamont Granquist | 2014-11-22 | 1 | -2/+2 |
| | | | | lol | ||||
* | support calling #to_s on all types for keys | Lamont Granquist | 2014-11-22 | 1 | -0/+25 |
| | | | | | | compatibility with JSON gem and yajl-ruby closes #14 | ||||
* | add busted specs for outstanding parser bugs | Lamont Granquist | 2014-11-22 | 1 | -1/+49 |
| | |||||
* | Making necessary C changes to only call to_json if it is present | tyler-ball | 2014-10-07 | 1 | -1/+1 |
| | |||||
* | If an object does not have .to_json, we no longer try to call it | tyler-ball | 2014-10-06 | 1 | -0/+17 |
| | |||||
* | WIP | Lamont Granquist | 2014-08-23 | 2 | -2/+4 |
| | |||||
* | fix the timezone to UTC or Date specs will fail | Lamont Granquist | 2014-08-23 | 2 | -6/+28 |
| | | | | only works in -800 right now | ||||
* | add datetime encoding | Lamont Granquist | 2014-08-23 | 2 | -8/+21 |
| | | | | | | | | necessary for ohai json_gem spec complies with JSON gem format. this also arguably fixes issues with yajl-ruby where it does not encode date objects correctly. | ||||
* | add spec for explicit nil option | Lamont Granquist | 2014-08-09 | 1 | -1/+9 |
| | |||||
* | fix for chef pretty printing issues | Lamont Granquist | 2014-08-07 | 1 | -0/+11 |
| | |||||
* | Revert "fix for chef pretty printing issues" | Lamont Granquist | 2014-08-07 | 1 | -11/+0 |
| | | | | This reverts commit 5d260103d3f11897e7873fb3fa796966896ff946. | ||||
* | fix for chef pretty printing issues | Lamont Granquist | 2014-08-07 | 1 | -0/+11 |
| | |||||
* | change allow_comment default to true | Lamont Granquist | 2014-08-07 | 1 | -0/+8 |
| | | | | | this matches yajl-ruby's default and fixes a regression in Chef where we stopped accepting comments. | ||||
* | add tests for prett_generate's options hash argument | Lamont Granquist | 2014-07-12 | 1 | -0/+12 |
| | |||||
* | handle StringIOs by being slurpy for now | Lamont Granquist | 2014-06-15 | 1 | -1/+0 |
| | |||||
* | fix very large floats in ffi | Lamont Granquist | 2014-06-15 | 1 | -1/+0 |
| | |||||
* | support yajl parser options | Lamont Granquist | 2014-06-14 | 1 | -5/+103 |
| | |||||
* | implementing allow_comments in ffi | Lamont Granquist | 2014-06-14 | 1 | -3/+1 |
| | |||||
* | don't do the long tests on ruby <= 1.9.2 | Lamont Granquist | 2014-06-14 | 2 | -2/+3 |
| | | | | seems to lock up rspec completely | ||||
* | fix ordering deprecation warning | Lamont Granquist | 2014-06-14 | 1 | -1/+1 |
| | |||||
* | fix some rspec deprecation warnings | Lamont Granquist | 2014-06-14 | 1 | -18/+18 |
| |