summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-07-09 08:45:46 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-07-09 08:45:46 -0700
commitc1e912caf966bc29b346c193f1b74e23e0f66781 (patch)
tree70ddb27b5d8f32766e89fe6b86375373daedf013 /ext
parent8fabdd3fddbd222109976fddb0d38255a9490f1d (diff)
downloadffi-yajl-c1e912caf966bc29b346c193f1b74e23e0f66781.tar.gz
remaining autofixable cops
Diffstat (limited to 'ext')
-rw-r--r--ext/ffi_yajl/ext/encoder/extconf.rb2
-rw-r--r--ext/ffi_yajl/ext/parser/extconf.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ffi_yajl/ext/encoder/extconf.rb b/ext/ffi_yajl/ext/encoder/extconf.rb
index 0281ea4..e46080a 100644
--- a/ext/ffi_yajl/ext/encoder/extconf.rb
+++ b/ext/ffi_yajl/ext/encoder/extconf.rb
@@ -55,7 +55,7 @@ if !windows? && !find_header('yajl/yajl_tree.h')
dir_config('yajl', HEADER_DIRS, LIB_DIRS)
# here we use find_library in order to deliberately link with -lyajl as a useful side-effect
- if !(find_header('yajl/yajl_tree.h') && find_library('yajl', 'yajl_complete_parse'))
+ unless find_header('yajl/yajl_tree.h') && find_library('yajl', 'yajl_complete_parse')
abort "libyajl2 is missing. please install libyajl2"
end
end
diff --git a/ext/ffi_yajl/ext/parser/extconf.rb b/ext/ffi_yajl/ext/parser/extconf.rb
index 26bdca0..6f8526e 100644
--- a/ext/ffi_yajl/ext/parser/extconf.rb
+++ b/ext/ffi_yajl/ext/parser/extconf.rb
@@ -55,7 +55,7 @@ if !windows? && !find_header('yajl/yajl_tree.h')
dir_config('yajl', HEADER_DIRS, LIB_DIRS)
# here we use find_library in order to deliberately link with -lyajl as a useful side-effect
- if !(find_header('yajl/yajl_tree.h') && find_library('yajl', 'yajl_complete_parse'))
+ unless find_header('yajl/yajl_tree.h') && find_library('yajl', 'yajl_complete_parse')
abort "libyajl2 is missing. please install libyajl2"
end
end