money 1.5.8 → 1.5.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/money/core_extensions.rb +2 -2
- metadata +3 -4
- data/CHANGELOG +0 -3
@@ -18,8 +18,8 @@ class String
|
|
18
18
|
currency = matches[0] ? matches[0][0] : Money.default_currency
|
19
19
|
|
20
20
|
# Get the cents amount
|
21
|
-
matches =
|
22
|
-
cents = matches[0] ? matches[0][0].to_f * 100 : 0
|
21
|
+
matches = scan /(\-?\d+(\.(\d+))?)/
|
22
|
+
cents = matches[0] ? (matches[0][0].to_f * 100).round : 0
|
23
23
|
|
24
24
|
Money.new(cents, currency)
|
25
25
|
end
|
metadata
CHANGED
@@ -3,15 +3,15 @@ rubygems_version: 0.8.10
|
|
3
3
|
specification_version: 1
|
4
4
|
name: money
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.5.
|
7
|
-
date: 2005-
|
6
|
+
version: 1.5.9
|
7
|
+
date: 2005-10-26
|
8
8
|
summary: Class aiding in the handling of Money.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: tobi@leetsoft.com
|
12
12
|
homepage: http://leetsoft.com/rails/money
|
13
13
|
rubyforge_project:
|
14
|
-
description: Class aiding in the handling of Money and Currencies
|
14
|
+
description: Class aiding in the handling of Money and Currencies.\nIt supports easy pluggable bank objects for customized exchange strategies.\nCan be used as composite in ActiveRecord tables.
|
15
15
|
autorequire: money
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
@@ -28,7 +28,6 @@ authors:
|
|
28
28
|
- Tobias Luetke
|
29
29
|
files:
|
30
30
|
- README
|
31
|
-
- CHANGELOG
|
32
31
|
- MIT-LICENSE
|
33
32
|
- lib/bank
|
34
33
|
- lib/money
|
data/CHANGELOG
DELETED