redmine_plugins_helper 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/init.rb +1 -2
- data/lib/redmine_plugins_helper/patches/redmine/{plugin_patch → plugin}/assets.rb +1 -1
- data/lib/redmine_plugins_helper/patches/redmine/{plugin_patch → plugin}/dependencies.rb +2 -1
- data/lib/redmine_plugins_helper/patches/redmine/{plugin_patch → plugin}/initializers.rb +1 -1
- data/lib/redmine_plugins_helper/patches/redmine/{plugin_patch.rb → plugin.rb} +5 -5
- data/lib/redmine_plugins_helper/patches/redmine/plugin_migration_context.rb +3 -3
- data/lib/redmine_plugins_helper/patches.rb +8 -0
- data/lib/redmine_plugins_helper/version.rb +1 -1
- metadata +12 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97089a85968fba21c113175bd4a8d73b6c2f5bf1a13b27313b012f68cb404db6
|
4
|
+
data.tar.gz: a7ec576c449849b02b6a9c15985b793558cc93a1610c967463277f71ebd4d24e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43a6533d5016a4a0ce1d8e496e4e7cb25b6efa21cc51373d8ebe74206acb2cf188015f9c2549457fbb174cfd9e00d79e3a09a3138def950a22b48eb91791bbaf
|
7
|
+
data.tar.gz: b9ab1a4765e187b307f1175057d7459d0ad73a09ac3664ae12d912cfce5e3c53d5f383779470ef76f2608a8c756908a5c88ca44e1067a1432264b5bee09259a2
|
data/init.rb
CHANGED
@@ -12,8 +12,7 @@ Redmine::Plugin.register :redmine_plugins_helper do
|
|
12
12
|
end
|
13
13
|
|
14
14
|
Rails.configuration.to_prepare do
|
15
|
-
require_dependency 'redmine_plugins_helper/patches
|
16
|
-
require_dependency 'redmine_plugins_helper/patches/redmine/plugin_migration_context'
|
15
|
+
require_dependency 'redmine_plugins_helper/patches'
|
17
16
|
Redmine::Plugin.all.sort.each(&:add_assets_paths)
|
18
17
|
Redmine::Plugin.all.sort.each(&:load_initializers)
|
19
18
|
end
|
@@ -5,14 +5,14 @@ require 'eac_ruby_utils/core_ext'
|
|
5
5
|
module RedminePluginsHelper
|
6
6
|
module Patches
|
7
7
|
module Redmine
|
8
|
-
module
|
8
|
+
module Plugin
|
9
9
|
extend ActiveSupport::Concern
|
10
10
|
|
11
11
|
included do
|
12
12
|
extend ClassMethods
|
13
|
-
include ::RedminePluginsHelper::Patches::Redmine::
|
14
|
-
prepend ::RedminePluginsHelper::Patches::Redmine::
|
15
|
-
include ::RedminePluginsHelper::Patches::Redmine::
|
13
|
+
include ::RedminePluginsHelper::Patches::Redmine::Plugin::Assets
|
14
|
+
prepend ::RedminePluginsHelper::Patches::Redmine::Plugin::Dependencies
|
15
|
+
include ::RedminePluginsHelper::Patches::Redmine::Plugin::Initializers
|
16
16
|
end
|
17
17
|
|
18
18
|
module ClassMethods
|
@@ -46,6 +46,6 @@ module RedminePluginsHelper
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
-
patch = RedminePluginsHelper::Patches::Redmine::
|
49
|
+
patch = RedminePluginsHelper::Patches::Redmine::Plugin
|
50
50
|
target = Redmine::Plugin
|
51
51
|
target.send(:include, patch) unless target.include?(patch)
|
@@ -5,7 +5,7 @@ require 'redmine/plugin'
|
|
5
5
|
module RedminePluginsHelper
|
6
6
|
module Patches
|
7
7
|
module Redmine
|
8
|
-
module
|
8
|
+
module PluginMigrationContext
|
9
9
|
extend ActiveSupport::Concern
|
10
10
|
|
11
11
|
def get_all_versions # rubocop:disable Naming/AccessorMethodName
|
@@ -24,8 +24,8 @@ module RedminePluginsHelper
|
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
27
|
-
if Redmine::Plugin.const_defined?(
|
27
|
+
if Redmine::Plugin.const_defined?(:MigrationContext)
|
28
28
|
Redmine::Plugin::MigrationContext.prepend(
|
29
|
-
RedminePluginsHelper::Patches::Redmine::
|
29
|
+
RedminePluginsHelper::Patches::Redmine::PluginMigrationContext
|
30
30
|
)
|
31
31
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_plugins_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.15.
|
7
|
+
- 0.15.3
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bigdecimal
|
@@ -36,20 +36,20 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '0.
|
39
|
+
version: '0.10'
|
40
40
|
- - ">="
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.10.1
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: '0.
|
49
|
+
version: '0.10'
|
50
50
|
- - ">="
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: 0.
|
52
|
+
version: 0.10.1
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: eac_ruby_utils
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,11 +120,12 @@ files:
|
|
120
120
|
- lib/redmine_plugins_helper/migration/code.rb
|
121
121
|
- lib/redmine_plugins_helper/migration/database.rb
|
122
122
|
- lib/redmine_plugins_helper/migrations.rb
|
123
|
+
- lib/redmine_plugins_helper/patches.rb
|
124
|
+
- lib/redmine_plugins_helper/patches/redmine/plugin.rb
|
125
|
+
- lib/redmine_plugins_helper/patches/redmine/plugin/assets.rb
|
126
|
+
- lib/redmine_plugins_helper/patches/redmine/plugin/dependencies.rb
|
127
|
+
- lib/redmine_plugins_helper/patches/redmine/plugin/initializers.rb
|
123
128
|
- lib/redmine_plugins_helper/patches/redmine/plugin_migration_context.rb
|
124
|
-
- lib/redmine_plugins_helper/patches/redmine/plugin_patch.rb
|
125
|
-
- lib/redmine_plugins_helper/patches/redmine/plugin_patch/assets.rb
|
126
|
-
- lib/redmine_plugins_helper/patches/redmine/plugin_patch/dependencies.rb
|
127
|
-
- lib/redmine_plugins_helper/patches/redmine/plugin_patch/initializers.rb
|
128
129
|
- lib/redmine_plugins_helper/patches/test_case_patch.rb
|
129
130
|
- lib/redmine_plugins_helper/settings.rb
|
130
131
|
- lib/redmine_plugins_helper/status_migrations.rb
|