serverengine 2.0.4-x86-mingw32 → 2.0.5-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/Changelog +5 -0
- data/lib/serverengine/socket_manager.rb +3 -1
- data/lib/serverengine/version.rb +1 -1
- data/serverengine.gemspec +2 -1
- data/spec/socket_manager_spec.rb +16 -0
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26439e07fed354d0e3905cbff551f9aa50a5d674
|
4
|
+
data.tar.gz: 35207be927ebee981432fd567ab2949c22ba3ce1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d309cd49d40c046b489f12d231955b37c3fea54b49aadd81a639b50fe27135ce9352a310e1e3bbdb8967446f3d9cde9176079a467808f68ba1aec20951b3e293
|
7
|
+
data.tar.gz: 30cea237e564f012160ee11d5de801812318db0955e48a32c355056c5b207fb666d084e8973fb9cd538744266c27790546fc3f2e0bd63a855ca1c1bb31f816f4
|
data/.travis.yml
CHANGED
data/Changelog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
2017-03-01 version 2.0.5:
|
2
|
+
|
3
|
+
* Support SERVERENGINE_SOCKETMANAGER_SOCK_DIR environment variable to change
|
4
|
+
base directory of SocketManager's socket path
|
5
|
+
|
1
6
|
2016-11-24 version 2.0.4:
|
2
7
|
|
3
8
|
* Fix bug to crash Ruby VM when SocketManager fails to bind IPv6 addresses on Windows
|
@@ -17,6 +17,7 @@
|
|
17
17
|
#
|
18
18
|
require 'socket'
|
19
19
|
require 'ipaddr'
|
20
|
+
require 'time'
|
20
21
|
|
21
22
|
module ServerEngine
|
22
23
|
module SocketManager
|
@@ -68,7 +69,8 @@ module ServerEngine
|
|
68
69
|
end
|
69
70
|
end
|
70
71
|
else
|
71
|
-
|
72
|
+
base_dir = (ENV['SERVERENGINE_SOCKETMANAGER_SOCK_DIR'] || '/tmp')
|
73
|
+
File.join(base_dir, 'SERVERENGINE_SOCKETMANAGER_' + Time.now.utc.iso8601 + '_' + Process.pid.to_s)
|
72
74
|
end
|
73
75
|
end
|
74
76
|
|
data/lib/serverengine/version.rb
CHANGED
data/serverengine.gemspec
CHANGED
@@ -21,7 +21,8 @@ Gem::Specification.new do |gem|
|
|
21
21
|
|
22
22
|
gem.add_dependency "sigdump", ["~> 0.2.2"]
|
23
23
|
|
24
|
-
|
24
|
+
# rake v12.x doesn't work with rspec 2. rspec should be updated to 3
|
25
|
+
gem.add_development_dependency "rake", ["~> 11.0"]
|
25
26
|
gem.add_development_dependency "rspec", ["~> 2.13.0"]
|
26
27
|
|
27
28
|
gem.add_development_dependency 'rake-compiler-dock', ['~> 0.5.0']
|
data/spec/socket_manager_spec.rb
CHANGED
@@ -19,6 +19,22 @@ describe ServerEngine::SocketManager do
|
|
19
19
|
File.unlink(server_path) if server_path.is_a?(String) && File.exist?(server_path)
|
20
20
|
end
|
21
21
|
|
22
|
+
if !ServerEngine.windows?
|
23
|
+
context 'Server.generate_path' do
|
24
|
+
it 'returns socket path under /tmp' do
|
25
|
+
path = SocketManager::Server.generate_path
|
26
|
+
expect(path).to include('/tmp/SERVERENGINE_SOCKETMANAGER_')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'can be changed via environment variable' do
|
30
|
+
ENV['SERVERENGINE_SOCKETMANAGER_SOCK_DIR'] = '/tmp/foo'
|
31
|
+
path = SocketManager::Server.generate_path
|
32
|
+
expect(path).to include('/tmp/foo/SERVERENGINE_SOCKETMANAGER_')
|
33
|
+
ENV.delete('SERVERENGINE_SOCKETMANAGER_SOCK_DIR')
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
22
38
|
context 'with thread' do
|
23
39
|
context 'using ipv4' do
|
24
40
|
it 'works' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverengine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sigdump
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0
|
33
|
+
version: '11.0'
|
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: 0
|
40
|
+
version: '11.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
170
|
rubyforge_project:
|
171
|
-
rubygems_version: 2.
|
171
|
+
rubygems_version: 2.6.8
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: ServerEngine - multiprocess server framework
|
@@ -183,4 +183,3 @@ test_files:
|
|
183
183
|
- spec/socket_manager_spec.rb
|
184
184
|
- spec/spec_helper.rb
|
185
185
|
- spec/supervisor_spec.rb
|
186
|
-
has_rdoc: false
|