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 +4 -4
- data/CHANGES.md +7 -0
- data/lib/czmq-ffi-gen/czmq/ffi.rb +4 -2
- data/lib/czmq-ffi-gen/gem_version.rb +1 -1
- data/lib/czmq-ffi-gen/libzmq.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ea1af55b990ff010a9bc499c1753aec939f9d7a
|
4
|
+
data.tar.gz: b1e54616721dee31e0abf0eba9caa006068bcead
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
26
|
-
|
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
|
data/lib/czmq-ffi-gen/libzmq.rb
CHANGED
@@ -4,8 +4,10 @@ module CZMQ::FFI::LibZMQ
|
|
4
4
|
extend ::FFI::Library
|
5
5
|
|
6
6
|
lib_name = 'libzmq'
|
7
|
-
|
8
|
-
|
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.
|
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-
|
11
|
+
date: 2016-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|