raktr 0.2.0 → 0.2.2
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/lib/raktr/connection/tls.rb +5 -3
- data/lib/raktr/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fd5cf6d16900731f66f620fd454139c33bc4db4ab835f94c2b360d7d724ff61a
|
|
4
|
+
data.tar.gz: '0268382dc51156add1efff81366fbec34a301fba0cf204a728a92af827287ddb'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b2116dc2517e06d955937aecbf2077f263460b9db53dd5a4ffaa2d04dade5a3efa71a94d0b020e0a3fb715b1c0c60aab7a2ddfe6f52e3456eb8cae797b32347
|
|
7
|
+
data.tar.gz: 699cfc8f0ea232faa31997a80afeead761c60eabef54fa0f4e91d2d22b389235ad9ab7ef20dd8749d8adf7089a869aaa3252e0e16e590c5a42e4e6f31e0cc317
|
data/lib/raktr/connection/tls.rb
CHANGED
|
@@ -41,15 +41,17 @@ module TLS
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
if certificate && private_key && public_key && ca
|
|
44
|
-
|
|
44
|
+
# Cache PEM *contents* — caching File handles caused EOF on the
|
|
45
|
+
# second read of the same path.
|
|
46
|
+
CERTIFICATES[certificate] ||= File.read( certificate )
|
|
45
47
|
@ssl_context.cert =
|
|
46
48
|
OpenSSL::X509::Certificate.new( CERTIFICATES[certificate] )
|
|
47
49
|
|
|
48
|
-
CERTIFICATES[private_key] ||= File.
|
|
50
|
+
CERTIFICATES[private_key] ||= File.read( private_key )
|
|
49
51
|
@ssl_context.key =
|
|
50
52
|
OpenSSL::PKey::RSA.new( CERTIFICATES[private_key] )
|
|
51
53
|
|
|
52
|
-
CERTIFICATES[public_key] ||= File.
|
|
54
|
+
CERTIFICATES[public_key] ||= File.read( public_key )
|
|
53
55
|
@ssl_context.cert.public_key =
|
|
54
56
|
OpenSSL::PKey::RSA.new( CERTIFICATES[public_key] )
|
|
55
57
|
|
data/lib/raktr/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: raktr
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tasos Laskos
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01
|
|
11
|
+
date: 2026-05-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mutex_m
|
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
114
114
|
- !ruby/object:Gem::Version
|
|
115
115
|
version: '0'
|
|
116
116
|
requirements: []
|
|
117
|
-
rubygems_version: 3.4.
|
|
117
|
+
rubygems_version: 3.4.19
|
|
118
118
|
signing_key:
|
|
119
119
|
specification_version: 4
|
|
120
120
|
summary: A pure-Ruby implementation of the Reactor pattern.
|