summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-06-20 15:37:38 -0700
committerTim Smith <tsmith@chef.io>2017-06-20 15:37:38 -0700
commit672fce3aed2d68e7362dc5cfeb72df78f30eb3a2 (patch)
tree76598d0c31493ca6fa8a8353402136cf8003b997 /bin
parentf3f92275f804f4c6cf93ee054af7d4ba3e50030a (diff)
downloadffi-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-xbin/ffi-yajl-bench14
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