lucarecord 0.8.1 → 0.8.3
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/CHANGELOG.md +8 -0
- data/lib/luca_record/version.rb +1 -1
- data/lib/luca_support/code.rb +1 -1
- data/lib/luca_support/mail.rb +9 -2
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a4e9ef9ce23e3fad55482f2c233558788299a023e50668cfb36b6442e7a47710
|
|
4
|
+
data.tar.gz: e41115ce664e4c649f684e1bd8d98d7dcfecc7d3237b0b1ed519641ee6df02a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3b2bfcb8b4970e73336c8a0c649eb49a25b7e80e6b75f3fa9c10497c0642af20b8e86ca2529e5dbcb8d86649483b909ed3736a1ac8db58cfb3585c36d7c8381
|
|
7
|
+
data.tar.gz: cfee09196fdbf494aa93be3f493fd0b97b84a70fff4d219adff32f30fa258728d67b5faf611ae562be0a7c9285b678591962f25c90416d514fd3d5641320516b
|
data/CHANGELOG.md
CHANGED
data/lib/luca_record/version.rb
CHANGED
data/lib/luca_support/code.rb
CHANGED
|
@@ -214,7 +214,7 @@ module LucaSupport # :nodoc:
|
|
|
214
214
|
|
|
215
215
|
latest = target
|
|
216
216
|
.reject { |a| a['defunct'] && Date.parse(a['defunct'].to_s) < date }
|
|
217
|
-
.
|
|
217
|
+
.reject { |a| a['effective'] && Date.parse(a['effective'].to_s) > date }
|
|
218
218
|
.max { |a, b| Date.parse(a['effective'].to_s) <=> Date.parse(b['effective'].to_s) }
|
|
219
219
|
|
|
220
220
|
latest&.dig('val') || latest
|
data/lib/luca_support/mail.rb
CHANGED
|
@@ -60,10 +60,17 @@ module LucaSupport
|
|
|
60
60
|
return nil if ca_file.nil? && c_cert_path.nil? && c_key_path.nil?
|
|
61
61
|
|
|
62
62
|
tls_ctx = OpenSSL::SSL::SSLContext.new
|
|
63
|
-
tls_ctx.cert = c_cert_path ?
|
|
64
|
-
OpenSSL::X509::Certificate.new(File.read(c_cert_path)) : nil
|
|
65
63
|
tls_ctx.key = c_key_path ?
|
|
66
64
|
OpenSSL::PKey::RSA.new(File.read(c_key_path)) : nil
|
|
65
|
+
certs = if c_cert_path
|
|
66
|
+
File.read(c_cert_path)
|
|
67
|
+
.scan(/-----BEGIN CERTIFICATE-----(?:.|\n)*?-----END CERTIFICATE-----/)
|
|
68
|
+
.map { |pem| OpenSSL::X509::Certificate.new(pem) }
|
|
69
|
+
else
|
|
70
|
+
nil
|
|
71
|
+
end
|
|
72
|
+
tls_ctx.cert = certs.shift if certs&.any?
|
|
73
|
+
tls_ctx.extra_chain_cert = certs if certs&.any?
|
|
67
74
|
tls_ctx.ca_file = ca_file
|
|
68
75
|
tls_ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER if ca_file || @host[:openssl_verify_mode]
|
|
69
76
|
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lucarecord
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chuma Takahiro
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bundler
|
|
@@ -83,7 +82,6 @@ metadata:
|
|
|
83
82
|
homepage_uri: https://github.com/chumaltd/luca/tree/master/lucarecord
|
|
84
83
|
source_code_uri: https://github.com/chumaltd/luca/tree/master/lucarecord
|
|
85
84
|
changelog_uri: https://github.com/chumaltd/luca/tree/master/lucarecord/CHANGELOG.md
|
|
86
|
-
post_install_message:
|
|
87
85
|
rdoc_options: []
|
|
88
86
|
require_paths:
|
|
89
87
|
- lib
|
|
@@ -98,8 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
98
96
|
- !ruby/object:Gem::Version
|
|
99
97
|
version: '0'
|
|
100
98
|
requirements: []
|
|
101
|
-
rubygems_version: 3.
|
|
102
|
-
signing_key:
|
|
99
|
+
rubygems_version: 3.6.7
|
|
103
100
|
specification_version: 4
|
|
104
101
|
summary: ERP File operation framework
|
|
105
102
|
test_files: []
|