rack-server_status 0.0.2 → 0.0.3

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: caa82f8072806ea781d249afc13d797d1c190cf5
4
- data.tar.gz: 4325c47c0a318d934638bad864f87522a8b359b7
3
+ metadata.gz: 554f891d0e1c84390b17194e10b8b4e01ff44aa3
4
+ data.tar.gz: 3ae424f2f2c13263efffffd814580962f3c21fc6
5
5
  SHA512:
6
- metadata.gz: 00ec1c5c1da7d646bc564a738de8e8221b5e9eb273d561c14913fb86d764509975394374672ce4b5883316bc82476035d655316c9652a940764b173e167f7aa5
7
- data.tar.gz: 536a54465b8b6f09cfca95f138f2ddf7e7571662a23285896717da3e2d9957b4263aa187cc6ce31a5cd572ebe43bfa3ff221c97e4ae326641d9c505f39b91b8d
6
+ metadata.gz: f15b30d6879bc0fb12607309ce8f622cc0bfd2cea8e1bf3190f47eeabcf05e8fc33117184f44e55805d5083db912484162f60ab8c5121a5ae3ae809ade208d5e
7
+ data.tar.gz: 5ba77936259052892a0febf154e442b0f59e362223c60e0d5813fa8c40087864f548fc2850517846e41a3182fa192bdc824060b646e3cdf5634ef185c5e7b43b
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ tmp
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
  gem 'unicorn'
3
- gem 'worker_scoreboard'
3
+ #gem 'worker_scoreboard', git: 'https://github.com/SpringMT/worker_scoreboard.git'
4
+ gem 'worker_scoreboard', path: '/Users/haruyama.makoto/worker_scoreboard'
4
5
  gem 'parallel'
@@ -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!
@@ -5,7 +5,7 @@ use Rack::ServerStatus, scoreboard_path: './tmp'
5
5
 
6
6
  class HelloWorldApp
7
7
  def call(env)
8
- sleep 10
8
+ #sleep 10
9
9
  [ 200, { 'Content-Type' => 'text/plain' }, ['Hello World!'] ]
10
10
  end
11
11
  end
@@ -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 =~/mswin(?!ce)|mingw|cygwin|bccwin/
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.chmop.split(/\s+/, 2)
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
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class ServerStatus
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
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.2
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-20 00:00:00.000000000 Z
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
Binary file
Binary file
Binary file
Binary file