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
@@ -1,2461 +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
- 26
13
- 5
14
- 7
15
- 0
16
- 64
17
- 47
18
- 49
19
- 1
20
- 1
21
- 15
22
- 5
23
- 45
24
- 2
25
- 3
26
- 43
27
- 4
28
- 43
29
- 5
30
- 56
31
- 6
32
- 47
33
- 50
34
- 7
35
- 1
36
- 15
37
- 2
38
- 11
39
- I
40
- 3
41
- I
42
- 0
43
- I
44
- 0
45
- I
46
- 0
47
- I
48
- 0
49
- n
50
- p
51
- 8
52
- s
53
- 11
54
- spec_helper
55
- x
56
- 7
57
- require
58
- x
59
- 5
60
- Money
61
- n
62
- x
63
- 4
64
- Bank
65
- x
66
- 4
67
- Base
68
- M
69
- 1
70
- p
71
- 2
72
- x
73
- 9
74
- for_block
75
- t
76
- n
77
- x
78
- 9
79
- __block__
80
- i
81
- 54
82
- 5
83
- 7
84
- 0
85
- 56
86
- 1
87
- 47
88
- 50
89
- 2
90
- 1
91
- 15
92
- 5
93
- 7
94
- 3
95
- 64
96
- 56
97
- 4
98
- 47
99
- 50
100
- 5
101
- 1
102
- 15
103
- 5
104
- 7
105
- 6
106
- 64
107
- 56
108
- 7
109
- 47
110
- 50
111
- 5
112
- 1
113
- 15
114
- 5
115
- 7
116
- 8
117
- 64
118
- 56
119
- 9
120
- 47
121
- 50
122
- 5
123
- 1
124
- 15
125
- 5
126
- 7
127
- 10
128
- 64
129
- 56
130
- 11
131
- 47
132
- 50
133
- 5
134
- 1
135
- 11
136
- I
137
- 4
138
- I
139
- 0
140
- I
141
- 0
142
- I
143
- 0
144
- I
145
- 0
146
- I
147
- -2
148
- p
149
- 12
150
- x
151
- 4
152
- each
153
- M
154
- 1
155
- p
156
- 2
157
- x
158
- 9
159
- for_block
160
- t
161
- n
162
- x
163
- 9
164
- __block__
165
- i
166
- 31
167
- 45
168
- 0
169
- 1
170
- 43
171
- 2
172
- 43
173
- 3
174
- 13
175
- 71
176
- 4
177
- 47
178
- 9
179
- 25
180
- 47
181
- 49
182
- 5
183
- 0
184
- 13
185
- 47
186
- 49
187
- 6
188
- 0
189
- 15
190
- 8
191
- 28
192
- 49
193
- 4
194
- 0
195
- 38
196
- 7
197
- 11
198
- I
199
- 3
200
- I
201
- 0
202
- I
203
- 0
204
- I
205
- 0
206
- I
207
- 0
208
- I
209
- -2
210
- p
211
- 8
212
- x
213
- 5
214
- Money
215
- n
216
- x
217
- 4
218
- Bank
219
- x
220
- 4
221
- Base
222
- x
223
- 3
224
- new
225
- x
226
- 8
227
- allocate
228
- x
229
- 10
230
- initialize
231
- x
232
- 5
233
- @bank
234
- p
235
- 3
236
- I
237
- 0
238
- I
239
- 5
240
- I
241
- 1f
242
- x
243
- 57
244
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
245
- p
246
- 0
247
- x
248
- 6
249
- before
250
- s
251
- 16
252
- #new with &block
253
- M
254
- 1
255
- p
256
- 2
257
- x
258
- 9
259
- for_block
260
- t
261
- n
262
- x
263
- 9
264
- __block__
265
- i
266
- 11
267
- 5
268
- 7
269
- 0
270
- 64
271
- 56
272
- 1
273
- 47
274
- 50
275
- 2
276
- 1
277
- 11
278
- I
279
- 4
280
- I
281
- 0
282
- I
283
- 0
284
- I
285
- 0
286
- I
287
- 0
288
- I
289
- -2
290
- p
291
- 3
292
- s
293
- 29
294
- should store @rounding_method
295
- M
296
- 1
297
- p
298
- 2
299
- x
300
- 9
301
- for_block
302
- t
303
- n
304
- x
305
- 9
306
- __block__
307
- i
308
- 50
309
- 45
310
- 0
311
- 1
312
- 56
313
- 2
314
- 50
315
- 3
316
- 0
317
- 19
318
- 0
319
- 15
320
- 45
321
- 4
322
- 5
323
- 43
324
- 6
325
- 43
326
- 7
327
- 20
328
- 0
329
- 13
330
- 70
331
- 10
332
- 31
333
- 44
334
- 43
335
- 0
336
- 12
337
- 49
338
- 8
339
- 1
340
- 50
341
- 3
342
- 0
343
- 19
344
- 1
345
- 15
346
- 20
347
- 1
348
- 49
349
- 9
350
- 0
351
- 49
352
- 10
353
- 0
354
- 20
355
- 0
356
- 83
357
- 11
358
- 11
359
- I
360
- 6
361
- I
362
- 2
363
- I
364
- 0
365
- I
366
- 0
367
- I
368
- 0
369
- I
370
- -2
371
- p
372
- 12
373
- x
374
- 4
375
- Proc
376
- n
377
- M
378
- 1
379
- p
380
- 2
381
- x
382
- 9
383
- for_block
384
- t
385
- n
386
- x
387
- 9
388
- __block__
389
- i
390
- 10
391
- 57
392
- 19
393
- 0
394
- 15
395
- 20
396
- 0
397
- 49
398
- 0
399
- 0
400
- 11
401
- I
402
- 3
403
- I
404
- 1
405
- I
406
- 1
407
- I
408
- 0
409
- I
410
- 1
411
- n
412
- p
413
- 1
414
- x
415
- 4
416
- ceil
417
- p
418
- 3
419
- I
420
- 0
421
- I
422
- a
423
- I
424
- a
425
- x
426
- 57
427
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
428
- p
429
- 1
430
- x
431
- 1
432
- n
433
- x
434
- 3
435
- new
436
- x
437
- 5
438
- Money
439
- n
440
- x
441
- 4
442
- Bank
443
- x
444
- 4
445
- Base
446
- x
447
- 14
448
- __from_block__
449
- x
450
- 15
451
- rounding_method
452
- x
453
- 6
454
- should
455
- x
456
- 2
457
- ==
458
- p
459
- 7
460
- I
461
- 0
462
- I
463
- a
464
- I
465
- b
466
- I
467
- b
468
- I
469
- 25
470
- I
471
- c
472
- I
473
- 32
474
- x
475
- 57
476
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
477
- p
478
- 2
479
- x
480
- 4
481
- proc
482
- x
483
- 4
484
- bank
485
- x
486
- 2
487
- it
488
- p
489
- 3
490
- I
491
- 0
492
- I
493
- 9
494
- I
495
- b
496
- x
497
- 57
498
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
499
- p
500
- 0
501
- x
502
- 8
503
- describe
504
- s
505
- 6
506
- #setup
507
- M
508
- 1
509
- p
510
- 2
511
- x
512
- 9
513
- for_block
514
- t
515
- n
516
- x
517
- 9
518
- __block__
519
- i
520
- 11
521
- 5
522
- 7
523
- 0
524
- 64
525
- 56
526
- 1
527
- 47
528
- 50
529
- 2
530
- 1
531
- 11
532
- I
533
- 4
534
- I
535
- 0
536
- I
537
- 0
538
- I
539
- 0
540
- I
541
- 0
542
- I
543
- -2
544
- p
545
- 3
546
- s
547
- 36
548
- should call #setup after #initialize
549
- M
550
- 1
551
- p
552
- 2
553
- x
554
- 9
555
- for_block
556
- t
557
- n
558
- x
559
- 9
560
- __block__
561
- i
562
- 72
563
- 99
564
- 7
565
- 0
566
- 45
567
- 1
568
- 2
569
- 43
570
- 3
571
- 43
572
- 4
573
- 65
574
- 49
575
- 5
576
- 3
577
- 13
578
- 99
579
- 12
580
- 7
581
- 6
582
- 12
583
- 7
584
- 7
585
- 12
586
- 65
587
- 12
588
- 49
589
- 8
590
- 4
591
- 15
592
- 49
593
- 6
594
- 0
595
- 15
596
- 45
597
- 0
598
- 9
599
- 13
600
- 71
601
- 10
602
- 47
603
- 9
604
- 54
605
- 47
606
- 49
607
- 11
608
- 0
609
- 13
610
- 47
611
- 49
612
- 12
613
- 0
614
- 15
615
- 8
616
- 57
617
- 49
618
- 10
619
- 0
620
- 19
621
- 0
622
- 15
623
- 20
624
- 0
625
- 49
626
- 13
627
- 0
628
- 49
629
- 14
630
- 0
631
- 2
632
- 83
633
- 15
634
- 11
635
- I
636
- 8
637
- I
638
- 1
639
- I
640
- 0
641
- I
642
- 0
643
- I
644
- 0
645
- I
646
- -2
647
- p
648
- 16
649
- x
650
- 6
651
- MyBank
652
- x
653
- 5
654
- Money
655
- n
656
- x
657
- 4
658
- Bank
659
- x
660
- 4
661
- Base
662
- x
663
- 10
664
- open_class
665
- x
666
- 14
667
- __class_init__
668
- M
669
- 1
670
- n
671
- n
672
- x
673
- 6
674
- MyBank
675
- i
676
- 24
677
- 5
678
- 66
679
- 5
680
- 7
681
- 0
682
- 47
683
- 49
684
- 1
685
- 1
686
- 15
687
- 99
688
- 7
689
- 2
690
- 7
691
- 3
692
- 65
693
- 67
694
- 49
695
- 4
696
- 0
697
- 49
698
- 5
699
- 4
700
- 11
701
- I
702
- 5
703
- I
704
- 0
705
- I
706
- 0
707
- I
708
- 0
709
- I
710
- 0
711
- n
712
- p
713
- 6
714
- x
715
- 12
716
- setup_called
717
- x
718
- 11
719
- attr_reader
720
- x
721
- 5
722
- setup
723
- M
724
- 1
725
- n
726
- n
727
- x
728
- 5
729
- setup
730
- i
731
- 4
732
- 2
733
- 38
734
- 0
735
- 11
736
- I
737
- 1
738
- I
739
- 0
740
- I
741
- 0
742
- I
743
- 0
744
- I
745
- 0
746
- n
747
- p
748
- 1
749
- x
750
- 13
751
- @setup_called
752
- p
753
- 5
754
- I
755
- -1
756
- I
757
- 15
758
- I
759
- 0
760
- I
761
- 16
762
- I
763
- 4
764
- x
765
- 57
766
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
767
- p
768
- 0
769
- x
770
- 17
771
- method_visibility
772
- x
773
- 15
774
- add_defn_method
775
- p
776
- 5
777
- I
778
- 2
779
- I
780
- 13
781
- I
782
- a
783
- I
784
- 15
785
- I
786
- 18
787
- x
788
- 57
789
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
790
- p
791
- 0
792
- x
793
- 13
794
- attach_method
795
- n
796
- x
797
- 3
798
- new
799
- x
800
- 8
801
- allocate
802
- x
803
- 10
804
- initialize
805
- x
806
- 12
807
- setup_called
808
- x
809
- 6
810
- should
811
- x
812
- 2
813
- ==
814
- p
815
- 7
816
- I
817
- 0
818
- I
819
- 12
820
- I
821
- 21
822
- I
823
- 1a
824
- I
825
- 3c
826
- I
827
- 1b
828
- I
829
- 48
830
- x
831
- 57
832
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
833
- p
834
- 1
835
- x
836
- 4
837
- bank
838
- x
839
- 2
840
- it
841
- p
842
- 3
843
- I
844
- 0
845
- I
846
- 11
847
- I
848
- b
849
- x
850
- 57
851
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
852
- p
853
- 0
854
- s
855
- 14
856
- #exchange_with
857
- M
858
- 1
859
- p
860
- 2
861
- x
862
- 9
863
- for_block
864
- t
865
- n
866
- x
867
- 9
868
- __block__
869
- i
870
- 11
871
- 5
872
- 7
873
- 0
874
- 64
875
- 56
876
- 1
877
- 47
878
- 50
879
- 2
880
- 1
881
- 11
882
- I
883
- 4
884
- I
885
- 0
886
- I
887
- 0
888
- I
889
- 0
890
- I
891
- 0
892
- I
893
- -2
894
- p
895
- 3
896
- s
897
- 32
898
- should raise NotImplementedError
899
- M
900
- 1
901
- p
902
- 2
903
- x
904
- 9
905
- for_block
906
- t
907
- n
908
- x
909
- 9
910
- __block__
911
- i
912
- 19
913
- 5
914
- 56
915
- 0
916
- 47
917
- 50
918
- 1
919
- 0
920
- 5
921
- 45
922
- 2
923
- 3
924
- 47
925
- 49
926
- 4
927
- 1
928
- 49
929
- 5
930
- 1
931
- 11
932
- I
933
- 4
934
- I
935
- 0
936
- I
937
- 0
938
- I
939
- 0
940
- I
941
- 0
942
- I
943
- -2
944
- p
945
- 6
946
- M
947
- 1
948
- p
949
- 2
950
- x
951
- 9
952
- for_block
953
- t
954
- n
955
- x
956
- 9
957
- __block__
958
- i
959
- 43
960
- 39
961
- 0
962
- 45
963
- 1
964
- 2
965
- 13
966
- 71
967
- 3
968
- 47
969
- 9
970
- 28
971
- 47
972
- 49
973
- 4
974
- 0
975
- 13
976
- 4
977
- 100
978
- 7
979
- 5
980
- 64
981
- 47
982
- 49
983
- 6
984
- 2
985
- 15
986
- 8
987
- 36
988
- 4
989
- 100
990
- 7
991
- 5
992
- 64
993
- 49
994
- 3
995
- 2
996
- 7
997
- 7
998
- 64
999
- 49
1000
- 8
1001
- 2
1002
- 11
1003
- I
1004
- 6
1005
- I
1006
- 0
1007
- I
1008
- 0
1009
- I
1010
- 0
1011
- I
1012
- 0
1013
- I
1014
- -2
1015
- p
1016
- 9
1017
- x
1018
- 5
1019
- @bank
1020
- x
1021
- 5
1022
- Money
1023
- n
1024
- x
1025
- 3
1026
- new
1027
- x
1028
- 8
1029
- allocate
1030
- s
1031
- 3
1032
- USD
1033
- x
1034
- 10
1035
- initialize
1036
- s
1037
- 3
1038
- EUR
1039
- x
1040
- 13
1041
- exchange_with
1042
- p
1043
- 3
1044
- I
1045
- 0
1046
- I
1047
- 21
1048
- I
1049
- 2b
1050
- x
1051
- 57
1052
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1053
- p
1054
- 0
1055
- x
1056
- 6
1057
- lambda
1058
- x
1059
- 19
1060
- NotImplementedError
1061
- n
1062
- x
1063
- 15
1064
- raise_exception
1065
- x
1066
- 6
1067
- should
1068
- p
1069
- 3
1070
- I
1071
- 0
1072
- I
1073
- 21
1074
- I
1075
- 13
1076
- x
1077
- 57
1078
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1079
- p
1080
- 0
1081
- x
1082
- 2
1083
- it
1084
- p
1085
- 3
1086
- I
1087
- 0
1088
- I
1089
- 20
1090
- I
1091
- b
1092
- x
1093
- 57
1094
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1095
- p
1096
- 0
1097
- s
1098
- 15
1099
- #same_currency?
1100
- M
1101
- 1
1102
- p
1103
- 2
1104
- x
1105
- 9
1106
- for_block
1107
- t
1108
- n
1109
- x
1110
- 9
1111
- __block__
1112
- i
1113
- 77
1114
- 5
1115
- 7
1116
- 0
1117
- 64
1118
- 56
1119
- 1
1120
- 47
1121
- 50
1122
- 2
1123
- 1
1124
- 15
1125
- 5
1126
- 7
1127
- 3
1128
- 64
1129
- 56
1130
- 4
1131
- 47
1132
- 50
1133
- 2
1134
- 1
1135
- 15
1136
- 5
1137
- 7
1138
- 5
1139
- 64
1140
- 56
1141
- 6
1142
- 47
1143
- 50
1144
- 2
1145
- 1
1146
- 15
1147
- 5
1148
- 7
1149
- 7
1150
- 64
1151
- 56
1152
- 8
1153
- 47
1154
- 50
1155
- 2
1156
- 1
1157
- 15
1158
- 5
1159
- 7
1160
- 9
1161
- 64
1162
- 56
1163
- 10
1164
- 47
1165
- 50
1166
- 2
1167
- 1
1168
- 15
1169
- 5
1170
- 7
1171
- 11
1172
- 64
1173
- 56
1174
- 12
1175
- 47
1176
- 50
1177
- 2
1178
- 1
1179
- 15
1180
- 5
1181
- 7
1182
- 13
1183
- 64
1184
- 56
1185
- 14
1186
- 47
1187
- 50
1188
- 2
1189
- 1
1190
- 11
1191
- I
1192
- 4
1193
- I
1194
- 0
1195
- I
1196
- 0
1197
- I
1198
- 0
1199
- I
1200
- 0
1201
- I
1202
- -2
1203
- p
1204
- 15
1205
- s
1206
- 21
1207
- should accept str/str
1208
- M
1209
- 1
1210
- p
1211
- 2
1212
- x
1213
- 9
1214
- for_block
1215
- t
1216
- n
1217
- x
1218
- 9
1219
- __block__
1220
- i
1221
- 14
1222
- 5
1223
- 56
1224
- 0
1225
- 47
1226
- 50
1227
- 1
1228
- 0
1229
- 5
1230
- 48
1231
- 2
1232
- 49
1233
- 3
1234
- 1
1235
- 11
1236
- I
1237
- 3
1238
- I
1239
- 0
1240
- I
1241
- 0
1242
- I
1243
- 0
1244
- I
1245
- 0
1246
- I
1247
- -2
1248
- p
1249
- 4
1250
- M
1251
- 1
1252
- p
1253
- 2
1254
- x
1255
- 9
1256
- for_block
1257
- t
1258
- n
1259
- x
1260
- 9
1261
- __block__
1262
- i
1263
- 14
1264
- 39
1265
- 0
1266
- 7
1267
- 1
1268
- 7
1269
- 2
1270
- 64
1271
- 7
1272
- 3
1273
- 64
1274
- 49
1275
- 4
1276
- 3
1277
- 11
1278
- I
1279
- 5
1280
- I
1281
- 0
1282
- I
1283
- 0
1284
- I
1285
- 0
1286
- I
1287
- 0
1288
- I
1289
- -2
1290
- p
1291
- 5
1292
- x
1293
- 5
1294
- @bank
1295
- x
1296
- 14
1297
- same_currency?
1298
- s
1299
- 3
1300
- USD
1301
- s
1302
- 3
1303
- EUR
1304
- x
1305
- 4
1306
- send
1307
- p
1308
- 3
1309
- I
1310
- 0
1311
- I
1312
- 27
1313
- I
1314
- e
1315
- x
1316
- 57
1317
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1318
- p
1319
- 0
1320
- x
1321
- 6
1322
- lambda
1323
- x
1324
- 15
1325
- raise_exception
1326
- x
1327
- 10
1328
- should_not
1329
- p
1330
- 3
1331
- I
1332
- 0
1333
- I
1334
- 27
1335
- I
1336
- e
1337
- x
1338
- 57
1339
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1340
- p
1341
- 0
1342
- x
1343
- 2
1344
- it
1345
- s
1346
- 26
1347
- should accept currency/str
1348
- M
1349
- 1
1350
- p
1351
- 2
1352
- x
1353
- 9
1354
- for_block
1355
- t
1356
- n
1357
- x
1358
- 9
1359
- __block__
1360
- i
1361
- 14
1362
- 5
1363
- 56
1364
- 0
1365
- 47
1366
- 50
1367
- 1
1368
- 0
1369
- 5
1370
- 48
1371
- 2
1372
- 49
1373
- 3
1374
- 1
1375
- 11
1376
- I
1377
- 3
1378
- I
1379
- 0
1380
- I
1381
- 0
1382
- I
1383
- 0
1384
- I
1385
- 0
1386
- I
1387
- -2
1388
- p
1389
- 4
1390
- M
1391
- 1
1392
- p
1393
- 2
1394
- x
1395
- 9
1396
- for_block
1397
- t
1398
- n
1399
- x
1400
- 9
1401
- __block__
1402
- i
1403
- 22
1404
- 39
1405
- 0
1406
- 7
1407
- 1
1408
- 45
1409
- 2
1410
- 3
1411
- 43
1412
- 4
1413
- 7
1414
- 5
1415
- 64
1416
- 49
1417
- 6
1418
- 1
1419
- 7
1420
- 7
1421
- 64
1422
- 49
1423
- 8
1424
- 3
1425
- 11
1426
- I
1427
- 5
1428
- I
1429
- 0
1430
- I
1431
- 0
1432
- I
1433
- 0
1434
- I
1435
- 0
1436
- I
1437
- -2
1438
- p
1439
- 9
1440
- x
1441
- 5
1442
- @bank
1443
- x
1444
- 14
1445
- same_currency?
1446
- x
1447
- 5
1448
- Money
1449
- n
1450
- x
1451
- 8
1452
- Currency
1453
- s
1454
- 3
1455
- USD
1456
- x
1457
- 4
1458
- wrap
1459
- s
1460
- 3
1461
- EUR
1462
- x
1463
- 4
1464
- send
1465
- p
1466
- 3
1467
- I
1468
- 0
1469
- I
1470
- 2b
1471
- I
1472
- 16
1473
- x
1474
- 57
1475
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1476
- p
1477
- 0
1478
- x
1479
- 6
1480
- lambda
1481
- x
1482
- 15
1483
- raise_exception
1484
- x
1485
- 10
1486
- should_not
1487
- p
1488
- 3
1489
- I
1490
- 0
1491
- I
1492
- 2b
1493
- I
1494
- e
1495
- x
1496
- 57
1497
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1498
- p
1499
- 0
1500
- s
1501
- 26
1502
- should accept str/currency
1503
- M
1504
- 1
1505
- p
1506
- 2
1507
- x
1508
- 9
1509
- for_block
1510
- t
1511
- n
1512
- x
1513
- 9
1514
- __block__
1515
- i
1516
- 14
1517
- 5
1518
- 56
1519
- 0
1520
- 47
1521
- 50
1522
- 1
1523
- 0
1524
- 5
1525
- 48
1526
- 2
1527
- 49
1528
- 3
1529
- 1
1530
- 11
1531
- I
1532
- 3
1533
- I
1534
- 0
1535
- I
1536
- 0
1537
- I
1538
- 0
1539
- I
1540
- 0
1541
- I
1542
- -2
1543
- p
1544
- 4
1545
- M
1546
- 1
1547
- p
1548
- 2
1549
- x
1550
- 9
1551
- for_block
1552
- t
1553
- n
1554
- x
1555
- 9
1556
- __block__
1557
- i
1558
- 22
1559
- 39
1560
- 0
1561
- 7
1562
- 1
1563
- 7
1564
- 2
1565
- 64
1566
- 45
1567
- 3
1568
- 4
1569
- 43
1570
- 5
1571
- 7
1572
- 6
1573
- 64
1574
- 49
1575
- 7
1576
- 1
1577
- 49
1578
- 8
1579
- 3
1580
- 11
1581
- I
1582
- 6
1583
- I
1584
- 0
1585
- I
1586
- 0
1587
- I
1588
- 0
1589
- I
1590
- 0
1591
- I
1592
- -2
1593
- p
1594
- 9
1595
- x
1596
- 5
1597
- @bank
1598
- x
1599
- 14
1600
- same_currency?
1601
- s
1602
- 3
1603
- USD
1604
- x
1605
- 5
1606
- Money
1607
- n
1608
- x
1609
- 8
1610
- Currency
1611
- s
1612
- 3
1613
- EUR
1614
- x
1615
- 4
1616
- wrap
1617
- x
1618
- 4
1619
- send
1620
- p
1621
- 3
1622
- I
1623
- 0
1624
- I
1625
- 2f
1626
- I
1627
- 16
1628
- x
1629
- 57
1630
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1631
- p
1632
- 0
1633
- x
1634
- 6
1635
- lambda
1636
- x
1637
- 15
1638
- raise_exception
1639
- x
1640
- 10
1641
- should_not
1642
- p
1643
- 3
1644
- I
1645
- 0
1646
- I
1647
- 2f
1648
- I
1649
- e
1650
- x
1651
- 57
1652
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1653
- p
1654
- 0
1655
- s
1656
- 31
1657
- should accept currency/currency
1658
- M
1659
- 1
1660
- p
1661
- 2
1662
- x
1663
- 9
1664
- for_block
1665
- t
1666
- n
1667
- x
1668
- 9
1669
- __block__
1670
- i
1671
- 14
1672
- 5
1673
- 56
1674
- 0
1675
- 47
1676
- 50
1677
- 1
1678
- 0
1679
- 5
1680
- 48
1681
- 2
1682
- 49
1683
- 3
1684
- 1
1685
- 11
1686
- I
1687
- 3
1688
- I
1689
- 0
1690
- I
1691
- 0
1692
- I
1693
- 0
1694
- I
1695
- 0
1696
- I
1697
- -2
1698
- p
1699
- 4
1700
- M
1701
- 1
1702
- p
1703
- 2
1704
- x
1705
- 9
1706
- for_block
1707
- t
1708
- n
1709
- x
1710
- 9
1711
- __block__
1712
- i
1713
- 30
1714
- 39
1715
- 0
1716
- 7
1717
- 1
1718
- 45
1719
- 2
1720
- 3
1721
- 43
1722
- 4
1723
- 7
1724
- 5
1725
- 64
1726
- 49
1727
- 6
1728
- 1
1729
- 45
1730
- 2
1731
- 7
1732
- 43
1733
- 4
1734
- 7
1735
- 8
1736
- 64
1737
- 49
1738
- 6
1739
- 1
1740
- 49
1741
- 9
1742
- 3
1743
- 11
1744
- I
1745
- 6
1746
- I
1747
- 0
1748
- I
1749
- 0
1750
- I
1751
- 0
1752
- I
1753
- 0
1754
- I
1755
- -2
1756
- p
1757
- 10
1758
- x
1759
- 5
1760
- @bank
1761
- x
1762
- 14
1763
- same_currency?
1764
- x
1765
- 5
1766
- Money
1767
- n
1768
- x
1769
- 8
1770
- Currency
1771
- s
1772
- 3
1773
- USD
1774
- x
1775
- 4
1776
- wrap
1777
- n
1778
- s
1779
- 3
1780
- EUR
1781
- x
1782
- 4
1783
- send
1784
- p
1785
- 3
1786
- I
1787
- 0
1788
- I
1789
- 33
1790
- I
1791
- 1e
1792
- x
1793
- 57
1794
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1795
- p
1796
- 0
1797
- x
1798
- 6
1799
- lambda
1800
- x
1801
- 15
1802
- raise_exception
1803
- x
1804
- 10
1805
- should_not
1806
- p
1807
- 3
1808
- I
1809
- 0
1810
- I
1811
- 33
1812
- I
1813
- e
1814
- x
1815
- 57
1816
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
1817
- p
1818
- 0
1819
- s
1820
- 42
1821
- should return `true` when currencies match
1822
- M
1823
- 1
1824
- p
1825
- 2
1826
- x
1827
- 9
1828
- for_block
1829
- t
1830
- n
1831
- x
1832
- 9
1833
- __block__
1834
- i
1835
- 112
1836
- 39
1837
- 0
1838
- 7
1839
- 1
1840
- 7
1841
- 2
1842
- 64
1843
- 7
1844
- 2
1845
- 64
1846
- 49
1847
- 3
1848
- 3
1849
- 49
1850
- 4
1851
- 0
1852
- 2
1853
- 83
1854
- 5
1855
- 15
1856
- 39
1857
- 0
1858
- 7
1859
- 1
1860
- 45
1861
- 6
1862
- 7
1863
- 43
1864
- 8
1865
- 7
1866
- 2
1867
- 64
1868
- 49
1869
- 9
1870
- 1
1871
- 7
1872
- 2
1873
- 64
1874
- 49
1875
- 3
1876
- 3
1877
- 49
1878
- 4
1879
- 0
1880
- 2
1881
- 83
1882
- 5
1883
- 15
1884
- 39
1885
- 0
1886
- 7
1887
- 1
1888
- 7
1889
- 2
1890
- 64
1891
- 45
1892
- 6
1893
- 10
1894
- 43
1895
- 8
1896
- 7
1897
- 2
1898
- 64
1899
- 49
1900
- 9
1901
- 1
1902
- 49
1903
- 3
1904
- 3
1905
- 49
1906
- 4
1907
- 0
1908
- 2
1909
- 83
1910
- 5
1911
- 15
1912
- 39
1913
- 0
1914
- 7
1915
- 1
1916
- 45
1917
- 6
1918
- 11
1919
- 43
1920
- 8
1921
- 7
1922
- 2
1923
- 64
1924
- 49
1925
- 9
1926
- 1
1927
- 45
1928
- 6
1929
- 12
1930
- 43
1931
- 8
1932
- 7
1933
- 2
1934
- 64
1935
- 49
1936
- 9
1937
- 1
1938
- 49
1939
- 3
1940
- 3
1941
- 49
1942
- 4
1943
- 0
1944
- 2
1945
- 83
1946
- 5
1947
- 11
1948
- I
1949
- 6
1950
- I
1951
- 0
1952
- I
1953
- 0
1954
- I
1955
- 0
1956
- I
1957
- 0
1958
- I
1959
- -2
1960
- p
1961
- 13
1962
- x
1963
- 5
1964
- @bank
1965
- x
1966
- 14
1967
- same_currency?
1968
- s
1969
- 3
1970
- USD
1971
- x
1972
- 4
1973
- send
1974
- x
1975
- 6
1976
- should
1977
- x
1978
- 2
1979
- ==
1980
- x
1981
- 5
1982
- Money
1983
- n
1984
- x
1985
- 8
1986
- Currency
1987
- x
1988
- 4
1989
- wrap
1990
- n
1991
- n
1992
- n
1993
- p
1994
- 9
1995
- I
1996
- 0
1997
- I
1998
- 37
1999
- I
2000
- 14
2001
- I
2002
- 38
2003
- I
2004
- 30
2005
- I
2006
- 39
2007
- I
2008
- 4c
2009
- I
2010
- 3a
2011
- I
2012
- 70
2013
- x
2014
- 57
2015
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2016
- p
2017
- 0
2018
- s
2019
- 50
2020
- should return `false` when currencies do not match
2021
- M
2022
- 1
2023
- p
2024
- 2
2025
- x
2026
- 9
2027
- for_block
2028
- t
2029
- n
2030
- x
2031
- 9
2032
- __block__
2033
- i
2034
- 112
2035
- 39
2036
- 0
2037
- 7
2038
- 1
2039
- 7
2040
- 2
2041
- 64
2042
- 7
2043
- 3
2044
- 64
2045
- 49
2046
- 4
2047
- 3
2048
- 49
2049
- 5
2050
- 0
2051
- 3
2052
- 83
2053
- 6
2054
- 15
2055
- 39
2056
- 0
2057
- 7
2058
- 1
2059
- 45
2060
- 7
2061
- 8
2062
- 43
2063
- 9
2064
- 7
2065
- 2
2066
- 64
2067
- 49
2068
- 10
2069
- 1
2070
- 7
2071
- 3
2072
- 64
2073
- 49
2074
- 4
2075
- 3
2076
- 49
2077
- 5
2078
- 0
2079
- 3
2080
- 83
2081
- 6
2082
- 15
2083
- 39
2084
- 0
2085
- 7
2086
- 1
2087
- 7
2088
- 2
2089
- 64
2090
- 45
2091
- 7
2092
- 11
2093
- 43
2094
- 9
2095
- 7
2096
- 3
2097
- 64
2098
- 49
2099
- 10
2100
- 1
2101
- 49
2102
- 4
2103
- 3
2104
- 49
2105
- 5
2106
- 0
2107
- 3
2108
- 83
2109
- 6
2110
- 15
2111
- 39
2112
- 0
2113
- 7
2114
- 1
2115
- 45
2116
- 7
2117
- 12
2118
- 43
2119
- 9
2120
- 7
2121
- 2
2122
- 64
2123
- 49
2124
- 10
2125
- 1
2126
- 45
2127
- 7
2128
- 13
2129
- 43
2130
- 9
2131
- 7
2132
- 3
2133
- 64
2134
- 49
2135
- 10
2136
- 1
2137
- 49
2138
- 4
2139
- 3
2140
- 49
2141
- 5
2142
- 0
2143
- 3
2144
- 83
2145
- 6
2146
- 11
2147
- I
2148
- 6
2149
- I
2150
- 0
2151
- I
2152
- 0
2153
- I
2154
- 0
2155
- I
2156
- 0
2157
- I
2158
- -2
2159
- p
2160
- 14
2161
- x
2162
- 5
2163
- @bank
2164
- x
2165
- 14
2166
- same_currency?
2167
- s
2168
- 3
2169
- USD
2170
- s
2171
- 3
2172
- EUR
2173
- x
2174
- 4
2175
- send
2176
- x
2177
- 6
2178
- should
2179
- x
2180
- 2
2181
- ==
2182
- x
2183
- 5
2184
- Money
2185
- n
2186
- x
2187
- 8
2188
- Currency
2189
- x
2190
- 4
2191
- wrap
2192
- n
2193
- n
2194
- n
2195
- p
2196
- 9
2197
- I
2198
- 0
2199
- I
2200
- 3e
2201
- I
2202
- 14
2203
- I
2204
- 3f
2205
- I
2206
- 30
2207
- I
2208
- 40
2209
- I
2210
- 4c
2211
- I
2212
- 41
2213
- I
2214
- 70
2215
- x
2216
- 57
2217
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2218
- p
2219
- 0
2220
- s
2221
- 76
2222
- should raise an UnknownCurrency exception when an unknown currency is passed
2223
- M
2224
- 1
2225
- p
2226
- 2
2227
- x
2228
- 9
2229
- for_block
2230
- t
2231
- n
2232
- x
2233
- 9
2234
- __block__
2235
- i
2236
- 23
2237
- 5
2238
- 56
2239
- 0
2240
- 47
2241
- 50
2242
- 1
2243
- 0
2244
- 5
2245
- 45
2246
- 2
2247
- 3
2248
- 43
2249
- 4
2250
- 43
2251
- 5
2252
- 47
2253
- 49
2254
- 6
2255
- 1
2256
- 49
2257
- 7
2258
- 1
2259
- 11
2260
- I
2261
- 4
2262
- I
2263
- 0
2264
- I
2265
- 0
2266
- I
2267
- 0
2268
- I
2269
- 0
2270
- I
2271
- -2
2272
- p
2273
- 8
2274
- M
2275
- 1
2276
- p
2277
- 2
2278
- x
2279
- 9
2280
- for_block
2281
- t
2282
- n
2283
- x
2284
- 9
2285
- __block__
2286
- i
2287
- 14
2288
- 39
2289
- 0
2290
- 7
2291
- 1
2292
- 7
2293
- 2
2294
- 64
2295
- 7
2296
- 3
2297
- 64
2298
- 49
2299
- 4
2300
- 3
2301
- 11
2302
- I
2303
- 5
2304
- I
2305
- 0
2306
- I
2307
- 0
2308
- I
2309
- 0
2310
- I
2311
- 0
2312
- I
2313
- -2
2314
- p
2315
- 5
2316
- x
2317
- 5
2318
- @bank
2319
- x
2320
- 14
2321
- same_currency?
2322
- s
2323
- 3
2324
- AAA
2325
- s
2326
- 3
2327
- BBB
2328
- x
2329
- 4
2330
- send
2331
- p
2332
- 3
2333
- I
2334
- 0
2335
- I
2336
- 45
2337
- I
2338
- e
2339
- x
2340
- 57
2341
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2342
- p
2343
- 0
2344
- x
2345
- 6
2346
- lambda
2347
- x
2348
- 5
2349
- Money
2350
- n
2351
- x
2352
- 8
2353
- Currency
2354
- x
2355
- 15
2356
- UnknownCurrency
2357
- x
2358
- 15
2359
- raise_exception
2360
- x
2361
- 6
2362
- should
2363
- p
2364
- 3
2365
- I
2366
- 0
2367
- I
2368
- 45
2369
- I
2370
- 17
2371
- x
2372
- 57
2373
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2374
- p
2375
- 0
2376
- p
2377
- 15
2378
- I
2379
- 0
2380
- I
2381
- 26
2382
- I
2383
- b
2384
- I
2385
- 2a
2386
- I
2387
- 16
2388
- I
2389
- 2e
2390
- I
2391
- 21
2392
- I
2393
- 32
2394
- I
2395
- 2c
2396
- I
2397
- 36
2398
- I
2399
- 37
2400
- I
2401
- 3d
2402
- I
2403
- 42
2404
- I
2405
- 44
2406
- I
2407
- 4d
2408
- x
2409
- 57
2410
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2411
- p
2412
- 0
2413
- p
2414
- 11
2415
- I
2416
- 0
2417
- I
2418
- 4
2419
- I
2420
- a
2421
- I
2422
- 8
2423
- I
2424
- 15
2425
- I
2426
- 10
2427
- I
2428
- 20
2429
- I
2430
- 1f
2431
- I
2432
- 2b
2433
- I
2434
- 25
2435
- I
2436
- 36
2437
- x
2438
- 57
2439
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2440
- p
2441
- 0
2442
- x
2443
- 8
2444
- describe
2445
- p
2446
- 5
2447
- I
2448
- 0
2449
- I
2450
- 1
2451
- I
2452
- 9
2453
- I
2454
- 3
2455
- I
2456
- 1a
2457
- x
2458
- 57
2459
- /Users/semmons99/Dropbox/src/money/spec/bank/base_spec.rb
2460
- p
2461
- 0