redmineup 1.1.8 → 1.1.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/doc/CHANGELOG +4 -0
- data/lib/redmineup/money_helper.rb +10 -2
- data/lib/redmineup/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c86106049672f932ee145ad768dbf9ccce8f561ffced214357d20f1c2e577ee4
|
|
4
|
+
data.tar.gz: d699012b4145e17a61d2109011659a534370b591df1094be6c5327d53a8015e5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1406f1686d0dc714580c3b107551a3e42d7270c2544c3bc207b1cc3aebee4eb70d55e861128d4006ded7ab02aff936d0ce9c6af469ec553a76047c5a5aeccb21
|
|
7
|
+
data.tar.gz: 0e83683a821243bc8fcdbbb3470604459c4d064d6d71c41fc7292e7b6ce23b509bc1bbc3fe88053d7a26652d36b28a8679d163b257f86d8105947b1b348474eb
|
data/doc/CHANGELOG
CHANGED
|
@@ -4,6 +4,10 @@ Redmine UP gem - general functions for plugins (tags, vote, viewing, currency)
|
|
|
4
4
|
Copyright (C) 2011-2026 Kirill Bezrukov (RedmineUP)
|
|
5
5
|
https://www.redmineup.com/
|
|
6
6
|
|
|
7
|
+
== 2026-05-30 v1.1.9
|
|
8
|
+
|
|
9
|
+
* Added `prices_formatted_collection` to `MoneyHelper` — returns plain text price strings from currency hash, used by query totals
|
|
10
|
+
|
|
7
11
|
== 2026-05-01 v1.1.8
|
|
8
12
|
|
|
9
13
|
* Added `on_select` callback and `select_icon` options for `select2tag` helper
|
|
@@ -8,11 +8,19 @@ module Redmineup
|
|
|
8
8
|
price_to_currency(obj.try(price_field), obj.currency, options).to_s if obj.respond_to?(:currency)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
def
|
|
11
|
+
def prices_formatted_collection(prices_collection, options = {})
|
|
12
12
|
return [] if prices_collection.blank? || prices_collection == 0
|
|
13
13
|
prices = prices_collection
|
|
14
14
|
prices.reject!{|k, v| v.to_i == 0} if options[:hide_zeros]
|
|
15
|
-
prices.
|
|
15
|
+
prices.map { |k, v| price_to_currency(v, k, symbol: true) }.compact
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def prices_collection_by_currency(prices_collection, options = {})
|
|
19
|
+
formatted_prices = prices_formatted_collection(prices_collection, options)
|
|
20
|
+
|
|
21
|
+
formatted_prices.map do |formatted_price|
|
|
22
|
+
content_tag(:span, formatted_price, :style => "white-space: nowrap;")
|
|
23
|
+
end
|
|
16
24
|
end
|
|
17
25
|
|
|
18
26
|
def deal_currency_icon(currency)
|
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.1.
|
|
4
|
+
version: 1.1.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RedmineUP
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|