money 1.5.6 → 1.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/CHANGELOG +3 -0
  2. data/lib/money/money.rb +2 -2
  3. metadata +4 -3
@@ -0,0 +1,3 @@
1
+ = 1.5.8
2
+
3
+ * Fixed weird bug with floats which caused "410".to_money to be 4.09 $ [Daniel Weinand]
@@ -144,9 +144,9 @@ class Money
144
144
  formatted
145
145
  end
146
146
 
147
- # Money.ca_dollar(100).to_s => "$1.00 CAD"
147
+ # Money.ca_dollar(100).to_s => "1.00"
148
148
  def to_s
149
- format(:with_currency)
149
+ sprintf("%.2f", cents.to_f / 100 )
150
150
  end
151
151
 
152
152
  # Recieve the amount of this money object in another currency
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.6
7
- date: 2005-07-22
6
+ version: 1.5.8
7
+ date: 2005-09-27
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.\nIt supports easy pluggable bank objects for customized exchange strategies.\nCan be used as composite in ActiveRecord tables.
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.
15
15
  autorequire: money
16
16
  default_executable:
17
17
  bindir: bin
@@ -28,6 +28,7 @@ authors:
28
28
  - Tobias Luetke
29
29
  files:
30
30
  - README
31
+ - CHANGELOG
31
32
  - MIT-LICENSE
32
33
  - lib/bank
33
34
  - lib/money