watchdoge 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchdoge/notification/gitlab_repo.rb +3 -1
- data/lib/watchdoge/version.rb +1 -1
- data/watchdoge.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c943b1ae9a16c3e296758b3428647ece7c40715d12dc202b5cb67236726733b
|
4
|
+
data.tar.gz: 1f15abe4bf28470dab4e5bc43f87d1ff98753bc64f0a2ea14ed683af06ebee5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79640706abb897c8f6455963aec14287856facc7c41d6297c4d3764605c52893e939acd7f29576930588b9494e6aa18d92bccb25a167886eb94b7e3cad03d76e
|
7
|
+
data.tar.gz: 16aa633663f6eb0e6006dd3dd8004a2d9816b1ab6590244cc6bd2c53b6e4b42e07b348843f2b20e52549b88a7627420d3163c5286dc88d199cf0863db5ded596
|
@@ -22,12 +22,14 @@ module WatchDoge
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def flush
|
25
|
+
return if @message_queue.empty?
|
26
|
+
|
25
27
|
meesages_to_flush = @message_queue
|
26
28
|
@message_queue = []
|
27
29
|
|
28
30
|
target_id = get_latest_request_iid || get_commit_id
|
29
31
|
|
30
|
-
|
32
|
+
raise RuntimeError, "Can't find any target to pushing message" if target_id.nil?
|
31
33
|
|
32
34
|
table = markdown_table do |table_context|
|
33
35
|
meesages_to_flush.each do |message|
|
data/lib/watchdoge/version.rb
CHANGED
data/watchdoge.gemspec
CHANGED