has_uuid 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/has_uuid.gemspec +1 -1
- data/lib/has_uuid.rb +4 -4
- data/lib/has_uuid/version.rb +1 -1
- metadata +5 -5
data/has_uuid.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
16
16
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
17
17
|
s.require_paths = ["lib"]
|
18
|
-
s.add_dependency 'activerecord'
|
18
|
+
s.add_dependency 'activerecord', '>= 3.0'
|
19
19
|
s.add_dependency 'uuidtools'
|
20
20
|
s.add_development_dependency 'rake'
|
21
21
|
s.add_development_dependency 'sqlite3'
|
data/lib/has_uuid.rb
CHANGED
@@ -31,11 +31,11 @@ module ActiveRecord #:nodoc:
|
|
31
31
|
before_validation(:on => :create) { assign_uuid }
|
32
32
|
end
|
33
33
|
|
34
|
-
|
35
|
-
|
34
|
+
class_attribute :uuid_column
|
35
|
+
self.uuid_column = options[:column]
|
36
36
|
|
37
|
-
|
38
|
-
|
37
|
+
class_attribute :uuid_generator
|
38
|
+
self.uuid_generator = options[:generator]
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
data/lib/has_uuid/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: has_uuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- "Timo R\xC3\xB6\xC3\x9Fner"
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-09-28 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
23
|
+
version: "3.0"
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: *id001
|
@@ -92,7 +92,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
93
93
|
- - ">="
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
hash:
|
95
|
+
hash: 835200193
|
96
96
|
segments:
|
97
97
|
- 0
|
98
98
|
version: "0"
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
hash:
|
104
|
+
hash: 835200193
|
105
105
|
segments:
|
106
106
|
- 0
|
107
107
|
version: "0"
|