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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3fd4f13262da52b2fe3cef44be91e1f29b575c12
4
- data.tar.gz: 21a93151aeb8faa8bdf738e14c3aa9a41ed7e914
3
+ metadata.gz: 907a9b4a09e5273a93bbd837c71f380990a60e11
4
+ data.tar.gz: 9bb667005e6b025483d051294634812a96494993
5
5
  SHA512:
6
- metadata.gz: 22f1b73d390e97b052d3a8f2e874197397f203b7c538a0a9a0a21b8d19cf28324b40f2f2c0da72cde3649cb19ef234a7d4f2090d106997c9066dd25a5e92576e
7
- data.tar.gz: 2cb03f1af5fd290ceb88f526ceb1ef1c5dfe568e0ea12ee86527faad333c25370d7f8d99aa09d5c6b06b9431d44a3d2c1d385ac934fe5034915539877d669577
6
+ metadata.gz: 0fa9d207505e9ee646c383d658c3403a9ee01a0f7dcd65b1a0965895b6e825a51ffa8af2d8316b99a682a9f6e53b686c7cc86637cbe1d9bba2dc24fe9a9de298
7
+ data.tar.gz: ab90841f42cb47a24a8c4b1026cbbc2b7ee8c4945e2dc7647dc24c78600e42c8b2d3b1f6e48e5f5d51fe05e14e29078746abd4e80cd340ccdd7653146b676b17
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: x64-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