jets-api 0.2.2 → 0.2.4

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: e155057ef3033cd024ded491f6d9b844f71a63466a23943f6c172c7888027d1d
4
+ data.tar.gz: 603ecb9045b256b86a3d151377cdd259abb3353b7439ad15bd90dadfe51f4fdb
5
5
  SHA512:
6
- metadata.gz: 3b1c5fd73342ab8a586797e7c631fb2c9590be9f461c9ac7e6f8efd2a4b96cc67fa6b4542f9ce2315897cc7e2a0e6a43b4f10e6d07ce125af0a94c27ac190d93
7
- data.tar.gz: 46e54fbcd532c31279c04bdb0fc99f73ee36030f2d5d809f3f0486c10b50c6dc55520967ae0b0d6e62713707708fc10a2648e9a2b4ab6fd2ba53636e5c6d3d19
6
+ metadata.gz: '01284a24ebd978451266ae46524981dd761fb314790d44e324b490e1884ad6826080e70147b059db0a908582422d87b19ec91ea1d45dbfdfda79d90e1a602fa5'
7
+ data.tar.gz: 3079ac2af85492e737e6cc1f013e85e53321a67090891a0df6028027fa48a6aa7ca8f3b20908623abdb3bc17b8d4efeaf9f4690964172f480186c907b8cd0aa9
data/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
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.4] - 2026-10-29
7
+ - check only resolved application gems to avoid reporting unrelated Ruby default gems as missing
8
+
9
+ ## [0.2.3] - 2025-10-16
10
+ - handle http ssl true for newer ruby versions
11
+ - remove report without threads for http ssl true thread safety
12
+
6
13
  ## [0.2.2] - 2025-10-11
7
14
  - fix clean up gem variants
8
15
 
@@ -29,4 +36,4 @@ This project *tries* to adhere to [Semantic Versioning](http://semver.org/), eve
29
36
  - use Jets.project_name
30
37
 
31
38
  ## [0.1.0]
32
- - Initial release
39
+ - Initial release
data/README.md CHANGED
@@ -9,3 +9,7 @@
9
9
  Jets API Client Library for Jets Ruby Serverless Framework.
10
10
 
11
11
  This library works with Jets Pro API to help provide additional features to the [Jets Serverless Framework](https://rubyonjets.com).
12
+
13
+ `jets gems:check` checks native gems in the application's resolved bundle.
14
+ Ruby's unrelated default gems are excluded; their bundled versions may not be
15
+ published on RubyGems.
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
@@ -211,7 +211,9 @@ class Jets::Api::Gems
211
211
  # Thanks: https://gist.github.com/aelesbao/1414b169a79162b1d795 and
212
212
  # https://stackoverflow.com/questions/5165950/how-do-i-get-a-list-of-gems-that-are-installed-that-have-native-extensions
213
213
  def gemspec_compiled_gems
214
- specs = Gem::Specification.each.select { |spec| spec.extensions.any? }
214
+ # Ruby also exposes default gems outside this application's bundle.
215
+ # Some of those versions are runtime-only and cannot be built from RubyGems.
216
+ specs = Bundler.load.specs.select { |spec| spec.extensions.any? }
215
217
  specs.reject! { |spec| weird_gem?(spec.name) }
216
218
  specs.map(&:full_name)
217
219
  end
@@ -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.4"
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.4
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: 4.0.18
65
61
  specification_version: 4
66
62
  summary: Jets API Client Library for Jets Ruby Serverless Framework
67
63
  test_files: []