Skip to content

Commit 2b05e09

Browse files
committed
Add ostruct to Gemfile for Ruby >= v3.4.0
I was seeing the following warning when I ran `bundle exec rake lint` locally with Ruby v3.4.0-rc1: ~/.asdf/installs/ruby/3.4.0-rc1/lib/ruby/gems/3.4.0+1/gems/rubocop-0.58.2/lib/rubocop.rb:607: 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 b212740 commit 2b05e09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Gemfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ if RUBY_VERSION >= '3.3.0'
1818
gem 'base64'
1919
end
2020

21+
# Avoid ostruct gem warning about it not being available in Ruby v3.5
22+
if RUBY_VERSION >= '3.4.0'
23+
gem 'ostruct'
24+
end
25+
2126
if RUBY_ENGINE == 'jruby'
2227
# Workaround for https://github.com/jruby/jruby/issues/8488
2328
gem 'jar-dependencies', '~> 0.4.1'

0 commit comments

Comments
 (0)