Skip to content

Commit 1bd312a

Browse files
committed
Add syslog as runtime dependency
The syslog gem moves from default gems to a normal gem in Ruby 3.4. It raises the following warning on Ruby 3.3.5: ``` lib/puppet/util/command_line.rb:14: warning: syslog was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.4.0. You can add syslog to your Gemfile or gemspec to silence this warning. ```
1 parent c64829f commit 1bd312a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ group(:features) do
3535
# requires native ldap headers/libs
3636
# gem 'ruby-ldap', '~> 0.9', require: false, platforms: [:ruby]
3737
gem 'puppetserver-ca', '~> 2.0', require: false
38-
gem 'syslog', '~> 0.1.1', require: false, platforms: [:ruby]
3938
gem 'CFPropertyList', ['>= 3.0.6', '< 4'], require: false
4039
end
4140

puppet.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,7 @@ Gem::Specification.new do |spec|
4141
# ffi 1.16.0 - 1.16.2 are broken on Windows
4242
spec.add_runtime_dependency('ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2')
4343
spec.add_runtime_dependency('minitar', '~> 0.9')
44+
else
45+
spec.add_runtime_dependency('syslog', '~> 0.1.2')
4446
end
4547
end

0 commit comments

Comments
 (0)