brdinheiro 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -35,7 +35,7 @@ module DinheiroActiveRecord#:nodoc:
35
35
  end
36
36
 
37
37
  def #{name}
38
- read_attribute(:#{name})
38
+ read_attribute(:#{name}).reais if read_attribute(:#{name})
39
39
  end
40
40
  ADICIONANDO_METODO
41
41
  end
@@ -2,7 +2,7 @@ module BrDinheiro
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 6
5
+ TINY = 7
6
6
 
7
7
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
8
8
  end
@@ -50,6 +50,11 @@ class DinheiroActiveRecordTest < Test::Unit::TestCase
50
50
  carteira.saldo += 5.reais
51
51
  assert_equal 15.reais, carteira.saldo
52
52
  end
53
+
54
+ def test_se_retorna_objeto_do_mesmo_tipo
55
+ @carteira.saldo = 10.reais
56
+ assert_equal 10.reais.class, @carteira.saldo.class
57
+ end
53
58
 
54
59
  end
55
60
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
- - 6
9
- version: 3.0.6
8
+ - 7
9
+ version: 3.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Marcos Tapaj\xC3\xB3s"
@@ -20,7 +20,7 @@ autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
22
 
23
- date: 2012-01-02 00:00:00 -02:00
23
+ date: 2012-01-03 00:00:00 -02:00
24
24
  default_executable:
25
25
  dependencies:
26
26
  - !ruby/object:Gem::Dependency
@@ -63,8 +63,8 @@ dependencies:
63
63
  segments:
64
64
  - 3
65
65
  - 0
66
- - 6
67
- version: 3.0.6
66
+ - 7
67
+ version: 3.0.7
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: *id003
@@ -128,7 +128,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
130
130
  - !ruby/object:Gem::Version
131
- hash: -513930560544586176
131
+ hash: -1685363192975911360
132
132
  segments:
133
133
  - 0
134
134
  version: "0"
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- hash: -513930560544586176
140
+ hash: -1685363192975911360
141
141
  segments:
142
142
  - 0
143
143
  version: "0"