galetahub-enum_field 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/enum_field.rb CHANGED
@@ -18,4 +18,4 @@ module EnumField
18
18
  class ObjectNotFound < StandardError; end
19
19
  end
20
20
 
21
- require 'enum_field/railtie'
21
+ require 'enum_field/railtie' if defined?(Rails)
@@ -1,3 +1,3 @@
1
1
  module EnumField
2
- VERSION = "0.2.0".freeze
2
+ VERSION = "0.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: galetahub-enum_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-04-29 00:00:00.000000000 Z
13
+ date: 2013-10-23 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Enables Active Record attributes to point to enum like objects, by saving
16
16
  in your database only an integer ID
@@ -20,12 +20,12 @@ extensions: []
20
20
  extra_rdoc_files:
21
21
  - README.rdoc
22
22
  files:
23
- - lib/enum_field.rb
24
- - lib/enum_field/enumerated_attribute.rb
25
- - lib/enum_field/version.rb
26
23
  - lib/enum_field/builder.rb
27
24
  - lib/enum_field/define_enum.rb
25
+ - lib/enum_field/enumerated_attribute.rb
28
26
  - lib/enum_field/railtie.rb
27
+ - lib/enum_field/version.rb
28
+ - lib/enum_field.rb
29
29
  - MIT-LICENSE
30
30
  - Rakefile
31
31
  - README.rdoc
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  version: '0'
50
50
  requirements: []
51
51
  rubyforge_project: enum_field
52
- rubygems_version: 1.8.24
52
+ rubygems_version: 1.8.25
53
53
  signing_key:
54
54
  specification_version: 3
55
55
  summary: Enumerated attributes for Active Record