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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/multi_process/process/rails.rb +2 -2
- data/lib/multi_process/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72585d4ab91c2cabcab27ece73e7759bc9ae7d9825564736583b551467dc480d
|
4
|
+
data.tar.gz: 27d863d2702517f16a7cb35de0f9e6823dbe32212b11465ba509fb91a3565bd9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c1d02ed6a2ea5d5c08a7776ba4e9ad777f4d15454fc91d711e98cf52c430ef2faf51b2f3a83c40fe0ee3b688368c32e4e69102d65414dfcd12814d17b9b8f5e
|
7
|
+
data.tar.gz: ed7f3357d64c532b39271affe9156aaf58bc20ed59b73778d8bbdbfd73ac503aa44babd0b80c08e7d6f03a1cc1f33b848d57b1b237cdd408effbff7fe1f5d259
|
data/CHANGELOG.md
CHANGED
@@ -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('
|
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('
|
70
|
+
socket.bind(Addrinfo.tcp('localhost', 0))
|
71
71
|
socket.local_address.ip_port
|
72
72
|
ensure
|
73
73
|
socket.close if socket
|
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.
|
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:
|
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.
|
118
|
+
rubygems_version: 3.0.8
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Handle multiple child processes.
|