sheng 0.7.0 → 0.7.1
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: 46b56f32284c6a90b179ca60a00159cd68c7252d
|
|
4
|
+
data.tar.gz: 7eba0edec4853b14d650d1473b3151ddfd78bbe6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 357d2e721be53f889ff3fa1562a36064ac9cf17e16b8f7e61a3d34d1782eda453784e6b692ab3be63f710626579565db5f48110b80f6962dc84f352599b8ad9d
|
|
7
|
+
data.tar.gz: 11efa2474456149a2f429a9e034bd6c4990d29165df917902c05dd5c8c1087cb1b8f316175c9f1313984de8a84ca4c67009dd4139cfc6aa233506942e62f817b
|
data/lib/sheng/version.rb
CHANGED
data/sheng.gemspec
CHANGED
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
|
7
7
|
spec.name = "sheng"
|
|
8
8
|
spec.version = Sheng::VERSION
|
|
9
9
|
spec.authors = ["Ravi Gadad", "Maher Hawash"]
|
|
10
|
-
spec.email = ["ravi@renewfund.com"
|
|
10
|
+
spec.email = ["ravi@renewfund.com"]
|
|
11
11
|
spec.description = "A Ruby gem for data merging Word documents."
|
|
12
12
|
spec.summary = "A Ruby gem for data merging Word documents, using native MergeFields as placeholders in templates, and a Ruby hash as the data set for substitution."
|
|
13
13
|
spec.homepage = ""
|
|
@@ -4,7 +4,9 @@ describe Sheng::Filters::CurrencyFormattingFilter do
|
|
|
4
4
|
test_cases = [
|
|
5
5
|
{ method: :currency, input: 3452341.826, output: "3,452,341.83" },
|
|
6
6
|
{ method: :currency, input: "1645.3", output: "1,645.30" },
|
|
7
|
+
{ method: :currency, input: "1,645.3", arguments: ["-$"], output: "-$1,645.30" },
|
|
7
8
|
{ method: :currency, input: 192.3, output: "192.30" },
|
|
9
|
+
{ method: :currency, input: "19.3", output: "19.30" },
|
|
8
10
|
{ method: :currency, arguments: ["¥"], input: "12351.184", output: "¥12,351.18" }
|
|
9
11
|
]
|
|
10
12
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sheng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ravi Gadad
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-06-
|
|
12
|
+
date: 2016-06-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -154,7 +154,6 @@ dependencies:
|
|
|
154
154
|
description: A Ruby gem for data merging Word documents.
|
|
155
155
|
email:
|
|
156
156
|
- ravi@renewfund.com
|
|
157
|
-
- hungryed6@gmail.com
|
|
158
157
|
executables: []
|
|
159
158
|
extensions: []
|
|
160
159
|
extra_rdoc_files: []
|