serverengine 2.0.4-x64-mingw32 → 2.0.5-x64-mingw32

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: 22b6690fb5434ebd7f48f33c5988da1a17f731ca
4
- data.tar.gz: bcf4c53b9d5a7c2d5ed0e9831562eec965095da0
3
+ metadata.gz: af50292c46f94c4f14230ba94e70f828f04a8e8f
4
+ data.tar.gz: 8bcfd9493b672567df33d150b79da68759bb9909
5
5
  SHA512:
6
- metadata.gz: 6abeaeaf95376cb9ef0f67076992e7edac4c59c9ce407181c44b0ef59f740a5a0e55be200b52523b40958d8f8875fc450565517cda6fbcd4086cedd1c1418cdf
7
- data.tar.gz: 1bea1c27f3de705707c3c4da97735ef3364e2a3fa4d49bf68c0cc25e467634be25c3012e6eb7126426b169e2b10c9949b1dabf84887c37d978cc955934bae43f
6
+ metadata.gz: 328b509b1417b3d2e9d66b2c5511d227cb8753955c8c11e4caf32750f0f2673afd5a2d91e43167341a6078351b13f24f897ae697df073e66c8c2bc69ef606b87
7
+ data.tar.gz: dffd9c7592a7f7fcb891b172c487ccce7cb94a29cb5b4f94f3ada0a16dfc55973b524c91837c8af9b8e630b39319ab9e2dbb35dd2bff979e06ae8c2e8aca287c
data/.travis.yml CHANGED
@@ -2,8 +2,9 @@ language: ruby
2
2
 
3
3
  rvm:
4
4
  - 2.1.10
5
- - 2.2.4
6
- - 2.3.0
5
+ - 2.2.6
6
+ - 2.3.3
7
+ - 2.4.0
7
8
  - ruby-head
8
9
 
9
10
  branches:
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
- '/tmp/SERVERENGINE_SOCKETMANAGER_' + Time.now.to_s.gsub(' ', '') + '_' + Process.pid.to_s
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
 
@@ -1,3 +1,3 @@
1
1
  module ServerEngine
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
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
- gem.add_development_dependency "rake", [">= 0.9.2"]
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']
@@ -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
4
+ version: 2.0.5
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-24 00:00:00.000000000 Z
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.9.2
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.9.2
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.5.1
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