uuid 2.3.4 → 2.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/MIT-LICENSE +1 -1
- data/bin/rake +16 -0
- data/bin/yard +16 -0
- data/bin/yardoc +16 -0
- data/bin/yri +16 -0
- data/lib/uuid.rb +3 -2
- data/test/test-uuid.rb +1 -0
- data/uuid.gemspec +1 -1
- metadata +10 -6
data/CHANGELOG
CHANGED
data/MIT-LICENSE
CHANGED
data/bin/rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'rake' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('rake', 'rake')
|
data/bin/yard
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'yard' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('yard', 'yard')
|
data/bin/yardoc
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'yardoc' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('yard', 'yardoc')
|
data/bin/yri
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# This file was generated by Bundler.
|
4
|
+
#
|
5
|
+
# The application 'yri' is installed as part of a gem, and
|
6
|
+
# this file is here to facilitate running it.
|
7
|
+
#
|
8
|
+
|
9
|
+
require 'pathname'
|
10
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile",
|
11
|
+
Pathname.new(__FILE__).realpath)
|
12
|
+
|
13
|
+
require 'rubygems'
|
14
|
+
require 'bundler/setup'
|
15
|
+
|
16
|
+
load Gem.bin_path('yard', 'yri')
|
data/lib/uuid.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
#
|
2
3
|
# = uuid.rb - UUID generator
|
3
4
|
#
|
@@ -26,7 +27,7 @@ require 'digest/sha1'
|
|
26
27
|
# For example:
|
27
28
|
#
|
28
29
|
# uuid = UUID.new
|
29
|
-
#
|
30
|
+
#
|
30
31
|
# 10.times do
|
31
32
|
# p uuid.generate
|
32
33
|
# end
|
@@ -232,7 +233,7 @@ class UUID
|
|
232
233
|
begin
|
233
234
|
Mac.addr.gsub(/:|-/, '').hex & 0x7FFFFFFFFFFF
|
234
235
|
rescue
|
235
|
-
0
|
236
|
+
0
|
236
237
|
end
|
237
238
|
end
|
238
239
|
|
data/test/test-uuid.rb
CHANGED
data/uuid.gemspec
CHANGED
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.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2012-01-23 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: macaddr
|
17
|
-
requirement: &
|
17
|
+
requirement: &70206291414820 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: '1.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70206291414820
|
26
26
|
description: ! 'UUID generator for producing universally unique identifiers based
|
27
27
|
on RFC 4122
|
28
28
|
|
@@ -37,7 +37,11 @@ extra_rdoc_files:
|
|
37
37
|
- README.rdoc
|
38
38
|
- MIT-LICENSE
|
39
39
|
files:
|
40
|
+
- bin/rake
|
40
41
|
- bin/uuid
|
42
|
+
- bin/yard
|
43
|
+
- bin/yardoc
|
44
|
+
- bin/yri
|
41
45
|
- test/test-uuid.rb
|
42
46
|
- lib/uuid.rb
|
43
47
|
- README.rdoc
|
@@ -64,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
64
68
|
version: '0'
|
65
69
|
segments:
|
66
70
|
- 0
|
67
|
-
hash:
|
71
|
+
hash: 4057213684264310664
|
68
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
73
|
none: false
|
70
74
|
requirements:
|
@@ -73,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
77
|
version: '0'
|
74
78
|
segments:
|
75
79
|
- 0
|
76
|
-
hash:
|
80
|
+
hash: 4057213684264310664
|
77
81
|
requirements: []
|
78
82
|
rubyforge_project:
|
79
83
|
rubygems_version: 1.8.10
|