watchdoge 0.1.16 → 0.1.17
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/lib/watchdoge/notification/base.rb +4 -0
- data/lib/watchdoge/notification/gitlab_repo.rb +12 -8
- data/lib/watchdoge/notification.rb +8 -3
- 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: b34a6d386b24bebe7498bcbf1280d6cf330343b62a24be2c45da592826b819be
|
|
4
|
+
data.tar.gz: 2f6567e8cf954d59b95b4cbfd67787ff2304bcf665e9d3d4fcb84bb2f66f961b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9704cabe29de68b54055c44451ebe8ef84ae1aab7eb8968a4737be31176d4a53faa2b53270ae617377544db7305966212d0903a06766bd59e8d2ad2a45d98f21
|
|
7
|
+
data.tar.gz: ffa07abb94d4dd6692c32694f0b17b8e8e82f3db0e43550b027881a73a3a1067716912ad13acb27a85413a7bbb6ce064ec0680335dec2b8e18f97472fbf49b97
|
|
@@ -129,14 +129,18 @@ module WatchDoge
|
|
|
129
129
|
|
|
130
130
|
# markdown_table do |context|
|
|
131
131
|
def markdown_table
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
<
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
132
|
+
<<~MARKDOWN
|
|
133
|
+
#### Detail: #{ENV['CI_PIPELINE_URL']}
|
|
134
|
+
|
|
135
|
+
<table>
|
|
136
|
+
<tr>
|
|
137
|
+
<th>before</th>
|
|
138
|
+
<th>after</th>
|
|
139
|
+
<th>diff</th>
|
|
140
|
+
</tr>
|
|
141
|
+
#{yield("")}
|
|
142
|
+
</table>
|
|
143
|
+
MARKDOWN
|
|
140
144
|
end
|
|
141
145
|
|
|
142
146
|
def markdown_table_row before, after, diff
|
|
@@ -34,18 +34,23 @@ module WatchDoge
|
|
|
34
34
|
class << self
|
|
35
35
|
def push message
|
|
36
36
|
sources do |klass|
|
|
37
|
-
puts "new msg push to #{klass}"
|
|
37
|
+
puts "[notification] new msg push to #{klass}"
|
|
38
38
|
klass.push message
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def flush
|
|
43
|
+
raise_err = false
|
|
44
|
+
|
|
43
45
|
sources do |klass|
|
|
44
|
-
puts 'flush
|
|
46
|
+
puts '[notification] flush'
|
|
47
|
+
raise_err = true if klass.msg_size > 0
|
|
45
48
|
klass.flush
|
|
46
49
|
end
|
|
47
50
|
|
|
48
|
-
|
|
51
|
+
if raise_err
|
|
52
|
+
raise WatchDoge::RegressionError, 'Has detected style changed. Regression failed'
|
|
53
|
+
end
|
|
49
54
|
end
|
|
50
55
|
|
|
51
56
|
private
|
data/lib/watchdoge/version.rb
CHANGED
data/watchdoge.gemspec
CHANGED