dm-money 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/dm-money.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/dm-money.rb
CHANGED
@@ -73,7 +73,7 @@ module DataMapper
|
|
73
73
|
|
74
74
|
#{property.writer_visibility}
|
75
75
|
def #{name}=(value)
|
76
|
-
raise TypeError.new(
|
76
|
+
raise TypeError.new("Expected BigMoney +value+ but got \#{value.class}") unless value.kind_of?(BigMoney)
|
77
77
|
self.#{name_amount} = value.amount
|
78
78
|
self.#{name_currency} = value.currency
|
79
79
|
#{instance_variable_name} = value
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-money
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Hanna
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-
|
12
|
+
date: 2010-03-09 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|