Skip to content

Commit cc3b334

Browse files
committed
Add ostruct to Gemfile for Ruby >= 3.4
Context: 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.
1 parent affb7e9 commit cc3b334

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ group :development, :test do
9797
gem 'rubocop-minitest', '~> 0.31.0', require: false
9898
gem 'rubocop-rails', '~> 2.20.0', require: false
9999
gem 'rubocop-rake', '~> 0.6.0', require: false
100+
101+
if RUBY_VERSION >= '3.4.0'
102+
gem 'ostruct', require: false
103+
end
100104
end
101105
if version <= '5.0'
102106
gem 'loofah', '< 2.21.0'

0 commit comments

Comments
 (0)