ende 0.3.4 → 0.3.5
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e5ab945e667fab4518f897b641e41c3a63a2ccad
|
|
4
|
+
data.tar.gz: 5bf29f25cf19c73e0ae910b05efae3111b927658
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79b8f2332cb04cfb54dc58115022a507d83188aff1e5570f494e7e365858dbc2b0d4331c9c923424b5edf28bad80e58e2e9f42b103cb81e15a8292125183dd99
|
|
7
|
+
data.tar.gz: fbcfe1d946d46ce49dec149c7dbc793a49f0f27040edd0f328d90c60a373a81a8b8dc3c28a386a62b9fc333ae86a28a3f63e805287604c22f27f334e808f6d1b
|
|
@@ -4,21 +4,20 @@ define 'aura/extensions/rivets/accounting', ['vendor/accounting'], (accounting)
|
|
|
4
4
|
|
|
5
5
|
rivets = require 'mikeric-rivets/dist/rivets'
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# Returns the value currency formatted by accounting.js
|
|
15
|
-
currency: (v) -> accounting.formatMoney v
|
|
7
|
+
# ### currency
|
|
8
|
+
# ```data-text="user.accountBalance | currency"```
|
|
9
|
+
#
|
|
10
|
+
# You must include [accounting.js](http://josscrowcroft.github.com/accounting.js/) on your page to use this. It is not bundled.
|
|
11
|
+
#
|
|
12
|
+
# Returns the value currency formatted by accounting.js
|
|
13
|
+
rivets.formatters.currency = (v) -> accounting.formatMoney v
|
|
16
14
|
|
|
17
15
|
initialize: (application) ->
|
|
18
16
|
{core} = application
|
|
19
17
|
|
|
20
18
|
core.util.extend accounting.settings.currency,
|
|
21
19
|
symbol: 'R$'
|
|
20
|
+
format: '%s %v'
|
|
22
21
|
thousand: '.'
|
|
23
22
|
decimal: ','
|
|
24
23
|
|
|
@@ -12,9 +12,10 @@ define 'aura/extensions/rivets', ['extensions/rivets/formatters'], (formatters)-
|
|
|
12
12
|
|
|
13
13
|
observable_configuration = require 'indefinido-observable/lib/adapters/rivets'
|
|
14
14
|
|
|
15
|
+
extend rivets.formatters, formatters
|
|
16
|
+
|
|
15
17
|
rivets.configure observable_configuration
|
|
16
18
|
rivets.configure
|
|
17
|
-
formatters: formatters
|
|
18
19
|
templateDelimiters: ['{{', '}}']
|
|
19
20
|
|
|
20
21
|
# Custom rivets view because we don't want to prefix attributes
|
data/lib/ende/version.rb
CHANGED