rack-server_status 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/examples/Gemfile +2 -1
- data/examples/Gemfile.lock +6 -2
- data/examples/config.ru +1 -1
- data/lib/rack/server_status.rb +2 -2
- data/lib/rack/server_status/version.rb +1 -1
- metadata +2 -10
- data/examples/tmp/status_42641 +0 -0
- data/examples/tmp/status_42642 +0 -0
- data/examples/tmp/status_42643 +0 -0
- data/examples/tmp/status_42644 +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 554f891d0e1c84390b17194e10b8b4e01ff44aa3
|
|
4
|
+
data.tar.gz: 3ae424f2f2c13263efffffd814580962f3c21fc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f15b30d6879bc0fb12607309ce8f622cc0bfd2cea8e1bf3190f47eeabcf05e8fc33117184f44e55805d5083db912484162f60ab8c5121a5ae3ae809ade208d5e
|
|
7
|
+
data.tar.gz: 5ba77936259052892a0febf154e442b0f59e362223c60e0d5813fa8c40087864f548fc2850517846e41a3182fa192bdc824060b646e3cdf5634ef185c5e7b43b
|
data/.gitignore
CHANGED
data/examples/Gemfile
CHANGED
data/examples/Gemfile.lock
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: /Users/haruyama.makoto/worker_scoreboard
|
|
3
|
+
specs:
|
|
4
|
+
worker_scoreboard (0.0.2)
|
|
5
|
+
|
|
1
6
|
GEM
|
|
2
7
|
remote: https://rubygems.org/
|
|
3
8
|
specs:
|
|
@@ -9,7 +14,6 @@ GEM
|
|
|
9
14
|
kgio (~> 2.6)
|
|
10
15
|
rack
|
|
11
16
|
raindrops (~> 0.7)
|
|
12
|
-
worker_scoreboard (0.0.2)
|
|
13
17
|
|
|
14
18
|
PLATFORMS
|
|
15
19
|
ruby
|
|
@@ -17,4 +21,4 @@ PLATFORMS
|
|
|
17
21
|
DEPENDENCIES
|
|
18
22
|
parallel
|
|
19
23
|
unicorn
|
|
20
|
-
worker_scoreboard
|
|
24
|
+
worker_scoreboard!
|
data/examples/config.ru
CHANGED
data/lib/rack/server_status.rb
CHANGED
|
@@ -79,12 +79,12 @@ module Rack
|
|
|
79
79
|
busy = 0
|
|
80
80
|
if @skip_ps_command
|
|
81
81
|
all_workers = stats.keys
|
|
82
|
-
elsif RUBY_PLATFORM
|
|
82
|
+
elsif RUBY_PLATFORM !~ /mswin(?!ce)|mingw|cygwin|bccwin/
|
|
83
83
|
ps = `LC_ALL=C command ps -e -o ppid,pid`
|
|
84
84
|
ps.each_line do |line|
|
|
85
85
|
line.lstrip!
|
|
86
86
|
next if line =~ /^\D/
|
|
87
|
-
ppid, pid = line.
|
|
87
|
+
ppid, pid = line.chomp.split(/\s+/, 2)
|
|
88
88
|
all_workers << pid.to_i if ppid.to_i == parent_pid
|
|
89
89
|
end
|
|
90
90
|
else
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rack-server_status
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- SpringMT
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: worker_scoreboard
|
|
@@ -85,10 +85,6 @@ files:
|
|
|
85
85
|
- examples/Gemfile.lock
|
|
86
86
|
- examples/config.ru
|
|
87
87
|
- examples/paralell_test.rb
|
|
88
|
-
- examples/tmp/status_42641
|
|
89
|
-
- examples/tmp/status_42642
|
|
90
|
-
- examples/tmp/status_42643
|
|
91
|
-
- examples/tmp/status_42644
|
|
92
88
|
- examples/unicorn.rb
|
|
93
89
|
- lib/rack/server_status.rb
|
|
94
90
|
- lib/rack/server_status/version.rb
|
|
@@ -124,10 +120,6 @@ test_files:
|
|
|
124
120
|
- examples/Gemfile.lock
|
|
125
121
|
- examples/config.ru
|
|
126
122
|
- examples/paralell_test.rb
|
|
127
|
-
- examples/tmp/status_42641
|
|
128
|
-
- examples/tmp/status_42642
|
|
129
|
-
- examples/tmp/status_42643
|
|
130
|
-
- examples/tmp/status_42644
|
|
131
123
|
- examples/unicorn.rb
|
|
132
124
|
- spec/server_status_spec.rb
|
|
133
125
|
- spec/spec_helper.rb
|
data/examples/tmp/status_42641
DELETED
|
Binary file
|
data/examples/tmp/status_42642
DELETED
|
Binary file
|
data/examples/tmp/status_42643
DELETED
|
Binary file
|
data/examples/tmp/status_42644
DELETED
|
Binary file
|