money 3.6.2 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/money.rbc +182 -0
- data/lib/money/bank/base.rbc +800 -0
- data/lib/money/bank/variable_exchange.rbc +2514 -0
- data/lib/money/core_extensions.rbc +648 -0
- data/lib/money/currency.rbc +22674 -0
- data/lib/money/money.rb +19 -1
- data/lib/money/money.rbc +3658 -0
- data/lib/money/money/arithmetic.rbc +2742 -0
- data/lib/money/money/formatting.rb +24 -14
- data/lib/money/money/formatting.rbc +2163 -0
- data/lib/money/money/parsing.rbc +2713 -0
- data/money.gemspec +2 -2
- data/spec/bank/base_spec.rbc +2409 -0
- data/spec/bank/variable_exchange_spec.rbc +7389 -0
- data/spec/core_extensions_spec.rbc +5861 -0
- data/spec/currency_spec.rbc +4487 -0
- data/spec/money/arithmetic_spec.rbc +24952 -0
- data/spec/money/formatting_spec.rb +23 -0
- data/spec/money/formatting_spec.rbc +11767 -0
- data/spec/money/parsing_spec.rbc +6439 -0
- data/spec/money_spec.rb +21 -0
- data/spec/money_spec.rbc +9157 -0
- data/spec/spec_helper.rbc +567 -0
- metadata +70 -86
@@ -0,0 +1,648 @@
|
|
1
|
+
!RBIX
|
2
|
+
17831730954501249321
|
3
|
+
x
|
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
|
+
n
|
105
|
+
p
|
106
|
+
9
|
107
|
+
x
|
108
|
+
7
|
109
|
+
Numeric
|
110
|
+
x
|
111
|
+
10
|
112
|
+
open_class
|
113
|
+
x
|
114
|
+
14
|
115
|
+
__class_init__
|
116
|
+
M
|
117
|
+
1
|
118
|
+
n
|
119
|
+
n
|
120
|
+
x
|
121
|
+
7
|
122
|
+
Numeric
|
123
|
+
i
|
124
|
+
16
|
125
|
+
5
|
126
|
+
66
|
127
|
+
99
|
128
|
+
7
|
129
|
+
0
|
130
|
+
7
|
131
|
+
1
|
132
|
+
65
|
133
|
+
67
|
134
|
+
49
|
135
|
+
2
|
136
|
+
0
|
137
|
+
49
|
138
|
+
3
|
139
|
+
4
|
140
|
+
11
|
141
|
+
I
|
142
|
+
5
|
143
|
+
I
|
144
|
+
0
|
145
|
+
I
|
146
|
+
0
|
147
|
+
I
|
148
|
+
0
|
149
|
+
n
|
150
|
+
p
|
151
|
+
4
|
152
|
+
x
|
153
|
+
8
|
154
|
+
to_money
|
155
|
+
M
|
156
|
+
1
|
157
|
+
n
|
158
|
+
n
|
159
|
+
x
|
160
|
+
8
|
161
|
+
to_money
|
162
|
+
i
|
163
|
+
28
|
164
|
+
23
|
165
|
+
0
|
166
|
+
10
|
167
|
+
8
|
168
|
+
1
|
169
|
+
19
|
170
|
+
0
|
171
|
+
15
|
172
|
+
45
|
173
|
+
0
|
174
|
+
1
|
175
|
+
5
|
176
|
+
20
|
177
|
+
0
|
178
|
+
13
|
179
|
+
10
|
180
|
+
24
|
181
|
+
15
|
182
|
+
45
|
183
|
+
0
|
184
|
+
2
|
185
|
+
49
|
186
|
+
3
|
187
|
+
0
|
188
|
+
49
|
189
|
+
4
|
190
|
+
2
|
191
|
+
11
|
192
|
+
I
|
193
|
+
5
|
194
|
+
I
|
195
|
+
1
|
196
|
+
I
|
197
|
+
0
|
198
|
+
I
|
199
|
+
1
|
200
|
+
n
|
201
|
+
p
|
202
|
+
5
|
203
|
+
x
|
204
|
+
5
|
205
|
+
Money
|
206
|
+
n
|
207
|
+
n
|
208
|
+
x
|
209
|
+
16
|
210
|
+
default_currency
|
211
|
+
x
|
212
|
+
12
|
213
|
+
from_numeric
|
214
|
+
p
|
215
|
+
5
|
216
|
+
I
|
217
|
+
-1
|
218
|
+
I
|
219
|
+
12
|
220
|
+
I
|
221
|
+
8
|
222
|
+
I
|
223
|
+
13
|
224
|
+
I
|
225
|
+
1c
|
226
|
+
x
|
227
|
+
63
|
228
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
229
|
+
p
|
230
|
+
1
|
231
|
+
x
|
232
|
+
8
|
233
|
+
currency
|
234
|
+
x
|
235
|
+
17
|
236
|
+
method_visibility
|
237
|
+
x
|
238
|
+
15
|
239
|
+
add_defn_method
|
240
|
+
p
|
241
|
+
3
|
242
|
+
I
|
243
|
+
2
|
244
|
+
I
|
245
|
+
12
|
246
|
+
I
|
247
|
+
10
|
248
|
+
x
|
249
|
+
63
|
250
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
251
|
+
p
|
252
|
+
0
|
253
|
+
x
|
254
|
+
13
|
255
|
+
attach_method
|
256
|
+
x
|
257
|
+
6
|
258
|
+
String
|
259
|
+
M
|
260
|
+
1
|
261
|
+
n
|
262
|
+
n
|
263
|
+
x
|
264
|
+
6
|
265
|
+
String
|
266
|
+
i
|
267
|
+
30
|
268
|
+
5
|
269
|
+
66
|
270
|
+
99
|
271
|
+
7
|
272
|
+
0
|
273
|
+
7
|
274
|
+
1
|
275
|
+
65
|
276
|
+
67
|
277
|
+
49
|
278
|
+
2
|
279
|
+
0
|
280
|
+
49
|
281
|
+
3
|
282
|
+
4
|
283
|
+
15
|
284
|
+
99
|
285
|
+
7
|
286
|
+
4
|
287
|
+
7
|
288
|
+
5
|
289
|
+
65
|
290
|
+
67
|
291
|
+
49
|
292
|
+
2
|
293
|
+
0
|
294
|
+
49
|
295
|
+
3
|
296
|
+
4
|
297
|
+
11
|
298
|
+
I
|
299
|
+
5
|
300
|
+
I
|
301
|
+
0
|
302
|
+
I
|
303
|
+
0
|
304
|
+
I
|
305
|
+
0
|
306
|
+
n
|
307
|
+
p
|
308
|
+
6
|
309
|
+
x
|
310
|
+
8
|
311
|
+
to_money
|
312
|
+
M
|
313
|
+
1
|
314
|
+
n
|
315
|
+
n
|
316
|
+
x
|
317
|
+
8
|
318
|
+
to_money
|
319
|
+
i
|
320
|
+
18
|
321
|
+
23
|
322
|
+
0
|
323
|
+
10
|
324
|
+
8
|
325
|
+
1
|
326
|
+
19
|
327
|
+
0
|
328
|
+
15
|
329
|
+
45
|
330
|
+
0
|
331
|
+
1
|
332
|
+
5
|
333
|
+
20
|
334
|
+
0
|
335
|
+
49
|
336
|
+
2
|
337
|
+
2
|
338
|
+
11
|
339
|
+
I
|
340
|
+
4
|
341
|
+
I
|
342
|
+
1
|
343
|
+
I
|
344
|
+
0
|
345
|
+
I
|
346
|
+
1
|
347
|
+
n
|
348
|
+
p
|
349
|
+
3
|
350
|
+
x
|
351
|
+
5
|
352
|
+
Money
|
353
|
+
n
|
354
|
+
x
|
355
|
+
5
|
356
|
+
parse
|
357
|
+
p
|
358
|
+
5
|
359
|
+
I
|
360
|
+
-1
|
361
|
+
I
|
362
|
+
2d
|
363
|
+
I
|
364
|
+
8
|
365
|
+
I
|
366
|
+
2e
|
367
|
+
I
|
368
|
+
12
|
369
|
+
x
|
370
|
+
63
|
371
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
372
|
+
p
|
373
|
+
1
|
374
|
+
x
|
375
|
+
8
|
376
|
+
currency
|
377
|
+
x
|
378
|
+
17
|
379
|
+
method_visibility
|
380
|
+
x
|
381
|
+
15
|
382
|
+
add_defn_method
|
383
|
+
x
|
384
|
+
11
|
385
|
+
to_currency
|
386
|
+
M
|
387
|
+
1
|
388
|
+
n
|
389
|
+
n
|
390
|
+
x
|
391
|
+
11
|
392
|
+
to_currency
|
393
|
+
i
|
394
|
+
29
|
395
|
+
45
|
396
|
+
0
|
397
|
+
1
|
398
|
+
43
|
399
|
+
2
|
400
|
+
13
|
401
|
+
71
|
402
|
+
3
|
403
|
+
47
|
404
|
+
9
|
405
|
+
24
|
406
|
+
47
|
407
|
+
49
|
408
|
+
4
|
409
|
+
0
|
410
|
+
13
|
411
|
+
5
|
412
|
+
47
|
413
|
+
49
|
414
|
+
5
|
415
|
+
1
|
416
|
+
15
|
417
|
+
8
|
418
|
+
28
|
419
|
+
5
|
420
|
+
49
|
421
|
+
3
|
422
|
+
1
|
423
|
+
11
|
424
|
+
I
|
425
|
+
3
|
426
|
+
I
|
427
|
+
0
|
428
|
+
I
|
429
|
+
0
|
430
|
+
I
|
431
|
+
0
|
432
|
+
n
|
433
|
+
p
|
434
|
+
6
|
435
|
+
x
|
436
|
+
5
|
437
|
+
Money
|
438
|
+
n
|
439
|
+
x
|
440
|
+
8
|
441
|
+
Currency
|
442
|
+
x
|
443
|
+
3
|
444
|
+
new
|
445
|
+
x
|
446
|
+
8
|
447
|
+
allocate
|
448
|
+
x
|
449
|
+
10
|
450
|
+
initialize
|
451
|
+
p
|
452
|
+
5
|
453
|
+
I
|
454
|
+
-1
|
455
|
+
I
|
456
|
+
3b
|
457
|
+
I
|
458
|
+
0
|
459
|
+
I
|
460
|
+
3c
|
461
|
+
I
|
462
|
+
1d
|
463
|
+
x
|
464
|
+
63
|
465
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
466
|
+
p
|
467
|
+
0
|
468
|
+
p
|
469
|
+
5
|
470
|
+
I
|
471
|
+
2
|
472
|
+
I
|
473
|
+
2d
|
474
|
+
I
|
475
|
+
10
|
476
|
+
I
|
477
|
+
3b
|
478
|
+
I
|
479
|
+
1e
|
480
|
+
x
|
481
|
+
63
|
482
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
483
|
+
p
|
484
|
+
0
|
485
|
+
x
|
486
|
+
6
|
487
|
+
Symbol
|
488
|
+
M
|
489
|
+
1
|
490
|
+
n
|
491
|
+
n
|
492
|
+
x
|
493
|
+
6
|
494
|
+
Symbol
|
495
|
+
i
|
496
|
+
16
|
497
|
+
5
|
498
|
+
66
|
499
|
+
99
|
500
|
+
7
|
501
|
+
0
|
502
|
+
7
|
503
|
+
1
|
504
|
+
65
|
505
|
+
67
|
506
|
+
49
|
507
|
+
2
|
508
|
+
0
|
509
|
+
49
|
510
|
+
3
|
511
|
+
4
|
512
|
+
11
|
513
|
+
I
|
514
|
+
5
|
515
|
+
I
|
516
|
+
0
|
517
|
+
I
|
518
|
+
0
|
519
|
+
I
|
520
|
+
0
|
521
|
+
n
|
522
|
+
p
|
523
|
+
4
|
524
|
+
x
|
525
|
+
11
|
526
|
+
to_currency
|
527
|
+
M
|
528
|
+
1
|
529
|
+
n
|
530
|
+
n
|
531
|
+
x
|
532
|
+
11
|
533
|
+
to_currency
|
534
|
+
i
|
535
|
+
29
|
536
|
+
45
|
537
|
+
0
|
538
|
+
1
|
539
|
+
43
|
540
|
+
2
|
541
|
+
13
|
542
|
+
71
|
543
|
+
3
|
544
|
+
47
|
545
|
+
9
|
546
|
+
24
|
547
|
+
47
|
548
|
+
49
|
549
|
+
4
|
550
|
+
0
|
551
|
+
13
|
552
|
+
5
|
553
|
+
47
|
554
|
+
49
|
555
|
+
5
|
556
|
+
1
|
557
|
+
15
|
558
|
+
8
|
559
|
+
28
|
560
|
+
5
|
561
|
+
49
|
562
|
+
3
|
563
|
+
1
|
564
|
+
11
|
565
|
+
I
|
566
|
+
3
|
567
|
+
I
|
568
|
+
0
|
569
|
+
I
|
570
|
+
0
|
571
|
+
I
|
572
|
+
0
|
573
|
+
n
|
574
|
+
p
|
575
|
+
6
|
576
|
+
x
|
577
|
+
5
|
578
|
+
Money
|
579
|
+
n
|
580
|
+
x
|
581
|
+
8
|
582
|
+
Currency
|
583
|
+
x
|
584
|
+
3
|
585
|
+
new
|
586
|
+
x
|
587
|
+
8
|
588
|
+
allocate
|
589
|
+
x
|
590
|
+
10
|
591
|
+
initialize
|
592
|
+
p
|
593
|
+
5
|
594
|
+
I
|
595
|
+
-1
|
596
|
+
I
|
597
|
+
4e
|
598
|
+
I
|
599
|
+
0
|
600
|
+
I
|
601
|
+
4f
|
602
|
+
I
|
603
|
+
1d
|
604
|
+
x
|
605
|
+
63
|
606
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
607
|
+
p
|
608
|
+
0
|
609
|
+
x
|
610
|
+
17
|
611
|
+
method_visibility
|
612
|
+
x
|
613
|
+
15
|
614
|
+
add_defn_method
|
615
|
+
p
|
616
|
+
3
|
617
|
+
I
|
618
|
+
2
|
619
|
+
I
|
620
|
+
4e
|
621
|
+
I
|
622
|
+
10
|
623
|
+
x
|
624
|
+
63
|
625
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
626
|
+
p
|
627
|
+
0
|
628
|
+
p
|
629
|
+
7
|
630
|
+
I
|
631
|
+
0
|
632
|
+
I
|
633
|
+
2
|
634
|
+
I
|
635
|
+
1b
|
636
|
+
I
|
637
|
+
19
|
638
|
+
I
|
639
|
+
36
|
640
|
+
I
|
641
|
+
42
|
642
|
+
I
|
643
|
+
53
|
644
|
+
x
|
645
|
+
63
|
646
|
+
/Users/semmons99/Dropbox/src/money/lib/money/core_extensions.rb
|
647
|
+
p
|
648
|
+
0
|