money 3.6.1 → 3.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +335 -319
- data/LICENSE +21 -21
- data/README.md +214 -209
- data/Rakefile +49 -49
- data/lib/money.rb +27 -27
- data/lib/money/bank/base.rb +131 -131
- data/lib/money/bank/variable_exchange.rb +252 -251
- data/lib/money/core_extensions.rb +82 -63
- data/lib/money/currency.rb +422 -415
- data/lib/money/money.rb +387 -1210
- data/lib/money/money/arithmetic.rb +246 -0
- data/lib/money/money/formatting.rb +234 -0
- data/lib/money/money/parsing.rb +350 -0
- data/money.gemspec +34 -27
- data/spec/bank/base_spec.rb +72 -72
- data/spec/bank/variable_exchange_spec.rb +238 -238
- data/spec/core_extensions_spec.rb +158 -142
- data/spec/currency_spec.rb +133 -128
- data/spec/money/arithmetic_spec.rb +479 -0
- data/spec/money/formatting_spec.rb +352 -0
- data/spec/money/parsing_spec.rb +197 -0
- data/spec/money_spec.rb +271 -1268
- data/spec/spec_helper.rb +28 -17
- metadata +33 -23
- data/lib/money.rbc +0 -170
- data/lib/money/bank/base.rbc +0 -800
- data/lib/money/bank/variable_exchange.rbc +0 -2496
- data/lib/money/core_extensions.rbc +0 -474
- data/lib/money/currency.rbc +0 -22600
- data/lib/money/money.rbc +0 -10070
- data/spec/bank/base_spec.rbc +0 -2409
- data/spec/bank/variable_exchange_spec.rbc +0 -7389
- data/spec/core_extensions_spec.rbc +0 -5215
- data/spec/currency_spec.rbc +0 -4341
- data/spec/money_spec.rbc +0 -50121
- data/spec/spec_helper.rbc +0 -346
@@ -1,474 +0,0 @@
|
|
1
|
-
!RBIX
|
2
|
-
0
|
3
|
-
x
|
4
|
-
M
|
5
|
-
1
|
6
|
-
n
|
7
|
-
n
|
8
|
-
x
|
9
|
-
10
|
10
|
-
__script__
|
11
|
-
i
|
12
|
-
56
|
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
|
-
2
|
68
|
-
11
|
69
|
-
I
|
70
|
-
6
|
71
|
-
I
|
72
|
-
0
|
73
|
-
I
|
74
|
-
0
|
75
|
-
I
|
76
|
-
0
|
77
|
-
n
|
78
|
-
p
|
79
|
-
7
|
80
|
-
x
|
81
|
-
7
|
82
|
-
Numeric
|
83
|
-
x
|
84
|
-
10
|
85
|
-
open_class
|
86
|
-
x
|
87
|
-
14
|
88
|
-
__class_init__
|
89
|
-
M
|
90
|
-
1
|
91
|
-
n
|
92
|
-
n
|
93
|
-
x
|
94
|
-
7
|
95
|
-
Numeric
|
96
|
-
i
|
97
|
-
16
|
98
|
-
5
|
99
|
-
66
|
100
|
-
99
|
101
|
-
7
|
102
|
-
0
|
103
|
-
7
|
104
|
-
1
|
105
|
-
65
|
106
|
-
67
|
107
|
-
49
|
108
|
-
2
|
109
|
-
0
|
110
|
-
49
|
111
|
-
3
|
112
|
-
4
|
113
|
-
11
|
114
|
-
I
|
115
|
-
5
|
116
|
-
I
|
117
|
-
0
|
118
|
-
I
|
119
|
-
0
|
120
|
-
I
|
121
|
-
0
|
122
|
-
n
|
123
|
-
p
|
124
|
-
4
|
125
|
-
x
|
126
|
-
8
|
127
|
-
to_money
|
128
|
-
M
|
129
|
-
1
|
130
|
-
n
|
131
|
-
n
|
132
|
-
x
|
133
|
-
8
|
134
|
-
to_money
|
135
|
-
i
|
136
|
-
28
|
137
|
-
23
|
138
|
-
0
|
139
|
-
10
|
140
|
-
8
|
141
|
-
1
|
142
|
-
19
|
143
|
-
0
|
144
|
-
15
|
145
|
-
45
|
146
|
-
0
|
147
|
-
1
|
148
|
-
5
|
149
|
-
20
|
150
|
-
0
|
151
|
-
13
|
152
|
-
10
|
153
|
-
24
|
154
|
-
15
|
155
|
-
45
|
156
|
-
0
|
157
|
-
2
|
158
|
-
49
|
159
|
-
3
|
160
|
-
0
|
161
|
-
49
|
162
|
-
4
|
163
|
-
2
|
164
|
-
11
|
165
|
-
I
|
166
|
-
5
|
167
|
-
I
|
168
|
-
1
|
169
|
-
I
|
170
|
-
0
|
171
|
-
I
|
172
|
-
1
|
173
|
-
n
|
174
|
-
p
|
175
|
-
5
|
176
|
-
x
|
177
|
-
5
|
178
|
-
Money
|
179
|
-
n
|
180
|
-
n
|
181
|
-
x
|
182
|
-
16
|
183
|
-
default_currency
|
184
|
-
x
|
185
|
-
12
|
186
|
-
from_numeric
|
187
|
-
p
|
188
|
-
5
|
189
|
-
I
|
190
|
-
-1
|
191
|
-
I
|
192
|
-
12
|
193
|
-
I
|
194
|
-
8
|
195
|
-
I
|
196
|
-
13
|
197
|
-
I
|
198
|
-
1c
|
199
|
-
x
|
200
|
-
54
|
201
|
-
/home/semmons99/src/money/lib/money/core_extensions.rb
|
202
|
-
p
|
203
|
-
1
|
204
|
-
x
|
205
|
-
8
|
206
|
-
currency
|
207
|
-
x
|
208
|
-
17
|
209
|
-
method_visibility
|
210
|
-
x
|
211
|
-
15
|
212
|
-
add_defn_method
|
213
|
-
p
|
214
|
-
3
|
215
|
-
I
|
216
|
-
2
|
217
|
-
I
|
218
|
-
12
|
219
|
-
I
|
220
|
-
10
|
221
|
-
x
|
222
|
-
54
|
223
|
-
/home/semmons99/src/money/lib/money/core_extensions.rb
|
224
|
-
p
|
225
|
-
0
|
226
|
-
x
|
227
|
-
13
|
228
|
-
attach_method
|
229
|
-
x
|
230
|
-
6
|
231
|
-
String
|
232
|
-
M
|
233
|
-
1
|
234
|
-
n
|
235
|
-
n
|
236
|
-
x
|
237
|
-
6
|
238
|
-
String
|
239
|
-
i
|
240
|
-
30
|
241
|
-
5
|
242
|
-
66
|
243
|
-
99
|
244
|
-
7
|
245
|
-
0
|
246
|
-
7
|
247
|
-
1
|
248
|
-
65
|
249
|
-
67
|
250
|
-
49
|
251
|
-
2
|
252
|
-
0
|
253
|
-
49
|
254
|
-
3
|
255
|
-
4
|
256
|
-
15
|
257
|
-
99
|
258
|
-
7
|
259
|
-
4
|
260
|
-
7
|
261
|
-
5
|
262
|
-
65
|
263
|
-
67
|
264
|
-
49
|
265
|
-
2
|
266
|
-
0
|
267
|
-
49
|
268
|
-
3
|
269
|
-
4
|
270
|
-
11
|
271
|
-
I
|
272
|
-
5
|
273
|
-
I
|
274
|
-
0
|
275
|
-
I
|
276
|
-
0
|
277
|
-
I
|
278
|
-
0
|
279
|
-
n
|
280
|
-
p
|
281
|
-
6
|
282
|
-
x
|
283
|
-
8
|
284
|
-
to_money
|
285
|
-
M
|
286
|
-
1
|
287
|
-
n
|
288
|
-
n
|
289
|
-
x
|
290
|
-
8
|
291
|
-
to_money
|
292
|
-
i
|
293
|
-
18
|
294
|
-
23
|
295
|
-
0
|
296
|
-
10
|
297
|
-
8
|
298
|
-
1
|
299
|
-
19
|
300
|
-
0
|
301
|
-
15
|
302
|
-
45
|
303
|
-
0
|
304
|
-
1
|
305
|
-
5
|
306
|
-
20
|
307
|
-
0
|
308
|
-
49
|
309
|
-
2
|
310
|
-
2
|
311
|
-
11
|
312
|
-
I
|
313
|
-
4
|
314
|
-
I
|
315
|
-
1
|
316
|
-
I
|
317
|
-
0
|
318
|
-
I
|
319
|
-
1
|
320
|
-
n
|
321
|
-
p
|
322
|
-
3
|
323
|
-
x
|
324
|
-
5
|
325
|
-
Money
|
326
|
-
n
|
327
|
-
x
|
328
|
-
5
|
329
|
-
parse
|
330
|
-
p
|
331
|
-
5
|
332
|
-
I
|
333
|
-
-1
|
334
|
-
I
|
335
|
-
2d
|
336
|
-
I
|
337
|
-
8
|
338
|
-
I
|
339
|
-
2e
|
340
|
-
I
|
341
|
-
12
|
342
|
-
x
|
343
|
-
54
|
344
|
-
/home/semmons99/src/money/lib/money/core_extensions.rb
|
345
|
-
p
|
346
|
-
1
|
347
|
-
x
|
348
|
-
8
|
349
|
-
currency
|
350
|
-
x
|
351
|
-
17
|
352
|
-
method_visibility
|
353
|
-
x
|
354
|
-
15
|
355
|
-
add_defn_method
|
356
|
-
x
|
357
|
-
11
|
358
|
-
to_currency
|
359
|
-
M
|
360
|
-
1
|
361
|
-
n
|
362
|
-
n
|
363
|
-
x
|
364
|
-
11
|
365
|
-
to_currency
|
366
|
-
i
|
367
|
-
29
|
368
|
-
45
|
369
|
-
0
|
370
|
-
1
|
371
|
-
43
|
372
|
-
2
|
373
|
-
13
|
374
|
-
71
|
375
|
-
3
|
376
|
-
47
|
377
|
-
9
|
378
|
-
24
|
379
|
-
47
|
380
|
-
49
|
381
|
-
4
|
382
|
-
0
|
383
|
-
13
|
384
|
-
5
|
385
|
-
47
|
386
|
-
49
|
387
|
-
5
|
388
|
-
1
|
389
|
-
15
|
390
|
-
8
|
391
|
-
28
|
392
|
-
5
|
393
|
-
49
|
394
|
-
3
|
395
|
-
1
|
396
|
-
11
|
397
|
-
I
|
398
|
-
3
|
399
|
-
I
|
400
|
-
0
|
401
|
-
I
|
402
|
-
0
|
403
|
-
I
|
404
|
-
0
|
405
|
-
n
|
406
|
-
p
|
407
|
-
6
|
408
|
-
x
|
409
|
-
5
|
410
|
-
Money
|
411
|
-
n
|
412
|
-
x
|
413
|
-
8
|
414
|
-
Currency
|
415
|
-
x
|
416
|
-
3
|
417
|
-
new
|
418
|
-
x
|
419
|
-
8
|
420
|
-
allocate
|
421
|
-
x
|
422
|
-
10
|
423
|
-
initialize
|
424
|
-
p
|
425
|
-
5
|
426
|
-
I
|
427
|
-
-1
|
428
|
-
I
|
429
|
-
3b
|
430
|
-
I
|
431
|
-
0
|
432
|
-
I
|
433
|
-
3c
|
434
|
-
I
|
435
|
-
1d
|
436
|
-
x
|
437
|
-
54
|
438
|
-
/home/semmons99/src/money/lib/money/core_extensions.rb
|
439
|
-
p
|
440
|
-
0
|
441
|
-
p
|
442
|
-
5
|
443
|
-
I
|
444
|
-
2
|
445
|
-
I
|
446
|
-
2d
|
447
|
-
I
|
448
|
-
10
|
449
|
-
I
|
450
|
-
3b
|
451
|
-
I
|
452
|
-
1e
|
453
|
-
x
|
454
|
-
54
|
455
|
-
/home/semmons99/src/money/lib/money/core_extensions.rb
|
456
|
-
p
|
457
|
-
0
|
458
|
-
p
|
459
|
-
5
|
460
|
-
I
|
461
|
-
0
|
462
|
-
I
|
463
|
-
2
|
464
|
-
I
|
465
|
-
1b
|
466
|
-
I
|
467
|
-
19
|
468
|
-
I
|
469
|
-
38
|
470
|
-
x
|
471
|
-
54
|
472
|
-
/home/semmons99/src/money/lib/money/core_extensions.rb
|
473
|
-
p
|
474
|
-
0
|