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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9e86887a2bfba0aa2e5013f51caba9ddda458c94dfff91921624953f5327ccf7
4
- data.tar.gz: 7aa8b4b75817b1e1b7591bd68136dba31fcf376a48ade00a2960816589cc229f
3
+ metadata.gz: fcc1e2ce369da0c203f2548405f8b8b94d8622565d35c59a7871b0336a817922
4
+ data.tar.gz: b56c16547c887dccd97635b1e76125f3417aa252a9cbdd57ae064bd0031e7a84
5
5
  SHA512:
6
- metadata.gz: 713364453e4379bdc715dd19dd62c111acf8ebc8f1d4c611e7f166b8f5c3549ee33d4d9ced3dcf5287e77f95a53f68848f9629076edc6ebfff30fdc5b38f3ec1
7
- data.tar.gz: d96ce4e29ff3c84da1c0babf73706422330c254bd3e14a1aed1a52947ad74488ca689f7622ed0d9b58372fe11806e366b5f715e074f1b5801f815a9954bf2097
6
+ metadata.gz: bb75b9e108363a4496970e4bd38c183f30caa7b0163fb82c4c53fba738c75659f3bcf47822ec1405f0748085983602ed5fdbc317fa9c3ec9b5aa44d596f4b0c4
7
+ data.tar.gz: 98043fb0b5cfe34ec2451c43d84c2c859408d01c828487c13cc0babed769d62b02de5fa8f3daeaea2cdaeb75463400d80ec419be6aea3819b7c3ae223200f490
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- bigcartel-currency-locales (1.4.0)
4
+ bigcartel-currency-locales (1.5.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- bigcartel-currency-locales (1.4.0)
4
+ bigcartel-currency-locales (1.5.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- bigcartel-currency-locales (1.4.0)
4
+ bigcartel-currency-locales (1.5.0)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -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: ""
@@ -1,5 +1,5 @@
1
1
  module BigCartel
2
2
  module CurrencyLocales
3
- VERSION = "1.4.0"
3
+ VERSION = "1.5.0"
4
4
  end
5
5
  end
@@ -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.0
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: 2018-02-08 00:00:00.000000000 Z
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
- rubyforge_project:
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.