We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0e51a2 commit 55a94d0Copy full SHA for 55a94d0
Gemfile
@@ -38,6 +38,9 @@ group :development, :test do
38
unless ENV['MODEL_PARSER'] == 'grape-swagger-entity'
39
gem 'grape-swagger-entity', git: 'https://github.com/ruby-grape/grape-swagger-entity'
40
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')
44
45
46
group :test do
0 commit comments