Ruby 2.5 is unsupported. Use Ruby 2.6 or newer
This commit is contained in:
parent
41dcf0581c
commit
d230818cfd
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -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:
|
||||
|
@ -6,7 +6,7 @@ Rails:
|
||||
Enabled: true
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.5
|
||||
TargetRubyVersion: 2.6
|
||||
TargetRailsVersion: 5.2
|
||||
NewCops: enable
|
||||
|
||||
|
@ -6,6 +6,7 @@ Changelog
|
||||
|
||||
- Mermaid 8.13.3 support
|
||||
- D3 7.1.1 support
|
||||
- Ruby 2.6 is required
|
||||
|
||||
3.0.3
|
||||
+++++
|
||||
|
@ -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'
|
||||
|
@ -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 |
|
||||
+--------------------+-----------------------------------+
|
||||
|
@ -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
|
||||
|
@ -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?
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user