activeuuid 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/activeuuid.gemspec +1 -1
- data/lib/activeuuid/uuid.rb +10 -9
- data/lib/activeuuid/version.rb +1 -1
- metadata +4 -4
data/activeuuid.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.email = ["nate@natemurray.com"]
|
10
10
|
s.homepage = "http://www.xcombinator.com"
|
11
11
|
s.summary = %q{Add binary UUIDs to ActiveRecord in MySQL}
|
12
|
-
s.description = %q{Add
|
12
|
+
s.description = %q{Add binary (not string) UUIDs to ActiveRecord in MySQL}
|
13
13
|
|
14
14
|
s.files = `git ls-files`.split("\n")
|
15
15
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/activeuuid/uuid.rb
CHANGED
@@ -65,15 +65,16 @@ module ActiveUUID
|
|
65
65
|
@_activeuuid_natural_key_attributes = attributes
|
66
66
|
end
|
67
67
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
68
|
+
def uuids(*attributes)
|
69
|
+
attributes.each do |attribute|
|
70
|
+
serialize "#{attribute_id}".intern, ActiveUUID::UUIDSerializer.new
|
71
|
+
#class_eval <<-eos
|
72
|
+
# # def #{@association_name}
|
73
|
+
# # @_#{@association_name} ||= self.class.associations[:#{@association_name}].new_proxy(self)
|
74
|
+
# # end
|
75
|
+
#eos
|
76
|
+
end
|
77
|
+
end
|
77
78
|
end
|
78
79
|
|
79
80
|
module InstanceMethods
|
data/lib/activeuuid/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeuuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-08-30 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: uuidtools
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153733140 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,8 +21,8 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
description: Add
|
24
|
+
version_requirements: *2153733140
|
25
|
+
description: Add binary (not string) UUIDs to ActiveRecord in MySQL
|
26
26
|
email:
|
27
27
|
- nate@natemurray.com
|
28
28
|
executables: []
|