ffi-rzmq 2.0.4 → 2.0.5

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
2
  SHA1:
3
- metadata.gz: 691dd239d1036375a2f06806953e89e7674d6c19
4
- data.tar.gz: 74f1929b8be63e5d38b884e24a6bacab02fe90e9
3
+ metadata.gz: 885657493403fa92ddb7a754c384c9fe33f6797b
4
+ data.tar.gz: 138d446c118a7c5c88e16e4d2df3e3bf8ecbaeec
5
5
  SHA512:
6
- metadata.gz: e78fb2755c2325b4de8fe3922d8c14b45a1171488ab26897c868f72e7b233b755ba1eb44bdacbd6ee4023d4228f9e57718bf86a0cf1cf427d3fb04b480d8876d
7
- data.tar.gz: 3bc7c5bfb8d9212959a41fb8e7a00d3f73873fe5e8d68abded9f20aa182d4b6cd4d74a7d6d7e14030e5d66e5ef191cf22f1614cdffc217cc523df1cc17f91a66
6
+ metadata.gz: b3162c2c1c70ff7b609c14bcc518b327211f671f78eddc56be2dee899008ebdb594247b20b3e8487891b048b2845c6c188c2d56c25ae504212e644f7dc8d225b
7
+ data.tar.gz: c766f3ecd9d481297dfebd6765fa30b1322f98003c76fdeda12704c7d354b854bf1224a7af05d9cfd701cc9ec321cad5bcf5625ba379a42b950504a55240424f
@@ -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.9.3
6
- - 2.0.0
5
+ - 2.1
6
+ - 2.2
7
7
  - ruby-head
8
- - jruby-19mode
8
+ - jruby
9
9
  - jruby-head
10
- - rbx-2.1.1
10
+ - rbx-2
11
11
 
12
12
  matrix:
13
13
  allow_failures:
@@ -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
 
@@ -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
@@ -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.1"]
25
- s.add_development_dependency "rspec", ["~> 2.14"]
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
@@ -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
@@ -82,7 +82,7 @@ module ZMQ
82
82
  def terminate
83
83
  unless @context.nil? || @context.null?
84
84
  remove_finalizer
85
- rc = LibZMQ.zmq_ctx_destroy(@context)
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.zmq_term context if !context.null? && Process.pid == pid }
132
+ Proc.new { LibZMQ.zmq_ctx_term context if !context.null? && Process.pid == pid }
133
133
  end
134
134
  end
135
135
 
@@ -1,5 +1,4 @@
1
1
  require 'forwardable'
2
- require 'io_extensions'
3
2
 
4
3
  module ZMQ
5
4
  class PollItem
@@ -1,3 +1,3 @@
1
1
  module ZMQ
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
@@ -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(:zmq_ctx_destroy).with(ctx.pointer).and_return(0)
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
@@ -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
@@ -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 a Fixnum" do
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(Fixnum)
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
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: 2015-01-28 00:00:00.000000000 Z
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.1
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.1
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: '2.14'
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: '2.14'
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.2.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