From abc15127287bec0ff514af97a09233bfddea39b4 Mon Sep 17 00:00:00 2001 From: Patrick Oscity Date: Wed, 11 Sep 2024 21:44:41 +0200 Subject: [PATCH 1/2] 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. --- CHANGELOG.md | 1 + grape-swagger-rails.gemspec | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 91c51ae..48d9cd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/grape-swagger-rails.gemspec b/grape-swagger-rails.gemspec index b3972f5..2bc0d77 100644 --- a/grape-swagger-rails.gemspec +++ b/grape-swagger-rails.gemspec @@ -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', From 044e86403060eb9365636b89d024b2c28521d1ff Mon Sep 17 00:00:00 2001 From: Patrick Oscity Date: Sat, 21 Sep 2024 21:32:32 +0200 Subject: [PATCH 2/2] Add Ruby 3.3 to CI matrix --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c3d6596..d8a6d74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,10 @@ jobs: - { ruby: "3.2", rails: "6.1.7", grape-swagger: "2.1.1" } - { ruby: "3.2", rails: "7.2.1", grape-swagger: "1.6.1" } - { ruby: "3.2", rails: "7.2.1", grape-swagger: "2.1.1" } + - { ruby: "3.3", rails: "6.1.7", grape-swagger: "1.6.1" } + - { ruby: "3.3", rails: "6.1.7", grape-swagger: "2.1.1" } + - { ruby: "3.3", rails: "7.2.1", grape-swagger: "1.6.1" } + - { ruby: "3.3", rails: "7.2.1", grape-swagger: "2.1.1" } - { ruby: "jruby-9.4.6", rails: "6.1.7", grape-swagger: "1.6.1" } - { ruby: "jruby-9.4.6", rails: "6.1.7", grape-swagger: "2.1.1" } - { ruby: "jruby-9.4.6", rails: "7.2.1", grape-swagger: "1.6.1" }