rorvswild 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: 97aed7e941905d99050aa05b33a2d318b49e1e74
4
- data.tar.gz: ed86f80358c77f008f3e72301f99c175de6988d3
3
+ metadata.gz: 3d99dccaa0be65ef42005f19618032f0ed6dd02b
4
+ data.tar.gz: 00f69ad52c795d66d6f46cf1fa2b075e42da047b
5
5
  SHA512:
6
- metadata.gz: b2fd50627532be3543aeb2b1279bcb2e513f1a459749d53e59efd08a434bf5a863167279e446e8a574bc2d608e842f4f862cd50a8f23bbdb6eedebfa3251c192
7
- data.tar.gz: c6ce663a5ba4c0e15b3da29b875a13ec607aada3d2de8855fb8ed305b6da1d0246579234405aa7e9570b1fb6f3a017f96f265eca32f6980c57929558fa45830e
6
+ metadata.gz: d16fbec1a331e049787751d4116eaee4945b1e4e69d7b59f7738353d77098987dbbef94b1c469a1eb619ba0d619d4a5ca288db94c4745685fd0d4c3a7d3b4a90
7
+ data.tar.gz: fb2ed2951ee072a73c19a4bd384259c0f1d59c6954e606f150241f9acae2b38cc987233a41cdb50ad4b7b6d084de6b740b0e9d1607ab53b924668326e7dbef65
@@ -23,7 +23,7 @@ module RorVsWild
23
23
 
24
24
  def push_to(array, data)
25
25
  mutex.synchronize do
26
- wakeup_thread if array.push(data).size >= FLUSH_TRESHOLD
26
+ wakeup_thread if array.push(data).size >= FLUSH_TRESHOLD || !thread
27
27
  end
28
28
  end
29
29
 
@@ -55,12 +55,13 @@ module RorVsWild
55
55
  end
56
56
 
57
57
  def flush
58
- RorVsWild.logger.info("flush")
58
+ RorVsWild.logger.info("RorVsWild::Queue#flush".freeze)
59
59
  data = pull_jobs and client.post("/jobs", jobs: data)
60
60
  data = pull_requests and client.post("/requests", requests: data)
61
61
  end
62
62
 
63
63
  def start_thread
64
+ RorVsWild.logger.info("RorVsWild::Queue#start_thread".freeze)
64
65
  @thread = Thread.new { flush_indefinetely }
65
66
  end
66
67
 
@@ -1,3 +1,3 @@
1
1
  module RorVsWild
2
- VERSION = "1.1.0".freeze
2
+ VERSION = "1.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rorvswild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-02 00:00:00.000000000 Z
11
+ date: 2017-11-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Performances and quality insights for rails developers.
14
14
  email: