Skip to content

Commit 4fb0a9c

Browse files
committed
Add ostruct to gemspec dependencies
This gem was historically included in the default gemset. Starting with Ruby 3.3.5 though, requiring `ostruct` without explicitly adding it as dependency generates the following warning: 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 bedc9f3 commit 4fb0a9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grape-swagger-rails.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
1616
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
1717
spec.require_paths = %w[lib]
1818
spec.add_dependency 'railties', '>= 6.0.6.1'
19+
spec.add_dependency 'ostruct'
1920
spec.metadata = {
2021
'bug_tracker_uri' => 'https://github.com/ruby-grape/grape-swagger-rails/issues',
2122
'changelog_uri' => 'https://github.com/ruby-grape/grape-swagger-rails/blob/master/CHANGELOG.md',

0 commit comments

Comments
 (0)