money 3.7.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -1,664 +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
- 83
13
- 99
14
- 7
15
- 0
16
- 1
17
- 65
18
- 49
19
- 1
20
- 3
21
- 13
22
- 99
23
- 12
24
- 7
25
- 2
26
- 12
27
- 7
28
- 3
29
- 12
30
- 65
31
- 12
32
- 49
33
- 4
34
- 4
35
- 15
36
- 49
37
- 2
38
- 0
39
- 15
40
- 99
41
- 7
42
- 5
43
- 1
44
- 65
45
- 49
46
- 1
47
- 3
48
- 13
49
- 99
50
- 12
51
- 7
52
- 2
53
- 12
54
- 7
55
- 6
56
- 12
57
- 65
58
- 12
59
- 49
60
- 4
61
- 4
62
- 15
63
- 49
64
- 2
65
- 0
66
- 15
67
- 99
68
- 7
69
- 7
70
- 1
71
- 65
72
- 49
73
- 1
74
- 3
75
- 13
76
- 99
77
- 12
78
- 7
79
- 2
80
- 12
81
- 7
82
- 8
83
- 12
84
- 65
85
- 12
86
- 49
87
- 4
88
- 4
89
- 15
90
- 49
91
- 2
92
- 0
93
- 15
94
- 2
95
- 11
96
- I
97
- 6
98
- I
99
- 0
100
- I
101
- 0
102
- I
103
- 0
104
- I
105
- 0
106
- n
107
- p
108
- 9
109
- x
110
- 7
111
- Numeric
112
- x
113
- 10
114
- open_class
115
- x
116
- 14
117
- __class_init__
118
- M
119
- 1
120
- n
121
- n
122
- x
123
- 7
124
- Numeric
125
- i
126
- 16
127
- 5
128
- 66
129
- 99
130
- 7
131
- 0
132
- 7
133
- 1
134
- 65
135
- 67
136
- 49
137
- 2
138
- 0
139
- 49
140
- 3
141
- 4
142
- 11
143
- I
144
- 5
145
- I
146
- 0
147
- I
148
- 0
149
- I
150
- 0
151
- I
152
- 0
153
- n
154
- p
155
- 4
156
- x
157
- 8
158
- to_money
159
- M
160
- 1
161
- n
162
- n
163
- x
164
- 8
165
- to_money
166
- i
167
- 28
168
- 23
169
- 0
170
- 10
171
- 8
172
- 1
173
- 19
174
- 0
175
- 15
176
- 45
177
- 0
178
- 1
179
- 5
180
- 20
181
- 0
182
- 13
183
- 10
184
- 24
185
- 15
186
- 45
187
- 0
188
- 2
189
- 49
190
- 3
191
- 0
192
- 49
193
- 4
194
- 2
195
- 11
196
- I
197
- 5
198
- I
199
- 1
200
- I
201
- 0
202
- I
203
- 0
204
- I
205
- 1
206
- n
207
- p
208
- 5
209
- x
210
- 5
211
- Money
212
- n
213
- n
214
- x
215
- 16
216
- default_currency
217
- x
218
- 12
219
- from_numeric
220
- p
221
- 5
222
- I
223
- -1
224
- I
225
- 12
226
- I
227
- 8
228
- I
229
- 13
230
- I
231
- 1c
232
- x
233
- 63
234
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
235
- p
236
- 1
237
- x
238
- 8
239
- currency
240
- x
241
- 17
242
- method_visibility
243
- x
244
- 15
245
- add_defn_method
246
- p
247
- 3
248
- I
249
- 2
250
- I
251
- 12
252
- I
253
- 10
254
- x
255
- 63
256
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
257
- p
258
- 0
259
- x
260
- 13
261
- attach_method
262
- x
263
- 6
264
- String
265
- M
266
- 1
267
- n
268
- n
269
- x
270
- 6
271
- String
272
- i
273
- 30
274
- 5
275
- 66
276
- 99
277
- 7
278
- 0
279
- 7
280
- 1
281
- 65
282
- 67
283
- 49
284
- 2
285
- 0
286
- 49
287
- 3
288
- 4
289
- 15
290
- 99
291
- 7
292
- 4
293
- 7
294
- 5
295
- 65
296
- 67
297
- 49
298
- 2
299
- 0
300
- 49
301
- 3
302
- 4
303
- 11
304
- I
305
- 5
306
- I
307
- 0
308
- I
309
- 0
310
- I
311
- 0
312
- I
313
- 0
314
- n
315
- p
316
- 6
317
- x
318
- 8
319
- to_money
320
- M
321
- 1
322
- n
323
- n
324
- x
325
- 8
326
- to_money
327
- i
328
- 18
329
- 23
330
- 0
331
- 10
332
- 8
333
- 1
334
- 19
335
- 0
336
- 15
337
- 45
338
- 0
339
- 1
340
- 5
341
- 20
342
- 0
343
- 49
344
- 2
345
- 2
346
- 11
347
- I
348
- 4
349
- I
350
- 1
351
- I
352
- 0
353
- I
354
- 0
355
- I
356
- 1
357
- n
358
- p
359
- 3
360
- x
361
- 5
362
- Money
363
- n
364
- x
365
- 5
366
- parse
367
- p
368
- 5
369
- I
370
- -1
371
- I
372
- 2d
373
- I
374
- 8
375
- I
376
- 2e
377
- I
378
- 12
379
- x
380
- 63
381
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
382
- p
383
- 1
384
- x
385
- 8
386
- currency
387
- x
388
- 17
389
- method_visibility
390
- x
391
- 15
392
- add_defn_method
393
- x
394
- 11
395
- to_currency
396
- M
397
- 1
398
- n
399
- n
400
- x
401
- 11
402
- to_currency
403
- i
404
- 29
405
- 45
406
- 0
407
- 1
408
- 43
409
- 2
410
- 13
411
- 71
412
- 3
413
- 47
414
- 9
415
- 24
416
- 47
417
- 49
418
- 4
419
- 0
420
- 13
421
- 5
422
- 47
423
- 49
424
- 5
425
- 1
426
- 15
427
- 8
428
- 28
429
- 5
430
- 49
431
- 3
432
- 1
433
- 11
434
- I
435
- 3
436
- I
437
- 0
438
- I
439
- 0
440
- I
441
- 0
442
- I
443
- 0
444
- n
445
- p
446
- 6
447
- x
448
- 5
449
- Money
450
- n
451
- x
452
- 8
453
- Currency
454
- x
455
- 3
456
- new
457
- x
458
- 8
459
- allocate
460
- x
461
- 10
462
- initialize
463
- p
464
- 5
465
- I
466
- -1
467
- I
468
- 3b
469
- I
470
- 0
471
- I
472
- 3c
473
- I
474
- 1d
475
- x
476
- 63
477
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
478
- p
479
- 0
480
- p
481
- 5
482
- I
483
- 2
484
- I
485
- 2d
486
- I
487
- 10
488
- I
489
- 3b
490
- I
491
- 1e
492
- x
493
- 63
494
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
495
- p
496
- 0
497
- x
498
- 6
499
- Symbol
500
- M
501
- 1
502
- n
503
- n
504
- x
505
- 6
506
- Symbol
507
- i
508
- 16
509
- 5
510
- 66
511
- 99
512
- 7
513
- 0
514
- 7
515
- 1
516
- 65
517
- 67
518
- 49
519
- 2
520
- 0
521
- 49
522
- 3
523
- 4
524
- 11
525
- I
526
- 5
527
- I
528
- 0
529
- I
530
- 0
531
- I
532
- 0
533
- I
534
- 0
535
- n
536
- p
537
- 4
538
- x
539
- 11
540
- to_currency
541
- M
542
- 1
543
- n
544
- n
545
- x
546
- 11
547
- to_currency
548
- i
549
- 29
550
- 45
551
- 0
552
- 1
553
- 43
554
- 2
555
- 13
556
- 71
557
- 3
558
- 47
559
- 9
560
- 24
561
- 47
562
- 49
563
- 4
564
- 0
565
- 13
566
- 5
567
- 47
568
- 49
569
- 5
570
- 1
571
- 15
572
- 8
573
- 28
574
- 5
575
- 49
576
- 3
577
- 1
578
- 11
579
- I
580
- 3
581
- I
582
- 0
583
- I
584
- 0
585
- I
586
- 0
587
- I
588
- 0
589
- n
590
- p
591
- 6
592
- x
593
- 5
594
- Money
595
- n
596
- x
597
- 8
598
- Currency
599
- x
600
- 3
601
- new
602
- x
603
- 8
604
- allocate
605
- x
606
- 10
607
- initialize
608
- p
609
- 5
610
- I
611
- -1
612
- I
613
- 4e
614
- I
615
- 0
616
- I
617
- 4f
618
- I
619
- 1d
620
- x
621
- 63
622
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
623
- p
624
- 0
625
- x
626
- 17
627
- method_visibility
628
- x
629
- 15
630
- add_defn_method
631
- p
632
- 3
633
- I
634
- 2
635
- I
636
- 4e
637
- I
638
- 10
639
- x
640
- 63
641
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
642
- p
643
- 0
644
- p
645
- 7
646
- I
647
- 0
648
- I
649
- 2
650
- I
651
- 1b
652
- I
653
- 19
654
- I
655
- 36
656
- I
657
- 42
658
- I
659
- 53
660
- x
661
- 63
662
- /Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
663
- p
664
- 0