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 15, 2024
1 parent bde8b9b commit 3a0b6d6
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
@@ -1,6 +1,7 @@
### 0.5.1 (Next)

* [#124](https://github.com/ruby-grape/grape-swagger-rails/pull/124): Rails 7 compatibility - [@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 @@ -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 3a0b6d6

Please sign in to comment.