uuid 2.3.8 → 2.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG +0 -4
  3. data/bin/uuid +51 -12
  4. data/uuid.gemspec +3 -2
  5. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 66447201f7b459c9f769e6e48d1b06aec3dd9858
4
- data.tar.gz: 49530a8bc8f767893b6be29f6ef2c44d9781ec7d
2
+ SHA256:
3
+ metadata.gz: 6ac6d600a45b5dcb7683b3a906f4f9063a8c45b0139b9ecaad32b27c8cc44fd1
4
+ data.tar.gz: 1459c76765751c84a795472f12aae7c9ca6532405b317154c79c9293c4a60657
5
5
  SHA512:
6
- metadata.gz: a0aae42baae05b558ca36c2eae6b0829d9d933e19857f7f2fc662e6602b6273046fe918dac13b81676608303813a52a8c5de3e6e2d64bbfcfefbf41a2145f804
7
- data.tar.gz: 817b19224fbe3ca25467b7fc350578707a9f69221876c15905f942b7aae23602a5a550aa538002be1034f0566758bb55e7be648d6f0ca9bf7dc8b72f52c9c415
6
+ metadata.gz: a0c0e31433d777a298ac54bb0bd8b4838d4bcb4c474bbbb86d7c9510a6fe9b305fb3cbc1595e986102a5a88d0c49d6abdc6bb874afdc027c2f44c65b786c95c5
7
+ data.tar.gz: 3012167ca9eb384d1279ef1007d22b9b76ef806670377f4875e372257a258cfa6ed7ca90964d47f95203827aab82e8c9a7c65e29be6b79b364d54c384902f024
data/CHANGELOG CHANGED
@@ -1,7 +1,3 @@
1
- 2.3.8 (2015-06-02)
2
-
3
- Fixed uuid binstub (Jonne Haß).
4
-
5
1
  2.3.7 (2013-02-18)
6
2
 
7
3
  Use Dir.tmpdir instead of hardcoded /var/tmp path (Justin Langhorst).
data/bin/uuid CHANGED
@@ -1,16 +1,55 @@
1
1
  #!/usr/bin/env ruby
2
- #
3
- # This file was generated by Bundler.
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
- require 'pathname'
10
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
11
- Pathname.new(__FILE__).realpath)
5
+ address = nil
6
+ count = 1
7
+ format = :default
8
+ server = false
12
9
 
13
- require 'rubygems'
14
- require 'bundler/setup'
10
+ opts = OptionParser.new("", 24, ' ') do |opts|
11
+ opts.banner = "Usage: #{File.basename($0)} [options]"
15
12
 
16
- load Gem.bin_path('uuid', 'uuid')
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'uuid'
3
- s.version = '2.3.8'
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.8
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: 2015-06-03 00:00:00.000000000 Z
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.4.5
72
+ rubygems_version: 2.7.3
72
73
  signing_key:
73
74
  specification_version: 4
74
75
  summary: UUID generator