activeuuid 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,6 +5,10 @@ module UUIDTools
5
5
  s = raw.unpack("H*")[0]
6
6
  "x'#{s}'"
7
7
  end
8
+
9
+ def as_json(options = nil)
10
+ hexdigest.upcase
11
+ end
8
12
  end
9
13
  end
10
14
 
@@ -67,7 +71,7 @@ module ActiveUUID
67
71
 
68
72
  def uuids(*attributes)
69
73
  attributes.each do |attribute|
70
- serialize "#{attribute_id}".intern, ActiveUUID::UUIDSerializer.new
74
+ serialize attribute.intern, ActiveUUID::UUIDSerializer.new
71
75
  #class_eval <<-eos
72
76
  # # def #{@association_name}
73
77
  # # @_#{@association_name} ||= self.class.associations[:#{@association_name}].new_proxy(self)
@@ -1,3 +1,3 @@
1
1
  module Activeuuid
2
- VERSION = "0.0.4"
2
+ VERSION = "0.1.0"
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.4
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-30 00:00:00.000000000Z
12
+ date: 2011-09-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools
16
- requirement: &2153733140 !ruby/object:Gem::Requirement
16
+ requirement: &2152621780 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153733140
24
+ version_requirements: *2152621780
25
25
  description: Add binary (not string) UUIDs to ActiveRecord in MySQL
26
26
  email:
27
27
  - nate@natemurray.com