Skip to content

Commit 857954a

Browse files
committed
require logger.gem and ostruct.gem since Ruby 3.5
warning: logger was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
1 parent 73fbd26 commit 857954a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ruby-dbus.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ GEMSPEC = Gem::Specification.new do |s|
2222

2323
s.required_ruby_version = ">= 2.4.0"
2424

25+
s.add_runtime_dependency "logger" if RUBY_VERSION >= "3.5"
2526
# Either of rexml and nokogiri is required
2627
# but AFAIK gemspec cannot express that.
2728
# Nokogiri is recommended as rexml is dead slow.
@@ -30,6 +31,7 @@ GEMSPEC = Gem::Specification.new do |s|
3031

3132
# workaround: rubocop-1.0 needs base64 which is no longer in stdlib in newer rubies
3233
s.add_development_dependency "base64"
34+
s.add_development_dependency "ostruct" if RUBY_VERSION >= "3.5"
3335
s.add_development_dependency "packaging_rake_tasks"
3436
s.add_development_dependency "rake"
3537
s.add_development_dependency "rspec", "~> 3"

0 commit comments

Comments
 (0)