summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-01-27 02:20:50 +0000
committerGo MAEDA <maeda@farend.jp>2024-01-27 02:20:50 +0000
commitf54defe80cf1d39f6b7892264d791c663cb3804d (patch)
tree9688ae0906cdb2db938ffccfbfb511ad55a15eb1
parent4b1b6ce1db664296971c1bd429345c3ddf2e1f8d (diff)
downloadredmine-f54defe80cf1d39f6b7892264d791c663cb3804d.tar.gz
redmine-f54defe80cf1d39f6b7892264d791c663cb3804d.zip
Drop Ruby 2.7 support (#38585).
git-svn-id: https://svn.redmine.org/redmine/trunk@22648 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--Gemfile13
-rw-r--r--doc/INSTALL2
-rw-r--r--test/application_system_test_case.rb2
3 files changed, 5 insertions, 12 deletions
diff --git a/Gemfile b/Gemfile
index 624bc2512..d02ce8704 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,6 +1,6 @@
source 'https://rubygems.org'
-ruby '>= 2.7.0', '< 3.4.0'
+ruby '>= 3.0.0', '< 3.4.0'
gem 'rails', '7.1.2'
gem 'rouge', '~> 4.2.0'
@@ -9,7 +9,7 @@ gem "actionpack-xml_parser"
gem 'roadie-rails', '~> 3.1.0'
gem 'marcel'
gem 'mail', '~> 2.8.1'
-gem 'nokogiri', (Gem.ruby_version >= Gem::Version.new('3.0') ? '~> 1.16.0' : '~> 1.15.5')
+gem 'nokogiri', '~> 1.16.0'
gem 'i18n', '~> 1.14.1'
gem 'rbpdf', '~> 1.21.3'
gem 'addressable'
@@ -72,7 +72,7 @@ if File.exist?(database_file)
when /postgresql/
gem 'pg', '~> 1.5.3'
when /sqlite3/
- gem 'sqlite3', (Gem.ruby_version >= Gem::Version.new('3.0') ? '~> 1.7.0' : '~> 1.6.9')
+ gem 'sqlite3', '~> 1.7.0'
when /sqlserver/
gem 'tiny_tds', '~> 2.1.2'
gem 'activerecord-sqlserver-adapter', '~> 6.1.0'
@@ -104,12 +104,7 @@ group :test do
# For running system tests
gem 'puma'
gem "capybara", ">= 3.39"
- if Gem.ruby_version < Gem::Version.new('3.0')
- gem "selenium-webdriver", "<= 4.9.0"
- gem "webdrivers", require: false
- else
- gem "selenium-webdriver", ">= 4.11.0"
- end
+ gem 'selenium-webdriver', '>= 4.11.0'
# RuboCop
gem 'rubocop', '~> 1.60.0', require: false
gem 'rubocop-performance', '~> 1.20.0', require: false
diff --git a/doc/INSTALL b/doc/INSTALL
index 20267d99c..a34b9ca49 100644
--- a/doc/INSTALL
+++ b/doc/INSTALL
@@ -7,7 +7,7 @@ http://www.redmine.org/
== Requirements
-* Ruby 2.7, 3.0, 3.1, 3.2, 3.3
+* Ruby 3.0, 3.1, 3.2, 3.3
* A database:
* MySQL (tested with MySQL 8)
diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb
index 2a41db11d..9e2722fb5 100644
--- a/test/application_system_test_case.rb
+++ b/test/application_system_test_case.rb
@@ -33,8 +33,6 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
if ENV['SELENIUM_REMOTE_URL']
options[:url] = ENV['SELENIUM_REMOTE_URL']
options[:browser] = :remote
- elsif Gem.ruby_version < Gem::Version.new('3.0')
- require 'webdrivers/chromedriver'
end
# Allow running tests using a remote Selenium hub