redmine_plugins_helper 0.15.1 → 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: b950c1e84ee7661ff913a315654b2be0087087a5ceed3eba44d525c19af42e0c
4
- data.tar.gz: 6446ddcc9a5e4e7ec0ffce9d9e4ad3b759961b8bbb4ab72abeba3404d2912281
3
+ metadata.gz: 97089a85968fba21c113175bd4a8d73b6c2f5bf1a13b27313b012f68cb404db6
4
+ data.tar.gz: a7ec576c449849b02b6a9c15985b793558cc93a1610c967463277f71ebd4d24e
5
5
  SHA512:
6
- metadata.gz: a63e6272c6b2eb51c846d9be8b7b5c48ca10eb4641a366910a0effd13c81a33c7304f893602798532171dbd74c08728612465af645f0076193e9e24546fd033d
7
- data.tar.gz: 50dda184889542e643a60fc37800f3916cbfdb3f10c1bc43204db272961c0cea8e75c106bc9d2db40a04aadbf515b3e7fe56bd4c5eb82754e44d7dec803aa986
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'
17
- Redmine::Plugin.all.each(&:add_assets_paths)
18
- Redmine::Plugin.all.each(&:load_initializers)
15
+ require_dependency 'redmine_plugins_helper/patches'
16
+ Redmine::Plugin.all.sort.each(&:add_assets_paths)
17
+ Redmine::Plugin.all.sort.each(&:load_initializers)
19
18
  end
data/lib/enumerator.rb CHANGED
@@ -1,2 +1,3 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Required by "sass/utils", it fails if RUBY_VERSION == 2.7.6.
@@ -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.1'
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.1
4
+ version: 0.15.3
5
5
  platform: ruby
6
6
  authors:
7
- - 0.15.1
7
+ - 0.15.3
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-21 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
@@ -84,26 +84,6 @@ dependencies:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: 2.5.2
87
- - !ruby/object:Gem::Dependency
88
- name: rspec-rails
89
- requirement: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: '5.1'
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- version: 5.1.2
97
- type: :runtime
98
- prerelease: false
99
- version_requirements: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '5.1'
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- version: 5.1.2
107
87
  - !ruby/object:Gem::Dependency
108
88
  name: sass-rails
109
89
  requirement: !ruby/object:Gem::Requirement
@@ -140,11 +120,12 @@ files:
140
120
  - lib/redmine_plugins_helper/migration/code.rb
141
121
  - lib/redmine_plugins_helper/migration/database.rb
142
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
143
128
  - lib/redmine_plugins_helper/patches/redmine/plugin_migration_context.rb
144
- - lib/redmine_plugins_helper/patches/redmine/plugin_patch.rb
145
- - lib/redmine_plugins_helper/patches/redmine/plugin_patch/assets.rb
146
- - lib/redmine_plugins_helper/patches/redmine/plugin_patch/dependencies.rb
147
- - lib/redmine_plugins_helper/patches/redmine/plugin_patch/initializers.rb
148
129
  - lib/redmine_plugins_helper/patches/test_case_patch.rb
149
130
  - lib/redmine_plugins_helper/settings.rb
150
131
  - lib/redmine_plugins_helper/status_migrations.rb