torid 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/lib/torid.rb +1 -1
- data/lib/torid/generator.rb +5 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0da570c2c29c82c9d84eab0cbe7ac54d06b93ab
|
4
|
+
data.tar.gz: 9591855e86a26a2bb4b4fccabb2eb6634458d24a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 391dc11121db582d33006813d122399b0f87af25d04303f41b69acb6c96e935dbe0519a45fc43738ff1e1cca96e98ea7b10e69b03e80aecd14962f831a56101c
|
7
|
+
data.tar.gz: b873a05612e445626b58a81c474ae3d1c8c6f5ab051e6ddac5524be81d4dc8dfed8c1dc4b0e790a5b32dbed83c4598cebd0766cfaf04bab3e24376ab8bdc889c
|
data/Rakefile
CHANGED
@@ -9,7 +9,7 @@ This.homepage = "http://github.com/copiousfreetime/#{ This.name }"
|
|
9
9
|
This.ruby_gemspec do |spec|
|
10
10
|
spec.add_dependency( 'fnv', '~> 0.2' )
|
11
11
|
|
12
|
-
spec.add_development_dependency( 'rake' , '~>
|
12
|
+
spec.add_development_dependency( 'rake' , '~> 11.3')
|
13
13
|
spec.add_development_dependency( 'minitest' , '~> 5.0' )
|
14
14
|
spec.add_development_dependency( 'rdoc' , '~> 4.0' )
|
15
15
|
spec.add_development_dependency( 'simplecov', '~> 0.9' )
|
data/lib/torid.rb
CHANGED
data/lib/torid/generator.rb
CHANGED
@@ -67,9 +67,13 @@ module Torid
|
|
67
67
|
# https://github.com/jamesgolick/lexical_uuid/blob/master/lib/lexical_uuid.rb#L14
|
68
68
|
# with the random bytes added by me.
|
69
69
|
#
|
70
|
+
# Settled on using just `Socket.gethostname` because on MacOS Sierra the
|
71
|
+
# hostname is not guaranteed to be round tripable through name resolution
|
72
|
+
# locally on the machine
|
73
|
+
#
|
70
74
|
# Returns a 64 bit Integer
|
71
75
|
def self.create_node_id( pid = Process.pid )
|
72
|
-
hostname = Socket.
|
76
|
+
hostname = Socket.gethostname
|
73
77
|
random = SecureRandom.hex( 16 )
|
74
78
|
FNV.new.fnv1a_64("#{hostname}-#{pid}-#{random}")
|
75
79
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Hinegardner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fnv
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '11.3'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '11.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.4
|
144
|
+
rubygems_version: 2.6.4
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: Temporally Ordered IDs. Generate universally unique identifiers (UUID) that
|