money 3.7.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/CHANGELOG.md +384 -351
  2. data/LICENSE +21 -21
  3. data/README.md +243 -214
  4. data/Rakefile +49 -49
  5. data/lib/money.rb +28 -27
  6. data/lib/money/bank/base.rb +131 -131
  7. data/lib/money/bank/variable_exchange.rb +252 -252
  8. data/lib/money/core_extensions.rb +82 -82
  9. data/lib/money/currency.rb +263 -422
  10. data/lib/money/currency_loader.rb +19 -0
  11. data/lib/money/money.rb +405 -405
  12. data/lib/money/money/arithmetic.rb +246 -246
  13. data/lib/money/money/formatting.rb +260 -244
  14. data/lib/money/money/parsing.rb +350 -350
  15. data/money.gemspec +29 -35
  16. data/spec/bank/base_spec.rb +72 -72
  17. data/spec/bank/variable_exchange_spec.rb +238 -238
  18. data/spec/core_extensions_spec.rb +158 -158
  19. data/spec/currency_spec.rb +120 -133
  20. data/spec/money/arithmetic_spec.rb +479 -479
  21. data/spec/money/formatting_spec.rb +383 -375
  22. data/spec/money/parsing_spec.rb +197 -197
  23. data/spec/money_spec.rb +292 -292
  24. data/spec/spec_helper.rb +28 -28
  25. metadata +54 -126
  26. data/lib/money.rbc +0 -184
  27. data/lib/money/bank/base.rbc +0 -818
  28. data/lib/money/bank/variable_exchange.rbc +0 -2550
  29. data/lib/money/core_extensions.rbc +0 -664
  30. data/lib/money/currency.rbc +0 -22708
  31. data/lib/money/money.rbc +0 -3861
  32. data/lib/money/money/arithmetic.rbc +0 -2778
  33. data/lib/money/money/formatting.rbc +0 -2265
  34. data/lib/money/money/parsing.rbc +0 -2737
  35. data/spec/bank/base_spec.rbc +0 -2461
  36. data/spec/bank/variable_exchange_spec.rbc +0 -7541
  37. data/spec/core_extensions_spec.rbc +0 -5921
  38. data/spec/currency_spec.rbc +0 -4535
  39. data/spec/money/arithmetic_spec.rbc +0 -25140
  40. data/spec/money/formatting_spec.rbc +0 -12545
  41. data/spec/money/parsing_spec.rbc +0 -6511
  42. data/spec/money_spec.rbc +0 -9824
  43. data/spec/spec_helper.rbc +0 -575
data/spec/spec_helper.rbc DELETED
@@ -1,575 +0,0 @@
1
- !RBIX
2
- 3867755307746758099
3
- 18
4
- M
5
- 1
6
- n
7
- n
8
- x
9
- 10
10
- __script__
11
- i
12
- 62
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 5
23
- 7
24
- 2
25
- 64
26
- 47
27
- 49
28
- 1
29
- 1
30
- 15
31
- 99
32
- 7
33
- 3
34
- 7
35
- 4
36
- 65
37
- 67
38
- 49
39
- 5
40
- 0
41
- 49
42
- 6
43
- 4
44
- 15
45
- 99
46
- 7
47
- 7
48
- 7
49
- 8
50
- 65
51
- 67
52
- 49
53
- 5
54
- 0
55
- 49
56
- 6
57
- 4
58
- 15
59
- 99
60
- 7
61
- 9
62
- 7
63
- 10
64
- 65
65
- 67
66
- 49
67
- 5
68
- 0
69
- 49
70
- 6
71
- 4
72
- 15
73
- 2
74
- 11
75
- I
76
- 5
77
- I
78
- 0
79
- I
80
- 0
81
- I
82
- 0
83
- I
84
- 0
85
- n
86
- p
87
- 11
88
- s
89
- 5
90
- money
91
- x
92
- 7
93
- require
94
- s
95
- 8
96
- rubygems
97
- x
98
- 16
99
- silence_warnings
100
- M
101
- 1
102
- n
103
- n
104
- x
105
- 16
106
- silence_warnings
107
- i
108
- 65
109
- 29
110
- 39
111
- 1
112
- 26
113
- 93
114
- 0
115
- 15
116
- 99
117
- 43
118
- 0
119
- 7
120
- 1
121
- 49
122
- 2
123
- 1
124
- 1
125
- 17
126
- 2
127
- 19
128
- 0
129
- 15
130
- 99
131
- 43
132
- 0
133
- 12
134
- 7
135
- 1
136
- 12
137
- 49
138
- 3
139
- 2
140
- 15
141
- 2
142
- 15
143
- 60
144
- 0
145
- 30
146
- 8
147
- 53
148
- 26
149
- 99
150
- 43
151
- 0
152
- 7
153
- 1
154
- 20
155
- 0
156
- 49
157
- 3
158
- 2
159
- 15
160
- 27
161
- 34
162
- 99
163
- 43
164
- 0
165
- 7
166
- 1
167
- 20
168
- 0
169
- 49
170
- 3
171
- 2
172
- 15
173
- 11
174
- I
175
- 6
176
- I
177
- 1
178
- I
179
- 0
180
- I
181
- 0
182
- I
183
- 0
184
- n
185
- p
186
- 4
187
- x
188
- 7
189
- Globals
190
- x
191
- 8
192
- $VERBOSE
193
- x
194
- 2
195
- []
196
- x
197
- 3
198
- []=
199
- p
200
- 11
201
- I
202
- -1
203
- I
204
- 7
205
- I
206
- 0
207
- I
208
- 8
209
- I
210
- 22
211
- I
212
- 9
213
- I
214
- 28
215
- I
216
- b
217
- I
218
- 35
219
- I
220
- b
221
- I
222
- 41
223
- x
224
- 54
225
- /Users/semmons99/Dropbox/src/money/spec/spec_helper.rb
226
- p
227
- 1
228
- x
229
- 11
230
- old_verbose
231
- x
232
- 17
233
- method_visibility
234
- x
235
- 15
236
- add_defn_method
237
- x
238
- 10
239
- reset_i18n
240
- M
241
- 1
242
- n
243
- n
244
- x
245
- 10
246
- reset_i18n
247
- i
248
- 39
249
- 45
250
- 0
251
- 1
252
- 45
253
- 0
254
- 2
255
- 43
256
- 3
257
- 43
258
- 4
259
- 13
260
- 71
261
- 5
262
- 47
263
- 9
264
- 28
265
- 47
266
- 49
267
- 6
268
- 0
269
- 13
270
- 47
271
- 49
272
- 7
273
- 0
274
- 15
275
- 8
276
- 31
277
- 49
278
- 5
279
- 0
280
- 13
281
- 18
282
- 2
283
- 49
284
- 8
285
- 1
286
- 15
287
- 11
288
- I
289
- 3
290
- I
291
- 0
292
- I
293
- 0
294
- I
295
- 0
296
- I
297
- 0
298
- n
299
- p
300
- 9
301
- x
302
- 4
303
- I18n
304
- n
305
- n
306
- x
307
- 7
308
- Backend
309
- x
310
- 6
311
- Simple
312
- x
313
- 3
314
- new
315
- x
316
- 8
317
- allocate
318
- x
319
- 10
320
- initialize
321
- x
322
- 8
323
- backend=
324
- p
325
- 5
326
- I
327
- -1
328
- I
329
- e
330
- I
331
- 0
332
- I
333
- f
334
- I
335
- 27
336
- x
337
- 54
338
- /Users/semmons99/Dropbox/src/money/spec/spec_helper.rb
339
- p
340
- 0
341
- x
342
- 29
343
- store_number_currency_formats
344
- M
345
- 1
346
- n
347
- n
348
- x
349
- 29
350
- store_number_currency_formats
351
- i
352
- 81
353
- 45
354
- 0
355
- 1
356
- 49
357
- 2
358
- 0
359
- 20
360
- 0
361
- 44
362
- 43
363
- 3
364
- 79
365
- 49
366
- 4
367
- 1
368
- 13
369
- 7
370
- 5
371
- 44
372
- 43
373
- 3
374
- 79
375
- 49
376
- 4
377
- 1
378
- 13
379
- 7
380
- 6
381
- 44
382
- 43
383
- 3
384
- 79
385
- 49
386
- 4
387
- 1
388
- 13
389
- 7
390
- 7
391
- 44
392
- 43
393
- 3
394
- 80
395
- 49
396
- 4
397
- 1
398
- 13
399
- 7
400
- 8
401
- 7
402
- 9
403
- 64
404
- 49
405
- 10
406
- 2
407
- 15
408
- 13
409
- 7
410
- 11
411
- 7
412
- 12
413
- 64
414
- 49
415
- 10
416
- 2
417
- 15
418
- 49
419
- 10
420
- 2
421
- 15
422
- 49
423
- 10
424
- 2
425
- 15
426
- 49
427
- 10
428
- 2
429
- 15
430
- 49
431
- 13
432
- 2
433
- 11
434
- I
435
- 10
436
- I
437
- 1
438
- I
439
- 1
440
- I
441
- 0
442
- I
443
- 1
444
- n
445
- p
446
- 14
447
- x
448
- 4
449
- I18n
450
- n
451
- x
452
- 7
453
- backend
454
- x
455
- 4
456
- Hash
457
- x
458
- 16
459
- new_from_literal
460
- x
461
- 6
462
- number
463
- x
464
- 8
465
- currency
466
- x
467
- 6
468
- format
469
- x
470
- 9
471
- delimiter
472
- s
473
- 1
474
- ,
475
- x
476
- 3
477
- []=
478
- x
479
- 9
480
- separator
481
- s
482
- 1
483
- .
484
- x
485
- 18
486
- store_translations
487
- p
488
- 25
489
- I
490
- -1
491
- I
492
- 12
493
- I
494
- 0
495
- I
496
- 13
497
- I
498
- 8
499
- I
500
- 1b
501
- I
502
- 10
503
- I
504
- 14
505
- I
506
- 12
507
- I
508
- 1b
509
- I
510
- 1a
511
- I
512
- 15
513
- I
514
- 1c
515
- I
516
- 1a
517
- I
518
- 24
519
- I
520
- 16
521
- I
522
- 26
523
- I
524
- 19
525
- I
526
- 2e
527
- I
528
- 17
529
- I
530
- 38
531
- I
532
- 18
533
- I
534
- 4d
535
- I
536
- 13
537
- I
538
- 51
539
- x
540
- 54
541
- /Users/semmons99/Dropbox/src/money/spec/spec_helper.rb
542
- p
543
- 1
544
- x
545
- 6
546
- locale
547
- p
548
- 11
549
- I
550
- 0
551
- I
552
- 1
553
- I
554
- 9
555
- I
556
- 2
557
- I
558
- 12
559
- I
560
- 7
561
- I
562
- 20
563
- I
564
- e
565
- I
566
- 2e
567
- I
568
- 12
569
- I
570
- 3e
571
- x
572
- 54
573
- /Users/semmons99/Dropbox/src/money/spec/spec_helper.rb
574
- p
575
- 0