acts_as_money 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/acts_as_money.rb +2 -2
- metadata +5 -22
data/lib/acts_as_money.rb
CHANGED
@@ -29,9 +29,9 @@ module ActsAsMoney #:nodoc:
|
|
29
29
|
when Fixnum
|
30
30
|
Money.new(value, Money.default_currency)
|
31
31
|
when Float
|
32
|
-
Money.new((value * 100).
|
32
|
+
Money.new((value * 100).to_d, Money.default_currency)
|
33
33
|
when String
|
34
|
-
Money.new((value.to_f * 100).
|
34
|
+
Money.new((value.to_f * 100).to_d, Money.default_currency)
|
35
35
|
else
|
36
36
|
value
|
37
37
|
end
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 3
|
10
|
-
version: 0.2.3
|
4
|
+
prerelease:
|
5
|
+
version: 0.2.4
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Tim Cowlishaw
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2011-02-28 00:00:00 +00:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,9 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
24
|
version: "0"
|
33
25
|
type: :runtime
|
34
26
|
version_requirements: *id001
|
@@ -40,9 +32,6 @@ dependencies:
|
|
40
32
|
requirements:
|
41
33
|
- - ">="
|
42
34
|
- !ruby/object:Gem::Version
|
43
|
-
hash: 3
|
44
|
-
segments:
|
45
|
-
- 0
|
46
35
|
version: "0"
|
47
36
|
type: :runtime
|
48
37
|
version_requirements: *id002
|
@@ -57,7 +46,7 @@ extra_rdoc_files:
|
|
57
46
|
files:
|
58
47
|
- README
|
59
48
|
- lib/acts_as_money.rb
|
60
|
-
has_rdoc:
|
49
|
+
has_rdoc: true
|
61
50
|
homepage: http://github.com/timcowlishaw/acts_as_money
|
62
51
|
licenses: []
|
63
52
|
|
@@ -72,23 +61,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
61
|
requirements:
|
73
62
|
- - ">="
|
74
63
|
- !ruby/object:Gem::Version
|
75
|
-
hash: 3
|
76
|
-
segments:
|
77
|
-
- 0
|
78
64
|
version: "0"
|
79
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
66
|
none: false
|
81
67
|
requirements:
|
82
68
|
- - ">="
|
83
69
|
- !ruby/object:Gem::Version
|
84
|
-
hash: 3
|
85
|
-
segments:
|
86
|
-
- 0
|
87
70
|
version: "0"
|
88
71
|
requirements: []
|
89
72
|
|
90
73
|
rubyforge_project:
|
91
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.5.2
|
92
75
|
signing_key:
|
93
76
|
specification_version: 3
|
94
77
|
summary: A fairly trivial plugin allowing easy serialisation of Money values (from the money gem) as attributes on activerecord objects
|