enum_id 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/VERSION +1 -1
  2. data/enum_id.gemspec +58 -0
  3. data/lib/enum_id.rb +5 -0
  4. metadata +3 -3
  5. data/init.rb +0 -5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
data/enum_id.gemspec ADDED
@@ -0,0 +1,58 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "enum_id"
8
+ s.version = "1.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Javier Goizueta"]
12
+ s.date = "2012-04-18"
13
+ s.description = "Enumerated ActiveRecord fields "
14
+ s.email = "jgoizueta@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc",
18
+ "TODO"
19
+ ]
20
+ s.files = [
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "TODO",
27
+ "VERSION",
28
+ "enum_id.gemspec",
29
+ "lib/enum_id.rb"
30
+ ]
31
+ s.homepage = "http://github.com/jgoizueta/enum_id"
32
+ s.licenses = ["MIT"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = "1.8.21"
35
+ s.summary = "Enumerated ActiveRecord fields"
36
+
37
+ if s.respond_to? :specification_version then
38
+ s.specification_version = 3
39
+
40
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
41
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
42
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
43
+ s.add_development_dependency(%q<bundler>, ["~> 1"])
44
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
45
+ else
46
+ s.add_dependency(%q<shoulda>, [">= 0"])
47
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
48
+ s.add_dependency(%q<bundler>, ["~> 1"])
49
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
50
+ end
51
+ else
52
+ s.add_dependency(%q<shoulda>, [">= 0"])
53
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
54
+ s.add_dependency(%q<bundler>, ["~> 1"])
55
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
56
+ end
57
+ end
58
+
data/lib/enum_id.rb CHANGED
@@ -97,3 +97,8 @@ module EnumId
97
97
  end
98
98
 
99
99
  end
100
+
101
+ if defined? ActiveRecord::Base
102
+ ActiveRecord::Base.extend EnumId
103
+ end
104
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enum_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -91,7 +91,7 @@ files:
91
91
  - Rakefile
92
92
  - TODO
93
93
  - VERSION
94
- - init.rb
94
+ - enum_id.gemspec
95
95
  - lib/enum_id.rb
96
96
  homepage: http://github.com/jgoizueta/enum_id
97
97
  licenses:
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: 2693429870970939883
111
+ hash: 989149257050778085
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
data/init.rb DELETED
@@ -1,5 +0,0 @@
1
- require 'enum_id'
2
-
3
- if defined? ActiveRecord::Base
4
- ActiveRecord::Base.extend EnumId
5
- end