activeuuid 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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's binary (not string) UUIDs to ActiveRecord in MySQL}
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")
@@ -65,15 +65,16 @@ module ActiveUUID
65
65
  @_activeuuid_natural_key_attributes = attributes
66
66
  end
67
67
 
68
- #def uuids(*attributes)
69
- # attributes.each do |attribute|
70
- # class_eval <<-eos
71
- # # def #{@association_name}
72
- # # @_#{@association_name} ||= self.class.associations[:#{@association_name}].new_proxy(self)
73
- # # end
74
- # eos
75
- # end
76
- #end
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
@@ -1,3 +1,3 @@
1
1
  module Activeuuid
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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: &2156315740 !ruby/object:Gem::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: *2156315740
25
- description: Add's binary (not string) UUIDs to ActiveRecord in MySQL
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: []