sigmund_liquid 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/sigmund/liquid/filters/number.rb +16 -0
- data/lib/sigmund/liquid/version.rb +1 -1
- data/lib/sigmund_liquid.rb +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmMwZTAzY2E5NjdjZTQ0MzczYWRhMmQ1NTRlYWYwYWMxYzZjNDQ4Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGY4M2VmOTY0ZWIxNWQ4YmM5OTQxYmI0NjViMWEwYWYwMWU4M2U2Zg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTgxYjM2YzZjOTM4MjVjZmVmNDk3ZGFiOTI3ZGU2ZjRkNTVkN2VjMzAyZjI1
|
10
|
+
Yzc3YWJlNzI2ZGY2NWI4ZTdmN2MwMTdjMjgxOGYyMTRjMzVjZWI0ZjFiZmQ2
|
11
|
+
NGJlODg0N2IzYTk1NzZlYTg0NGI2ZGQ2NzA3NTBlMDA1ZDNkY2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWYyMjQ0ZGE4NGI5OGM4YWRjNjMzMTJjZTAwMjRkMjQ2MTg4ZWEzNDE3NDc2
|
14
|
+
M2E2ZmNiYjU2MGQwZTRkY2JjNjkzMjliZWEwNmZmOTQ5ZjYwNzdhZmUxMzRl
|
15
|
+
ODYyMzUwMjIzZjk1N2U0MmM2MTQ4NmI4YmYwNDRiOTVkYWUzZTU=
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Sigmund
|
2
|
+
module Liquid
|
3
|
+
module Filters
|
4
|
+
module Number
|
5
|
+
|
6
|
+
include ActionView::Helpers::NumberHelper
|
7
|
+
|
8
|
+
def money(input)
|
9
|
+
number_to_currency(input, unit: '$').gsub(' ','')
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
::Liquid::Template.register_filter(Number)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/sigmund_liquid.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sigmund_liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- amainguy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -60,6 +60,7 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- lib/sigmund/liquid/filters/color.rb
|
63
|
+
- lib/sigmund/liquid/filters/number.rb
|
63
64
|
- lib/sigmund/liquid/tags/active_link.rb
|
64
65
|
- lib/sigmund/liquid/tags/children_nav.rb
|
65
66
|
- lib/sigmund/liquid/tags/custom_nav.rb
|