diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-07-09 08:45:46 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-07-09 08:45:46 -0700 |
commit | c1e912caf966bc29b346c193f1b74e23e0f66781 (patch) | |
tree | 70ddb27b5d8f32766e89fe6b86375373daedf013 /ext/ffi_yajl | |
parent | 8fabdd3fddbd222109976fddb0d38255a9490f1d (diff) | |
download | ffi-yajl-c1e912caf966bc29b346c193f1b74e23e0f66781.tar.gz |
remaining autofixable cops
Diffstat (limited to 'ext/ffi_yajl')
-rw-r--r-- | ext/ffi_yajl/ext/encoder/extconf.rb | 2 | ||||
-rw-r--r-- | ext/ffi_yajl/ext/parser/extconf.rb | 2 |
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 |