Skip to content

Commit e6e030c

Browse files
authored
Merge pull request #1303 from dradis/rails/upgrade-7.2
Upgrade Rails to 7.2
2 parents 47eb3b2 + 2652f2e commit e6e030c

34 files changed

+377
-234
lines changed

.github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Install Ruby and gems
2020
uses: ruby/setup-ruby@v1
2121
with:
22+
rubygems: 'latest'
2223
bundler-cache: true
2324
- name: Security audit dependencies
2425
run: bundle exec bundler-audit --update --ignore CVE-2023-50724 CVE-2023-50725 CVE-2023-50727 CVE-2024-21510
@@ -41,6 +42,7 @@ jobs:
4142
- name: Install Ruby and gems
4243
uses: ruby/setup-ruby@v1
4344
with:
45+
rubygems: 'latest'
4446
bundler-cache: true
4547
- name: Lint changed files
4648
run: bin/rubocop-ci ${{ env.TARGET_BRANCH || env.PREV_SHA || env.FALLBACK_BRANCH }} ${{ env.IS_MERGE }}
@@ -58,6 +60,7 @@ jobs:
5860
- name: Install Ruby and gems
5961
uses: ruby/setup-ruby@v1
6062
with:
63+
rubygems: 'latest'
6164
bundler-cache: true
6265
- name: Prepare database
6366
run: bundle exec rails db:prepare

CHANGELOG

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- Add View History link when viewing Issues/Content blocks
66
- Automatically go to the next record after reviewing
77
- Upgraded gems:
8-
- net-imap, nokogiri, rack
8+
- capybara, net-imap, nokogiri, paper_trail, rack, rails, rails-html-sanitizer, rexml, rspec-rails
99
- Bugs fixes:
1010
- [entity]:
1111
- [future tense verb] [bug fix]

Gemfile

+9-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
55
ruby '3.1.2'
66

77
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
8-
gem 'rails', '~> 7.0.8.7'
8+
gem 'rails', '~> 7.2.2.1'
99

1010
# Use SCSS for stylesheets
1111
gem 'sass-rails', '~> 6.0'
@@ -56,7 +56,7 @@ gem 'liquid'
5656

5757
gem 'kaminari', '~> 1.2.1'
5858

59-
gem 'paper_trail', '~> 12.2.0'
59+
gem 'paper_trail', '~> 15.2.0'
6060

6161
# gem 'rails_autolink', '~> 1.1'
6262

@@ -98,7 +98,7 @@ gem 'nokogiri', '>= 1.18.3'
9898
# before 1.0.4, so make sure we're using 1.0.4+:
9999
# see https://github.com/rails/rails-html-sanitizer/commit/f3ba1a839a
100100
# and https://github.com/flavorjones/loofah/issues/144
101-
gem 'rails-html-sanitizer', '~> 1.4.4'
101+
gem 'rails-html-sanitizer', '~> 1.6.1'
102102

103103
# Textile markup
104104
gem 'RedCloth', '~> 4.3.4', require: 'redcloth'
@@ -184,14 +184,14 @@ end
184184
group :development, :test do
185185
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
186186
gem 'byebug', platform: :mri
187-
188-
gem 'rspec-rails', '~> 4.0.2'
187+
# rspec-rails < 7.0.0 does not support rails 7.2
188+
gem 'rspec-rails', '~> 7.0.0'
189189
end
190190

191191
group :test do
192192
gem 'database_cleaner'
193193
gem 'factory_bot_rails'
194-
gem 'capybara', '~> 3.39'
194+
gem 'capybara', '~> 3.40'
195195
gem 'guard-rspec', require: false
196196
gem 'selenium-webdriver', '~> 4.17'
197197
gem 'shoulda-matchers', '~> 3.1'
@@ -216,7 +216,7 @@ end
216216
#
217217

218218
# Base framework classes required by other plugins
219-
gem 'dradis-plugins', '~> 4.15.0'
219+
gem 'dradis-plugins', github: 'dradis/dradis-plugins', branch: 'rails/upgrade-7.2'
220220

221221
gem 'dradis-api', path: 'engines/dradis-api'
222222

@@ -235,9 +235,10 @@ end
235235

236236
gem 'dradis-calculator_cvss', github: 'dradis/dradis-calculator_cvss'
237237
gem 'dradis-calculator_dread', github: 'dradis/dradis-calculator_dread'
238+
238239
# ---------------------------------------------------------------------- Export
239240
gem 'dradis-csv_export', '~> 4.15.0'
240-
gem 'dradis-html_export', '~> 4.15.0'
241+
gem 'dradis-html_export', github: 'dradis/dradis-html_export'
241242

242243
# ---------------------------------------------------------------------- Import
243244
gem 'dradis-csv', '~> 4.15.0'

0 commit comments

Comments
 (0)