diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-26 15:27:20 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-06-26 15:27:20 -0700 |
commit | 7eddc0953612bba57d93b85f3957f66ca774b180 (patch) | |
tree | 370cb4da1062dbd7710deda685cb5e47f5de1595 /lib | |
parent | ee572136a5979bdb12d6e603a777db75458d0834 (diff) | |
download | ffi-yajl-7eddc0953612bba57d93b85f3957f66ca774b180.tar.gz |
fix some chefstyle
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ffi_yajl/benchmark/parse_stream.rb | 4 | ||||
-rw-r--r-- | lib/ffi_yajl/ffi/parser.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/ffi_yajl/benchmark/parse_stream.rb b/lib/ffi_yajl/benchmark/parse_stream.rb index 9ca0050..7fbbb9e 100644 --- a/lib/ffi_yajl/benchmark/parse_stream.rb +++ b/lib/ffi_yajl/benchmark/parse_stream.rb @@ -33,7 +33,7 @@ Benchmark.bmbm do |x| puts "JSON.parse" times.times do json.rewind - while chunk = json.gets + while ( chunk = json.gets ) JSON.parse(chunk, max_nesting: false) end end @@ -44,7 +44,7 @@ Benchmark.bmbm do |x| puts "ActiveSupport::JSON.decode" times.times do json.rewind - while chunk = json.gets + while ( chunk = json.gets ) ActiveSupport::JSON.decode(chunk) end end diff --git a/lib/ffi_yajl/ffi/parser.rb b/lib/ffi_yajl/ffi/parser.rb index 7c98d59..fa9d599 100644 --- a/lib/ffi_yajl/ffi/parser.rb +++ b/lib/ffi_yajl/ffi/parser.rb @@ -1,5 +1,5 @@ # Copyright (c) 2015 Lamont Granquist -# Copyright (c) 2015 Chef Software, Inc. +# Copyright (c) 2015-2018, Chef Software Inc. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -23,7 +23,7 @@ module FFI_Yajl module FFI module Parser - def set_value(val) # rubocop:disable Style/AccessorMethodName + def set_value(val) # rubocop:disable Naming/AccessorMethodName case stack.last when Hash raise FFI_Yajl::ParseError, "internal error: missing key in parse" if key.nil? |