redmine_plugin_kit 1.0.3 → 1.0.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: f4535aea9c15c01d458e82d652b2a20e23724fe1e960dedb92353ce86c2b3ad4
4
- data.tar.gz: 48ceea39bf2c15365b51e0a2e3af73fb02bc02862c0f3d98117ba8e50617bac7
3
+ metadata.gz: 20fc30e0032c559eff94af09f197927f9aab7861899ae5f063a78257ee9b8d50
4
+ data.tar.gz: 3ef384ab9615a313310611dd7ab3440cb2117839d4659b6dc7a18d4edad311d8
5
5
  SHA512:
6
- metadata.gz: 405b4b2a44b60d79062c0e3338cfde79719a6f4a96bc26e5fcb16541d79f37efaf1c0c6c66398a0d9f52250d3d41f8964c1cf1af9f4ff440d1c8a0e544cbd16c
7
- data.tar.gz: 302f85f7e1f3fbda3bfb2a3427ba7b3846cb9cacf1edc89e190873a969b9cc7ab97bd1fe7082eab41dcc83fcdc80f34d9fa3ca6903eb3cafdf4ca67588b7ae58
6
+ metadata.gz: 9bbded7d01a63b15d089126a2f450eb1cbad2bba162c684a2d7c687e1436e5c1af6a623a17d5631a9fd4a4a38cc4ea4e706237761852db6ed5c6f1f37c9bd8f7
7
+ data.tar.gz: 157365a7a308ec4a0409fde5e364a235a9a207708553ea3d5daa2be522450166067eae40148288f26930504349bfd49c2a5159e74d1212d32bc52f3cb29eae6f
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Rails.application.paths['app/overrides'] ||= []
4
- Dir.glob(Rails.root.join('plugins/*/app/overrides')).each do |dir|
4
+ Dir[Rails.root.join('plugins/*/app/overrides')].each do |dir|
5
5
  Rails.application.paths['app/overrides'] << dir unless Rails.application.paths['app/overrides'].include? dir
6
6
  end
@@ -251,7 +251,7 @@ module RedminePluginKit
251
251
  Rails.logger.debug { "global helpers for #{plugin_id}: #{global_helpers.inspect}" } if debug
252
252
 
253
253
  global_helpers.each do |h|
254
- ActionView::Base.include h
254
+ ActiveSupport.on_load(:action_view) { include h }
255
255
  end
256
256
  end
257
257
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RedminePluginKit
4
- VERSION = '1.0.3'
4
+ VERSION = '1.0.4'
5
5
  end
@@ -10,7 +10,7 @@ require 'redmine_plugin_kit/loader'
10
10
 
11
11
  require 'redmine_plugin_kit/helpers/global_helper'
12
12
 
13
- ActionView::Base.include RedminePluginKit::Helpers::GlobalHelper if defined?(ActionView::Base)
13
+ ActiveSupport.on_load(:action_view) { include RedminePluginKit::Helpers::GlobalHelper } if defined?(ActionView::Base)
14
14
 
15
15
  module RedminePluginKit
16
16
  class << self
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ['lib']
25
25
  spec.required_ruby_version = '>= 2.6'
26
26
 
27
- spec.add_dependency 'deface', '1.9.0'
27
+ spec.add_runtime_dependency 'deface', '1.9.0'
28
28
  spec.add_runtime_dependency 'rails'
29
29
 
30
30
  spec.add_development_dependency 'bundler'
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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - AlphaNodes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-29 00:00:00.000000000 Z
11
+ date: 2022-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface