redmine_plugin_kit 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/config/initializers/deface.rb +6 -2
- data/lib/redmine_plugin_kit/debug.rb +1 -0
- data/lib/redmine_plugin_kit/loader.rb +2 -3
- data/lib/redmine_plugin_kit/version.rb +1 -1
- data/lib/redmine_plugin_kit.rb +1 -1
- data/lib/tasks/redmine_plugin_kit.rake +3 -3
- data/redmine_plugin_kit-1.0.4.gem +0 -0
- metadata +6 -53
- data/.github/workflows/rubocop.yml +0 -30
- data/.github/workflows/tests.yml +0 -47
- data/.gitignore +0 -9
- data/.rubocop.yml +0 -130
- data/Rakefile +0 -13
- data/redmine_plugin_kit.gemspec +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e0b142f30bff45473f37525cab7f17fb7eaa515b4edb0bd6d2c385c37693978
|
4
|
+
data.tar.gz: da108a048156e659cf74942e187eadfcca81655e9d4285b3a346259de2898f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6f7a93ce509a493391e23a89564573edfec8969c69d0d7bef3172b04c52439463b9b8d486f83dca5879e5fdea38abad94322781f6a08e7b78b9295209a32608
|
7
|
+
data.tar.gz: 96746fae6e4aacbc2646a6e18ebf500c22a017e7ce32cbbcf32e957ec437c20b736059449bd9d86d5a64521cde6ce8f7ab9ed23820d6a3aeef0c2682514fef91
|
data/README.md
CHANGED
@@ -19,7 +19,7 @@ If you are a Redmine developer, feel free and offer PRs with your Improvements.
|
|
19
19
|
## Requirements
|
20
20
|
|
21
21
|
- Redmine `>= 4.1.0` (including upcoming)
|
22
|
-
- Ruby `>= 2.
|
22
|
+
- Ruby `>= 2.7` (only maintained ruby versions are supported)
|
23
23
|
|
24
24
|
## Installation
|
25
25
|
|
@@ -1,6 +1,10 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
Rails.application.paths['app/overrides'] ||= []
|
4
|
-
|
5
|
-
Rails.application.paths['app/overrides'] <<
|
4
|
+
Rails.root.glob('plugins/*/app/overrides').each do |path|
|
5
|
+
Rails.application.paths['app/overrides'] << path unless Rails.application.paths['app/overrides'].include? path
|
6
|
+
end
|
7
|
+
|
8
|
+
Rails.root.glob('plugins/*/app/overrides/**/*.deface').each do |path|
|
9
|
+
Deface::DSL::Loader.load File.expand_path(path, __FILE__)
|
6
10
|
end
|
@@ -7,13 +7,12 @@ module RedminePluginKit
|
|
7
7
|
attr_accessor :plugin_id, :debug
|
8
8
|
|
9
9
|
class << self
|
10
|
-
def to_prepare(
|
10
|
+
def to_prepare(...)
|
11
11
|
if Rails.version > '6.0'
|
12
12
|
# INFO: https://www.redmine.org/issues/36245
|
13
13
|
Rails.logger.info 'after_plugins_loaded hook should be used instead'
|
14
14
|
else
|
15
|
-
|
16
|
-
Rails.configuration.to_prepare(*args, &block)
|
15
|
+
Rails.configuration.to_prepare(...)
|
17
16
|
end
|
18
17
|
end
|
19
18
|
|
data/lib/redmine_plugin_kit.rb
CHANGED
@@ -15,7 +15,7 @@ namespace :redmine_plugin_kit do
|
|
15
15
|
exit 2
|
16
16
|
end
|
17
17
|
|
18
|
-
Setting.where(name: "plugin_#{plugin}"
|
18
|
+
Setting.where(name: :"plugin_#{plugin}").destroy_all
|
19
19
|
Setting.clear_cache
|
20
20
|
puts "Setting for plugin #{plugin} has been dropped."
|
21
21
|
end
|
@@ -45,7 +45,7 @@ namespace :redmine_plugin_kit do
|
|
45
45
|
if name == 'redmine'
|
46
46
|
Setting[setting.to_sym] = value
|
47
47
|
else
|
48
|
-
plugin_name = "plugin_#{name}"
|
48
|
+
plugin_name = :"plugin_#{name}"
|
49
49
|
plugin_settings = Setting[plugin_name]
|
50
50
|
plugin_settings[setting] = value
|
51
51
|
Setting[plugin_name] = plugin_settings
|
@@ -74,7 +74,7 @@ namespace :redmine_plugin_kit do
|
|
74
74
|
if name == 'redmine'
|
75
75
|
puts Setting.send(setting)
|
76
76
|
else
|
77
|
-
plugin_name = "plugin_#{name}"
|
77
|
+
plugin_name = :"plugin_#{name}"
|
78
78
|
plugin_settings = Setting[plugin_name]
|
79
79
|
puts plugin_settings[setting]
|
80
80
|
end
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_plugin_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AlphaNodes
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|
@@ -38,48 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: sqlite3
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
41
|
description: Redmine plugin kit as base of Redmine plugins
|
84
42
|
email:
|
85
43
|
- alex@alphanodes.com
|
@@ -87,13 +45,8 @@ executables: []
|
|
87
45
|
extensions: []
|
88
46
|
extra_rdoc_files: []
|
89
47
|
files:
|
90
|
-
- ".github/workflows/rubocop.yml"
|
91
|
-
- ".github/workflows/tests.yml"
|
92
|
-
- ".gitignore"
|
93
|
-
- ".rubocop.yml"
|
94
48
|
- LICENSE
|
95
49
|
- README.md
|
96
|
-
- Rakefile
|
97
50
|
- config/initializers/deface.rb
|
98
51
|
- lib/redmine_plugin_kit.rb
|
99
52
|
- lib/redmine_plugin_kit/debug.rb
|
@@ -103,7 +56,7 @@ files:
|
|
103
56
|
- lib/redmine_plugin_kit/plugin_base.rb
|
104
57
|
- lib/redmine_plugin_kit/version.rb
|
105
58
|
- lib/tasks/redmine_plugin_kit.rake
|
106
|
-
- redmine_plugin_kit.
|
59
|
+
- redmine_plugin_kit-1.0.4.gem
|
107
60
|
homepage: https://github.com/alphanodes/redmine_plugin_kit
|
108
61
|
licenses:
|
109
62
|
- GPL-2.0
|
@@ -117,14 +70,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
70
|
requirements:
|
118
71
|
- - ">="
|
119
72
|
- !ruby/object:Gem::Version
|
120
|
-
version: '2.
|
73
|
+
version: '2.7'
|
121
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
75
|
requirements:
|
123
76
|
- - ">="
|
124
77
|
- !ruby/object:Gem::Version
|
125
78
|
version: '0'
|
126
79
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
80
|
+
rubygems_version: 3.4.19
|
128
81
|
signing_key:
|
129
82
|
specification_version: 4
|
130
83
|
summary: Redmine plugin kit
|
@@ -1,30 +0,0 @@
|
|
1
|
-
name: Run Rubocop
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
pull_request:
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
test:
|
8
|
-
runs-on: ubuntu-latest
|
9
|
-
|
10
|
-
steps:
|
11
|
-
- uses: actions/checkout@v1
|
12
|
-
|
13
|
-
- name: Install package dependencies
|
14
|
-
run: >
|
15
|
-
sudo apt-get install --yes --quiet pandoc
|
16
|
-
|
17
|
-
- name: Setup Ruby
|
18
|
-
uses: ruby/setup-ruby@v1
|
19
|
-
with:
|
20
|
-
ruby-version: 2.6
|
21
|
-
bundler-cache: true
|
22
|
-
|
23
|
-
- name: Setup gems
|
24
|
-
run: |
|
25
|
-
cp test/support/gemfile.rb Gemfile
|
26
|
-
bundle install --jobs 4 --retry 3
|
27
|
-
|
28
|
-
- name: Run RuboCop
|
29
|
-
run: |
|
30
|
-
bundle exec rubocop -S
|
data/.github/workflows/tests.yml
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
name: Tests
|
2
|
-
on:
|
3
|
-
push:
|
4
|
-
pull_request:
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
test:
|
8
|
-
name: ${{ matrix.redmine }} ${{ matrix.db }} ruby-${{ matrix.ruby }}
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
|
11
|
-
strategy:
|
12
|
-
matrix:
|
13
|
-
ruby: ['2.7', '2.6', '3.0']
|
14
|
-
fail-fast: false
|
15
|
-
|
16
|
-
steps:
|
17
|
-
- name: Checkout redmine_plugin_kit
|
18
|
-
uses: actions/checkout@v2
|
19
|
-
with:
|
20
|
-
path: redmine_plugin_kit
|
21
|
-
|
22
|
-
- name: Update package archives
|
23
|
-
run: sudo apt-get update --yes --quiet
|
24
|
-
|
25
|
-
- name: Install package dependencies
|
26
|
-
run: >
|
27
|
-
sudo apt-get install --yes --quiet
|
28
|
-
build-essential
|
29
|
-
cmake
|
30
|
-
libicu-dev
|
31
|
-
|
32
|
-
- name: Setup Ruby
|
33
|
-
uses: ruby/setup-ruby@v1
|
34
|
-
with:
|
35
|
-
ruby-version: ${{ matrix.ruby }}
|
36
|
-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
37
|
-
|
38
|
-
- name: Install Ruby dependencies
|
39
|
-
working-directory: redmine_plugin_kit
|
40
|
-
run: |
|
41
|
-
bundle install --jobs=4 --retry=3
|
42
|
-
|
43
|
-
- name: Run tests
|
44
|
-
env:
|
45
|
-
RAILS_ENV: test
|
46
|
-
working-directory: redmine_plugin_kit
|
47
|
-
run: rake test RUBYOPT="-W0"
|
data/.gitignore
DELETED
data/.rubocop.yml
DELETED
@@ -1,130 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-performance
|
3
|
-
- rubocop-rails
|
4
|
-
- rubocop-minitest
|
5
|
-
|
6
|
-
AllCops:
|
7
|
-
TargetRubyVersion: 2.6
|
8
|
-
TargetRailsVersion: 5.2
|
9
|
-
NewCops: enable
|
10
|
-
|
11
|
-
Rails:
|
12
|
-
Enabled: true
|
13
|
-
|
14
|
-
Minitest/MultipleAssertions:
|
15
|
-
Max: 15
|
16
|
-
Enabled: true
|
17
|
-
|
18
|
-
Minitest/AssertPredicate:
|
19
|
-
Enabled: false
|
20
|
-
|
21
|
-
Metrics/AbcSize:
|
22
|
-
Enabled: false
|
23
|
-
|
24
|
-
Metrics/BlockLength:
|
25
|
-
Enabled: false
|
26
|
-
|
27
|
-
Metrics/ParameterLists:
|
28
|
-
Enabled: true
|
29
|
-
CountKeywordArgs: false
|
30
|
-
|
31
|
-
Metrics/ClassLength:
|
32
|
-
Enabled: false
|
33
|
-
|
34
|
-
Metrics/CyclomaticComplexity:
|
35
|
-
Max: 25
|
36
|
-
|
37
|
-
Layout/LineLength:
|
38
|
-
Max: 140
|
39
|
-
|
40
|
-
Metrics/MethodLength:
|
41
|
-
Max: 60
|
42
|
-
|
43
|
-
Metrics/ModuleLength:
|
44
|
-
Enabled: false
|
45
|
-
|
46
|
-
Metrics/PerceivedComplexity:
|
47
|
-
Max: 25
|
48
|
-
|
49
|
-
Style/ExpandPathArguments:
|
50
|
-
Enabled: true
|
51
|
-
Exclude:
|
52
|
-
- redmine_plugin_kit.gemspec
|
53
|
-
- test/**/*
|
54
|
-
|
55
|
-
Rails/ApplicationJob:
|
56
|
-
Enabled: false
|
57
|
-
|
58
|
-
Lint/AmbiguousOperatorPrecedence:
|
59
|
-
Enabled: false
|
60
|
-
|
61
|
-
Rails/ContentTag:
|
62
|
-
Enabled: true
|
63
|
-
Exclude:
|
64
|
-
- app/helpers/additional_tags_issues_helper.rb
|
65
|
-
|
66
|
-
Rails/ApplicationRecord:
|
67
|
-
Enabled: false
|
68
|
-
|
69
|
-
Rails/CreateTableWithTimestamps:
|
70
|
-
Enabled: false
|
71
|
-
|
72
|
-
Rails/HelperInstanceVariable:
|
73
|
-
Enabled: false
|
74
|
-
|
75
|
-
Rails/SkipsModelValidations:
|
76
|
-
Enabled: false
|
77
|
-
|
78
|
-
Performance/ChainArrayAllocation:
|
79
|
-
Enabled: true
|
80
|
-
|
81
|
-
Style/AutoResourceCleanup:
|
82
|
-
Enabled: true
|
83
|
-
|
84
|
-
Style/FrozenStringLiteralComment:
|
85
|
-
Enabled: true
|
86
|
-
Exclude:
|
87
|
-
- '/**/*.rsb'
|
88
|
-
|
89
|
-
Style/Documentation:
|
90
|
-
Enabled: false
|
91
|
-
|
92
|
-
Style/OptionHash:
|
93
|
-
Enabled: true
|
94
|
-
SuspiciousParamNames:
|
95
|
-
- options
|
96
|
-
- api_options
|
97
|
-
- opts
|
98
|
-
- args
|
99
|
-
- params
|
100
|
-
- parameters
|
101
|
-
- settings
|
102
|
-
|
103
|
-
# postgresql and mysql are supported
|
104
|
-
# autodetect does not work without database configuration
|
105
|
-
Rails/BulkChangeTable:
|
106
|
-
Enabled: true
|
107
|
-
Database: postgresql
|
108
|
-
|
109
|
-
Style/ReturnNil:
|
110
|
-
Enabled: true
|
111
|
-
|
112
|
-
Style/UnlessLogicalOperators:
|
113
|
-
Enabled: true
|
114
|
-
|
115
|
-
Style/MethodCallWithArgsParentheses:
|
116
|
-
Enabled: true
|
117
|
-
AllowParenthesesInMultilineCall: true
|
118
|
-
AllowParenthesesInChaining: true
|
119
|
-
EnforcedStyle: omit_parentheses
|
120
|
-
|
121
|
-
Style/HashTransformKeys:
|
122
|
-
Enabled: false
|
123
|
-
|
124
|
-
Style/HashTransformValues:
|
125
|
-
Enabled: false
|
126
|
-
|
127
|
-
Naming/VariableNumber:
|
128
|
-
Enabled: true
|
129
|
-
Exclude:
|
130
|
-
- 'test/**/*'
|
data/Rakefile
DELETED
data/redmine_plugin_kit.gemspec
DELETED
@@ -1,33 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative 'lib/redmine_plugin_kit/version'
|
4
|
-
lib = File.expand_path '../lib', __FILE__
|
5
|
-
$LOAD_PATH.unshift lib unless $LOAD_PATH.include? lib
|
6
|
-
|
7
|
-
Gem::Specification.new do |spec|
|
8
|
-
spec.name = 'redmine_plugin_kit'
|
9
|
-
spec.version = RedminePluginKit::VERSION
|
10
|
-
spec.authors = ['AlphaNodes']
|
11
|
-
spec.email = ['alex@alphanodes.com']
|
12
|
-
spec.metadata = { 'rubygems_mfa_required' => 'true' }
|
13
|
-
|
14
|
-
spec.summary = 'Redmine plugin kit'
|
15
|
-
spec.description = 'Redmine plugin kit as base of Redmine plugins'
|
16
|
-
spec.homepage = 'https://github.com/alphanodes/redmine_plugin_kit'
|
17
|
-
spec.license = 'GPL-2.0'
|
18
|
-
|
19
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
20
|
-
f.match %r{^((test|spec|features)/|Gemfile)}
|
21
|
-
end
|
22
|
-
spec.bindir = 'exe'
|
23
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename f }
|
24
|
-
spec.require_paths = ['lib']
|
25
|
-
spec.required_ruby_version = '>= 2.6'
|
26
|
-
|
27
|
-
spec.add_runtime_dependency 'deface', '1.9.0'
|
28
|
-
spec.add_runtime_dependency 'rails'
|
29
|
-
|
30
|
-
spec.add_development_dependency 'bundler'
|
31
|
-
spec.add_development_dependency 'rake'
|
32
|
-
spec.add_development_dependency 'sqlite3'
|
33
|
-
end
|