summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fixes for latest chefstyle ruleslcg/chefstyle5Lamont Granquist2018-07-031-1/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* fix some chefstyleLamont Granquist2018-06-262-4/+4
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* bump version2.3.1Lamont Granquist2017-06-211-2/+2
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* remove duplicated codeLamont Granquist2017-06-211-19/+1
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Switch from reek/rubocop to chefstyleTim Smith2017-06-2020-142/+142
| | | | | | Reek doesn't work with modern Rake Signed-off-by: Tim Smith <tsmith@chef.io>
* bump version to 2.3.02.3.0Lamont Granquist2016-07-221-1/+1
|
* bump version to 2.2.32.2.3Lamont Granquist2016-01-071-1/+1
|
* fixes for 1.9 and 2.0lcg/fix-force-encodingLamont Granquist2016-01-051-2/+2
| | | | | this is kind of shitty code, but once 2.0 and 1.9 are dropped and we can use #scrub then all the shitty code can go away...
* trying to fix 1.9/2.0Lamont Granquist2016-01-051-2/+2
|
* use new ruby #scrub method where availableLamont Granquist2016-01-051-2/+15
|
* fix validate_utf8: false encoding coercionLamont Granquist2016-01-051-2/+2
| | | | | | | | | 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.
* bumping to 2.2.2 for release2.2.2Lamont Granquist2015-07-151-1/+1
|
* fix uninitialized constant errorslcg/fix-uninit-constantLamont Granquist2015-07-151-0/+4
| | | | | c extension needs stringio and date required first in order to find those constants.
* bump version for release2.2.1Lamont Granquist2015-07-131-1/+1
|
* down to zero offensesLamont Granquist2015-07-1013-316/+202
| | | | but 30 cops disabled, lol...
* yet more copslcg/more-copsLamont Granquist2015-07-098-21/+21
|
* some more cop fixesLamont Granquist2015-07-095-10/+10
|
* eliminate Rescue ExceptionLamont Granquist2015-07-095-23/+15
|
* remaining autofixable copsLamont Granquist2015-07-097-64/+57
|
* fix lots of copsLamont Granquist2015-07-0915-64/+46
| | | | and add a few more to be ignored
* Merge pull request #59 from kou/suppress-method-redefined-warningsLamont Granquist2015-06-221-1/+2
|\ | | | | Suppress method redefined warnings
| * Suppress method redefined warningsKouhei Sutou2015-05-211-1/+2
| | | | | | | | | | | | | | % FORCE_FFI_YAJL=ffi ruby -w -I lib -e 'require "ffi_yajl"' lib/ffi_yajl/parser.rb:33: warning: method redefined; discarding old stack lib/ffi_yajl/parser.rb:40: warning: method redefined; discarding old key_stack ...
* | Ensure DateTime defined instead of specifying super classKouhei Sutou2015-05-271-1/+2
| |
* | Fix superclass mismatch for class StringIOKouhei Sutou2015-05-271-0/+2
| | | | | | | | | | | | % ruby -I lib -r ffi_yajl/ffi -r stringio -e '' /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': superclass mismatch for class StringIO (TypeError) from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
* | Merge pull request #61 from kou/suppress-asigned-but-unused-variable-warningsLamont Granquist2015-05-241-1/+0
|\ \ | | | | | | Suppress assigned but unused variable warning
| * | Suppress assigned but unused variable warningKouhei Sutou2015-05-211-1/+0
| |/ | | | | | | | | | | % FORCE_FFI_YAJL=ffi ruby -w -I lib -e 'require "ffi_yajl"' ... lib/ffi_yajl/ffi/encoder.rb:56: warning: assigned but unused variable - length
* | Suppress circular require warningsKouhei Sutou2015-05-212-4/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | % FORCE_FFI_YAJL=ffi ruby -w -I lib -e 'require "ffi_yajl"' ... /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55: warning: loading in progress, circular require considered harmful - lib/ffi_yajl/ffi.rb from -e:1:in `<main>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from lib/ffi_yajl.rb:40:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from lib/ffi_yajl/ffi.rb:144:in `<top (required)>' from lib/ffi_yajl/ffi.rb:145:in `<module:FFI_Yajl>' from lib/ffi_yajl/ffi.rb:146:in `<class:Parser>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from lib/ffi_yajl/ffi/parser.rb:23:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' lib/ffi_yajl/ffi/encoder.rb:56: warning: assigned but unused variable - length /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55: warning: loading in progress, circular require considered harmful - lib/ffi_yajl/ffi.rb from -e:1:in `<main>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from lib/ffi_yajl.rb:40:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from lib/ffi_yajl/ffi.rb:144:in `<top (required)>' from lib/ffi_yajl/ffi.rb:150:in `<module:FFI_Yajl>' from lib/ffi_yajl/ffi.rb:151:in `<class:Encoder>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from lib/ffi_yajl/ffi/encoder.rb:23:in `<top (required)>' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require' ...
* bump version to 2.2.02.2.0Lamont Granquist2015-04-301-1/+1
|
* derp, really force to utf8, really checkLamont Granquist2015-04-241-1/+1
|
* change :validate_utf8=false to still emit utf8lcg/utf8-string-replacementLamont Granquist2015-04-231-2/+3
| | | | | | | | | | | 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).
* emit token that failed utf-8 validationLamont Granquist2015-04-212-33/+35
| | | | plus code cleanup of the c-extension
* bumping version to 2.1.02.1.0Lamont Granquist2015-04-201-1/+1
|
* Merge pull request #19 from chef/lcg/stringio-encodingLamont Granquist2015-04-201-0/+9
|\ | | | | support encoding StringIOs
| * fix ffi sideLamont Granquist2015-04-171-0/+9
| |
* | add :unique_key_checking flag to parserlcg/unique_key_checkingLamont Granquist2015-04-172-0/+5
|/ | | | | can be used to error out if keys are duplicated in input rather than silently replacing.
* add copyright noticesLamont Granquist2015-04-1410-0/+214
|
* limit rescue to just LoadErrorLamont Granquist2015-04-131-2/+12
|
* remove commented codeLamont Granquist2015-04-061-4/+0
|
* add commentsLamont Granquist2015-04-061-0/+50
|
* move dlopen to c extensionLamont Granquist2015-04-062-5/+2
| | | | jruby can't load this
* fixing libname guessing logicLamont Granquist2015-04-063-43/+46
| | | | | run through multiple different possible library names and extensions, favoring the libyajl2 gem versions first.
* add native dlopen extension codeLamont Granquist2015-04-062-51/+8
| | | | | This will get dlopen in a consistent place on all the platforms which need it.
* warn on stderrlcg/ffi-less-ffi-yajlLamont Granquist2015-03-241-2/+2
|
* Remove ffi gem as a hard dependencyLamont Granquist2015-03-243-16/+52
| | | | | | | | | | | Copies the algorithm out of FFI.map_library_name into the FFI_Yajl#map_library_name function so that when we're loading up the C extension we don't need to also slurp in the ffi gem just to run that. The ffi gem is moved to a hard dependency of only the jruby version of the gem, and its a development dependency for the other ruby VMs (so rake spec will work against the ffi library), but its an optional library to install to make the ffi library work on VMs that support C extensions (MRI, RBX).
* bumping version to 2.0.0 for release2.0.0Lamont Granquist2015-03-171-1/+1
|
* Removing JSON gem compatibility layerLamont Granquist2015-03-171-140/+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.
* bump version to 1.4.0Lamont Granquist2015-02-171-1/+1
|
* mixin windows? helper directly into the objectLamont Granquist2015-02-172-5/+9
| | | | | its useful to be able to include/extend the platform class and then use this sugar directly
* Move #windows? to lib to allow not checking libname to determine platformTyler Vann-Campbell2015-02-172-1/+7
|
* remove unnecessary linelcg/invalid-utf8Lamont Granquist2015-01-221-1/+0
|