ffi-rzmq 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -3
- data/AUTHORS.txt +3 -1
- data/History.txt +13 -0
- data/ffi-rzmq.gemspec +1 -1
- data/lib/ffi-rzmq/context.rb +1 -1
- data/lib/ffi-rzmq/version.rb +1 -1
- data/spec/context_spec.rb +1 -1
- data/spec/support/generate_keys_and_certs.rb +41 -0
- data/spec/support/test.crt +26 -13
- data/spec/support/test.key +49 -13
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 403a3126661f6dc781b72e58f03a2c6b84e38c8d72e9f4b25115c44731aef8e7
|
4
|
+
data.tar.gz: 86bd066c1eddd598e67387144e21e45875e2fd79e8a57c6d38c56f04a11b2f19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8704b9f4d77c7a3dba2381dfea0a8cc96604b453c4e042162c0410371bea0207433b8348b954398c5855427e6f4efc8b51a437a7abe4582f4de1d73e42ed17c1
|
7
|
+
data.tar.gz: a4df109b2adcc9b18ea2f772bac5d1130b33b7066a8c1160706cc201c0aa08f58acbef56b44c53a9151c38f9bcb553ccb2ede46182bfdaf9d79bccf85a7b4b08
|
data/.travis.yml
CHANGED
data/AUTHORS.txt
CHANGED
data/History.txt
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
== 2.0.7
|
2
|
+
* Fix Issue #130
|
3
|
+
Fix to better support Zeromq 3.x users when performing context termination.
|
4
|
+
Support library ffi-rzmq-core was updated to handle this support, so
|
5
|
+
we now have a minimum dependency of ffi-rzmq-core 1.0.7 on this gem.
|
6
|
+
|
7
|
+
* Fix Issue #131
|
8
|
+
Update the OpenSSL key and certificate files. Original files were 1024 bits
|
9
|
+
but this causes problems on some modern Linux (e.g. Debian) which complains
|
10
|
+
about the key length. Updated to 4096 bits. Copied the key and cert
|
11
|
+
generation scripts from the Debian repository with attribution. Thanks to
|
12
|
+
@boutil for the helper script and the bug report.
|
13
|
+
|
1
14
|
== 2.0.6
|
2
15
|
* Fix for uncaught exception. Strange case... somehow calling
|
3
16
|
`zmq_ctx_term` was returning nil, so when checking the result code it
|
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.
|
24
|
+
s.add_runtime_dependency "ffi-rzmq-core", [">= 1.0.7"]
|
25
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/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(:terminate_context).with(ctx.pointer).and_return(0)
|
89
89
|
ctx.terminate
|
90
90
|
end
|
91
91
|
end # context terminate
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# Copied from Debian:
|
2
|
+
# https://salsa.debian.org/ruby-team/ruby-ffi-rzmq/commit/15ad9dd6f4c3358acbd7db2c7e288aae2d5efcf8
|
3
|
+
#
|
4
|
+
# Script should be run from the spec/support directory.
|
5
|
+
#
|
6
|
+
|
7
|
+
require "openssl"
|
8
|
+
|
9
|
+
key = OpenSSL::PKey::RSA.new 4096
|
10
|
+
|
11
|
+
open 'private_key.pem', 'w' do |io| io.write key.to_pem end
|
12
|
+
open 'public_key.pem', 'w' do |io| io.write key.public_key.to_pem end
|
13
|
+
|
14
|
+
|
15
|
+
name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example'
|
16
|
+
|
17
|
+
cert = OpenSSL::X509::Certificate.new
|
18
|
+
cert.version = 2
|
19
|
+
cert.serial = 0
|
20
|
+
cert.not_before = Time.now
|
21
|
+
cert.not_after = Time.now + 3600*24*365*10
|
22
|
+
|
23
|
+
cert.public_key = key.public_key
|
24
|
+
cert.subject = name
|
25
|
+
cert.issuer = name
|
26
|
+
|
27
|
+
extension_factory = OpenSSL::X509::ExtensionFactory.new
|
28
|
+
extension_factory.subject_certificate = cert
|
29
|
+
extension_factory.issuer_certificate = cert
|
30
|
+
|
31
|
+
cert.add_extension \
|
32
|
+
extension_factory.create_extension('subjectKeyIdentifier', 'hash')
|
33
|
+
cert.sign key, OpenSSL::Digest::SHA1.new
|
34
|
+
open 'ca.pem', 'w' do |io|
|
35
|
+
io.write cert.to_pem
|
36
|
+
end
|
37
|
+
|
38
|
+
require 'fileutils'
|
39
|
+
|
40
|
+
FileUtils.cp 'ca.pem', 'test.crt'
|
41
|
+
FileUtils.cp 'private_key.pem', 'test.key'
|
data/spec/support/test.crt
CHANGED
@@ -1,15 +1,28 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
2
|
+
MIIE1DCCArygAwIBAgIBADANBgkqhkiG9w0BAQUFADAcMRowGAYDVQQDDBFub2Jv
|
3
|
+
ZHkvREM9ZXhhbXBsZTAeFw0xOTAxMDUxNjAxMThaFw0yOTAxMDIxNjAxMThaMBwx
|
4
|
+
GjAYBgNVBAMMEW5vYm9keS9EQz1leGFtcGxlMIICIjANBgkqhkiG9w0BAQEFAAOC
|
5
|
+
Ag8AMIICCgKCAgEA5oQhrlSbC9UjEihMsnoF4JFk38HVOkiVR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
|
50
|
+
u2wiNaNCr9HpKYIWX/PkHOadFak95KlBiFoAVwMDKQp27RmgPnGHdQGCXvUppg==
|
15
51
|
-----END RSA PRIVATE KEY-----
|
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.7
|
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: 2019-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi-rzmq-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.
|
19
|
+
version: 1.0.7
|
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.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -109,6 +109,7 @@ files:
|
|
109
109
|
- spec/reqrep_spec.rb
|
110
110
|
- spec/socket_spec.rb
|
111
111
|
- spec/spec_helper.rb
|
112
|
+
- spec/support/generate_keys_and_certs.rb
|
112
113
|
- spec/support/test.crt
|
113
114
|
- spec/support/test.key
|
114
115
|
- spec/util_spec.rb
|
@@ -149,6 +150,7 @@ test_files:
|
|
149
150
|
- spec/reqrep_spec.rb
|
150
151
|
- spec/socket_spec.rb
|
151
152
|
- spec/spec_helper.rb
|
153
|
+
- spec/support/generate_keys_and_certs.rb
|
152
154
|
- spec/support/test.crt
|
153
155
|
- spec/support/test.key
|
154
156
|
- spec/util_spec.rb
|