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 21, 2024
1 parent 30ab24f commit abc1512
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* [#124](https://github.com/ruby-grape/grape-swagger-rails/pull/124): Rails 7 compatibility - [@padde](https://github.com/padde).
* [#125](https://github.com/ruby-grape/grape-swagger-rails/pull/125): Add rails versions to CI matrix - [@padde](https://github.com/padde).
* [#126](https://github.com/ruby-grape/grape-swagger-rails/pull/126): Ruby 3.5 compatibility - [@padde](https://github.com/padde).
* Your contribution here.

### 0.5.0 (2024/04/06)
Expand Down
1 change: 1 addition & 0 deletions grape-swagger-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
spec.license = 'MIT'
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.require_paths = %w[lib]
spec.add_dependency 'ostruct'
spec.add_dependency 'railties', '>= 6.0.6.1'
spec.metadata = {
'bug_tracker_uri' => 'https://github.com/ruby-grape/grape-swagger-rails/issues',
Expand Down

0 comments on commit abc1512

Please sign in to comment.