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,818 +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
- 38
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 99
23
- 7
24
- 2
25
- 1
26
- 65
27
- 49
28
- 3
29
- 3
30
- 13
31
- 99
32
- 12
33
- 7
34
- 4
35
- 12
36
- 7
37
- 5
38
- 12
39
- 65
40
- 12
41
- 49
42
- 6
43
- 4
44
- 15
45
- 49
46
- 4
47
- 0
48
- 15
49
- 2
50
- 11
51
- I
52
- 6
53
- I
54
- 0
55
- I
56
- 0
57
- I
58
- 0
59
- I
60
- 0
61
- n
62
- p
63
- 7
64
- s
65
- 6
66
- thread
67
- x
68
- 7
69
- require
70
- x
71
- 5
72
- Money
73
- x
74
- 10
75
- open_class
76
- x
77
- 14
78
- __class_init__
79
- M
80
- 1
81
- n
82
- n
83
- x
84
- 5
85
- Money
86
- i
87
- 28
88
- 5
89
- 66
90
- 99
91
- 7
92
- 0
93
- 65
94
- 49
95
- 1
96
- 2
97
- 13
98
- 99
99
- 12
100
- 7
101
- 2
102
- 12
103
- 7
104
- 3
105
- 12
106
- 65
107
- 12
108
- 49
109
- 4
110
- 4
111
- 15
112
- 49
113
- 2
114
- 0
115
- 11
116
- I
117
- 6
118
- I
119
- 0
120
- I
121
- 0
122
- I
123
- 0
124
- I
125
- 0
126
- n
127
- p
128
- 5
129
- x
130
- 4
131
- Bank
132
- x
133
- 11
134
- open_module
135
- x
136
- 15
137
- __module_init__
138
- M
139
- 1
140
- n
141
- n
142
- x
143
- 4
144
- Bank
145
- i
146
- 55
147
- 5
148
- 66
149
- 99
150
- 7
151
- 0
152
- 45
153
- 1
154
- 2
155
- 65
156
- 49
157
- 3
158
- 3
159
- 15
160
- 1
161
- 15
162
- 99
163
- 7
164
- 4
165
- 45
166
- 0
167
- 5
168
- 65
169
- 49
170
- 3
171
- 3
172
- 15
173
- 1
174
- 15
175
- 99
176
- 7
177
- 6
178
- 1
179
- 65
180
- 49
181
- 3
182
- 3
183
- 13
184
- 99
185
- 12
186
- 7
187
- 7
188
- 12
189
- 7
190
- 8
191
- 12
192
- 65
193
- 12
194
- 49
195
- 9
196
- 4
197
- 15
198
- 49
199
- 7
200
- 0
201
- 11
202
- I
203
- 6
204
- I
205
- 0
206
- I
207
- 0
208
- I
209
- 0
210
- I
211
- 0
212
- n
213
- p
214
- 10
215
- x
216
- 5
217
- Error
218
- x
219
- 13
220
- StandardError
221
- n
222
- x
223
- 10
224
- open_class
225
- x
226
- 11
227
- UnknownRate
228
- n
229
- x
230
- 4
231
- Base
232
- x
233
- 14
234
- __class_init__
235
- M
236
- 1
237
- n
238
- n
239
- x
240
- 4
241
- Base
242
- i
243
- 77
244
- 5
245
- 66
246
- 99
247
- 7
248
- 0
249
- 7
250
- 1
251
- 65
252
- 5
253
- 49
254
- 2
255
- 4
256
- 15
257
- 5
258
- 7
259
- 3
260
- 47
261
- 49
262
- 4
263
- 1
264
- 15
265
- 99
266
- 7
267
- 5
268
- 7
269
- 6
270
- 65
271
- 67
272
- 49
273
- 7
274
- 0
275
- 49
276
- 8
277
- 4
278
- 15
279
- 99
280
- 7
281
- 9
282
- 7
283
- 10
284
- 65
285
- 67
286
- 49
287
- 7
288
- 0
289
- 49
290
- 8
291
- 4
292
- 15
293
- 99
294
- 7
295
- 11
296
- 7
297
- 12
298
- 65
299
- 67
300
- 49
301
- 7
302
- 0
303
- 49
304
- 8
305
- 4
306
- 15
307
- 99
308
- 7
309
- 13
310
- 7
311
- 14
312
- 65
313
- 67
314
- 49
315
- 7
316
- 0
317
- 49
318
- 8
319
- 4
320
- 11
321
- I
322
- 5
323
- I
324
- 0
325
- I
326
- 0
327
- I
328
- 0
329
- I
330
- 0
331
- n
332
- p
333
- 15
334
- x
335
- 8
336
- instance
337
- M
338
- 1
339
- n
340
- n
341
- x
342
- 8
343
- instance
344
- i
345
- 47
346
- 65
347
- 7
348
- 0
349
- 49
350
- 1
351
- 1
352
- 9
353
- 18
354
- 65
355
- 7
356
- 0
357
- 49
358
- 2
359
- 1
360
- 13
361
- 10
362
- 46
363
- 15
364
- 65
365
- 7
366
- 0
367
- 5
368
- 13
369
- 71
370
- 3
371
- 47
372
- 9
373
- 40
374
- 47
375
- 49
376
- 4
377
- 0
378
- 13
379
- 47
380
- 49
381
- 5
382
- 0
383
- 15
384
- 8
385
- 43
386
- 49
387
- 3
388
- 0
389
- 49
390
- 6
391
- 2
392
- 11
393
- I
394
- 4
395
- I
396
- 0
397
- I
398
- 0
399
- I
400
- 0
401
- I
402
- 0
403
- n
404
- p
405
- 7
406
- x
407
- 11
408
- @@singleton
409
- x
410
- 23
411
- class_variable_defined?
412
- x
413
- 18
414
- class_variable_get
415
- x
416
- 3
417
- new
418
- x
419
- 8
420
- allocate
421
- x
422
- 10
423
- initialize
424
- x
425
- 18
426
- class_variable_set
427
- p
428
- 5
429
- I
430
- -1
431
- I
432
- 2f
433
- I
434
- 0
435
- I
436
- 30
437
- I
438
- 2f
439
- x
440
- 57
441
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
442
- p
443
- 0
444
- x
445
- 13
446
- attach_method
447
- x
448
- 15
449
- rounding_method
450
- x
451
- 11
452
- attr_reader
453
- x
454
- 10
455
- initialize
456
- M
457
- 1
458
- n
459
- n
460
- x
461
- 10
462
- initialize
463
- i
464
- 13
465
- 95
466
- 19
467
- 0
468
- 15
469
- 20
470
- 0
471
- 38
472
- 0
473
- 15
474
- 5
475
- 48
476
- 1
477
- 11
478
- I
479
- 2
480
- I
481
- 1
482
- I
483
- 0
484
- I
485
- 0
486
- I
487
- 0
488
- n
489
- p
490
- 2
491
- x
492
- 16
493
- @rounding_method
494
- x
495
- 5
496
- setup
497
- p
498
- 7
499
- I
500
- -1
501
- I
502
- 48
503
- I
504
- 4
505
- I
506
- 49
507
- I
508
- 9
509
- I
510
- 4a
511
- I
512
- d
513
- x
514
- 57
515
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
516
- p
517
- 1
518
- x
519
- 5
520
- block
521
- x
522
- 17
523
- method_visibility
524
- x
525
- 15
526
- add_defn_method
527
- x
528
- 5
529
- setup
530
- M
531
- 1
532
- n
533
- n
534
- x
535
- 5
536
- setup
537
- i
538
- 2
539
- 1
540
- 11
541
- I
542
- 1
543
- I
544
- 0
545
- I
546
- 0
547
- I
548
- 0
549
- I
550
- 0
551
- n
552
- p
553
- 0
554
- p
555
- 5
556
- I
557
- -1
558
- I
559
- 54
560
- I
561
- 0
562
- I
563
- 55
564
- I
565
- 2
566
- x
567
- 57
568
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
569
- p
570
- 0
571
- x
572
- 13
573
- exchange_with
574
- M
575
- 1
576
- n
577
- n
578
- x
579
- 13
580
- exchange_with
581
- i
582
- 16
583
- 95
584
- 19
585
- 2
586
- 15
587
- 5
588
- 45
589
- 0
590
- 1
591
- 7
592
- 2
593
- 64
594
- 47
595
- 49
596
- 3
597
- 2
598
- 11
599
- I
600
- 6
601
- I
602
- 3
603
- I
604
- 2
605
- I
606
- 0
607
- I
608
- 2
609
- n
610
- p
611
- 4
612
- x
613
- 19
614
- NotImplementedError
615
- n
616
- s
617
- 34
618
- #exchange_with must be implemented
619
- x
620
- 5
621
- raise
622
- p
623
- 5
624
- I
625
- -1
626
- I
627
- 69
628
- I
629
- 4
630
- I
631
- 6a
632
- I
633
- 10
634
- x
635
- 57
636
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
637
- p
638
- 3
639
- x
640
- 4
641
- from
642
- x
643
- 11
644
- to_currency
645
- x
646
- 5
647
- block
648
- x
649
- 14
650
- same_currency?
651
- M
652
- 1
653
- n
654
- n
655
- x
656
- 14
657
- same_currency?
658
- i
659
- 19
660
- 45
661
- 0
662
- 1
663
- 20
664
- 0
665
- 49
666
- 2
667
- 1
668
- 45
669
- 0
670
- 3
671
- 20
672
- 1
673
- 49
674
- 2
675
- 1
676
- 83
677
- 4
678
- 11
679
- I
680
- 5
681
- I
682
- 2
683
- I
684
- 2
685
- I
686
- 0
687
- I
688
- 2
689
- n
690
- p
691
- 5
692
- x
693
- 8
694
- Currency
695
- n
696
- x
697
- 4
698
- wrap
699
- n
700
- x
701
- 2
702
- ==
703
- p
704
- 5
705
- I
706
- -1
707
- I
708
- 7e
709
- I
710
- 0
711
- I
712
- 7f
713
- I
714
- 13
715
- x
716
- 57
717
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
718
- p
719
- 2
720
- x
721
- 9
722
- currency1
723
- x
724
- 9
725
- currency2
726
- p
727
- 13
728
- I
729
- 2
730
- I
731
- 2f
732
- I
733
- d
734
- I
735
- 36
736
- I
737
- 15
738
- I
739
- 48
740
- I
741
- 23
742
- I
743
- 54
744
- I
745
- 31
746
- I
747
- 69
748
- I
749
- 3f
750
- I
751
- 7e
752
- I
753
- 4d
754
- x
755
- 57
756
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
757
- p
758
- 0
759
- x
760
- 13
761
- attach_method
762
- p
763
- 7
764
- I
765
- 2
766
- I
767
- a
768
- I
769
- f
770
- I
771
- f
772
- I
773
- 1c
774
- I
775
- 2a
776
- I
777
- 37
778
- x
779
- 57
780
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
781
- p
782
- 0
783
- x
784
- 13
785
- attach_method
786
- p
787
- 3
788
- I
789
- 2
790
- I
791
- 6
792
- I
793
- 1c
794
- x
795
- 57
796
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
797
- p
798
- 0
799
- x
800
- 13
801
- attach_method
802
- p
803
- 5
804
- I
805
- 0
806
- I
807
- 1
808
- I
809
- 9
810
- I
811
- 3
812
- I
813
- 26
814
- x
815
- 57
816
- /Users/semmons99/Dropbox/src/money/lib/money/bank/base.rb
817
- p
818
- 0