Skip to content

Commit 753f66e

Browse files
Add logger gem to fix Ruby 4.0 deprecation warning
Ruby 3.4+ warns that logger will no longer be a default gem in Ruby 4.0. Explicitly adding it to Gemfile prevents this warning: 'warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 4.0.0.' The logger gem is a dependency of excon (used by docker-api), but it's being transitioned from a default gem to a regular gem. By explicitly including it, we: - Silence the deprecation warning - Ensure forward compatibility with Ruby 4.0 - Make the dependency explicit rather than implicit Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
1 parent ae9f100 commit 753f66e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ gem 'docker-api', '~> 2.4'
44
gem 'rake', '~> 13.0'
55
gem 'rspec', '~> 3.13'
66
gem 'serverspec', '~> 2.43'
7+
8+
# Explicitly include logger to avoid Ruby 4.0 deprecation warning
9+
# logger will no longer be a default gem in Ruby 4.0
10+
gem 'logger'

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ GEM
77
excon (>= 0.64.0)
88
multi_json
99
excon (0.109.0)
10+
logger (1.7.0)
1011
multi_json (1.15.0)
1112
net-scp (4.1.0)
1213
net-ssh (>= 2.6.5, < 8.0.0)
@@ -47,6 +48,7 @@ PLATFORMS
4748

4849
DEPENDENCIES
4950
docker-api (~> 2.4)
51+
logger
5052
rake (~> 13.0)
5153
rspec (~> 3.13)
5254
serverspec (~> 2.43)

0 commit comments

Comments
 (0)