money 1.5.8 → 1.5.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/money/core_extensions.rb +2 -2
  2. metadata +3 -4
  3. 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 = strip.scan /(\-?\d+(\.(\d+))?)/
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.8
7
- date: 2005-09-27
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. It supports easy pluggable bank objects for customized exchange strategies. Can be used as composite in ActiveRecord tables.
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
@@ -1,3 +0,0 @@
1
- = 1.5.8
2
-
3
- * Fixed weird bug with floats which caused "410".to_money to be 4.09 $ [Daniel Weinand]