activeuuid-ps 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,12 +6,6 @@ module UUIDTools
6
6
  "x'#{s}'"
7
7
  end
8
8
 
9
- # monkey-patch Friendly::UUID to serialize UUIDs to MySQL
10
- def quoted_id_ps
11
- s = raw.unpack("H*")[0]
12
- "\x'#{s}'"
13
- end
14
-
15
9
  def as_json(options = nil)
16
10
  hexdigest.upcase
17
11
  end
@@ -31,7 +25,7 @@ module Arel
31
25
  end
32
26
  class PostgreSQL < Arel::Visitors::ToSql
33
27
  def visit_UUIDTools_UUID(o)
34
- o.quoted_id_ps
28
+ o.quoted_id
35
29
  end
36
30
  end
37
31
  end
@@ -1,3 +1,3 @@
1
1
  module Activeuuid
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeuuid-ps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-28 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools
16
- requirement: &23679000 !ruby/object:Gem::Requirement
16
+ requirement: &26843736 !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: *23679000
24
+ version_requirements: *26843736
25
25
  description: Add binary (not string) UUIDs to ActiveRecord in PostgreSQL
26
26
  email:
27
27
  - nate@natemurray.com, ralfsb2008@gmail.com