From 2bf480732d2078555df60ad76b29f261cf77c85c Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Fri, 1 Dec 2023 09:11:15 +1100 Subject: [PATCH] Help Dependabot to update rswag The rswag gem consists of three gem which are all maintained in the same repository. So when one of the three gems is updated, the version of all three gems is bumped. Dependabot was opening 3 independent pull requests with the same release notes and linking to the same repository. I hope that making the rswag gem a dependency will make Dependabot try to update all gems together. We are still listing two gems separately to be loaded in production. They enable us to view the API documentation. But we don't need the third gem rswag-specs in production. That one is only useful in tests. --- Gemfile | 2 +- Gemfile.lock | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index eb10105e75..72e893263e 100644 --- a/Gemfile +++ b/Gemfile @@ -160,7 +160,7 @@ group :test, :development do gem 'letter_opener', '>= 1.4.1' gem 'rspec-rails', ">= 3.5.2" gem 'rspec-retry', require: false - gem 'rswag-specs' + gem 'rswag' gem 'shoulda-matchers' gem 'stimulus_reflex_testing' gem 'timecop' diff --git a/Gemfile.lock b/Gemfile.lock index 21a65972cb..6e3c32316e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -614,6 +614,10 @@ GEM rspec-retry (0.6.2) rspec-core (> 3.3) rspec-support (3.12.1) + rswag (2.13.0) + rswag-api (= 2.13.0) + rswag-specs (= 2.13.0) + rswag-ui (= 2.13.0) rswag-api (2.13.0) activesupport (>= 3.1, < 7.2) railties (>= 3.1, < 7.2) @@ -894,8 +898,8 @@ DEPENDENCIES roo rspec-rails (>= 3.5.2) rspec-retry + rswag rswag-api - rswag-specs rswag-ui rubocop rubocop-rails