jets-api 0.2.2 → 0.2.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: 51468ca624c4c38cb0195a8d607d3237feafb9aa835b33c2d8d5f545ad665af2
4
- data.tar.gz: 01a6654c2aa40b6fa26b13f4d6227ffa954c40e17825d70b51e88d61e1094348
3
+ metadata.gz: b4261e3e051e0cd1697876dc4c80275f1362de52fe457d8758dcbffb684132ef
4
+ data.tar.gz: 8650c84846bb5c354ed92d26bac84a2b96ab63c12328ac905b365ee3d5b2ef25
5
5
  SHA512:
6
- metadata.gz: 3b1c5fd73342ab8a586797e7c631fb2c9590be9f461c9ac7e6f8efd2a4b96cc67fa6b4542f9ce2315897cc7e2a0e6a43b4f10e6d07ce125af0a94c27ac190d93
7
- data.tar.gz: 46e54fbcd532c31279c04bdb0fc99f73ee36030f2d5d809f3f0486c10b50c6dc55520967ae0b0d6e62713707708fc10a2648e9a2b4ab6fd2ba53636e5c6d3d19
6
+ metadata.gz: e5da593f9526858027bb405d6009c98d54f2ff005f01eec429163fb86bd2e65c8b014ae6345a6ba25c10fb5dbba8bb357a3502b1e237c6b7cb013babe91fb26c
7
+ data.tar.gz: d4ccd57b348cd59574f0dcd2a49cd797f3f9abede91ddbcbb193bd40234894897f81b53ef17b9a8c9e666cf7be60cf8d25c3273492a3fc482051b81f1b49f935
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.2.3] - 2025-10-16
7
+ - handle http ssl true for newer ruby versions
8
+ - remove report without threads for http ssl true thread safety
9
+
6
10
  ## [0.2.2] - 2025-10-11
7
11
  - fix clean up gem variants
8
12
 
data/lib/jets/api/core.rb CHANGED
@@ -77,7 +77,14 @@ module Jets::Api
77
77
  uri = URI(endpoint)
78
78
  http = Net::HTTP.new(uri.host, uri.port)
79
79
  http.open_timeout = http.read_timeout = 30
80
- http.use_ssl = true if uri.scheme == "https"
80
+ if uri.scheme == "https"
81
+ http.use_ssl = true
82
+ # Fix for Ruby 3.4+ where SSL context is frozen by default
83
+ # Create a new SSL context to avoid frozen object modification
84
+ if http.respond_to?(:ssl_context=)
85
+ http.ssl_context = OpenSSL::SSL::SSLContext.new
86
+ end
87
+ end
81
88
  http
82
89
  end
83
90
  memoize :http
@@ -9,15 +9,9 @@ class Jets::Api::Gems
9
9
  end
10
10
 
11
11
  def report(gems)
12
- threads = []
13
12
  gems.each do |gem_name|
14
- threads << Thread.new do
15
- Jets::Api::Gems.report(gem_name: gem_name)
16
- end
13
+ Jets::Api::Gems.report(gem_name: gem_name)
17
14
  end
18
- # Wait for request to finish because the command might finish before
19
- # the Threads even send the request. So we join them just case
20
- threads.each(&:join)
21
15
  end
22
16
  end
23
17
  end
@@ -1,5 +1,5 @@
1
1
  module Jets
2
2
  module Api
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,16 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jets-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-10-11 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
- description:
14
12
  email:
15
13
  - tongueroo@gmail.com
16
14
  executables: []
@@ -45,7 +43,6 @@ licenses:
45
43
  - MIT
46
44
  metadata:
47
45
  homepage_uri: https://github.com/rubyonjets/jets-api
48
- post_install_message:
49
46
  rdoc_options: []
50
47
  require_paths:
51
48
  - lib
@@ -60,8 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
57
  - !ruby/object:Gem::Version
61
58
  version: '0'
62
59
  requirements: []
63
- rubygems_version: 3.4.19
64
- signing_key:
60
+ rubygems_version: 3.7.2
65
61
  specification_version: 4
66
62
  summary: Jets API Client Library for Jets Ruby Serverless Framework
67
63
  test_files: []