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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 885657493403fa92ddb7a754c384c9fe33f6797b
4
- data.tar.gz: 138d446c118a7c5c88e16e4d2df3e3bf8ecbaeec
2
+ SHA256:
3
+ metadata.gz: a928273463131d873e875f84cd7c39f8aa6ec6d9c7f20b6c198e4d21667ffc64
4
+ data.tar.gz: 53dec07790eee04943cfa797c49802b4b716742bc25541de2b986fa27097a61f
5
5
  SHA512:
6
- metadata.gz: b3162c2c1c70ff7b609c14bcc518b327211f671f78eddc56be2dee899008ebdb594247b20b3e8487891b048b2845c6c188c2d56c25ae504212e644f7dc8d225b
7
- data.tar.gz: c766f3ecd9d481297dfebd6765fa30b1322f98003c76fdeda12704c7d354b854bf1224a7af05d9cfd701cc9ec321cad5bcf5625ba379a42b950504a55240424f
6
+ metadata.gz: ec95871653f7db140d7f6f91c6ed42d84e9b88248beefeff7ba5991bf540df92a32be9333a8b0e91826a656f607622c78d9e959729b8d4f2fb75d3d2e502e5fb
7
+ data.tar.gz: 2302d47e7c29ce181e143868c33a8b82d55d0b937632b1d7faa3ae07ebe960f8a4a684ce87d82556f0363f7a7201eedb149e1daa403dd60be6c2247dbbaa9246
@@ -1,15 +1,14 @@
1
- before_install: sudo apt-get install libzmq3-dev
2
- script: bundle exec rspec
1
+ script: ./travis_build_script.sh
3
2
  language: ruby
4
3
  rvm:
5
- - 2.1
6
- - 2.2
4
+ - 2.4.0
7
5
  - ruby-head
8
6
  - jruby
9
7
  - jruby-head
10
- - rbx-2
8
+ - rbx
11
9
 
12
10
  matrix:
13
11
  allow_failures:
14
12
  - rvm: ruby-head
15
13
  - rvm: jruby-head
14
+ - rvm: rbx
@@ -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.
@@ -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:
@@ -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.5"]
25
+ s.add_development_dependency "rspec", ["~> 3.7"]
26
26
  s.add_development_dependency "rake"
27
27
  end
@@ -84,7 +84,7 @@ module ZMQ
84
84
  remove_finalizer
85
85
  rc = LibZMQ.zmq_ctx_term(@context)
86
86
  @context = nil
87
- rc
87
+ rc || 0
88
88
  else
89
89
  0
90
90
  end
@@ -1,3 +1,3 @@
1
1
  module ZMQ
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
@@ -10,7 +10,7 @@ class IO
10
10
  when STDERR, $stderr
11
11
  2
12
12
  else
13
- JRuby.reference(self).getOpenFile.getMainStream.getDescriptor.getChannel.getFDVal
13
+ JRuby.reference(self).getOpenFile().getFileno
14
14
  end
15
15
  end
16
16
  else
@@ -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.5
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: 2017-03-24 00:00:00.000000000 Z
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.5'
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.5'
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.6.8
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