bigcartel-currency-locales 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/rails_2.3.gemfile.lock +1 -1
- data/gemfiles/rails_4.gemfile.lock +1 -1
- data/gemfiles/rails_5.gemfile.lock +1 -1
- data/lib/currency-locales/locales/en-IN.yml +26 -0
- data/lib/currency-locales/version.rb +1 -1
- data/spec/integration/currency_locales_spec.rb +21 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcc1e2ce369da0c203f2548405f8b8b94d8622565d35c59a7871b0336a817922
|
4
|
+
data.tar.gz: b56c16547c887dccd97635b1e76125f3417aa252a9cbdd57ae064bd0031e7a84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb75b9e108363a4496970e4bd38c183f30caa7b0163fb82c4c53fba738c75659f3bcf47822ec1405f0748085983602ed5fdbc317fa9c3ec9b5aa44d596f4b0c4
|
7
|
+
data.tar.gz: 98043fb0b5cfe34ec2451c43d84c2c859408d01c828487c13cc0babed769d62b02de5fa8f3daeaea2cdaeb75463400d80ec419be6aea3819b7c3ae223200f490
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"en-IN":
|
2
|
+
number:
|
3
|
+
format:
|
4
|
+
separator: "."
|
5
|
+
delimiter: ","
|
6
|
+
precision: 2
|
7
|
+
significant: false
|
8
|
+
strip_insignificant_zeros: false
|
9
|
+
|
10
|
+
currency:
|
11
|
+
format:
|
12
|
+
format: "%u%n"
|
13
|
+
unit: "₹"
|
14
|
+
separator: "."
|
15
|
+
delimiter: ","
|
16
|
+
precision: 2
|
17
|
+
significant: false
|
18
|
+
strip_insignificant_zeros: false
|
19
|
+
|
20
|
+
percentage:
|
21
|
+
format:
|
22
|
+
delimiter: ""
|
23
|
+
|
24
|
+
precision:
|
25
|
+
format:
|
26
|
+
delimiter: ""
|
@@ -98,7 +98,27 @@ describe "CurrencyLocales" do
|
|
98
98
|
big_precision.should == '9,999.99'
|
99
99
|
end
|
100
100
|
end
|
101
|
-
|
101
|
+
|
102
|
+
describe "en-IN" do
|
103
|
+
let(:locale) { 'en-IN' }
|
104
|
+
|
105
|
+
it "should translate the small amount to currency" do
|
106
|
+
small_currency.should == '₹9.99'
|
107
|
+
end
|
108
|
+
|
109
|
+
it "should translate the big amount to currency" do
|
110
|
+
big_currency.should == '₹9,999.99'
|
111
|
+
end
|
112
|
+
|
113
|
+
it "should translate the small amount with precision" do
|
114
|
+
small_precision.should == '9.99'
|
115
|
+
end
|
116
|
+
|
117
|
+
it "should translate the big amount with precision" do
|
118
|
+
big_precision.should == '9999.99'
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
102
122
|
describe "en-PH" do
|
103
123
|
let(:locale) { 'en-PH' }
|
104
124
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigcartel-currency-locales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Big Cartel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/currency-locales/locales/da.yml
|
77
77
|
- lib/currency-locales/locales/en-AU.yml
|
78
78
|
- lib/currency-locales/locales/en-GB.yml
|
79
|
+
- lib/currency-locales/locales/en-IN.yml
|
79
80
|
- lib/currency-locales/locales/en-PH.yml
|
80
81
|
- lib/currency-locales/locales/en-US.yml
|
81
82
|
- lib/currency-locales/locales/es-MX.yml
|
@@ -115,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: '0'
|
117
118
|
requirements: []
|
118
|
-
|
119
|
-
rubygems_version: 2.7.4
|
119
|
+
rubygems_version: 3.0.1
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Common locale data for Rails i18n of Big Cartel's supported currencies.
|