priceable 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/priceable.rb CHANGED
@@ -10,7 +10,7 @@ module Priceable
10
10
  send("#{price_field}#{suffix}".to_sym) / 100.0
11
11
  end
12
12
  define_method "#{price_field}=".to_sym do |new_price|
13
- send("#{price_field}#{suffix}=".to_sym, new_price * 100)
13
+ send("#{price_field}#{suffix}=".to_sym, new_price.to_f * 100)
14
14
  end
15
15
  end
16
16
  if self._accessible_attributes?
@@ -1,3 +1,3 @@
1
1
  module Priceable
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: priceable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-04 00:00:00.000000000 Z
12
+ date: 2012-05-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70144036997460 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70144036997460
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rspec
27
- requirement: &70144036997040 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,7 +37,12 @@ dependencies:
32
37
  version: '0'
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *70144036997040
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  description: Super simple way to store prices
37
47
  email:
38
48
  - will@willcosgrove.com
@@ -122,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
132
  version: '0'
123
133
  segments:
124
134
  - 0
125
- hash: 3243887087688970341
135
+ hash: -2534363491460813857
126
136
  required_rubygems_version: !ruby/object:Gem::Requirement
127
137
  none: false
128
138
  requirements:
@@ -131,10 +141,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
141
  version: '0'
132
142
  segments:
133
143
  - 0
134
- hash: 3243887087688970341
144
+ hash: -2534363491460813857
135
145
  requirements: []
136
146
  rubyforge_project:
137
- rubygems_version: 1.8.11
147
+ rubygems_version: 1.8.23
138
148
  signing_key:
139
149
  specification_version: 3
140
150
  summary: Quit storing prices the stupid way. Get Priceable!