rack_check 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -0
- data/lib/rack_check/server_manager.rb +9 -1
- data/lib/rack_check/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4aa32f99238054589b506204575a854191839f76
|
4
|
+
data.tar.gz: 7054ecea565a3f0d90c366c52a93b5e03cfa87a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1007233623eca042e83c1b6be51cd577b1571491b010fcf0d57c611b267bc00a249a6b226875ac863cc300e5a426d608ad7a2f70eb4f7ac4f4afd3533f838a
|
7
|
+
data.tar.gz: 762e6e53caddf58c63d641ba24c21ba141f2cb9e6e7ef3ccf88cc82f50b60203cb8daab7a1185e2ddf8117d1925d9b2510a97b85d070406f67014acc6d00c880
|
data/Gemfile
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'socket'
|
2
|
+
|
1
3
|
module RackCheck
|
2
4
|
|
3
5
|
class ServerManager
|
@@ -37,6 +39,9 @@ class ServerManager
|
|
37
39
|
|
38
40
|
def stop
|
39
41
|
@stop_var.put true
|
42
|
+
while check_port
|
43
|
+
sleep 0.1
|
44
|
+
end
|
40
45
|
end
|
41
46
|
|
42
47
|
private
|
@@ -56,7 +61,10 @@ class ServerManager
|
|
56
61
|
end
|
57
62
|
|
58
63
|
def check_port
|
59
|
-
|
64
|
+
TCPSocket.new('localhost', context.app_server_port).close
|
65
|
+
true
|
66
|
+
rescue
|
67
|
+
false
|
60
68
|
end
|
61
69
|
end
|
62
70
|
end
|
data/lib/rack_check/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack_check
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tinco Andringa
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
127
127
|
version: '0'
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
|
-
rubygems_version: 2.
|
130
|
+
rubygems_version: 2.6.10
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Tool that checks a Ruby application server for Rack compliancy
|