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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43e4eb24c71ea14be0af8bcaa20ff15806b3f13fde5d9b0766f4554c725354e0
4
- data.tar.gz: 76a9001610ac76dcb2904c500bce4283ce57612e6f7ac0d42da76f818eadf05a
3
+ metadata.gz: a4e9ef9ce23e3fad55482f2c233558788299a023e50668cfb36b6442e7a47710
4
+ data.tar.gz: e41115ce664e4c649f684e1bd8d98d7dcfecc7d3237b0b1ed519641ee6df02a5
5
5
  SHA512:
6
- metadata.gz: 493c82233012f4db8e001a04c65d8b010979835e61d04d6f6c0659de6b0557fef8085efa433748f63fdb02548943020a6574caaca24a2663d58eee8e5cad5235
7
- data.tar.gz: 458ebf81b4639ec305e6b99cd0ebbfe3617d46538487a9cf781cdb32f3ca483b02b9c90de746457ddfc26d80e26a4169e688796beb0367b788df532d465d36e7
6
+ metadata.gz: d3b2bfcb8b4970e73336c8a0c649eb49a25b7e80e6b75f3fa9c10497c0642af20b8e86ca2529e5dbcb8d86649483b909ed3736a1ac8db58cfb3585c36d7c8381
7
+ data.tar.gz: cfee09196fdbf494aa93be3f493fd0b97b84a70fff4d219adff32f30fa258728d67b5faf611ae562be0a7c9285b678591962f25c90416d514fd3d5641320516b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## LucaRecord 0.8.3
2
+
3
+ * Fix: over-filtering `parse_current()`
4
+
5
+ ## LucaRecord 0.8.2
6
+
7
+ * setup CA cert chain for mTLS.
8
+
1
9
  ## LucaRecord 0.8.1
2
10
 
3
11
  * Merge config in parent directory, when the parent is git repo root.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucaRecord
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.3'
5
5
  end
@@ -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
- .filter { |a| a['effective'] && Date.parse(a['effective'].to_s) < date }
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
@@ -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.1
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: 2025-12-08 00:00:00.000000000 Z
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.4.20
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: []