diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-03 14:37:00 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-07-03 14:37:00 -0700 |
commit | 0b8cc0d54d7cfe3d13eb0e39336079653e27bdaa (patch) | |
tree | 29410ae5e885d367331db70444a248fae8f1c58e /ext/ffi_yajl | |
parent | 63bcddf146e84b2f93b32faeac19c9c8045d8250 (diff) | |
download | ffi-yajl-lcg/chefstyle5.tar.gz |
fixes for latest chefstyle ruleslcg/chefstyle5
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'ext/ffi_yajl')
-rw-r--r-- | ext/ffi_yajl/ext/encoder/extconf.rb | 4 | ||||
-rw-r--r-- | ext/ffi_yajl/ext/parser/extconf.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/ffi_yajl/ext/encoder/extconf.rb b/ext/ffi_yajl/ext/encoder/extconf.rb index e13c0a1..8f7d14b 100644 --- a/ext/ffi_yajl/ext/encoder/extconf.rb +++ b/ext/ffi_yajl/ext/encoder/extconf.rb @@ -42,14 +42,14 @@ if !windows? && !find_header("yajl/yajl_tree.h") "/usr/local/include", # /usr/local RbConfig::CONFIG["includedir"], # Ruby "/usr/include", # (default) - ] + ].freeze LIB_DIRS = [ "/opt/local/lib", # MacPorts "/usr/local/lib", # /usr/local + Homebrew RbConfig::CONFIG["libdir"], # Ruby "/usr/lib", # (default) - ] + ].freeze # add --with-yajl-dir, --with-yajl-include, --with-yajl-lib dir_config("yajl", HEADER_DIRS, LIB_DIRS) diff --git a/ext/ffi_yajl/ext/parser/extconf.rb b/ext/ffi_yajl/ext/parser/extconf.rb index 86ee50f..5611934 100644 --- a/ext/ffi_yajl/ext/parser/extconf.rb +++ b/ext/ffi_yajl/ext/parser/extconf.rb @@ -42,14 +42,14 @@ if !windows? && !find_header("yajl/yajl_tree.h") "/usr/local/include", # /usr/local RbConfig::CONFIG["includedir"], # Ruby "/usr/include", # (default) - ] + ].freeze LIB_DIRS = [ "/opt/local/lib", # MacPorts "/usr/local/lib", # /usr/local + Homebrew RbConfig::CONFIG["libdir"], # Ruby "/usr/lib", # (default) - ] + ].freeze # add --with-yajl-dir, --with-yajl-include, --with-yajl-lib dir_config("yajl", HEADER_DIRS, LIB_DIRS) |