Skip to content

Commit abc1512

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 30ab24f commit abc1512

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

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

78
### 0.5.0 (2024/04/06)

grape-swagger-rails.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Gem::Specification.new do |spec|
1515
spec.license = 'MIT'
1616
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
1717
spec.require_paths = %w[lib]
18+
spec.add_dependency 'ostruct'
1819
spec.add_dependency 'railties', '>= 6.0.6.1'
1920
spec.metadata = {
2021
'bug_tracker_uri' => 'https://github.com/ruby-grape/grape-swagger-rails/issues',

0 commit comments

Comments
 (0)