reso_api 1.8.11 → 1.8.12

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: e81ebb68ef64ed1eb595cf0a92fd03044c03b28e84d40a31fa49e7660ab65a08
4
- data.tar.gz: 508a035516cbbf60b0d7d606a6277edcf0e72cfb063cf5f2497761f9e1b71d7f
3
+ metadata.gz: e3cb2e251bb0012fb425337a94a97c8015cc478687ac72f8d7915598c75eed53
4
+ data.tar.gz: 8670d59a706aa895795e8ff03d180dd2ddec49c5d882b8ed46eafa7c35f7af5a
5
5
  SHA512:
6
- metadata.gz: 426229c6c88d7cf4e91f6237989a94b91086af2ef9ad04063638c5ac230851fdccd7a9520d6c30c587cb43009eb93505b93136bb40d2d5894d443fadce286a97
7
- data.tar.gz: 56f7d6afc8f864cec994b91a1ca8906ef7b48e9209d51fa7e4a8974e03210e254d77f40ccd8e4a238653fbbc47497d6139f3d80d11f161033ac1bb9a5187babc
6
+ metadata.gz: 24bf2687c88bd99184ee1e341a3378c19e91385ad025e8dd9a46d35d3e6d8593bf32125a4d9ab06be2a789bd34c894aeeafbab524547b05156c2d8f1267b24dd
7
+ data.tar.gz: e3ad4b195f9b690d2b40faf18c4fdefbf747eb9ed4f9fc8cf083a152d3a345512a21212a4eb67c8750e08ddbef1364f7df435c6dcf64506b7bf70fe1c21384c0
@@ -242,9 +242,21 @@ module RESO
242
242
  begin
243
243
  req = Net::HTTP::Get.new(uri.request_uri)
244
244
  req['Authorization'] = "Bearer #{auth_token}"
245
- res = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
246
- http.request(req)
245
+
246
+ # Configure HTTP object before starting connection
247
+ http = Net::HTTP.new(uri.host, uri.port)
248
+ http.use_ssl = (uri.scheme == 'https')
249
+
250
+ if http.use_ssl?
251
+ # Configure certificate store to avoid CRL checking issues with OpenSSL 3.5+
252
+ # This maintains certificate chain verification while preventing CRL-related failures
253
+ http.verify_mode = OpenSSL::SSL::VERIFY_PEER
254
+ store = OpenSSL::X509::Store.new
255
+ store.set_default_paths
256
+ http.cert_store = store
247
257
  end
258
+
259
+ res = http.request(req)
248
260
  response = JSON(res.body) rescue res.body
249
261
  if response.is_a?(String) && response.include?('Bad Gateway')
250
262
  puts "Error: Bad Gateway." if debug
@@ -1,3 +1,3 @@
1
1
  module ResoApi
2
- VERSION = "1.8.11"
2
+ VERSION = "1.8.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reso_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.11
4
+ version: 1.8.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Edlund