diff options
author | Tim Smith <tsmith@chef.io> | 2017-06-20 15:37:38 -0700 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2017-06-20 15:37:38 -0700 |
commit | 672fce3aed2d68e7362dc5cfeb72df78f30eb3a2 (patch) | |
tree | 76598d0c31493ca6fa8a8353402136cf8003b997 /bin | |
parent | f3f92275f804f4c6cf93ee054af7d4ba3e50030a (diff) | |
download | ffi-yajl-672fce3aed2d68e7362dc5cfeb72df78f30eb3a2.tar.gz |
Switch from reek/rubocop to chefstyle
Reek doesn't work with modern Rake
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ffi-yajl-bench | 14 |
1 files changed, 7 insertions, 7 deletions
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 |