uniquify-uuid 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +1,18 @@
1
- module Uniquify; end
2
-
3
- if RUBY_VERSION > '1.9'
4
- require 'securerandom'
5
-
6
- module Uniquify::UUID
1
+ module Uniquify
2
+ module UUID
7
3
  extend self
8
- def generate
9
- SecureRandom.uuid
10
- end
11
- end
12
-
13
- else
14
- require 'simple_uuid'
15
-
16
- module Uniquify::UUID
17
- extend self
18
- def generate
19
- SimpleUUID::UUID.new.to_guid
4
+
5
+ if RUBY_VERSION > '1.9'
6
+ require 'securerandom'
7
+ def generate
8
+ SecureRandom.uuid
9
+ end
10
+ else
11
+ require 'simple_uuid'
12
+ def generate
13
+ SimpleUUID::UUID.new.to_guid
14
+ end
20
15
  end
16
+
21
17
  end
22
18
  end
@@ -1,3 +1,3 @@
1
1
  module Uniquify
2
- VERSION = "0.0.1"
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniquify-uuid
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 1
10
- version: 0.0.1
5
+ version: 0.0.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - rwz
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-05-22 00:00:00 Z
13
+ date: 2011-05-24 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: simple_uuid
@@ -25,11 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - "="
27
22
  - !ruby/object:Gem::Version
28
- hash: 31
29
- segments:
30
- - 0
31
- - 1
32
- - 2
33
23
  version: 0.1.2
34
24
  type: :runtime
35
25
  version_requirements: *id001
@@ -64,23 +54,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
54
  requirements:
65
55
  - - ">="
66
56
  - !ruby/object:Gem::Version
67
- hash: 3
68
- segments:
69
- - 0
70
57
  version: "0"
71
58
  required_rubygems_version: !ruby/object:Gem::Requirement
72
59
  none: false
73
60
  requirements:
74
61
  - - ">="
75
62
  - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
63
  version: "0"
80
64
  requirements: []
81
65
 
82
66
  rubyforge_project: uniquify-uuid
83
- rubygems_version: 1.7.2
67
+ rubygems_version: 1.8.3
84
68
  signing_key:
85
69
  specification_version: 3
86
70
  summary: Generate a unique UUID token with Active Record.