ffi-rzmq 2.0.4 → 2.0.5
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 +4 -4
- data/.travis.yml +4 -4
- data/History.txt +12 -0
- data/README.rdoc +1 -1
- data/ffi-rzmq.gemspec +2 -2
- data/lib/ffi-rzmq.rb +1 -0
- data/lib/ffi-rzmq/context.rb +2 -2
- data/lib/ffi-rzmq/poll_item.rb +0 -1
- data/lib/ffi-rzmq/version.rb +1 -1
- data/spec/context_spec.rb +1 -1
- data/spec/device_spec.rb +3 -3
- data/spec/socket_spec.rb +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 885657493403fa92ddb7a754c384c9fe33f6797b
|
4
|
+
data.tar.gz: 138d446c118a7c5c88e16e4d2df3e3bf8ecbaeec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3162c2c1c70ff7b609c14bcc518b327211f671f78eddc56be2dee899008ebdb594247b20b3e8487891b048b2845c6c188c2d56c25ae504212e644f7dc8d225b
|
7
|
+
data.tar.gz: c766f3ecd9d481297dfebd6765fa30b1322f98003c76fdeda12704c7d354b854bf1224a7af05d9cfd701cc9ec321cad5bcf5625ba379a42b950504a55240424f
|
data/.travis.yml
CHANGED
@@ -2,12 +2,12 @@ before_install: sudo apt-get install libzmq3-dev
|
|
2
2
|
script: bundle exec rspec
|
3
3
|
language: ruby
|
4
4
|
rvm:
|
5
|
-
- 1
|
6
|
-
- 2.
|
5
|
+
- 2.1
|
6
|
+
- 2.2
|
7
7
|
- ruby-head
|
8
|
-
- jruby
|
8
|
+
- jruby
|
9
9
|
- jruby-head
|
10
|
-
- rbx-2
|
10
|
+
- rbx-2
|
11
11
|
|
12
12
|
matrix:
|
13
13
|
allow_failures:
|
data/History.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
== 2.0.5
|
2
|
+
* Fix issue #123. Bundled gems were a bit outdated so upgraded to latest
|
3
|
+
rspec gem.
|
4
|
+
|
5
|
+
* Fix issue #124. Newer releases of libzmq are not exporting all symbols
|
6
|
+
to the global namespace so some lazy loading performed by FFI was
|
7
|
+
failing. Now force all symbols into global namespace.
|
8
|
+
|
9
|
+
* Fix "::Fixnum has been deprecated" warnings from MRI 2.4.x+.
|
10
|
+
|
11
|
+
* Force ffi-rzmq-core 1.0.6 or later as dependency.
|
12
|
+
|
1
13
|
== 2.0.4
|
2
14
|
* Screwed up the release managment. Had wrong version in version.rb. Fixed.
|
3
15
|
|
data/README.rdoc
CHANGED
@@ -193,7 +193,7 @@ that activity. That DLL also requires that you copy libstdc++-6.dll and libgcc_s
|
|
193
193
|
|
194
194
|
(The MIT License)
|
195
195
|
|
196
|
-
Copyright (c) 2013 Chuck Remes
|
196
|
+
Copyright (c) 2013-2017 Chuck Remes
|
197
197
|
|
198
198
|
Permission is hereby granted, free of charge, to any person obtaining
|
199
199
|
a copy of this software and associated documentation files (the
|
data/ffi-rzmq.gemspec
CHANGED
@@ -21,7 +21,7 @@ and run by any ruby runtime that supports FFI. That's all of the major ones - MR
|
|
21
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
|
24
|
-
s.add_runtime_dependency "ffi-rzmq-core", [">= 1.0.
|
25
|
-
s.add_development_dependency "rspec", ["~>
|
24
|
+
s.add_runtime_dependency "ffi-rzmq-core", [">= 1.0.6"]
|
25
|
+
s.add_development_dependency "rspec", ["~> 3.5"]
|
26
26
|
s.add_development_dependency "rake"
|
27
27
|
end
|
data/lib/ffi-rzmq.rb
CHANGED
@@ -66,6 +66,7 @@ end # module ZMQ
|
|
66
66
|
require 'ffi-rzmq-core'
|
67
67
|
|
68
68
|
# the order of files is important
|
69
|
+
require ZMQ.libpath(['.', "io_extensions"])
|
69
70
|
%w(util exceptions context message socket poll_items poll_item poll device version).each do |file|
|
70
71
|
require ZMQ.libpath(['ffi-rzmq', file])
|
71
72
|
end
|
data/lib/ffi-rzmq/context.rb
CHANGED
@@ -82,7 +82,7 @@ module ZMQ
|
|
82
82
|
def terminate
|
83
83
|
unless @context.nil? || @context.null?
|
84
84
|
remove_finalizer
|
85
|
-
rc = LibZMQ.
|
85
|
+
rc = LibZMQ.zmq_ctx_term(@context)
|
86
86
|
@context = nil
|
87
87
|
rc
|
88
88
|
else
|
@@ -129,7 +129,7 @@ module ZMQ
|
|
129
129
|
end
|
130
130
|
|
131
131
|
def self.close context, pid
|
132
|
-
Proc.new { LibZMQ.
|
132
|
+
Proc.new { LibZMQ.zmq_ctx_term context if !context.null? && Process.pid == pid }
|
133
133
|
end
|
134
134
|
end
|
135
135
|
|
data/lib/ffi-rzmq/poll_item.rb
CHANGED
data/lib/ffi-rzmq/version.rb
CHANGED
data/spec/context_spec.rb
CHANGED
@@ -85,7 +85,7 @@ module ZMQ
|
|
85
85
|
it "should call the correct library function to terminate the context" do
|
86
86
|
ctx = Context.new
|
87
87
|
|
88
|
-
expect(LibZMQ).to receive(:
|
88
|
+
expect(LibZMQ).to receive(:zmq_ctx_term).with(ctx.pointer).and_return(0)
|
89
89
|
ctx.terminate
|
90
90
|
end
|
91
91
|
end # context terminate
|
data/spec/device_spec.rb
CHANGED
@@ -26,9 +26,9 @@ module ZMQ
|
|
26
26
|
front = @ctx.socket(ZMQ::PUSH)
|
27
27
|
front.bind(@front_endpoint)
|
28
28
|
@mutex.synchronize { @device_thread = true }
|
29
|
-
puts "create streamer device and running..."
|
29
|
+
puts "create streamer device and running..." if $DEBUG
|
30
30
|
Device.new(back, front)
|
31
|
-
puts "device exited"
|
31
|
+
puts "device exited" if $DEBUG
|
32
32
|
back.close
|
33
33
|
front.close
|
34
34
|
end
|
@@ -40,7 +40,7 @@ module ZMQ
|
|
40
40
|
|
41
41
|
break if can_break
|
42
42
|
end
|
43
|
-
puts "broke out of wait_for_device loop"
|
43
|
+
puts "broke out of wait_for_device loop" if $DEBUG
|
44
44
|
end
|
45
45
|
|
46
46
|
it "should create a device without error given valid opts" do
|
data/spec/socket_spec.rb
CHANGED
@@ -451,11 +451,11 @@ module ZMQ
|
|
451
451
|
end # posix platform
|
452
452
|
|
453
453
|
context "using option ZMQ::EVENTS" do
|
454
|
-
it "should return a mask of events as
|
454
|
+
it "should return a mask of events as an Integer" do
|
455
455
|
array = []
|
456
456
|
rc = socket.getsockopt(ZMQ::EVENTS, array)
|
457
457
|
expect(rc).to eq(0)
|
458
|
-
expect(array[0]).to be_a(
|
458
|
+
expect(array[0]).to be_a(Integer)
|
459
459
|
end
|
460
460
|
end
|
461
461
|
|
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.5
|
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: 2017-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi-rzmq-core
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.6
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.
|
26
|
+
version: 1.0.6
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.5'
|
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: '
|
40
|
+
version: '3.5'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project: ffi-rzmq
|
135
|
-
rubygems_version: 2.
|
135
|
+
rubygems_version: 2.6.8
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
138
|
summary: This gem wraps the ZeroMQ (0mq) networking library using Ruby FFI (foreign
|