redmineup 1.1.0 → 1.1.2

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: 1d9641fde0d380147805eb9c4a091b952e944d8fe20b7b3ca50e49a0a30b3caa
4
- data.tar.gz: 62481de6881b314734528adc59139a120b3abc2dc86298ffcd6c1ee8a0d1c69d
3
+ metadata.gz: 2fcf43fcb4e8ea71cdf32906bcceb05b8067aa7fb2da33d8df7d72e7775ffd74
4
+ data.tar.gz: 436a088ae472041d086ec6ae0c896858a9f84d168b5a999bdc541e183b3d4b07
5
5
  SHA512:
6
- metadata.gz: '0790f736703855ee89e2755bd4e314f71d2c49da6a2294b5f777e0e14175d624502ac260bcf4e8f50b4c29b491b2bbf39aed0e3c64d0807b5b780e9dca394c0d'
7
- data.tar.gz: 7e96ce727a5557d41275e0d6b16b0047d7e3d922eb3557fed5c653a54b2ea4925eff773eafa5b1cd81fedce2408afb007e8508d359285b4a9d46d11fb0d40d78
6
+ metadata.gz: bdda671371d9f8163d9eb0d346b2b71549351f7534ab4e5db080e2317ae46c5be5408ecc0386e9a3dfbb66340d6167513118cbea3f48ce91956b362f8cadc3c6
7
+ data.tar.gz: 185c02c2ed3924b13dc93e00c11bf8e90080fe3be00a88729aa278f573cc1c3f60725fddbdcbc90d25fb0a4408838e9ffc04dfb158b112070ab5f7b016ab899e
data/doc/CHANGELOG CHANGED
@@ -4,6 +4,14 @@ Redmine UP gem - general functions for plugins (tags, vote, viewing, currency)
4
4
  Copyright (C) 2011-2025 Kirill Bezrukov (RedmineUP)
5
5
  https://www.redmineup.com/
6
6
 
7
+ == 2025-11-07 v1.1.2
8
+
9
+ * Fixed assets loading error
10
+
11
+ == 2025-10-24 v1.1.1
12
+
13
+ * Fixed activation for sprite_icon patch
14
+
7
15
  == 2025-07-24 v1.1.0
8
16
 
9
17
  * Added ActionCable methods
@@ -3,12 +3,10 @@ module Redmineup
3
3
  module Compatibility
4
4
  module SpritePatch
5
5
  def self.included(base)
6
- base.send(:include, InstanceMethods)
7
- end
8
-
9
- module InstanceMethods
10
- def sprite_icon(icon_name, label = nil, icon_only: false, size: '18', css_class: nil, sprite: "icons", plugin: nil, rtl: false)
11
- label
6
+ base.class_eval do
7
+ def sprite_icon(icon_name, label = nil, icon_only: false, size: '18', css_class: nil, sprite: "icons", plugin: nil, rtl: false)
8
+ label
9
+ end
12
10
  end
13
11
  end
14
12
  end
@@ -16,6 +14,6 @@ module Redmineup
16
14
  end
17
15
  end
18
16
 
19
- unless ActionView::Base.included_modules.include?(Redmineup::Patches::Compatibility::SpritePatch)
20
- ActionView::Base.send(:include, Redmineup::Patches::Compatibility::SpritePatch)
17
+ unless ApplicationHelper.included_modules.include?(Redmineup::Patches::Compatibility::SpritePatch)
18
+ ApplicationHelper.send(:include, Redmineup::Patches::Compatibility::SpritePatch)
21
19
  end
@@ -1,3 +1,3 @@
1
1
  module Redmineup
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.2'
3
3
  end
data/lib/redmineup.rb CHANGED
@@ -77,13 +77,25 @@ end
77
77
 
78
78
  if defined?(Propshaft::Assembly)
79
79
  Propshaft::Assembly.prepend(Module.new do
80
- def initialize(config)
81
- base_dir = Pathname.new(Redmineup::AssetsManager.base_path)
82
- paths = Redmineup::AssetsManager.assets_paths.map { |path| Pathname.new(path)}
83
- asset_prefix = "plugin_assets/#{Redmineup::GEM_NAME}"
80
+ def self.prepended(base)
81
+ base.class_eval do
82
+ cattr_accessor :redmineup_patched
83
+ end
84
+ end
85
+
86
+ def config
87
+ return super if self.class.redmineup_patched
84
88
 
85
- config[:redmine_extension_paths] << Redmine::AssetPath.new(base_dir, paths, asset_prefix)
86
- super
89
+ original_config = super
90
+ if defined?(Redmine::AssetPath)
91
+ base_dir = Pathname.new(Redmineup::AssetsManager.base_path)
92
+ paths = Redmineup::AssetsManager.assets_paths.map { |path| Pathname.new(path)}
93
+ asset_prefix = "plugin_assets/#{Redmineup::GEM_NAME}"
94
+
95
+ original_config[:redmine_extension_paths] << Redmine::AssetPath.new(base_dir, paths, asset_prefix)
96
+ self.class.redmineup_patched = true
97
+ end
98
+ original_config
87
99
  end
88
100
  end)
89
101
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmineup
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - RedmineUP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-24 00:00:00.000000000 Z
11
+ date: 2025-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails