milady-cima-api 0.5.0 → 0.5.1

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: 3b27f1849aacecfc77119f05d9c7454f58a604c0a95dc0986482be70002b0ac7
4
- data.tar.gz: 7148bc31ae740a1c57d2a8be54f8cb5ceed2e09e0729f88a256bf25889b3e229
3
+ metadata.gz: 2aaad5052e67c719bbf81aa0bf40493865049dc2a75d6e2b429c0a41f222423f
4
+ data.tar.gz: 6152b2c8620b19c94cfad4b9b889cf508fb1050da2345f7b9c5c39f207687e7a
5
5
  SHA512:
6
- metadata.gz: c4ad1b152a1a233bfe35c77118f91ee53d8c3d9192e32fa2f6f61af3940941e46fbbfb639c856b768f968d445e14b48261b2926bdc3fb95bc2dfb331624aacfb
7
- data.tar.gz: 9c51b3a72315b0388dffa0d9c17266514b158a0184cc5de0df8bd7a9069e0e04271e4f469d6fb722d0a208072c2e7c014d91e8af0251f79d43b725196f0083ac
6
+ metadata.gz: bb2e79691071cb967e6b5f5c874c174994d081b9c15acdea8fca92b006038c3299ca4ef79479e8c69313339e10dadc68bcd990ae2218fc1558de66d23f9494e6
7
+ data.tar.gz: 406ad4d1a9ba63daa511a575ff1520f1e695af2ebb8f2a21d9d2792d0a005ab28e0a64f917045e86e4b2899242c6fe548018a815f526b99d0722936799e1149a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.5.1] - 2025-12-05
4
+ ### Fixed
5
+ - Fixed SSL certificate verification error in `Client` by explicitly configuring `OpenSSL::X509::Store` with default paths.
6
+
3
7
  ## [0.5.0] - 2025-12-05
4
8
 
5
9
  ### Added
@@ -102,7 +102,17 @@ module MiLadyCimaApi
102
102
  def perform_request(uri, request)
103
103
  http = Net::HTTP.new(uri.host, uri.port)
104
104
  http.use_ssl = uri.scheme == 'https'
105
- http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless verify_ssl
105
+
106
+ if http.use_ssl?
107
+ http.verify_mode = verify_ssl ? OpenSSL::SSL::VERIFY_PEER : OpenSSL::SSL::VERIFY_NONE
108
+
109
+ if verify_ssl
110
+ store = OpenSSL::X509::Store.new
111
+ store.set_default_paths
112
+ http.cert_store = store
113
+ end
114
+ end
115
+
106
116
  response = http.request(request)
107
117
  handle_response(response)
108
118
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module MiLadyCimaApi
4
4
  # Gem version
5
- VERSION = "0.5.0"
5
+ VERSION = "0.5.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: milady-cima-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - marcus.salinas