redmine_plugins_helper 0.15.2 → 0.15.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b070d162e5be4f13e539abfab7b111ef82e793ebd710edf9b9a990b460e6b5a
4
- data.tar.gz: 465edc39dacc5dc1f63320c9cb788630e9d1feea045b8b92275402a1deded6d6
3
+ metadata.gz: 2af979175a20e84488209e888269c241ea5654fd83b2643c8a2dff4f4b88248d
4
+ data.tar.gz: 84b68ea11a5e1f351428f542a0e1114756044223ec370a0888e5242e765920e6
5
5
  SHA512:
6
- metadata.gz: 5793f53204528c64ece2b5ee84cb4266948d56c5f2e0c5d7f0014221fa5b0f7e1fb769422a6e5b030419b0747b4bc33e45c28529baa3103d9b75f24031be7cd2
7
- data.tar.gz: 39e907c5a152dedd609e1af8b462b2f400c3090a569da470256e09f30039acb357e14e51e6bb32b1d0432bda487f9ad1f7f67dbc65c13b94c53a4aa98234c2dd
6
+ metadata.gz: 7de715724ffd5fd7987df99c0e2334d3d451d9db80e57c6fbdcbf81835dbf4c366a3000fc564da510d815aace8115e3255e8e18ccea08bcb655d8f7d811a93bd
7
+ data.tar.gz: 927fdb497b4e8b018a3176bc18fc59f7c076a4d595d06d68bdbf205c5d38fa242db660066171bb1cfc77371e71d06c331162d335567bd92f2e6c318288bc6976
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 @@ module RedminePluginsHelper
5
5
  class << self
6
6
  def database?
7
7
  ::ActiveRecord::Base.connection
8
- rescue ActiveRecord::NoDatabaseError
8
+ rescue ActiveRecord::NoDatabaseError, PG::ConnectionBad
9
9
  false
10
10
  else
11
11
  true
@@ -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.4'
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.4
5
5
  platform: ruby
6
6
  authors:
7
- - 0.15.2
7
+ - 0.15.4
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-19 00:00:00.000000000 Z
11
+ date: 2025-07-07 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