Skip to content

Commit

Permalink
Add ostruct to gemspec dependencies
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
padde committed Sep 11, 2024
1 parent bedc9f3 commit 4fb0a9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions grape-swagger-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.require_paths = %w[lib]
spec.add_dependency 'railties', '>= 6.0.6.1'
spec.add_dependency 'ostruct'
spec.metadata = {
'bug_tracker_uri' => 'https://github.com/ruby-grape/grape-swagger-rails/issues',
'changelog_uri' => 'https://github.com/ruby-grape/grape-swagger-rails/blob/master/CHANGELOG.md',
Expand Down

0 comments on commit 4fb0a9c

Please sign in to comment.