Skip to content

Commit c7e46b9

Browse files
committed
feat(gems): add non-default gems to the gemspec
Starting in Ruby 3.5.0, the `logger` and `ostruct` will not be part of the default gem and will need to be manually vendored. Example output with warnings: ``` /entitlements/vendor/gems/ruby/3.3.0/gems/concurrent-ruby-1.3.3/lib/concurrent-ruby/concurrent/concern/deprecation.rb:1: warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. You can add logger to your Gemfile or gemspec to silence this warning. /entitlements/bin/deploy-entitlements:27: warning: ostruct was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0. You can add ostruct to your Gemfile or gemspec to silence this warning. ```
1 parent 880ebf2 commit c7e46b9

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

Gemfile.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ PATH
44
entitlements-app (1.0.0)
55
concurrent-ruby (~> 1.3, >= 1.3.1)
66
faraday (~> 2.0)
7+
logger (~> 1.6)
78
net-ldap (~> 0.19)
89
octokit (~> 4.18)
910
optimist (~> 3.1)
11+
ostruct (~> 0.6.0)
1012

1113
GEM
1214
remote: https://rubygems.org/
@@ -50,6 +52,7 @@ GEM
5052
reline (>= 0.4.2)
5153
json (2.7.2)
5254
language_server-protocol (3.17.0.3)
55+
logger (1.6.1)
5356
minitest (5.23.1)
5457
mutex_m (0.2.0)
5558
net-http (0.4.1)
@@ -59,6 +62,7 @@ GEM
5962
faraday (>= 1, < 3)
6063
sawyer (~> 0.9)
6164
optimist (3.1.0)
65+
ostruct (0.6.0)
6266
parallel (1.24.0)
6367
parser (3.3.1.0)
6468
ast (~> 2.4.1)

entitlements-app.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Gem::Specification.new do |s|
2121
s.add_dependency "net-ldap", "~> 0.19"
2222
s.add_dependency "octokit", "~> 4.18"
2323
s.add_dependency "optimist", "~> 3.1"
24+
s.add_dependency "ostruct", "~> 0.6.0"
25+
s.add_dependency "logger", "~> 1.6"
2426

2527
s.add_development_dependency "debug", "<= 1.8.0"
2628
s.add_development_dependency "rake", "~> 13.2", ">= 13.2.1"

vendor/cache/logger-1.6.1.gem

13.5 KB
Binary file not shown.

vendor/cache/ostruct-0.6.0.gem

11.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)