Ruby 2.5 is unsupported. Use Ruby 2.6 or newer
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@@ -10,7 +10,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
ruby: ['2.7', '2.6', '2.5']
|
ruby: ['2.7', '2.6']
|
||||||
redmine: ['4.1-stable', '4.2-stable', 'master']
|
redmine: ['4.1-stable', '4.2-stable', 'master']
|
||||||
db: ['postgres', 'mysql']
|
db: ['postgres', 'mysql']
|
||||||
exclude:
|
exclude:
|
||||||
|
@@ -6,7 +6,7 @@ Rails:
|
|||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
TargetRubyVersion: 2.5
|
TargetRubyVersion: 2.6
|
||||||
TargetRailsVersion: 5.2
|
TargetRailsVersion: 5.2
|
||||||
NewCops: enable
|
NewCops: enable
|
||||||
|
|
||||||
|
@@ -6,6 +6,7 @@ Changelog
|
|||||||
|
|
||||||
- Mermaid 8.13.3 support
|
- Mermaid 8.13.3 support
|
||||||
- D3 7.1.1 support
|
- D3 7.1.1 support
|
||||||
|
- Ruby 2.6 is required
|
||||||
|
|
||||||
3.0.3
|
3.0.3
|
||||||
+++++
|
+++++
|
||||||
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|||||||
|
|
||||||
spec.files = Dir['**/*'] - Dir['test/**/*'] - Dir['Gemfile', 'Gemfile.lock', 'README.rst']
|
spec.files = Dir['**/*'] - Dir['test/**/*'] - Dir['Gemfile', 'Gemfile.lock', 'README.rst']
|
||||||
spec.require_paths = ['lib']
|
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 'deface', '1.8.1'
|
||||||
spec.add_runtime_dependency 'gemoji', '~> 3.0.0'
|
spec.add_runtime_dependency 'gemoji', '~> 3.0.0'
|
||||||
|
@@ -37,7 +37,7 @@ Requirements
|
|||||||
+--------------------+-----------------------------------+
|
+--------------------+-----------------------------------+
|
||||||
| `Redmine`_ version | >= 4.1.0 |
|
| `Redmine`_ version | >= 4.1.0 |
|
||||||
+--------------------+-----------------------------------+
|
+--------------------+-----------------------------------+
|
||||||
| `Ruby`_ version | >= 2.5.0 |
|
| `Ruby`_ version | >= 2.6 |
|
||||||
+--------------------+-----------------------------------+
|
+--------------------+-----------------------------------+
|
||||||
| Database version | MySQL >= 5.7 or PostgreSQL >= 9.6 |
|
| Database version | MySQL >= 5.7 or PostgreSQL >= 9.6 |
|
||||||
+--------------------+-----------------------------------+
|
+--------------------+-----------------------------------+
|
||||||
|
@@ -21,7 +21,7 @@ module Additionals
|
|||||||
title: l(:label_reddit_subject)
|
title: l(:label_reddit_subject)
|
||||||
when 'u/'
|
when 'u/'
|
||||||
link_to font_awesome_icon('fab_reddit-square', post_text: name),
|
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',
|
class: 'external reddit',
|
||||||
title: l(:label_reddit_user_account)
|
title: l(:label_reddit_user_account)
|
||||||
else
|
else
|
||||||
|
@@ -19,7 +19,7 @@ module Additionals
|
|||||||
start_pos = raw_link.index 'redmine.org/projects/redmine/wiki/'
|
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?
|
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://'
|
link = raw_link.gsub 'http://', 'https://'
|
||||||
elsif /\w/.match?(raw_link[0])
|
elsif /\w/.match?(raw_link[0])
|
||||||
options[:name] = raw_link if options[:name].blank?
|
options[:name] = raw_link if options[:name].blank?
|
||||||
|
@@ -15,12 +15,12 @@ module Additionals
|
|||||||
case name[0]
|
case name[0]
|
||||||
when '@'
|
when '@'
|
||||||
link_to(font_awesome_icon('fab_twitter', post_text: name),
|
link_to(font_awesome_icon('fab_twitter', post_text: name),
|
||||||
"https://twitter.com/#{name[1..-1]}",
|
"https://twitter.com/#{name[1..]}",
|
||||||
class: 'external twitter',
|
class: 'external twitter',
|
||||||
title: l(:label_twitter_account))
|
title: l(:label_twitter_account))
|
||||||
when '#'
|
when '#'
|
||||||
link_to(font_awesome_icon('fab_twitter-square', post_text: name),
|
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',
|
class: 'external twitter',
|
||||||
title: l(:label_twitter_hashtag))
|
title: l(:label_twitter_hashtag))
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user