ffi-rzmq 0.9.6 → 0.9.7

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.
data/spec/spec_helper.rb CHANGED
@@ -8,6 +8,10 @@ File.join(File.dirname(__FILE__), %w[.. lib ffi-rzmq]))
8
8
  require 'thread' # necessary when testing in MRI 1.8 mode
9
9
  Thread.abort_on_exception = true
10
10
 
11
+ require 'openssl'
12
+ require 'socket'
13
+ require 'securerandom'
14
+
11
15
  # define some version guards so we can turn on/off specs based upon
12
16
  # the version of the 0mq library that is loaded
13
17
  def version2?
@@ -43,24 +47,24 @@ module APIHelper
43
47
  :zmq_sterror => @err_str_mock
44
48
  )
45
49
  end
46
-
50
+
47
51
  def poller_setup
48
52
  @helper_poller ||= ZMQ::Poller.new
49
53
  end
50
-
54
+
51
55
  def poller_register_socket(socket)
52
56
  @helper_poller.register(socket, ZMQ::POLLIN)
53
57
  end
54
-
58
+
55
59
  def poller_deregister_socket(socket)
56
60
  @helper_poller.deregister(socket, ZMQ::POLLIN)
57
61
  end
58
-
62
+
59
63
  def poll_delivery
60
64
  # timeout after 1 second
61
65
  @helper_poller.poll(1000)
62
66
  end
63
-
67
+
64
68
  def poll_it_for_read(socket, &blk)
65
69
  poller_register_socket(socket)
66
70
  blk.call
@@ -0,0 +1,15 @@
1
+ -----BEGIN CERTIFICATE-----
2
+ MIICRzCCAbCgAwIBAgIJAIhPfXaKAijbMA0GCSqGSIb3DQEBBQUAMCIxCzAJBgNV
3
+ BAYTAlhZMRMwEQYDVQQIEwpOZXJ2ZXJsYW5kMB4XDTEyMDgyODE2NDIzMloXDTEz
4
+ MDgyODE2NDIzMlowIjELMAkGA1UEBhMCWFkxEzARBgNVBAgTCk5lcnZlcmxhbmQw
5
+ gZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAPTe1/MFg4gGjB5Kx/XzP5HQys2k
6
+ R+X7+h+cG7jz9p8mNiW/G54WQX7z4EzLrSFrNdX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9
+ FUaKguL1GQJBAPWZK/+Gs7LF6GqkANu+FOVhe9zxbffvZ+ibvDraB7fvgay+TwYi
10
+ 88J6IhSp30F/tUtTGRl2UyszXLXbAAxpC08CQCwQTFVPOPlHKTeupRDSvoMZNbnV
11
+ F+LwIAspFi5VsxVz42zSVVCArnPeq+kmHIfoYtRuHvnrCNMUsH4ByZPC/rECQQDO
12
+ GJ+Haq5ZkyKaes4NmNFIPCoJGsDBkrGLzUSDznszq1USdREzgRk1VfBLjtG+0UB9
13
+ 2VnyuAzK7+sY4JKF15CZAkAewe1vMGsFAXYojCI+wsDVlvlGTFmAZYnXE4hUVft+
14
+ j/XwOPp7WiWl9dgJ25wQrkYOrYMkZ9SqHO0SSxeSo2yT
15
+ -----END RSA PRIVATE KEY-----
metadata CHANGED
@@ -1,75 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffi-rzmq
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 0.9.6
4
+ version: 0.9.7
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Chuck Remes
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-08 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
16
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
19
  - - ! '>='
19
20
  - !ruby/object:Gem::Version
20
- version: !binary |-
21
- MA==
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
22
25
  none: false
23
- requirement: !ruby/object:Gem::Requirement
24
26
  requirements:
25
27
  - - ! '>='
26
28
  - !ruby/object:Gem::Version
27
- version: !binary |-
28
- MA==
29
- none: false
30
- prerelease: false
31
- type: :runtime
29
+ version: '0'
32
30
  - !ruby/object:Gem::Dependency
33
31
  name: rspec
34
- version_requirements: !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
35
34
  requirements:
36
35
  - - ~>
37
36
  - !ruby/object:Gem::Version
38
37
  version: '2.6'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
39
41
  none: false
40
- requirement: !ruby/object:Gem::Requirement
41
42
  requirements:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: '2.6'
45
- none: false
46
- prerelease: false
47
- type: :development
48
46
  - !ruby/object:Gem::Dependency
49
47
  name: rake
50
- version_requirements: !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
51
50
  requirements:
52
51
  - - ! '>='
53
52
  - !ruby/object:Gem::Version
54
- version: !binary |-
55
- MA==
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
56
57
  none: false
57
- requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
- version: !binary |-
62
- MA==
63
- none: false
64
- prerelease: false
65
- type: :development
66
- description: This gem wraps the ZeroMQ networking library using the ruby FFI (foreign
61
+ version: '0'
62
+ description: ! 'This gem wraps the ZeroMQ networking library using the ruby FFI (foreign
67
63
 
68
- function interface). It's a pure ruby wrapper so this gem can be loaded
64
+ function interface). It''s a pure ruby wrapper so this gem can be loaded
69
65
 
70
- and run by any ruby runtime that supports FFI. That's all of them -
66
+ and run by any ruby runtime that supports FFI. That''s all of the major ones -
71
67
 
72
- MRI 1.9.x, Rubinius and JRuby.
68
+ MRI, Rubinius and JRuby.'
73
69
  email:
74
70
  - git@chuckremes.com
75
71
  executables: []
@@ -78,6 +74,7 @@ extra_rdoc_files: []
78
74
  files:
79
75
  - .bnsignore
80
76
  - .gitignore
77
+ - .travis.yml
81
78
  - AUTHORS.txt
82
79
  - Gemfile
83
80
  - History.txt
@@ -121,10 +118,12 @@ files:
121
118
  - lib/ffi-rzmq/libzmq.rb
122
119
  - lib/ffi-rzmq/message.rb
123
120
  - lib/ffi-rzmq/poll.rb
121
+ - lib/ffi-rzmq/poll_item.rb
124
122
  - lib/ffi-rzmq/poll_items.rb
125
123
  - lib/ffi-rzmq/socket.rb
126
124
  - lib/ffi-rzmq/util.rb
127
125
  - lib/ffi-rzmq/version.rb
126
+ - lib/io_extensions.rb
128
127
  - spec/context_spec.rb
129
128
  - spec/device_spec.rb
130
129
  - spec/message_spec.rb
@@ -135,32 +134,33 @@ files:
135
134
  - spec/reqrep_spec.rb
136
135
  - spec/socket_spec.rb
137
136
  - spec/spec_helper.rb
137
+ - spec/support/test.crt
138
+ - spec/support/test.key
138
139
  homepage: http://github.com/chuckremes/ffi-rzmq
139
140
  licenses: []
140
- post_install_message:
141
+ post_install_message:
141
142
  rdoc_options: []
142
143
  require_paths:
143
144
  - lib
144
145
  required_ruby_version: !ruby/object:Gem::Requirement
146
+ none: false
145
147
  requirements:
146
148
  - - ! '>='
147
149
  - !ruby/object:Gem::Version
148
- version: !binary |-
149
- MA==
150
- none: false
150
+ version: '0'
151
151
  required_rubygems_version: !ruby/object:Gem::Requirement
152
+ none: false
152
153
  requirements:
153
154
  - - ! '>='
154
155
  - !ruby/object:Gem::Version
155
- version: !binary |-
156
- MA==
157
- none: false
156
+ version: '0'
158
157
  requirements: []
159
158
  rubyforge_project: ffi-rzmq
160
159
  rubygems_version: 1.8.24
161
- signing_key:
160
+ signing_key:
162
161
  specification_version: 3
163
- summary: This gem wraps the ZeroMQ (0mq) networking library using Ruby FFI (foreign function interface).
162
+ summary: This gem wraps the ZeroMQ (0mq) networking library using Ruby FFI (foreign
163
+ function interface).
164
164
  test_files:
165
165
  - spec/context_spec.rb
166
166
  - spec/device_spec.rb
@@ -172,3 +172,5 @@ test_files:
172
172
  - spec/reqrep_spec.rb
173
173
  - spec/socket_spec.rb
174
174
  - spec/spec_helper.rb
175
+ - spec/support/test.crt
176
+ - spec/support/test.key