uuid 2.3.8 → 2.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG +0 -4
- data/bin/uuid +51 -12
- data/uuid.gemspec +3 -2
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6ac6d600a45b5dcb7683b3a906f4f9063a8c45b0139b9ecaad32b27c8cc44fd1
|
4
|
+
data.tar.gz: 1459c76765751c84a795472f12aae7c9ca6532405b317154c79c9293c4a60657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0c0e31433d777a298ac54bb0bd8b4838d4bcb4c474bbbb86d7c9510a6fe9b305fb3cbc1595e986102a5a88d0c49d6abdc6bb874afdc027c2f44c65b786c95c5
|
7
|
+
data.tar.gz: 3012167ca9eb384d1279ef1007d22b9b76ef806670377f4875e372257a258cfa6ed7ca90964d47f95203827aab82e8c9a7c65e29be6b79b364d54c384902f024
|
data/CHANGELOG
CHANGED
data/bin/uuid
CHANGED
@@ -1,16 +1,55 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
|
4
|
-
#
|
5
|
-
# The application 'uuid' is installed as part of a gem, and
|
6
|
-
# this file is here to facilitate running it.
|
7
|
-
#
|
2
|
+
require "uuid"
|
3
|
+
require "optparse"
|
8
4
|
|
9
|
-
|
10
|
-
|
11
|
-
|
5
|
+
address = nil
|
6
|
+
count = 1
|
7
|
+
format = :default
|
8
|
+
server = false
|
12
9
|
|
13
|
-
|
14
|
-
|
10
|
+
opts = OptionParser.new("", 24, ' ') do |opts|
|
11
|
+
opts.banner = "Usage: #{File.basename($0)} [options]"
|
15
12
|
|
16
|
-
|
13
|
+
opts.separator "\nOptions:"
|
14
|
+
opts.on("-s", "--socket {HOST:PORT|PATH}",
|
15
|
+
"communicate on HOST:PORT or PATH (default: #{UUID::SOCKET_NAME})") do |value|
|
16
|
+
address = value
|
17
|
+
end
|
18
|
+
|
19
|
+
opts.on("-S", "--server", "run as a server") do |value|
|
20
|
+
server = value ? true : false
|
21
|
+
end
|
22
|
+
|
23
|
+
opts.on("-F", "--format {FORMAT}", "UUID format (client only)") do |value|
|
24
|
+
format = value.to_sym
|
25
|
+
end
|
26
|
+
|
27
|
+
opts.on("-C", "--count {COUNT}", "returns give number of UUIDs") do |value|
|
28
|
+
count = value.to_i
|
29
|
+
end
|
30
|
+
|
31
|
+
opts.on("-h", "--help", "Show this message") do
|
32
|
+
puts opts.to_s.gsub(/^.*DEPRECATED.*$/s, '')
|
33
|
+
exit
|
34
|
+
end
|
35
|
+
|
36
|
+
opts.on("-v", "--version", "Show version") do
|
37
|
+
puts "UUID v#{UUID::VERSION}"
|
38
|
+
exit
|
39
|
+
end
|
40
|
+
|
41
|
+
opts.parse! ARGV
|
42
|
+
end
|
43
|
+
|
44
|
+
|
45
|
+
if server
|
46
|
+
$stdout << "Starting UUID server on #{address}\n"
|
47
|
+
UUID::Server.new.listen(address || UUID::SOCKET_NAME)
|
48
|
+
else
|
49
|
+
UUID.server = address if address
|
50
|
+
$stdout << UUID.generate(format)
|
51
|
+
(count - 1).times do
|
52
|
+
$stdout.putc "\n"
|
53
|
+
$stdout << UUID.generate(format)
|
54
|
+
end
|
55
|
+
end
|
data/uuid.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'uuid'
|
3
|
-
s.version = '2.3.
|
3
|
+
s.version = '2.3.9'
|
4
4
|
s.summary = "UUID generator"
|
5
5
|
s.description = <<-EOF
|
6
6
|
UUID generator for producing universally unique identifiers based on RFC 4122
|
@@ -10,10 +10,11 @@ EOF
|
|
10
10
|
s.authors << 'Assaf Arkin' << 'Eric Hodel'
|
11
11
|
s.email = 'assaf@labnotes.org'
|
12
12
|
s.homepage = 'http://github.com/assaf/uuid'
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
15
|
s.files = Dir['{bin,test,lib,docs}/**/*'] + ['README.rdoc', 'MIT-LICENSE', 'Rakefile', 'CHANGELOG', 'uuid.gemspec']
|
15
16
|
s.executables = "uuid"
|
16
|
-
|
17
|
+
|
17
18
|
s.rdoc_options << '--main' << 'README.rdoc' << '--title' << 'UUID generator' << '--line-numbers'
|
18
19
|
'--webcvs' << 'http://github.com/assaf/uuid'
|
19
20
|
s.extra_rdoc_files = ['README.rdoc', 'MIT-LICENSE']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uuid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Assaf Arkin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-05-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: macaddr
|
@@ -45,7 +45,8 @@ files:
|
|
45
45
|
- test/test-uuid.rb
|
46
46
|
- uuid.gemspec
|
47
47
|
homepage: http://github.com/assaf/uuid
|
48
|
-
licenses:
|
48
|
+
licenses:
|
49
|
+
- MIT
|
49
50
|
metadata: {}
|
50
51
|
post_install_message:
|
51
52
|
rdoc_options:
|
@@ -68,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
68
69
|
version: '0'
|
69
70
|
requirements: []
|
70
71
|
rubyforge_project:
|
71
|
-
rubygems_version: 2.
|
72
|
+
rubygems_version: 2.7.3
|
72
73
|
signing_key:
|
73
74
|
specification_version: 4
|
74
75
|
summary: UUID generator
|