uunique_ids 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +11 -0
- data/lib/uunique_ids.rb +3 -0
- data/lib/uunique_ids/uunique_ids.rb +23 -0
- metadata +76 -0
data/README
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
README
|
2
|
+
========================================================================
|
3
|
+
uunique_ids was developed by: tracy
|
4
|
+
|
5
|
+
gem 'uunique_ids','0.1'
|
6
|
+
require 'uunique_ids'
|
7
|
+
|
8
|
+
UUniqueIds.random_create
|
9
|
+
=> (SHA1) 6d480cd113b430b91c9a537b66067edb184a184e
|
10
|
+
|
11
|
+
|
data/lib/uunique_ids.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
gem 'ez_chaff','0.2'
|
2
|
+
require 'ez_chaff'
|
3
|
+
gem 'uuidtools','2.1.1'
|
4
|
+
require 'uuidtools'
|
5
|
+
require 'digest/sha1'
|
6
|
+
|
7
|
+
class UUniqueIds
|
8
|
+
|
9
|
+
|
10
|
+
class << self
|
11
|
+
|
12
|
+
def random_create
|
13
|
+
|
14
|
+
raw_uuid = ::UUIDTools::UUID.random_create.to_s
|
15
|
+
chaffed_uuid = ::EzChaff.chaff(raw_uuid)
|
16
|
+
sha1 = ::Digest::SHA1.hexdigest(chaffed_uuid)
|
17
|
+
return sha1
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
metadata
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: uunique_ids
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: "0.1"
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Tracy Flynn
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-23 00:00:00 -04:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: ez_chaff
|
17
|
+
type: :runtime
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0.2"
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: uuidtools
|
27
|
+
type: :runtime
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.1.1
|
34
|
+
version:
|
35
|
+
description: "uunique_ids was developed by: Tracy Flynn"
|
36
|
+
email: gems@olioinfo.net
|
37
|
+
executables: []
|
38
|
+
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- README
|
43
|
+
files:
|
44
|
+
- lib/uunique_ids/uunique_ids.rb
|
45
|
+
- lib/uunique_ids.rb
|
46
|
+
- README
|
47
|
+
has_rdoc: true
|
48
|
+
homepage: http://www.olioinfo.net/projects
|
49
|
+
licenses: []
|
50
|
+
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
|
54
|
+
require_paths:
|
55
|
+
- lib
|
56
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: "0"
|
61
|
+
version:
|
62
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
version:
|
68
|
+
requirements: []
|
69
|
+
|
70
|
+
rubyforge_project: uunique_ids
|
71
|
+
rubygems_version: 1.3.5
|
72
|
+
signing_key:
|
73
|
+
specification_version: 3
|
74
|
+
summary: uunique_ids - Lightweight wrapper for standard UUID tools
|
75
|
+
test_files: []
|
76
|
+
|