Skip to content

Commit a1c20c7

Browse files
sbernhardekohl
authored andcommitted
Refs #38357 - Support of ruby version 3.4
1 parent 3e4ca4e commit a1c20c7

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

.github/matrix.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"ruby": ["2.7", "3.0"]
2+
"ruby": ["2.7", "3.0", "3.1", "3.2", "3.3", "3.4"]
33
}

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ gem "ffi", "<1.17" if RUBY_VERSION < '3.0'
1010
Dir[File.join(__dir__, 'bundler.d', '*.rb')].each do |bundle|
1111
eval_gemfile(bundle)
1212
end
13+
14+
# Changed from a default gem to a bundled gem in Ruby 3.4
15+
# See: https://stdgems.org/new-in/3.4/
16+
gem 'syslog' if RUBY_VERSION >= '3.4'

bundler.d/bmc.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
group :bmc do
22
gem 'rubyipmi', '>= 0.10.0'
33
gem 'redfish_client', '>= 0.6.0'
4+
# observer is a transitive dependency of rubyipmi
5+
# Changed from a default gem to a bundled gem in Ruby 3.4 See https://stdgems.org/new-in/3.4/
6+
# This is a workaround, till https://github.com/logicminds/rubyipmi/pull/61 is live
7+
gem 'observer' if RUBY_VERSION >= '3.4'
48
end

lib/proxy/log.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require 'logger'
12
require 'logging'
23
require 'proxy/log_buffer/decorator'
34
require 'proxy/time_utils'

smart_proxy.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
1616
s.add_dependency 'base64'
1717
s.add_dependency 'json'
1818
s.add_dependency 'logging'
19+
s.add_dependency 'ostruct'
1920
s.add_dependency 'rack', '>= 1.3'
2021
s.add_dependency 'rexml', '~> 3.2'
2122
s.add_dependency 'sd_notify', '~> 0.1'

0 commit comments

Comments
 (0)