multi_process 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: 9f71381653129f6aa7bf31441102ce950a28ce3d39da4bf7b4542ac1401b1ee3
4
- data.tar.gz: 98146cfa10d5530f03b11d1d80679417d6820dd2764ec9161751f77bdad309f6
3
+ metadata.gz: 72585d4ab91c2cabcab27ece73e7759bc9ae7d9825564736583b551467dc480d
4
+ data.tar.gz: 27d863d2702517f16a7cb35de0f9e6823dbe32212b11465ba509fb91a3565bd9
5
5
  SHA512:
6
- metadata.gz: 331cf8cb96d54d265fecaa6750b9c71d9e11231385d6d778ffde6a664d636478b855e525cbe2d3bd474127308ab615b2f90e8599f80159af01041dae3117506a
7
- data.tar.gz: dde0d89ada0985a2188edb4ec9a169d595d609580370c9e1f1f2b818897c7ed9b2c88420b5608f002b281c9c93c45c8d800cba4adcbaeaac652d8cbd01f16938
6
+ metadata.gz: 8c1d02ed6a2ea5d5c08a7776ba4e9ad777f4d15454fc91d711e98cf52c430ef2faf51b2f3a83c40fe0ee3b688368c32e4e69102d65414dfcd12814d17b9b8f5e
7
+ data.tar.gz: ed7f3357d64c532b39271affe9156aaf58bc20ed59b73778d8bbdbfd73ac503aa44babd0b80c08e7d6f03a1cc1f33b848d57b1b237cdd408effbff7fe1f5d259
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## 1.1.0 - 2020-11-19
10
+ ### Feature
11
+ - Add support for IPv6 by using the hostname instead of the loopback IPv4 address (#2)
12
+
9
13
  ## 1.0.0 - 2019-05-13
10
14
  ### Fixed
11
15
  - Possible concurrent hash modification while iterating (#1)
@@ -44,7 +44,7 @@ class MultiProcess::Process
44
44
  def available?
45
45
  fail ArgumentError.new "Cannot check availability for port #{port}." if port == 0
46
46
 
47
- TCPSocket.new('127.0.0.1', port).close
47
+ TCPSocket.new('localhost', port).close
48
48
  true
49
49
  rescue Errno::ECONNREFUSED, Errno::EHOSTUNREACH
50
50
  false
@@ -67,7 +67,7 @@ class MultiProcess::Process
67
67
 
68
68
  def free_port
69
69
  socket = Socket.new(:INET, :STREAM, 0)
70
- socket.bind(Addrinfo.tcp('127.0.0.1', 0))
70
+ socket.bind(Addrinfo.tcp('localhost', 0))
71
71
  socket.local_address.ip_port
72
72
  ensure
73
73
  socket.close if socket
@@ -1,7 +1,7 @@
1
1
  module MultiProcess
2
2
  module VERSION
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
  STAGE = nil
7
7
  STRING = [MAJOR, MINOR, PATCH, STAGE].reject(&:nil?).join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_process
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-13 00:00:00.000000000 Z
11
+ date: 2020-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubygems_version: 3.0.3
118
+ rubygems_version: 3.0.8
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Handle multiple child processes.