coded_options 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,10 +17,10 @@ module CodedOptions
17
17
  const_set "#{singular_name}_options".upcase, to_options(values)
18
18
 
19
19
  class_eval <<-EOT, __FILE__, (__LINE__+1)
20
- def #{singular_name} # def state
21
- return unless #{singular_name}_id # return unless state_id
22
- #{plural_name.upcase}[#{singular_name}_id] # STATES[state_id]
23
- end # end
20
+ def #{singular_name} # def state
21
+ return unless #{singular_name}_id # return unless state_id
22
+ #{plural_name.upcase}[#{singular_name}_id.to_i] # STATES[state_id.to_i]
23
+ end # end
24
24
  EOT
25
25
  end
26
26
 
@@ -1,3 +1,3 @@
1
1
  module CodedOptions
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coded_options
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Dew
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-13 00:00:00 -04:00
18
+ date: 2010-10-23 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -34,9 +34,7 @@ files:
34
34
  - lib/coded_options.rb
35
35
  - lib/rails/coded_options.rb
36
36
  - LICENSE
37
- - CHANGELOG.md
38
37
  - README.md
39
- - ROADMAP.md
40
38
  has_rdoc: true
41
39
  homepage: http://github.com/jasondew/coded_options
42
40
  licenses: []
data/CHANGELOG.md DELETED
File without changes
data/ROADMAP.md DELETED
File without changes