czmq-ffi-gen 0.9.4 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d87697ce8e4e17eb9a748785c2f6ba1226ed4018
4
- data.tar.gz: 40e80c83b4b71490a86e06230736d453981c9895
3
+ metadata.gz: 9ea1af55b990ff010a9bc499c1753aec939f9d7a
4
+ data.tar.gz: b1e54616721dee31e0abf0eba9caa006068bcead
5
5
  SHA512:
6
- metadata.gz: 5fc02913229ff83339c905488548104a09b24253ed740b941ed5be820e74b92922dbebdb2ced5f47195b10397c7f7181fc10416697061e2df1d371df5e845edf
7
- data.tar.gz: 601245a02173d1a3e493d5ab1bfbf41e319c662716d91073bbcc6cdf83ac734e8cbf540ee35f5bf8bf1fa1dea90b2dbe128de95efb0e78210fa3a540629aad4f
6
+ metadata.gz: 08d3e268b7019524a98c9e57552a3fd1b415078fbf79d42c66764d4f230a64ab9e90134369cfc85144732e632c0ee517c6d42eb0c95cbb8ce4f92e34c8b18180
7
+ data.tar.gz: 78619f1f14ca128e033599e3d1642476a5cf28ce3cbdb7ab51a2febbecccc0d0cb7b4cd41f3e53eade4cc7872992b4a17e8e68b757cd4d652f242fbefae79967
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ 0.10.0 (09/25/2016)
2
+ -----
3
+ * update CZMQ low-level binding to honor the LIBCZMQ_PATH environment variable
4
+ to set a custom search path for the CZMQ library
5
+ * honor the LIBZMQ_PATH environment variable to set a custom search path for
6
+ the ZMQ library
7
+
1
8
  0.9.4 (09/22/2016)
2
9
  -----
3
10
  * update CZMQ low-level binding to
@@ -22,8 +22,10 @@ module CZMQ
22
22
 
23
23
  begin
24
24
  lib_name = 'libczmq'
25
- lib_paths = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
26
- .map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
25
+ lib_dirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
26
+ env_path = ENV["#{lib_name.upcase}_PATH"]
27
+ lib_dirs = [*env_path.split(':'), *lib_dirs] if env_path
28
+ lib_paths = lib_dirs.map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
27
29
  ffi_lib lib_paths + [lib_name]
28
30
  @available = true
29
31
  rescue LoadError
@@ -1,5 +1,5 @@
1
1
  module CZMQ
2
2
  module FFI
3
- GEM_VERSION = "0.9.4"
3
+ GEM_VERSION = "0.10.0"
4
4
  end
5
5
  end
@@ -4,8 +4,10 @@ module CZMQ::FFI::LibZMQ
4
4
  extend ::FFI::Library
5
5
 
6
6
  lib_name = 'libzmq'
7
- lib_paths = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
8
- .map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
7
+ lib_dirs = ['/usr/local/lib', '/opt/local/lib', '/usr/lib64']
8
+ env_path = ENV['LIBZMQ_PATH']
9
+ lib_dirs = [*env_path.split(':'), *lib_dirs] if env_path
10
+ lib_paths = lib_dirs.map { |path| "#{path}/#{lib_name}.#{::FFI::Platform::LIBSUFFIX}" }
9
11
  ffi_lib lib_paths + [lib_name]
10
12
 
11
13
  opts = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: czmq-ffi-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrik Wenger
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-22 00:00:00.000000000 Z
11
+ date: 2016-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi