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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ba896500ff2a3f4d59b713763c65b9176f1253d
4
- data.tar.gz: 21e3039eb342abd526bc5d1918bc50a60e645ece
3
+ metadata.gz: d0da570c2c29c82c9d84eab0cbe7ac54d06b93ab
4
+ data.tar.gz: 9591855e86a26a2bb4b4fccabb2eb6634458d24a
5
5
  SHA512:
6
- metadata.gz: 144ce568600e2fc4b87b4a934be242fff48d2f03af12d6a0a83a7c10bbc684d18e6454774297791e07df102b7d896a13efe7cbf4f9117af446eaed3514a61369
7
- data.tar.gz: 66ca30ee9f65023be20c776bdcf4a8ff6a2cd6b2bc4a9b4bdc4a7a3755fb06b2185bcda9d1b82528ddaff83fd51d46f09337f8d1eec9a5f81fc79458d5c8d12a
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' , '~> 10.1')
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' )
@@ -2,7 +2,7 @@
2
2
  # that sort lexically in time order.
3
3
  module Torid
4
4
  # Public: The Version of the Torid library as a String
5
- VERSION = "1.2.4"
5
+ VERSION = "1.2.5"
6
6
 
7
7
  # Public: return the next Torid::UUID from the default Generator
8
8
  #
@@ -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.gethostbyname( Socket.gethostname ).first
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
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: 2015-02-18 00:00:00.000000000 Z
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: '10.1'
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: '10.1'
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.6
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