czmq-ffi-gen 0.9.4-x86-mingw32 → 0.10.0-x86-mingw32

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: e39d7037533c2357efb9b94f449fa326b73a1f5b
4
- data.tar.gz: 52f650e746fe5aa0f85a1d2ad4a05e12fa31d09e
3
+ metadata.gz: c0630b859b32d67342ccc5e5e2c701fd068b5b86
4
+ data.tar.gz: fd81cc865ed5add5ccae1c8cb7da8d997116d86f
5
5
  SHA512:
6
- metadata.gz: 41766b01a6262017d2b0582b9abd6d13f5d89e5199d4e1fa04e675e1755a260a1b660abc5a897c8cf4f3cdf2afedcb51a25bce18b32c9cf8b0c8225a4391ad93
7
- data.tar.gz: 55732967f897836e9120e0986f7189e35d8c5ed7ff54643aaeb3c031050401f74ee6710bd8efce1b40a72990708546c940898b6ae52219f168ad52c683e7c811
6
+ metadata.gz: 08162b0c2765be30cf509d8ba63d12f8b7446976f2135b75b0bc68f19c8adcddcfe91e1e4fbc383412a86cda5f3eff90bf740bbda2ecd26797acea5c32d98c37
7
+ data.tar.gz: ac7c4693c35a601305deecf06e6983faabd49680d2ef5230acc84147be1f52e1d1fa419436edde579416ed756bf1712489c2cf9d0cc2781003c7e967eead32aa
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 = {
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
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: x86-mingw32
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