From 672fce3aed2d68e7362dc5cfeb72df78f30eb3a2 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 20 Jun 2017 15:37:38 -0700 Subject: Switch from reek/rubocop to chefstyle Reek doesn't work with modern Rake Signed-off-by: Tim Smith --- bin/ffi-yajl-bench | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin') diff --git a/bin/ffi-yajl-bench b/bin/ffi-yajl-bench index ceff62b..a861d1f 100755 --- a/bin/ffi-yajl-bench +++ b/bin/ffi-yajl-bench @@ -2,31 +2,31 @@ $LOAD_PATH << File.expand_path(File.join(File.dirname( File.symlink?(__FILE__) ? File.readlink(__FILE__) : __FILE__ ), "../lib")) -require 'optparse' -require 'ffi_yajl/benchmark' +require "optparse" +require "ffi_yajl/benchmark" opts = {} optparse = OptionParser.new do |o| o.banner = "Usage: ffi-yajl-bench" opts[:profile] = false - o.on( '-p', '--profile', 'Run perftools.rb profiling' ) do + o.on( "-p", "--profile", "Run perftools.rb profiling" ) do opts[:profile] = true end - o.on( '-F', '--ffi', 'Force using FFI' ) do + o.on( "-F", "--ffi", "Force using FFI" ) do opts[:ffi] = true end - o.on( '-E', '--ext', 'Force using C ext' ) do + o.on( "-E", "--ext", "Force using C ext" ) do opts[:ext] = true end end optparse.parse! -ENV['FORCE_FFI_YAJL'] = 'ffi' if opts[:ffi] -ENV['FORCE_FFI_YAJL'] = 'ext' if opts[:ext] +ENV["FORCE_FFI_YAJL"] = "ffi" if opts[:ffi] +ENV["FORCE_FFI_YAJL"] = "ext" if opts[:ext] if opts[:profile] FFI_Yajl::Benchmark::ParseProfileRubyProf.new.run -- cgit v1.2.1