bigcartel-currency-locales 1.4.0 → 1.6.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: b893fc60725326e1d2852d2fa6ab3e2c23e317fddff46fce3323971b45a45790
4
+ data.tar.gz: 0ddf5bf1f8d3d2a20a57be753c7ae150aeca880102719d57c86d89285df71df4
5
5
  SHA512:
6
- metadata.gz: 713364453e4379bdc715dd19dd62c111acf8ebc8f1d4c611e7f166b8f5c3549ee33d4d9ced3dcf5287e77f95a53f68848f9629076edc6ebfff30fdc5b38f3ec1
7
- data.tar.gz: d96ce4e29ff3c84da1c0babf73706422330c254bd3e14a1aed1a52947ad74488ca689f7622ed0d9b58372fe11806e366b5f715e074f1b5801f815a9954bf2097
6
+ metadata.gz: b0561cd50c1313e0f17396cb5a29d64345b9d7c0090cb4d3fd92a75af5575c84a86cd71c438ce6d2ace5bb6a03323f6efcca2ef9f8d0756e1e579365ef053c93
7
+ data.tar.gz: 37f78c78cba70b92b8e0a68dfc626c3f6753838776631710f74f69e9f2f5aafb4f56a4a24ce4fa6d06b5a90ecca40d7eee87c14a78f0e7c29a4e527871090b7c
@@ -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: ""
@@ -10,7 +10,7 @@ tr:
10
10
  currency:
11
11
  format:
12
12
  format: "%n %u"
13
- unit: "TL"
13
+ unit: ""
14
14
  separator: ","
15
15
  delimiter: "."
16
16
  precision: 2
@@ -1,5 +1,5 @@
1
1
  module BigCartel
2
2
  module CurrencyLocales
3
- VERSION = "1.4.0"
3
+ VERSION = "1.6.0"
4
4
  end
5
5
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  require 'spec_helper'
4
4
 
5
- describe "CurrencyLocales" do
5
+ describe "CurrencyLocales" do
6
6
  let(:small_amount) { 9.99 }
7
7
  let(:small_currency) { number_to_currency(small_amount) }
8
8
  let(:small_precision) { number_with_precision(small_amount) }
9
-
9
+
10
10
  let(:big_amount) { 9999.99 }
11
11
  let(:big_currency) { number_to_currency(big_amount) }
12
12
  let(:big_precision) { number_with_precision(big_amount) }
@@ -14,126 +14,146 @@ describe "CurrencyLocales" do
14
14
  def number_to_currency(number)
15
15
  ActionController::Base.helpers.number_to_currency(number, :locale => locale)
16
16
  end
17
-
17
+
18
18
  def number_with_precision(number)
19
19
  ActionController::Base.helpers.number_with_precision(number, :locale => locale)
20
20
  end
21
21
 
22
22
  describe "cs" do
23
23
  let(:locale) { 'cs' }
24
-
24
+
25
25
  it "should translate the small amount to currency" do
26
26
  small_currency.should == '9,99Kč'
27
27
  end
28
-
28
+
29
29
  it "should translate the big amount to currency" do
30
30
  big_currency.should == '9999,99Kč'
31
31
  end
32
-
32
+
33
33
  it "should translate the small amount with precision" do
34
34
  small_precision.should == '9,99'
35
35
  end
36
-
36
+
37
37
  it "should translate the big amount with precision" do
38
38
  big_precision.should == '9999,99'
39
39
  end
40
40
  end
41
-
41
+
42
42
  describe "da" do
43
43
  let(:locale) { 'da' }
44
-
44
+
45
45
  it "should translate the small amount to currency" do
46
46
  small_currency.should == 'kr9,99'
47
47
  end
48
-
48
+
49
49
  it "should translate the big amount to currency" do
50
50
  big_currency.should == 'kr9.999,99'
51
51
  end
52
-
52
+
53
53
  it "should translate the small amount with precision" do
54
54
  small_precision.should == '9,99'
55
55
  end
56
-
56
+
57
57
  it "should translate the big amount with precision" do
58
58
  big_precision.should == '9.999,99'
59
59
  end
60
60
  end
61
-
61
+
62
62
  describe "en-AU" do
63
63
  let(:locale) { 'en-AU' }
64
-
64
+
65
65
  it "should translate the small amount to currency" do
66
66
  small_currency.should == '$9.99'
67
67
  end
68
-
68
+
69
69
  it "should translate the big amount to currency" do
70
70
  big_currency.should == '$9,999.99'
71
71
  end
72
-
72
+
73
73
  it "should translate the small amount with precision" do
74
74
  small_precision.should == '9.99'
75
75
  end
76
-
76
+
77
77
  it "should translate the big amount with precision" do
78
78
  big_precision.should == '9,999.99'
79
79
  end
80
80
  end
81
-
81
+
82
82
  describe "en-GB" do
83
83
  let(:locale) { 'en-GB' }
84
-
84
+
85
85
  it "should translate the small amount to currency" do
86
86
  small_currency.should == '£9.99'
87
87
  end
88
-
88
+
89
89
  it "should translate the big amount to currency" do
90
90
  big_currency.should == '£9,999.99'
91
91
  end
92
-
92
+
93
93
  it "should translate the small amount with precision" do
94
94
  small_precision.should == '9.99'
95
95
  end
96
-
96
+
97
97
  it "should translate the big amount with precision" 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
+
105
125
  it "should translate the small amount to currency" do
106
126
  small_currency.should == '₱9.99'
107
127
  end
108
-
128
+
109
129
  it "should translate the big amount to currency" do
110
130
  big_currency.should == '₱9,999.99'
111
131
  end
112
-
132
+
113
133
  it "should translate the small amount with precision" do
114
134
  small_precision.should == '9.99'
115
135
  end
116
-
136
+
117
137
  it "should translate the big amount with precision" do
118
138
  big_precision.should == '9,999.99'
119
139
  end
120
140
  end
121
-
141
+
122
142
  describe "es-MX" do
123
143
  let(:locale) { 'es-MX' }
124
-
144
+
125
145
  it "should translate the small amount to currency" do
126
146
  small_currency.should == '$9.99'
127
147
  end
128
-
148
+
129
149
  it "should translate the big amount to currency" do
130
150
  big_currency.should == '$9,999.99'
131
151
  end
132
-
152
+
133
153
  it "should translate the small amount with precision" do
134
154
  small_precision.should == '9.99'
135
155
  end
136
-
156
+
137
157
  it "should translate the big amount with precision" do
138
158
  big_precision.should == '9,999.99'
139
159
  end
@@ -141,279 +161,279 @@ describe "CurrencyLocales" do
141
161
 
142
162
  describe "en-US" do
143
163
  let(:locale) { 'en-US' }
144
-
164
+
145
165
  it "should translate the small amount to currency" do
146
166
  small_currency.should == '$9.99'
147
167
  end
148
-
168
+
149
169
  it "should translate the big amount to currency" do
150
170
  big_currency.should == '$9,999.99'
151
171
  end
152
-
172
+
153
173
  it "should translate the small amount with precision" do
154
174
  small_precision.should == '9.99'
155
175
  end
156
-
176
+
157
177
  it "should translate the big amount with precision" do
158
178
  big_precision.should == '9,999.99'
159
179
  end
160
180
  end
161
-
181
+
162
182
  describe "eu" do
163
183
  let(:locale) { 'eu' }
164
-
184
+
165
185
  it "should translate the small amount to currency" do
166
186
  small_currency.should == '€9.99'
167
187
  end
168
-
188
+
169
189
  it "should translate the big amount to currency" do
170
190
  big_currency.should == '€9,999.99'
171
191
  end
172
-
192
+
173
193
  it "should translate the small amount with precision" do
174
194
  small_precision.should == '9.99'
175
195
  end
176
-
196
+
177
197
  it "should translate the big amount with precision" do
178
198
  big_precision.should == '9,999.99'
179
199
  end
180
200
  end
181
-
201
+
182
202
  describe "gsw-CH" do
183
203
  let(:locale) { 'gsw-CH' }
184
-
204
+
185
205
  it "should translate the small amount to currency" do
186
206
  small_currency.should == 'CHF9.99'
187
207
  end
188
-
208
+
189
209
  it "should translate the big amount to currency" do
190
210
  big_currency.should == 'CHF9,999.99'
191
211
  end
192
-
212
+
193
213
  it "should translate the small amount with precision" do
194
214
  small_precision.should == '9.99'
195
215
  end
196
-
216
+
197
217
  it "should translate the big amount with precision" do
198
218
  big_precision.should == '9,999.99'
199
219
  end
200
220
  end
201
-
221
+
202
222
  describe "hu" do
203
223
  let(:locale) { 'hu' }
204
-
224
+
205
225
  it "should translate the small amount to currency" do
206
226
  small_currency.should == '10Ft'
207
227
  end
208
-
228
+
209
229
  it "should translate the big amount to currency" do
210
230
  big_currency.should == '10000Ft'
211
231
  end
212
-
232
+
213
233
  it "should translate the small amount with precision" do
214
234
  small_precision.should == '9,99'
215
235
  end
216
-
236
+
217
237
  it "should translate the big amount with precision" do
218
238
  big_precision.should == '9999,99'
219
239
  end
220
240
  end
221
-
241
+
222
242
  describe "il" do
223
243
  let(:locale) { 'il' }
224
-
244
+
225
245
  it "should translate the small amount to currency" do
226
246
  small_currency.should == '₪9.99'
227
247
  end
228
-
248
+
229
249
  it "should translate the big amount to currency" do
230
250
  big_currency.should == '₪9,999.99'
231
251
  end
232
-
252
+
233
253
  it "should translate the small amount with precision" do
234
254
  small_precision.should == '9.99'
235
255
  end
236
-
256
+
237
257
  it "should translate the big amount with precision" do
238
258
  big_precision.should == '9,999.99'
239
259
  end
240
260
  end
241
-
261
+
242
262
  describe "ja" do
243
263
  let(:locale) { 'ja' }
244
-
264
+
245
265
  it "should translate the small amount to currency" do
246
266
  small_currency.should == '¥10'
247
267
  end
248
-
268
+
249
269
  it "should translate the big amount to currency" do
250
270
  big_currency.should == '¥10,000'
251
271
  end
252
-
272
+
253
273
  it "should translate the small amount with precision" do
254
274
  small_precision.should == '9.99'
255
275
  end
256
-
276
+
257
277
  it "should translate the big amount with precision" do
258
278
  big_precision.should == '9,999.99'
259
279
  end
260
280
  end
261
-
281
+
262
282
  describe "ms-MY" do
263
283
  let(:locale) { 'ms-MY' }
264
-
284
+
265
285
  it "should translate the small amount to currency" do
266
286
  small_currency.should == 'RM9.99'
267
287
  end
268
-
288
+
269
289
  it "should translate the big amount to currency" do
270
290
  big_currency.should == 'RM9,999.99'
271
291
  end
272
-
292
+
273
293
  it "should translate the small amount with precision" do
274
294
  small_precision.should == '9.99'
275
295
  end
276
-
296
+
277
297
  it "should translate the big amount with precision" do
278
298
  big_precision.should == '9,999.99'
279
299
  end
280
300
  end
281
-
301
+
282
302
  describe "nb" do
283
303
  let(:locale) { 'nb' }
284
-
304
+
285
305
  it "should translate the small amount to currency" do
286
306
  small_currency.should == '9,99kr'
287
307
  end
288
-
308
+
289
309
  it "should translate the big amount to currency" do
290
310
  big_currency.should == '9999,99kr'
291
311
  end
292
-
312
+
293
313
  it "should translate the small amount with precision" do
294
314
  small_precision.should == '9,99'
295
315
  end
296
-
316
+
297
317
  it "should translate the big amount with precision" do
298
318
  big_precision.should == '9999,99'
299
319
  end
300
320
  end
301
-
321
+
302
322
  describe "pl" do
303
323
  let(:locale) { 'pl' }
304
-
324
+
305
325
  it "should translate the small amount to currency" do
306
326
  small_currency.should == '9,99zł'
307
327
  end
308
-
328
+
309
329
  it "should translate the big amount to currency" do
310
330
  big_currency.should == '9999,99zł'
311
331
  end
312
-
332
+
313
333
  it "should translate the small amount with precision" do
314
334
  small_precision.should == '9,99'
315
335
  end
316
-
336
+
317
337
  it "should translate the big amount with precision" do
318
338
  big_precision.should == '9999,99'
319
339
  end
320
340
  end
321
-
341
+
322
342
  describe "pt-BR" do
323
343
  let(:locale) { 'pt-BR' }
324
-
344
+
325
345
  it "should translate the small amount to currency" do
326
346
  small_currency.should == 'R$9,99'
327
347
  end
328
-
348
+
329
349
  it "should translate the big amount to currency" do
330
350
  big_currency.should == 'R$9.999,99'
331
351
  end
332
-
352
+
333
353
  it "should translate the small amount with precision" do
334
354
  small_precision.should == '9,99'
335
355
  end
336
-
356
+
337
357
  it "should translate the big amount with precision" do
338
358
  big_precision.should == '9.999,99'
339
359
  end
340
360
  end
341
-
361
+
342
362
  describe "sv-SE" do
343
363
  let(:locale) { 'sv-SE' }
344
-
364
+
345
365
  it "should translate the small amount to currency" do
346
366
  small_currency.should == '9,99kr'
347
367
  end
348
-
368
+
349
369
  it "should translate the big amount to currency" do
350
370
  big_currency.should == '9999,99kr'
351
371
  end
352
-
372
+
353
373
  it "should translate the small amount with precision" do
354
374
  small_precision.should == '9,99'
355
375
  end
356
-
376
+
357
377
  it "should translate the big amount with precision" do
358
378
  big_precision.should == '9999,99'
359
379
  end
360
380
  end
361
-
381
+
362
382
  describe "th" do
363
383
  let(:locale) { 'th' }
364
-
384
+
365
385
  it "should translate the small amount to currency" do
366
386
  small_currency.should == '9.99฿'
367
387
  end
368
-
388
+
369
389
  it "should translate the big amount to currency" do
370
390
  big_currency.should == '9,999.99฿'
371
391
  end
372
-
392
+
373
393
  it "should translate the small amount with precision" do
374
394
  small_precision.should == '9.99'
375
395
  end
376
-
396
+
377
397
  it "should translate the big amount with precision" do
378
398
  big_precision.should == '9,999.99'
379
399
  end
380
400
  end
381
-
401
+
382
402
  describe "tr" do
383
403
  let(:locale) { 'tr' }
384
-
404
+
385
405
  it "should translate the small amount to currency" do
386
- small_currency.should == '9,99 TL'
406
+ small_currency.should == '9,99 '
387
407
  end
388
-
408
+
389
409
  it "should translate the big amount to currency" do
390
- big_currency.should == '9.999,99 TL'
410
+ big_currency.should == '9.999,99 '
391
411
  end
392
-
412
+
393
413
  it "should translate the small amount with precision" do
394
414
  small_precision.should == '9,99'
395
415
  end
396
-
416
+
397
417
  it "should translate the big amount with precision" do
398
418
  big_precision.should == '9.999,99'
399
419
  end
400
420
  end
401
-
421
+
402
422
  describe "zh-TW" do
403
423
  let(:locale) { 'zh-TW' }
404
-
424
+
405
425
  it "should translate the small amount to currency" do
406
426
  small_currency.should == 'NT$9.99'
407
427
  end
408
-
428
+
409
429
  it "should translate the big amount to currency" do
410
430
  big_currency.should == 'NT$9,999.99'
411
431
  end
412
-
432
+
413
433
  it "should translate the small amount with precision" do
414
434
  small_precision.should == '9.99'
415
435
  end
416
-
436
+
417
437
  it "should translate the big amount with precision" do
418
438
  big_precision.should == '9,999.99'
419
439
  end
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.6.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: 2023-05-01 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.1.2
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: Common locale data for Rails i18n of Big Cartel's supported currencies.