ffi-rzmq 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -5
- data/History.txt +9 -0
- data/README.rdoc +8 -0
- data/ffi-rzmq.gemspec +1 -1
- data/lib/ffi-rzmq/context.rb +1 -1
- data/lib/ffi-rzmq/version.rb +1 -1
- data/lib/io_extensions.rb +1 -1
- data/travis_build_script.sh +27 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a928273463131d873e875f84cd7c39f8aa6ec6d9c7f20b6c198e4d21667ffc64
|
4
|
+
data.tar.gz: 53dec07790eee04943cfa797c49802b4b716742bc25541de2b986fa27097a61f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec95871653f7db140d7f6f91c6ed42d84e9b88248beefeff7ba5991bf540df92a32be9333a8b0e91826a656f607622c78d9e959729b8d4f2fb75d3d2e502e5fb
|
7
|
+
data.tar.gz: 2302d47e7c29ce181e143868c33a8b82d55d0b937632b1d7faa3ae07ebe960f8a4a684ce87d82556f0363f7a7201eedb149e1daa403dd60be6c2247dbbaa9246
|
data/.travis.yml
CHANGED
@@ -1,15 +1,14 @@
|
|
1
|
-
|
2
|
-
script: bundle exec rspec
|
1
|
+
script: ./travis_build_script.sh
|
3
2
|
language: ruby
|
4
3
|
rvm:
|
5
|
-
- 2.
|
6
|
-
- 2.2
|
4
|
+
- 2.4.0
|
7
5
|
- ruby-head
|
8
6
|
- jruby
|
9
7
|
- jruby-head
|
10
|
-
- rbx
|
8
|
+
- rbx
|
11
9
|
|
12
10
|
matrix:
|
13
11
|
allow_failures:
|
14
12
|
- rvm: ruby-head
|
15
13
|
- rvm: jruby-head
|
14
|
+
- rvm: rbx
|
data/History.txt
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
== 2.0.6
|
2
|
+
* Fix for uncaught exception. Strange case... somehow calling
|
3
|
+
`zmq_ctx_term` was returning nil, so when checking the result code it
|
4
|
+
would fail. No overrides a nil value with 0 so check passes.
|
5
|
+
|
6
|
+
* Update some JRuby-specific code to fetch a file descriptor value. API
|
7
|
+
changed from earlier versions, so code is updated to use new API. All
|
8
|
+
specs pass.
|
9
|
+
|
1
10
|
== 2.0.5
|
2
11
|
* Fix issue #123. Bundled gems were a bit outdated so upgraded to latest
|
3
12
|
rspec gem.
|
data/README.rdoc
CHANGED
@@ -69,6 +69,14 @@ on that gem to load and run this code, then this project also no longer
|
|
69
69
|
supports MRI 1.8.x. I recommend JRuby for the best performance and
|
70
70
|
stability.
|
71
71
|
|
72
|
+
The `Socket` and `Context` classes have finalizers which will
|
73
|
+
be called by the garbage collector when there are no more references.
|
74
|
+
However, these finalizers should not be relied upon to orderly close
|
75
|
+
your sockets and then the context. Finalizers run in a non-determinant
|
76
|
+
order, so the `Context` finalizer may run first which will hang the
|
77
|
+
program. To avoid this, make sure to close all sockets before the
|
78
|
+
program exits.
|
79
|
+
|
72
80
|
All features are implemented.
|
73
81
|
|
74
82
|
== BUILD STATUS:
|
data/ffi-rzmq.gemspec
CHANGED
@@ -22,6 +22,6 @@ and run by any ruby runtime that supports FFI. That's all of the major ones - MR
|
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
24
|
s.add_runtime_dependency "ffi-rzmq-core", [">= 1.0.6"]
|
25
|
-
s.add_development_dependency "rspec", ["~> 3.
|
25
|
+
s.add_development_dependency "rspec", ["~> 3.7"]
|
26
26
|
s.add_development_dependency "rake"
|
27
27
|
end
|
data/lib/ffi-rzmq/context.rb
CHANGED
data/lib/ffi-rzmq/version.rb
CHANGED
data/lib/io_extensions.rb
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
#/bin/bash
|
2
|
+
set -ev
|
3
|
+
|
4
|
+
bundle install
|
5
|
+
|
6
|
+
sudo apt-get -qq update
|
7
|
+
sudo apt-get install libtool pkg-config build-essential autoconf automake wget
|
8
|
+
|
9
|
+
git clone https://github.com/jedisct1/libsodium --branch stable
|
10
|
+
cd libsodium
|
11
|
+
./autogen.sh
|
12
|
+
./configure && make check
|
13
|
+
sudo make install
|
14
|
+
cd ..
|
15
|
+
|
16
|
+
VERSION="4.2.2"
|
17
|
+
BASE="zeromq-${VERSION}"
|
18
|
+
TARBALL="${BASE}.tar.gz"
|
19
|
+
wget https://github.com/zeromq/libzmq/releases/download/v$VERSION/$TARBALL
|
20
|
+
tar -xvf $TARBALL
|
21
|
+
cd $BASE
|
22
|
+
./autogen.sh
|
23
|
+
./configure && make check
|
24
|
+
sudo make install
|
25
|
+
sudo ldconfig
|
26
|
+
|
27
|
+
bundle exec rake spec
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ffi-rzmq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chuck Remes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi-rzmq-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '3.
|
33
|
+
version: '3.7'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '3.
|
40
|
+
version: '3.7'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- spec/support/test.crt
|
113
113
|
- spec/support/test.key
|
114
114
|
- spec/util_spec.rb
|
115
|
+
- travis_build_script.sh
|
115
116
|
homepage: http://github.com/chuckremes/ffi-rzmq
|
116
117
|
licenses:
|
117
118
|
- MIT
|
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
133
|
version: '0'
|
133
134
|
requirements: []
|
134
135
|
rubyforge_project: ffi-rzmq
|
135
|
-
rubygems_version: 2.
|
136
|
+
rubygems_version: 2.7.3
|
136
137
|
signing_key:
|
137
138
|
specification_version: 4
|
138
139
|
summary: This gem wraps the ZeroMQ (0mq) networking library using Ruby FFI (foreign
|