aggkit 0.4.4.9269 → 0.4.4.9274
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/.gitlab-ci.yml +5 -3
- data/lib/aggkit/watcher.rb +9 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b452b22a1b96fb010321222941715695b1151bb2
|
4
|
+
data.tar.gz: 56665c17799605329e07c14f593678e1b9d9893b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f4b07ebedcdcc0c2a33f12d603cbf9eddcae18266cea2555330eaf408832a67a297ebfb7f3ac918b6cdaf3bb3b102fccc28d327f758717c94dc73702777ad1
|
7
|
+
data.tar.gz: f1a6256a25c3d8a4b7fb9e96584b3e58595cea1b1d62b1997216c74431283e2f926495674b2db722f1412e70c69a8a538e383cf6e4b6484218bcdbba22b1a2a0
|
data/.gitlab-ci.yml
CHANGED
@@ -72,7 +72,7 @@ pronto:
|
|
72
72
|
- gem install pronto pronto-rubocop pronto-flay
|
73
73
|
- PRONTO_GITLAB_SLUG=${CI_PROJECT_ID} PRONTO_GITLAB_API_PRIVATE_TOKEN=${BOT_TOKEN} pronto run -f gitlab -c origin/master
|
74
74
|
|
75
|
-
code_quality:
|
75
|
+
.code_quality:
|
76
76
|
stage: tests
|
77
77
|
image: docker:stable
|
78
78
|
variables:
|
@@ -90,8 +90,10 @@ code_quality:
|
|
90
90
|
--volume /var/run/docker.sock:/var/run/docker.sock
|
91
91
|
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
|
92
92
|
artifacts:
|
93
|
-
reports:
|
94
|
-
|
93
|
+
#reports:
|
94
|
+
# codequality: gl-code-quality-report.json
|
95
|
+
paths:
|
96
|
+
- gl-code-quality-report.json
|
95
97
|
|
96
98
|
pushgem:
|
97
99
|
image: rnds/ruby:2.3.0-test
|
data/lib/aggkit/watcher.rb
CHANGED
@@ -9,7 +9,7 @@ module Aggkit
|
|
9
9
|
|
10
10
|
attr_accessor :iolock
|
11
11
|
|
12
|
-
|
12
|
+
EXIT_SIGNALS = %w[EXIT QUIT].freeze
|
13
13
|
TERM_SIGNALS = %w[INT TERM].freeze
|
14
14
|
|
15
15
|
class Pipe
|
@@ -23,7 +23,7 @@ module Aggkit
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def gets
|
26
|
-
|
26
|
+
@read.gets.strip.to_sym
|
27
27
|
end
|
28
28
|
|
29
29
|
end
|
@@ -45,7 +45,7 @@ module Aggkit
|
|
45
45
|
@procs.last
|
46
46
|
end
|
47
47
|
|
48
|
-
def log
|
48
|
+
def log msg
|
49
49
|
@iolock.synchronize{ STDOUT.puts("[watcher][#{Time.now.strftime('%H:%M:%S.%L')}]: #{msg}") }
|
50
50
|
end
|
51
51
|
|
@@ -62,13 +62,18 @@ module Aggkit
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def quit!
|
65
|
+
|
66
|
+
|
65
67
|
@code = [@code || 0, 1].max if @crashed
|
66
68
|
exit!(@code || 0)
|
69
|
+
|
70
|
+
|
67
71
|
end
|
68
72
|
|
69
73
|
def terminate_all
|
74
|
+
|
75
|
+
|
70
76
|
raise 'Double termination occured!' if @terminating
|
71
|
-
|
72
77
|
@terminating = true
|
73
78
|
running = @procs.reject(&:handled?)
|
74
79
|
|