simple_uuid 0.1.0 → 0.1.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.tar.gz.sig +0 -0
- data/CHANGELOG +2 -0
- data/Manifest +3 -2
- data/README.rdoc +31 -0
- data/Rakefile +9 -4
- data/lib/simple_uuid.rb +1 -1
- data/simple_uuid.gemspec +11 -11
- metadata +13 -13
- metadata.gz.sig +0 -0
- data/README +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG
CHANGED
data/Manifest
CHANGED
data/README.rdoc
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
|
2
|
+
= simple_uuid
|
3
|
+
|
4
|
+
Simple, scalable UUID generation.
|
5
|
+
|
6
|
+
== License
|
7
|
+
|
8
|
+
Copyright 2009-2010 Twitter, Inc. See included LICENSE file.
|
9
|
+
|
10
|
+
== Features
|
11
|
+
|
12
|
+
* pure-Ruby
|
13
|
+
* no MAC address scraping
|
14
|
+
* no file-based locking
|
15
|
+
|
16
|
+
This library implements UUID format version 1, as specified in {RFC 4122}[http://www.ietf.org/rfc/rfc4122.txt], with jitter in place of the mac address and sequence counter.
|
17
|
+
|
18
|
+
== Installation
|
19
|
+
|
20
|
+
Install the gem:
|
21
|
+
sudo gem install simple_uuid
|
22
|
+
|
23
|
+
== Usage
|
24
|
+
|
25
|
+
TBD...
|
26
|
+
|
27
|
+
== Reporting problems
|
28
|
+
|
29
|
+
The support forum is here[http://github.com/ryanking/simple_uuid/issues].
|
30
|
+
|
31
|
+
Patches and contributions are very welcome.
|
data/Rakefile
CHANGED
@@ -1,7 +1,12 @@
|
|
1
|
+
|
1
2
|
require 'echoe'
|
3
|
+
|
2
4
|
Echoe.new('simple_uuid') do |e|
|
3
|
-
e.author = 'Evan Weaver'
|
4
|
-
e.
|
5
|
-
e.description = 'Simple UUID generation.'
|
5
|
+
e.author = 'Ryan King, Evan Weaver'
|
6
|
+
e.description = 'Simple, scalable UUID generation.'
|
6
7
|
e.email = 'ryan@twitter.com'
|
7
|
-
|
8
|
+
e.rubygems_version = ">= 0.8"
|
9
|
+
e.project = "fauna"
|
10
|
+
e.url = "http://blog.evanweaver.com/files/doc/fauna/simple_uuid/"
|
11
|
+
e.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"
|
12
|
+
end
|
data/lib/simple_uuid.rb
CHANGED
@@ -30,7 +30,7 @@ module SimpleUUID
|
|
30
30
|
when 36 # Human-readable UUID representation; inverse of #to_guid
|
31
31
|
elements = bytes.split("-")
|
32
32
|
raise TypeError, "Expected #{bytes.inspect} to cast to a #{self.class} (malformed UUID representation)" if elements.size != 5
|
33
|
-
@bytes = elements.join.
|
33
|
+
@bytes = [elements.join].pack('H32')
|
34
34
|
else
|
35
35
|
raise TypeError, "Expected #{bytes.inspect} to cast to a #{self.class} (invalid bytecount)"
|
36
36
|
end
|
data/simple_uuid.gemspec
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{simple_uuid}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.1"
|
6
6
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">=
|
8
|
-
s.authors = ["Ryan King"]
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0.8") if s.respond_to? :required_rubygems_version=
|
8
|
+
s.authors = ["Ryan King, Evan Weaver"]
|
9
9
|
s.cert_chain = ["/Users/ryan/.gemkeys/gem-public_cert.pem"]
|
10
|
-
s.date = %q{2010-
|
11
|
-
s.description = %q{Simple UUID generation.}
|
10
|
+
s.date = %q{2010-03-23}
|
11
|
+
s.description = %q{Simple, scalable UUID generation.}
|
12
12
|
s.email = %q{ryan@twitter.com}
|
13
|
-
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "lib/simple_uuid.rb"]
|
14
|
-
s.files = ["CHANGELOG", "LICENSE", "README", "Rakefile", "lib/simple_uuid.rb", "
|
15
|
-
s.homepage = %q{}
|
16
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Simple_uuid", "--main", "README"]
|
13
|
+
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README.rdoc", "lib/simple_uuid.rb"]
|
14
|
+
s.files = ["CHANGELOG", "LICENSE", "Manifest", "README.rdoc", "Rakefile", "lib/simple_uuid.rb", "simple_uuid.gemspec", "test/test_uuid.rb"]
|
15
|
+
s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/simple_uuid/}
|
16
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Simple_uuid", "--main", "README.rdoc"]
|
17
17
|
s.require_paths = ["lib"]
|
18
|
-
s.rubyforge_project = %q{
|
18
|
+
s.rubyforge_project = %q{fauna}
|
19
19
|
s.rubygems_version = %q{1.3.5}
|
20
20
|
s.signing_key = %q{/Users/ryan/.gemkeys/gem-private_key.pem}
|
21
|
-
s.summary = %q{Simple UUID generation.}
|
21
|
+
s.summary = %q{Simple, scalable UUID generation.}
|
22
22
|
s.test_files = ["test/test_uuid.rb"]
|
23
23
|
|
24
24
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_uuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Ryan King
|
7
|
+
- Ryan King, Evan Weaver
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
@@ -30,11 +30,11 @@ cert_chain:
|
|
30
30
|
zyKMYVRO0z/58g==
|
31
31
|
-----END CERTIFICATE-----
|
32
32
|
|
33
|
-
date: 2010-
|
33
|
+
date: 2010-03-23 00:00:00 -07:00
|
34
34
|
default_executable:
|
35
35
|
dependencies: []
|
36
36
|
|
37
|
-
description: Simple UUID generation.
|
37
|
+
description: Simple, scalable UUID generation.
|
38
38
|
email: ryan@twitter.com
|
39
39
|
executables: []
|
40
40
|
|
@@ -43,19 +43,19 @@ extensions: []
|
|
43
43
|
extra_rdoc_files:
|
44
44
|
- CHANGELOG
|
45
45
|
- LICENSE
|
46
|
-
- README
|
46
|
+
- README.rdoc
|
47
47
|
- lib/simple_uuid.rb
|
48
48
|
files:
|
49
49
|
- CHANGELOG
|
50
50
|
- LICENSE
|
51
|
-
-
|
51
|
+
- Manifest
|
52
|
+
- README.rdoc
|
52
53
|
- Rakefile
|
53
54
|
- lib/simple_uuid.rb
|
54
|
-
- test/test_uuid.rb
|
55
|
-
- Manifest
|
56
55
|
- simple_uuid.gemspec
|
56
|
+
- test/test_uuid.rb
|
57
57
|
has_rdoc: true
|
58
|
-
homepage:
|
58
|
+
homepage: http://blog.evanweaver.com/files/doc/fauna/simple_uuid/
|
59
59
|
licenses: []
|
60
60
|
|
61
61
|
post_install_message:
|
@@ -65,7 +65,7 @@ rdoc_options:
|
|
65
65
|
- --title
|
66
66
|
- Simple_uuid
|
67
67
|
- --main
|
68
|
-
- README
|
68
|
+
- README.rdoc
|
69
69
|
require_paths:
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -78,14 +78,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: "
|
81
|
+
version: "0.8"
|
82
82
|
version:
|
83
83
|
requirements: []
|
84
84
|
|
85
|
-
rubyforge_project:
|
85
|
+
rubyforge_project: fauna
|
86
86
|
rubygems_version: 1.3.5
|
87
87
|
signing_key:
|
88
88
|
specification_version: 3
|
89
|
-
summary: Simple UUID generation.
|
89
|
+
summary: Simple, scalable UUID generation.
|
90
90
|
test_files:
|
91
91
|
- test/test_uuid.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/README
DELETED
File without changes
|