From 7eddc0953612bba57d93b85f3957f66ca774b180 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 26 Jun 2018 15:27:20 -0700 Subject: fix some chefstyle Signed-off-by: Lamont Granquist --- lib/ffi_yajl/benchmark/parse_stream.rb | 4 ++-- lib/ffi_yajl/ffi/parser.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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? -- cgit v1.2.1