bigcartel-currency-locales 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/currency-locales/locales/tr.yml +1 -1
- data/lib/currency-locales/version.rb +1 -1
- data/spec/integration/currency_locales_spec.rb +102 -102
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b893fc60725326e1d2852d2fa6ab3e2c23e317fddff46fce3323971b45a45790
|
4
|
+
data.tar.gz: 0ddf5bf1f8d3d2a20a57be753c7ae150aeca880102719d57c86d89285df71df4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0561cd50c1313e0f17396cb5a29d64345b9d7c0090cb4d3fd92a75af5575c84a86cd71c438ce6d2ace5bb6a03323f6efcca2ef9f8d0756e1e579365ef053c93
|
7
|
+
data.tar.gz: 37f78c78cba70b92b8e0a68dfc626c3f6753838776631710f74f69e9f2f5aafb4f56a4a24ce4fa6d06b5a90ecca40d7eee87c14a78f0e7c29a4e527871090b7c
|
@@ -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,86 +14,86 @@ 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
|
@@ -121,39 +121,39 @@ describe "CurrencyLocales" do
|
|
121
121
|
|
122
122
|
describe "en-PH" do
|
123
123
|
let(:locale) { 'en-PH' }
|
124
|
-
|
124
|
+
|
125
125
|
it "should translate the small amount to currency" do
|
126
126
|
small_currency.should == '₱9.99'
|
127
127
|
end
|
128
|
-
|
128
|
+
|
129
129
|
it "should translate the big amount to currency" do
|
130
130
|
big_currency.should == '₱9,999.99'
|
131
131
|
end
|
132
|
-
|
132
|
+
|
133
133
|
it "should translate the small amount with precision" do
|
134
134
|
small_precision.should == '9.99'
|
135
135
|
end
|
136
|
-
|
136
|
+
|
137
137
|
it "should translate the big amount with precision" do
|
138
138
|
big_precision.should == '9,999.99'
|
139
139
|
end
|
140
140
|
end
|
141
|
-
|
141
|
+
|
142
142
|
describe "es-MX" do
|
143
143
|
let(:locale) { 'es-MX' }
|
144
|
-
|
144
|
+
|
145
145
|
it "should translate the small amount to currency" do
|
146
146
|
small_currency.should == '$9.99'
|
147
147
|
end
|
148
|
-
|
148
|
+
|
149
149
|
it "should translate the big amount to currency" do
|
150
150
|
big_currency.should == '$9,999.99'
|
151
151
|
end
|
152
|
-
|
152
|
+
|
153
153
|
it "should translate the small amount with precision" do
|
154
154
|
small_precision.should == '9.99'
|
155
155
|
end
|
156
|
-
|
156
|
+
|
157
157
|
it "should translate the big amount with precision" do
|
158
158
|
big_precision.should == '9,999.99'
|
159
159
|
end
|
@@ -161,279 +161,279 @@ describe "CurrencyLocales" do
|
|
161
161
|
|
162
162
|
describe "en-US" do
|
163
163
|
let(:locale) { 'en-US' }
|
164
|
-
|
164
|
+
|
165
165
|
it "should translate the small amount to currency" do
|
166
166
|
small_currency.should == '$9.99'
|
167
167
|
end
|
168
|
-
|
168
|
+
|
169
169
|
it "should translate the big amount to currency" do
|
170
170
|
big_currency.should == '$9,999.99'
|
171
171
|
end
|
172
|
-
|
172
|
+
|
173
173
|
it "should translate the small amount with precision" do
|
174
174
|
small_precision.should == '9.99'
|
175
175
|
end
|
176
|
-
|
176
|
+
|
177
177
|
it "should translate the big amount with precision" do
|
178
178
|
big_precision.should == '9,999.99'
|
179
179
|
end
|
180
180
|
end
|
181
|
-
|
181
|
+
|
182
182
|
describe "eu" do
|
183
183
|
let(:locale) { 'eu' }
|
184
|
-
|
184
|
+
|
185
185
|
it "should translate the small amount to currency" do
|
186
186
|
small_currency.should == '€9.99'
|
187
187
|
end
|
188
|
-
|
188
|
+
|
189
189
|
it "should translate the big amount to currency" do
|
190
190
|
big_currency.should == '€9,999.99'
|
191
191
|
end
|
192
|
-
|
192
|
+
|
193
193
|
it "should translate the small amount with precision" do
|
194
194
|
small_precision.should == '9.99'
|
195
195
|
end
|
196
|
-
|
196
|
+
|
197
197
|
it "should translate the big amount with precision" do
|
198
198
|
big_precision.should == '9,999.99'
|
199
199
|
end
|
200
200
|
end
|
201
|
-
|
201
|
+
|
202
202
|
describe "gsw-CH" do
|
203
203
|
let(:locale) { 'gsw-CH' }
|
204
|
-
|
204
|
+
|
205
205
|
it "should translate the small amount to currency" do
|
206
206
|
small_currency.should == 'CHF9.99'
|
207
207
|
end
|
208
|
-
|
208
|
+
|
209
209
|
it "should translate the big amount to currency" do
|
210
210
|
big_currency.should == 'CHF9,999.99'
|
211
211
|
end
|
212
|
-
|
212
|
+
|
213
213
|
it "should translate the small amount with precision" do
|
214
214
|
small_precision.should == '9.99'
|
215
215
|
end
|
216
|
-
|
216
|
+
|
217
217
|
it "should translate the big amount with precision" do
|
218
218
|
big_precision.should == '9,999.99'
|
219
219
|
end
|
220
220
|
end
|
221
|
-
|
221
|
+
|
222
222
|
describe "hu" do
|
223
223
|
let(:locale) { 'hu' }
|
224
|
-
|
224
|
+
|
225
225
|
it "should translate the small amount to currency" do
|
226
226
|
small_currency.should == '10Ft'
|
227
227
|
end
|
228
|
-
|
228
|
+
|
229
229
|
it "should translate the big amount to currency" do
|
230
230
|
big_currency.should == '10000Ft'
|
231
231
|
end
|
232
|
-
|
232
|
+
|
233
233
|
it "should translate the small amount with precision" do
|
234
234
|
small_precision.should == '9,99'
|
235
235
|
end
|
236
|
-
|
236
|
+
|
237
237
|
it "should translate the big amount with precision" do
|
238
238
|
big_precision.should == '9999,99'
|
239
239
|
end
|
240
240
|
end
|
241
|
-
|
241
|
+
|
242
242
|
describe "il" do
|
243
243
|
let(:locale) { 'il' }
|
244
|
-
|
244
|
+
|
245
245
|
it "should translate the small amount to currency" do
|
246
246
|
small_currency.should == '₪9.99'
|
247
247
|
end
|
248
|
-
|
248
|
+
|
249
249
|
it "should translate the big amount to currency" do
|
250
250
|
big_currency.should == '₪9,999.99'
|
251
251
|
end
|
252
|
-
|
252
|
+
|
253
253
|
it "should translate the small amount with precision" do
|
254
254
|
small_precision.should == '9.99'
|
255
255
|
end
|
256
|
-
|
256
|
+
|
257
257
|
it "should translate the big amount with precision" do
|
258
258
|
big_precision.should == '9,999.99'
|
259
259
|
end
|
260
260
|
end
|
261
|
-
|
261
|
+
|
262
262
|
describe "ja" do
|
263
263
|
let(:locale) { 'ja' }
|
264
|
-
|
264
|
+
|
265
265
|
it "should translate the small amount to currency" do
|
266
266
|
small_currency.should == '¥10'
|
267
267
|
end
|
268
|
-
|
268
|
+
|
269
269
|
it "should translate the big amount to currency" do
|
270
270
|
big_currency.should == '¥10,000'
|
271
271
|
end
|
272
|
-
|
272
|
+
|
273
273
|
it "should translate the small amount with precision" do
|
274
274
|
small_precision.should == '9.99'
|
275
275
|
end
|
276
|
-
|
276
|
+
|
277
277
|
it "should translate the big amount with precision" do
|
278
278
|
big_precision.should == '9,999.99'
|
279
279
|
end
|
280
280
|
end
|
281
|
-
|
281
|
+
|
282
282
|
describe "ms-MY" do
|
283
283
|
let(:locale) { 'ms-MY' }
|
284
|
-
|
284
|
+
|
285
285
|
it "should translate the small amount to currency" do
|
286
286
|
small_currency.should == 'RM9.99'
|
287
287
|
end
|
288
|
-
|
288
|
+
|
289
289
|
it "should translate the big amount to currency" do
|
290
290
|
big_currency.should == 'RM9,999.99'
|
291
291
|
end
|
292
|
-
|
292
|
+
|
293
293
|
it "should translate the small amount with precision" do
|
294
294
|
small_precision.should == '9.99'
|
295
295
|
end
|
296
|
-
|
296
|
+
|
297
297
|
it "should translate the big amount with precision" do
|
298
298
|
big_precision.should == '9,999.99'
|
299
299
|
end
|
300
300
|
end
|
301
|
-
|
301
|
+
|
302
302
|
describe "nb" do
|
303
303
|
let(:locale) { 'nb' }
|
304
|
-
|
304
|
+
|
305
305
|
it "should translate the small amount to currency" do
|
306
306
|
small_currency.should == '9,99kr'
|
307
307
|
end
|
308
|
-
|
308
|
+
|
309
309
|
it "should translate the big amount to currency" do
|
310
310
|
big_currency.should == '9999,99kr'
|
311
311
|
end
|
312
|
-
|
312
|
+
|
313
313
|
it "should translate the small amount with precision" do
|
314
314
|
small_precision.should == '9,99'
|
315
315
|
end
|
316
|
-
|
316
|
+
|
317
317
|
it "should translate the big amount with precision" do
|
318
318
|
big_precision.should == '9999,99'
|
319
319
|
end
|
320
320
|
end
|
321
|
-
|
321
|
+
|
322
322
|
describe "pl" do
|
323
323
|
let(:locale) { 'pl' }
|
324
|
-
|
324
|
+
|
325
325
|
it "should translate the small amount to currency" do
|
326
326
|
small_currency.should == '9,99zł'
|
327
327
|
end
|
328
|
-
|
328
|
+
|
329
329
|
it "should translate the big amount to currency" do
|
330
330
|
big_currency.should == '9999,99zł'
|
331
331
|
end
|
332
|
-
|
332
|
+
|
333
333
|
it "should translate the small amount with precision" do
|
334
334
|
small_precision.should == '9,99'
|
335
335
|
end
|
336
|
-
|
336
|
+
|
337
337
|
it "should translate the big amount with precision" do
|
338
338
|
big_precision.should == '9999,99'
|
339
339
|
end
|
340
340
|
end
|
341
|
-
|
341
|
+
|
342
342
|
describe "pt-BR" do
|
343
343
|
let(:locale) { 'pt-BR' }
|
344
|
-
|
344
|
+
|
345
345
|
it "should translate the small amount to currency" do
|
346
346
|
small_currency.should == 'R$9,99'
|
347
347
|
end
|
348
|
-
|
348
|
+
|
349
349
|
it "should translate the big amount to currency" do
|
350
350
|
big_currency.should == 'R$9.999,99'
|
351
351
|
end
|
352
|
-
|
352
|
+
|
353
353
|
it "should translate the small amount with precision" do
|
354
354
|
small_precision.should == '9,99'
|
355
355
|
end
|
356
|
-
|
356
|
+
|
357
357
|
it "should translate the big amount with precision" do
|
358
358
|
big_precision.should == '9.999,99'
|
359
359
|
end
|
360
360
|
end
|
361
|
-
|
361
|
+
|
362
362
|
describe "sv-SE" do
|
363
363
|
let(:locale) { 'sv-SE' }
|
364
|
-
|
364
|
+
|
365
365
|
it "should translate the small amount to currency" do
|
366
366
|
small_currency.should == '9,99kr'
|
367
367
|
end
|
368
|
-
|
368
|
+
|
369
369
|
it "should translate the big amount to currency" do
|
370
370
|
big_currency.should == '9999,99kr'
|
371
371
|
end
|
372
|
-
|
372
|
+
|
373
373
|
it "should translate the small amount with precision" do
|
374
374
|
small_precision.should == '9,99'
|
375
375
|
end
|
376
|
-
|
376
|
+
|
377
377
|
it "should translate the big amount with precision" do
|
378
378
|
big_precision.should == '9999,99'
|
379
379
|
end
|
380
380
|
end
|
381
|
-
|
381
|
+
|
382
382
|
describe "th" do
|
383
383
|
let(:locale) { 'th' }
|
384
|
-
|
384
|
+
|
385
385
|
it "should translate the small amount to currency" do
|
386
386
|
small_currency.should == '9.99฿'
|
387
387
|
end
|
388
|
-
|
388
|
+
|
389
389
|
it "should translate the big amount to currency" do
|
390
390
|
big_currency.should == '9,999.99฿'
|
391
391
|
end
|
392
|
-
|
392
|
+
|
393
393
|
it "should translate the small amount with precision" do
|
394
394
|
small_precision.should == '9.99'
|
395
395
|
end
|
396
|
-
|
396
|
+
|
397
397
|
it "should translate the big amount with precision" do
|
398
398
|
big_precision.should == '9,999.99'
|
399
399
|
end
|
400
400
|
end
|
401
|
-
|
401
|
+
|
402
402
|
describe "tr" do
|
403
403
|
let(:locale) { 'tr' }
|
404
|
-
|
404
|
+
|
405
405
|
it "should translate the small amount to currency" do
|
406
|
-
small_currency.should == '9,99
|
406
|
+
small_currency.should == '9,99 ₺'
|
407
407
|
end
|
408
|
-
|
408
|
+
|
409
409
|
it "should translate the big amount to currency" do
|
410
|
-
big_currency.should == '9.999,99
|
410
|
+
big_currency.should == '9.999,99 ₺'
|
411
411
|
end
|
412
|
-
|
412
|
+
|
413
413
|
it "should translate the small amount with precision" do
|
414
414
|
small_precision.should == '9,99'
|
415
415
|
end
|
416
|
-
|
416
|
+
|
417
417
|
it "should translate the big amount with precision" do
|
418
418
|
big_precision.should == '9.999,99'
|
419
419
|
end
|
420
420
|
end
|
421
|
-
|
421
|
+
|
422
422
|
describe "zh-TW" do
|
423
423
|
let(:locale) { 'zh-TW' }
|
424
|
-
|
424
|
+
|
425
425
|
it "should translate the small amount to currency" do
|
426
426
|
small_currency.should == 'NT$9.99'
|
427
427
|
end
|
428
|
-
|
428
|
+
|
429
429
|
it "should translate the big amount to currency" do
|
430
430
|
big_currency.should == 'NT$9,999.99'
|
431
431
|
end
|
432
|
-
|
432
|
+
|
433
433
|
it "should translate the small amount with precision" do
|
434
434
|
small_precision.should == '9.99'
|
435
435
|
end
|
436
|
-
|
436
|
+
|
437
437
|
it "should translate the big amount with precision" do
|
438
438
|
big_precision.should == '9,999.99'
|
439
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
|
+
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:
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
|
-
rubygems_version: 3.
|
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.
|