Ruby 3 is required. Add redmine 5.1 to tests
This commit is contained in:
parent
94220365c3
commit
ea46c2bf03
8
.github/workflows/linters.yml
vendored
8
.github/workflows/linters.yml
vendored
@ -10,7 +10,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install package dependencies
|
||||
run: |
|
||||
@ -24,7 +24,7 @@ jobs:
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: 3.1
|
||||
ruby-version: 3.2
|
||||
bundler-cache: true
|
||||
|
||||
- name: Setup gems
|
||||
@ -45,9 +45,9 @@ jobs:
|
||||
bundle exec brakeman -5
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
node-version: '18'
|
||||
|
||||
- run: yarn install
|
||||
|
||||
|
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -10,8 +10,8 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
ruby: ['2.7', '3.0', '3.1', '3.2']
|
||||
redmine: ['5.0-stable', 'master']
|
||||
ruby: ['3.0', '3.1', '3.2']
|
||||
redmine: ['5.0-stable', '5.1-stable', 'master']
|
||||
db: ['postgres', 'mysql']
|
||||
exclude:
|
||||
- ruby: '3.2'
|
||||
@ -53,14 +53,14 @@ jobs:
|
||||
if: matrix.db == 'mysql'
|
||||
|
||||
- name: Checkout Redmine
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: redmine/redmine
|
||||
ref: ${{ matrix.redmine }}
|
||||
path: redmine
|
||||
|
||||
- name: Checkout additionals
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: AlphaNodes/additionals
|
||||
path: redmine/plugins/additionals
|
||||
|
@ -4,7 +4,7 @@ require:
|
||||
- rubocop-minitest
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.7
|
||||
TargetRubyVersion: 3.0
|
||||
TargetRailsVersion: 6.1
|
||||
NewCops: enable
|
||||
ActiveSupportExtensionsEnabled: true
|
||||
|
@ -3,6 +3,7 @@
|
||||
## 3.1.0
|
||||
|
||||
- Fix missing label for view all documents
|
||||
- Ruby 3 required
|
||||
|
||||
## 3.0.9
|
||||
|
||||
|
@ -12,7 +12,7 @@ Additionals is a `Redmine` plugin for customizing Redmine, providing wiki macros
|
||||
| Name | requirement |
|
||||
| -------------------|----------------------------------|
|
||||
| `Redmine` version | >= 5.0 |
|
||||
| `Ruby` version | >= 2.7 |
|
||||
| `Ruby` version | >= 3.0 |
|
||||
| Database version | MySQL >= 8.0 or PostgreSQL >= 10 |
|
||||
|
||||
> **_NOTE:_** If you use MySQL, make sure all database tables using the same storage engine (InnoDB is recommended) and character set (utf8mb4 is recommended).
|
||||
|
@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
||||
f.match %r{^((contrib|test|node_modules)/|Gemfile|Gemfile\.lock|additionals\.gemspec|package\.json|yarn\.lock)}
|
||||
end
|
||||
spec.require_paths = ['lib']
|
||||
spec.required_ruby_version = '>= 2.7'
|
||||
spec.required_ruby_version = '>= 3.0'
|
||||
|
||||
spec.add_runtime_dependency 'redmine_plugin_kit'
|
||||
spec.add_runtime_dependency 'render_async'
|
||||
|
@ -3,7 +3,7 @@
|
||||
class AdditionalsFontAwesome
|
||||
include Redmine::I18n
|
||||
|
||||
FORMAT_REGEXP = /\Afa[rsb]_[a-zA-Z0-9]+[a-zA-Z0-9-]*\z/.freeze
|
||||
FORMAT_REGEXP = /\Afa[rsb]_[a-zA-Z0-9]+[a-zA-Z0-9-]*\z/
|
||||
SEARCH_LIMIT = 50
|
||||
|
||||
class << self
|
||||
|
@ -6,7 +6,7 @@ module Additionals
|
||||
MAX_CUSTOM_MENU_ITEMS = 5
|
||||
DEFAULT_MODAL_WIDTH = '350px'
|
||||
GOTO_LIST = " \xc2\xbb"
|
||||
LIST_SEPARATOR = "#{GOTO_LIST} "
|
||||
LIST_SEPARATOR = "#{GOTO_LIST} ".freeze
|
||||
EMOJI_ASSERT_PATH = 'plugin_assets/additionals/images/emojis'
|
||||
|
||||
include RedminePluginKit::PluginBase
|
||||
|
Loading…
Reference in New Issue
Block a user