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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b34a6d386b24bebe7498bcbf1280d6cf330343b62a24be2c45da592826b819be
4
- data.tar.gz: 2f6567e8cf954d59b95b4cbfd67787ff2304bcf665e9d3d4fcb84bb2f66f961b
3
+ metadata.gz: 5c943b1ae9a16c3e296758b3428647ece7c40715d12dc202b5cb67236726733b
4
+ data.tar.gz: 1f15abe4bf28470dab4e5bc43f87d1ff98753bc64f0a2ea14ed683af06ebee5d
5
5
  SHA512:
6
- metadata.gz: 9704cabe29de68b54055c44451ebe8ef84ae1aab7eb8968a4737be31176d4a53faa2b53270ae617377544db7305966212d0903a06766bd59e8d2ad2a45d98f21
7
- data.tar.gz: ffa07abb94d4dd6692c32694f0b17b8e8e82f3db0e43550b027881a73a3a1067716912ad13acb27a85413a7bbb6ce064ec0680335dec2b8e18f97472fbf49b97
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
- return if target_id.nil?
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|
@@ -1,4 +1,4 @@
1
1
  # Version of WatchDoge
2
2
  module WatchDoge
3
- VERSION = '0.1.17'
3
+ VERSION = '0.1.18'
4
4
  end
data/watchdoge.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'watchdoge'
3
- s.version = '0.1.17'
3
+ s.version = '0.1.18'
4
4
  s.date = '2019-07-22'
5
5
  s.summary = "dogi"
6
6
  s.description = "WatchDoge is Ruby on Rails friendly frontend regression test tool"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchdoge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shen Lee