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