Skip to content

Commit 55a94d0

Browse files
committed
Add ostruct as bundled gem
The ostruct gem promoted as a bundled from default gems from Ruby 3.5.0 More details: - https://bugs.ruby-lang.org/issues/20309 - https://github.com/ruby/ruby/blob/cfca348436e0a9da2bb2d4402a4003601501ef0e/NEWS.md?plain=1#L24
1 parent e0e51a2 commit 55a94d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ group :development, :test do
3838
unless ENV['MODEL_PARSER'] == 'grape-swagger-entity'
3939
gem 'grape-swagger-entity', git: 'https://github.com/ruby-grape/grape-swagger-entity'
4040
end
41+
42+
# Conditionally load 'ostruct' only if Ruby >= 3.5.0
43+
gem 'ostruct' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.5.0')
4144
end
4245

4346
group :test do

0 commit comments

Comments
 (0)