Ruby 2.5 is unsupported. Use Ruby 2.6 or newer

This commit is contained in:
Alexander Meindl 2021-10-17 11:33:57 +02:00
parent 41dcf0581c
commit d230818cfd
8 changed files with 9 additions and 8 deletions

View File

@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
ruby: ['2.7', '2.6', '2.5']
ruby: ['2.7', '2.6']
redmine: ['4.1-stable', '4.2-stable', 'master']
db: ['postgres', 'mysql']
exclude:

View File

@ -6,7 +6,7 @@ Rails:
Enabled: true
AllCops:
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6
TargetRailsVersion: 5.2
NewCops: enable

View File

@ -6,6 +6,7 @@ Changelog
- Mermaid 8.13.3 support
- D3 7.1.1 support
- Ruby 2.6 is required
3.0.3
+++++

View File

@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.files = Dir['**/*'] - Dir['test/**/*'] - Dir['Gemfile', 'Gemfile.lock', 'README.rst']
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.5'
spec.required_ruby_version = '>= 2.6'
spec.add_runtime_dependency 'deface', '1.8.1'
spec.add_runtime_dependency 'gemoji', '~> 3.0.0'

View File

@ -37,7 +37,7 @@ Requirements
+--------------------+-----------------------------------+
| `Redmine`_ version | >= 4.1.0 |
+--------------------+-----------------------------------+
| `Ruby`_ version | >= 2.5.0 |
| `Ruby`_ version | >= 2.6 |
+--------------------+-----------------------------------+
| Database version | MySQL >= 5.7 or PostgreSQL >= 9.6 |
+--------------------+-----------------------------------+

View File

@ -21,7 +21,7 @@ module Additionals
title: l(:label_reddit_subject)
when 'u/'
link_to font_awesome_icon('fab_reddit-square', post_text: name),
"https://www.reddit.com/username/#{name[2..-1]}",
"https://www.reddit.com/username/#{name[2..]}",
class: 'external reddit',
title: l(:label_reddit_user_account)
else

View File

@ -19,7 +19,7 @@ module Additionals
start_pos = raw_link.index 'redmine.org/projects/redmine/wiki/'
raise 'The correct usage is {{redmine_wiki(<page>)}}' if start_pos.nil? || start_pos.zero?
options[:name] = raw_link[(start_pos + 34)..-1] if options[:name].blank?
options[:name] = raw_link[(start_pos + 34)..] if options[:name].blank?
link = raw_link.gsub 'http://', 'https://'
elsif /\w/.match?(raw_link[0])
options[:name] = raw_link if options[:name].blank?

View File

@ -15,12 +15,12 @@ module Additionals
case name[0]
when '@'
link_to(font_awesome_icon('fab_twitter', post_text: name),
"https://twitter.com/#{name[1..-1]}",
"https://twitter.com/#{name[1..]}",
class: 'external twitter',
title: l(:label_twitter_account))
when '#'
link_to(font_awesome_icon('fab_twitter-square', post_text: name),
"https://twitter.com/hashtag/#{name[1..-1]}",
"https://twitter.com/hashtag/#{name[1..]}",
class: 'external twitter',
title: l(:label_twitter_hashtag))
else