Skip to content

Commit

Permalink
feat(gems): add non-default gems to the gemspec
Browse files Browse the repository at this point in the history
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.
```
  • Loading branch information
nobe4 committed Sep 27, 2024
1 parent 880ebf2 commit c7e46b9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ PATH
entitlements-app (1.0.0)
concurrent-ruby (~> 1.3, >= 1.3.1)
faraday (~> 2.0)
logger (~> 1.6)
net-ldap (~> 0.19)
octokit (~> 4.18)
optimist (~> 3.1)
ostruct (~> 0.6.0)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -50,6 +52,7 @@ GEM
reline (>= 0.4.2)
json (2.7.2)
language_server-protocol (3.17.0.3)
logger (1.6.1)
minitest (5.23.1)
mutex_m (0.2.0)
net-http (0.4.1)
Expand All @@ -59,6 +62,7 @@ GEM
faraday (>= 1, < 3)
sawyer (~> 0.9)
optimist (3.1.0)
ostruct (0.6.0)
parallel (1.24.0)
parser (3.3.1.0)
ast (~> 2.4.1)
Expand Down
2 changes: 2 additions & 0 deletions entitlements-app.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Gem::Specification.new do |s|
s.add_dependency "net-ldap", "~> 0.19"
s.add_dependency "octokit", "~> 4.18"
s.add_dependency "optimist", "~> 3.1"
s.add_dependency "ostruct", "~> 0.6.0"
s.add_dependency "logger", "~> 1.6"

s.add_development_dependency "debug", "<= 1.8.0"
s.add_development_dependency "rake", "~> 13.2", ">= 13.2.1"
Expand Down
Binary file added vendor/cache/logger-1.6.1.gem
Binary file not shown.
Binary file added vendor/cache/ostruct-0.6.0.gem
Binary file not shown.

0 comments on commit c7e46b9

Please sign in to comment.