redmineup 1.0.7 → 1.0.9
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 +4 -4
- data/app/assets/images/icons.svg +8 -0
- data/app/assets/stylesheets/money.css +1 -2
- data/doc/CHANGELOG +9 -0
- data/lib/redmineup/currency.rb +3 -1
- data/lib/redmineup/liquid/filters/base.rb +10 -0
- data/lib/redmineup/patches/compatibility/sprite_patch.rb +2 -2
- data/lib/redmineup/patches/compatibility_patch.rb +1 -1
- data/lib/redmineup/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 785a28d029a642ecf01ce919e3c4590b2e393bec640da155fb289eef8aedd1b9
|
4
|
+
data.tar.gz: 4fcb6f8c483751c3a110adbcadc6d2ad78191b0204fc1178623d03b968a50e3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf9f8165edb02007ef48a4f8cb56a3f89d60f11fdf771706037b701d1da24017933a057961bc941e19a2afa96affcd269341b14b5443cb76d39c34dff4c5553a
|
7
|
+
data.tar.gz: fdc12c196149feb894ab2b02e46d0c216007e40adb9982e121ec208a80a1e5fa9ce77dbc66430ec54a806b9c87cc855a8d12fa0539db1bc539dcc33cf072b392
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" class="icon--sprite">
|
3
|
+
<defs>
|
4
|
+
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" id="icon--money">
|
5
|
+
<path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M16 6m-5 0a5 3 0 1 0 10 0a5 3 0 1 0 -10 0" /><path d="M11 6v4c0 1.657 2.239 3 5 3s5 -1.343 5 -3v-4" /><path d="M11 10v4c0 1.657 2.239 3 5 3s5 -1.343 5 -3v-4" /><path d="M11 14v4c0 1.657 2.239 3 5 3s5 -1.343 5 -3v-4" /><path d="M7 9h-2.5a1.5 1.5 0 0 0 0 3h1a1.5 1.5 0 0 1 0 3h-2.5" /><path d="M5 15v1m0 -8v1" />
|
6
|
+
</symbol>
|
7
|
+
</defs>
|
8
|
+
</svg>
|
data/doc/CHANGELOG
CHANGED
@@ -4,6 +4,15 @@ 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-02-04 v1.0.9
|
8
|
+
|
9
|
+
* Added regex_replace Liquid filter
|
10
|
+
* Added svg icons for Redmine 6
|
11
|
+
|
12
|
+
== 2025-01-31 v1.0.8
|
13
|
+
|
14
|
+
* Fixed compatibility patch for Redmine < 5
|
15
|
+
|
7
16
|
== 2025-01-29 v1.0.7
|
8
17
|
|
9
18
|
* Fixed parse_inline_attachments Liquid filter
|
data/lib/redmineup/currency.rb
CHANGED
@@ -40,7 +40,9 @@ module Redmineup
|
|
40
40
|
Redmine::MenuManager.map(:admin_menu).push(:redmineup_money,
|
41
41
|
{ controller: 'redmineup', action: 'settings', id: 'money' },
|
42
42
|
caption: :label_redmineup_money,
|
43
|
-
html: { class: 'icon icon-redmineup-money' }
|
43
|
+
html: { class: 'icon icon-redmineup-money' },
|
44
|
+
icon: 'money',
|
45
|
+
plugin: :redmineup)
|
44
46
|
|
45
47
|
end
|
46
48
|
|
@@ -38,6 +38,16 @@ module Redmineup
|
|
38
38
|
Digest::MD5.hexdigest(input) unless input.blank?
|
39
39
|
end
|
40
40
|
|
41
|
+
def regex_replace(str, regex_search, value_replace)
|
42
|
+
regex = /#{regex_search}/
|
43
|
+
return str.gsub(regex, value_replace)
|
44
|
+
end
|
45
|
+
|
46
|
+
def regex_replace_once(str, regex_search, value_replace)
|
47
|
+
regex = /#{regex_search}/
|
48
|
+
return str.sub(regex, value_replace)
|
49
|
+
end
|
50
|
+
|
41
51
|
# example:
|
42
52
|
# {{ "http:://www.example.com?key=hello world" | encode }}
|
43
53
|
#
|
@@ -16,6 +16,6 @@ module Redmineup
|
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
19
|
-
unless
|
20
|
-
|
19
|
+
unless ActionView::Base.included_modules.include?(Redmineup::Patches::Compatibility::SpritePatch)
|
20
|
+
ActionView::Base.send(:include, Redmineup::Patches::Compatibility::SpritePatch)
|
21
21
|
end
|
@@ -4,7 +4,7 @@ end
|
|
4
4
|
if Redmine::VERSION.to_s < "5"
|
5
5
|
require 'redmineup/patches/compatibility/user_patch'
|
6
6
|
end
|
7
|
-
|
7
|
+
if Redmine::VERSION.to_s < "6"
|
8
8
|
require 'redmineup/patches/compatibility/sprite_patch'
|
9
9
|
end
|
10
10
|
require 'redmineup/patches/compatibility/routing_mapper_patch'
|
data/lib/redmineup/version.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RedmineUP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -112,6 +112,7 @@ files:
|
|
112
112
|
- Gemfile
|
113
113
|
- README.md
|
114
114
|
- Rakefile
|
115
|
+
- app/assets/images/icons.svg
|
115
116
|
- app/assets/images/money.png
|
116
117
|
- app/assets/images/vcard.png
|
117
118
|
- app/assets/javascripts/Chart.bundle.min.js.bak
|