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
data/spec/spec_helper.rbc
DELETED
@@ -1,346 +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
|
-
48
|
13
|
-
5
|
14
|
-
7
|
15
|
-
0
|
16
|
-
64
|
17
|
-
47
|
18
|
-
49
|
19
|
-
1
|
20
|
-
1
|
21
|
-
15
|
22
|
-
5
|
23
|
-
7
|
24
|
-
2
|
25
|
-
64
|
26
|
-
47
|
27
|
-
49
|
28
|
-
1
|
29
|
-
1
|
30
|
-
15
|
31
|
-
99
|
32
|
-
7
|
33
|
-
3
|
34
|
-
7
|
35
|
-
4
|
36
|
-
65
|
37
|
-
67
|
38
|
-
49
|
39
|
-
5
|
40
|
-
0
|
41
|
-
49
|
42
|
-
6
|
43
|
-
4
|
44
|
-
15
|
45
|
-
99
|
46
|
-
7
|
47
|
-
7
|
48
|
-
7
|
49
|
-
8
|
50
|
-
65
|
51
|
-
67
|
52
|
-
49
|
53
|
-
5
|
54
|
-
0
|
55
|
-
49
|
56
|
-
6
|
57
|
-
4
|
58
|
-
15
|
59
|
-
2
|
60
|
-
11
|
61
|
-
I
|
62
|
-
5
|
63
|
-
I
|
64
|
-
0
|
65
|
-
I
|
66
|
-
0
|
67
|
-
I
|
68
|
-
0
|
69
|
-
n
|
70
|
-
p
|
71
|
-
9
|
72
|
-
s
|
73
|
-
5
|
74
|
-
money
|
75
|
-
x
|
76
|
-
7
|
77
|
-
require
|
78
|
-
s
|
79
|
-
8
|
80
|
-
rubygems
|
81
|
-
x
|
82
|
-
10
|
83
|
-
reset_i18n
|
84
|
-
M
|
85
|
-
1
|
86
|
-
n
|
87
|
-
n
|
88
|
-
x
|
89
|
-
10
|
90
|
-
reset_i18n
|
91
|
-
i
|
92
|
-
39
|
93
|
-
45
|
94
|
-
0
|
95
|
-
1
|
96
|
-
45
|
97
|
-
0
|
98
|
-
2
|
99
|
-
43
|
100
|
-
3
|
101
|
-
43
|
102
|
-
4
|
103
|
-
13
|
104
|
-
71
|
105
|
-
5
|
106
|
-
47
|
107
|
-
9
|
108
|
-
28
|
109
|
-
47
|
110
|
-
49
|
111
|
-
6
|
112
|
-
0
|
113
|
-
13
|
114
|
-
47
|
115
|
-
49
|
116
|
-
7
|
117
|
-
0
|
118
|
-
15
|
119
|
-
8
|
120
|
-
31
|
121
|
-
49
|
122
|
-
5
|
123
|
-
0
|
124
|
-
13
|
125
|
-
18
|
126
|
-
2
|
127
|
-
49
|
128
|
-
8
|
129
|
-
1
|
130
|
-
15
|
131
|
-
11
|
132
|
-
I
|
133
|
-
3
|
134
|
-
I
|
135
|
-
0
|
136
|
-
I
|
137
|
-
0
|
138
|
-
I
|
139
|
-
0
|
140
|
-
n
|
141
|
-
p
|
142
|
-
9
|
143
|
-
x
|
144
|
-
4
|
145
|
-
I18n
|
146
|
-
n
|
147
|
-
n
|
148
|
-
x
|
149
|
-
7
|
150
|
-
Backend
|
151
|
-
x
|
152
|
-
6
|
153
|
-
Simple
|
154
|
-
x
|
155
|
-
3
|
156
|
-
new
|
157
|
-
x
|
158
|
-
8
|
159
|
-
allocate
|
160
|
-
x
|
161
|
-
10
|
162
|
-
initialize
|
163
|
-
x
|
164
|
-
8
|
165
|
-
backend=
|
166
|
-
p
|
167
|
-
5
|
168
|
-
I
|
169
|
-
-1
|
170
|
-
I
|
171
|
-
7
|
172
|
-
I
|
173
|
-
0
|
174
|
-
I
|
175
|
-
8
|
176
|
-
I
|
177
|
-
27
|
178
|
-
x
|
179
|
-
45
|
180
|
-
/home/semmons99/src/money/spec/spec_helper.rb
|
181
|
-
p
|
182
|
-
0
|
183
|
-
x
|
184
|
-
17
|
185
|
-
method_visibility
|
186
|
-
x
|
187
|
-
15
|
188
|
-
add_defn_method
|
189
|
-
x
|
190
|
-
20
|
191
|
-
store_number_formats
|
192
|
-
M
|
193
|
-
1
|
194
|
-
n
|
195
|
-
n
|
196
|
-
x
|
197
|
-
20
|
198
|
-
store_number_formats
|
199
|
-
i
|
200
|
-
42
|
201
|
-
45
|
202
|
-
0
|
203
|
-
1
|
204
|
-
49
|
205
|
-
2
|
206
|
-
0
|
207
|
-
20
|
208
|
-
0
|
209
|
-
44
|
210
|
-
43
|
211
|
-
3
|
212
|
-
79
|
213
|
-
49
|
214
|
-
4
|
215
|
-
1
|
216
|
-
13
|
217
|
-
7
|
218
|
-
5
|
219
|
-
44
|
220
|
-
43
|
221
|
-
3
|
222
|
-
79
|
223
|
-
49
|
224
|
-
4
|
225
|
-
1
|
226
|
-
13
|
227
|
-
7
|
228
|
-
6
|
229
|
-
20
|
230
|
-
1
|
231
|
-
49
|
232
|
-
7
|
233
|
-
2
|
234
|
-
15
|
235
|
-
49
|
236
|
-
7
|
237
|
-
2
|
238
|
-
15
|
239
|
-
49
|
240
|
-
8
|
241
|
-
2
|
242
|
-
11
|
243
|
-
I
|
244
|
-
b
|
245
|
-
I
|
246
|
-
2
|
247
|
-
I
|
248
|
-
2
|
249
|
-
I
|
250
|
-
2
|
251
|
-
n
|
252
|
-
p
|
253
|
-
9
|
254
|
-
x
|
255
|
-
4
|
256
|
-
I18n
|
257
|
-
n
|
258
|
-
x
|
259
|
-
7
|
260
|
-
backend
|
261
|
-
x
|
262
|
-
4
|
263
|
-
Hash
|
264
|
-
x
|
265
|
-
16
|
266
|
-
new_from_literal
|
267
|
-
x
|
268
|
-
6
|
269
|
-
number
|
270
|
-
x
|
271
|
-
6
|
272
|
-
format
|
273
|
-
x
|
274
|
-
3
|
275
|
-
[]=
|
276
|
-
x
|
277
|
-
18
|
278
|
-
store_translations
|
279
|
-
p
|
280
|
-
15
|
281
|
-
I
|
282
|
-
-1
|
283
|
-
I
|
284
|
-
b
|
285
|
-
I
|
286
|
-
0
|
287
|
-
I
|
288
|
-
c
|
289
|
-
I
|
290
|
-
8
|
291
|
-
I
|
292
|
-
10
|
293
|
-
I
|
294
|
-
10
|
295
|
-
I
|
296
|
-
d
|
297
|
-
I
|
298
|
-
12
|
299
|
-
I
|
300
|
-
f
|
301
|
-
I
|
302
|
-
1a
|
303
|
-
I
|
304
|
-
e
|
305
|
-
I
|
306
|
-
26
|
307
|
-
I
|
308
|
-
c
|
309
|
-
I
|
310
|
-
2a
|
311
|
-
x
|
312
|
-
45
|
313
|
-
/home/semmons99/src/money/spec/spec_helper.rb
|
314
|
-
p
|
315
|
-
2
|
316
|
-
x
|
317
|
-
6
|
318
|
-
locale
|
319
|
-
x
|
320
|
-
12
|
321
|
-
translations
|
322
|
-
p
|
323
|
-
9
|
324
|
-
I
|
325
|
-
0
|
326
|
-
I
|
327
|
-
1
|
328
|
-
I
|
329
|
-
9
|
330
|
-
I
|
331
|
-
2
|
332
|
-
I
|
333
|
-
12
|
334
|
-
I
|
335
|
-
7
|
336
|
-
I
|
337
|
-
20
|
338
|
-
I
|
339
|
-
b
|
340
|
-
I
|
341
|
-
30
|
342
|
-
x
|
343
|
-
45
|
344
|
-
/home/semmons99/src/money/spec/spec_helper.rb
|
345
|
-
p
|
346
|
-
0
|