puma-status 1.6 → 1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/helpers.rb +10 -3
- data/lib/puma-status.rb +2 -2
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e94270956c9834ee04a6071b5ae67ed3c807d2bb270bebef5d10fc04816a91ec
|
4
|
+
data.tar.gz: ee5a7d57dd75ee55f324fdae1684879f848102e5a2307fa58ed28e60849dfa67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aa4fa13cde503bcf4f64120470aef153352b5d42f7e17d8dcb0f0dd77418579c7226fa212499ffae37fbeec109fc6ae8f89458b6bfb255e9e535018c5f59bf2
|
7
|
+
data.tar.gz: 1a4b74b42d0d607b58e6f62d579d40ee7c70c796da651ce19a4df93f7a1d284640841f2615e7f17478446f21ea31f4e6e8d39c4f70fcba8c85b5134947a9ab6c
|
data/lib/helpers.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'colorize'
|
2
|
-
|
3
1
|
def debug(str)
|
4
2
|
puts str if ENV.key?('DEBUG')
|
5
3
|
end
|
@@ -14,7 +12,16 @@ end
|
|
14
12
|
|
15
13
|
def colorize(str, color_name)
|
16
14
|
return str if ENV.key?('NO_COLOR')
|
17
|
-
|
15
|
+
case color_name
|
16
|
+
when :red
|
17
|
+
"\e[0;31;49m#{str}\e[0m"
|
18
|
+
when :yellow
|
19
|
+
"\e[0;33;49m#{str}\e[0m"
|
20
|
+
when :green
|
21
|
+
"\e[0;32;49m#{str}\e[0m"
|
22
|
+
else
|
23
|
+
str
|
24
|
+
end
|
18
25
|
end
|
19
26
|
|
20
27
|
def color(critical, warn, value, str = nil)
|
data/lib/puma-status.rb
CHANGED
@@ -19,9 +19,9 @@ def run
|
|
19
19
|
format_stats(get_stats(state_file_path))
|
20
20
|
rescue Errno::ENOENT => e
|
21
21
|
if e.message =~ /#{state_file_path}/
|
22
|
-
errors << "#{yellow(state_file_path)} doesn't
|
22
|
+
errors << "#{yellow(state_file_path)} doesn't exist"
|
23
23
|
elsif e.message =~ /connect\(2\) for [^\/]/
|
24
|
-
errors << "#{yellow("Relative Unix socket")}: the Unix socket of the control app has a relative path. Please, ensure you are running from the same folder
|
24
|
+
errors << "#{yellow("Relative Unix socket")}: the Unix socket of the control app has a relative path. Please, ensure you are running from the same folder as puma."
|
25
25
|
else
|
26
26
|
errors << "#{red(state_file_path)} an unhandled error occured: #{e.inspect}"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: puma-status
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.7'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoann Lecuyer
|
@@ -10,20 +10,6 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: colorize
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0.8'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0.8'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: net_http_unix
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
119
105
|
requirements:
|
120
106
|
- - ">="
|
121
107
|
- !ruby/object:Gem::Version
|
122
|
-
version: 2.
|
108
|
+
version: 2.6.0
|
123
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
110
|
requirements:
|
125
111
|
- - ">="
|
126
112
|
- !ruby/object:Gem::Version
|
127
113
|
version: '0'
|
128
114
|
requirements: []
|
129
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.3.26
|
130
116
|
signing_key:
|
131
117
|
specification_version: 4
|
132
118
|
summary: Command-line tool for puma to display information about running request/process
|