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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b070d162e5be4f13e539abfab7b111ef82e793ebd710edf9b9a990b460e6b5a
4
- data.tar.gz: 465edc39dacc5dc1f63320c9cb788630e9d1feea045b8b92275402a1deded6d6
3
+ metadata.gz: 97089a85968fba21c113175bd4a8d73b6c2f5bf1a13b27313b012f68cb404db6
4
+ data.tar.gz: a7ec576c449849b02b6a9c15985b793558cc93a1610c967463277f71ebd4d24e
5
5
  SHA512:
6
- metadata.gz: 5793f53204528c64ece2b5ee84cb4266948d56c5f2e0c5d7f0014221fa5b0f7e1fb769422a6e5b030419b0747b4bc33e45c28529baa3103d9b75f24031be7cd2
7
- data.tar.gz: 39e907c5a152dedd609e1af8b462b2f400c3090a569da470256e09f30039acb357e14e51e6bb32b1d0432bda487f9ad1f7f67dbc65c13b94c53a4aa98234c2dd
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/redmine/plugin_patch'
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,7 +5,7 @@ require 'eac_ruby_utils/core_ext'
5
5
  module RedminePluginsHelper
6
6
  module Patches
7
7
  module Redmine
8
- module PluginPatch
8
+ module Plugin
9
9
  module Assets
10
10
  common_concern
11
11
 
@@ -1,11 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
+ require 'eac_ruby_utils/yaml'
4
5
 
5
6
  module RedminePluginsHelper
6
7
  module Patches
7
8
  module Redmine
8
- module PluginPatch
9
+ module Plugin
9
10
  module Dependencies
10
11
  common_concern
11
12
 
@@ -5,7 +5,7 @@ require 'eac_ruby_utils/core_ext'
5
5
  module RedminePluginsHelper
6
6
  module Patches
7
7
  module Redmine
8
- module PluginPatch
8
+ module Plugin
9
9
  module Initializers
10
10
  def load_initializers
11
11
  Dir["#{initializers_directory}/*.rb"].sort.each { |f| require f }
@@ -5,14 +5,14 @@ require 'eac_ruby_utils/core_ext'
5
5
  module RedminePluginsHelper
6
6
  module Patches
7
7
  module Redmine
8
- module PluginPatch
8
+ module Plugin
9
9
  extend ActiveSupport::Concern
10
10
 
11
11
  included do
12
12
  extend ClassMethods
13
- include ::RedminePluginsHelper::Patches::Redmine::PluginPatch::Assets
14
- prepend ::RedminePluginsHelper::Patches::Redmine::PluginPatch::Dependencies
15
- include ::RedminePluginsHelper::Patches::Redmine::PluginPatch::Initializers
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::PluginPatch
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 PluginMigrationContextPatch
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?('MigrationContext')
27
+ if Redmine::Plugin.const_defined?(:MigrationContext)
28
28
  Redmine::Plugin::MigrationContext.prepend(
29
- RedminePluginsHelper::Patches::Redmine::PluginMigrationContextPatch
29
+ RedminePluginsHelper::Patches::Redmine::PluginMigrationContext
30
30
  )
31
31
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RedminePluginsHelper
4
+ module Patches
5
+ require_dependency 'redmine_plugins_helper/patches/redmine/plugin'
6
+ require_dependency 'redmine_plugins_helper/patches/redmine/plugin_migration_context'
7
+ end
8
+ end
@@ -3,5 +3,5 @@
3
3
  module RedminePluginsHelper
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  SUMMARY = 'Helper for Redmine plugins'
6
- VERSION = '0.15.2'
6
+ VERSION = '0.15.3'
7
7
  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.2
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
- - 0.15.2
7
+ - 0.15.3
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
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.9'
39
+ version: '0.10'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 0.9.2
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.9'
49
+ version: '0.10'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 0.9.2
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