ende 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d24ccd4924909fbc2f6b8b2efd1cd7f726150ee1
4
- data.tar.gz: 38ad8038c472810465940bc4da1b6f26c8d7932a
3
+ metadata.gz: e5ab945e667fab4518f897b641e41c3a63a2ccad
4
+ data.tar.gz: 5bf29f25cf19c73e0ae910b05efae3111b927658
5
5
  SHA512:
6
- metadata.gz: 9c1e7a3e80b3d7915a61597bb57c6208659b50f3ab90cb3343fcb8d8fd8028a1cc6feade21af6397e89fe5df410058fec8aaf15210d2f75b6d5aaafd8914212a
7
- data.tar.gz: f862326bf57c4dd40bb4d31319a3096403dbddb7141805b6db2ac822a9fdcb25c2c1094f4865853dab7433bda16da4a74da588fdfa3d8c0d24d7c4a30366ac65
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
- rivets.configure
8
- formatters:
9
- # ### currency
10
- # ```data-text="user.accountBalance | currency"```
11
- #
12
- # You must include [accounting.js](http://josscrowcroft.github.com/accounting.js/) on your page to use this. It is not bundled.
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
@@ -1,3 +1,3 @@
1
1
  module Ende
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ende
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heitor Salazar