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 +4 -4
- data/lib/rorvswild/queue.rb +3 -2
- data/lib/rorvswild/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d99dccaa0be65ef42005f19618032f0ed6dd02b
|
4
|
+
data.tar.gz: 00f69ad52c795d66d6f46cf1fa2b075e42da047b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d16fbec1a331e049787751d4116eaee4945b1e4e69d7b59f7738353d77098987dbbef94b1c469a1eb619ba0d619d4a5ca288db94c4745685fd0d4c3a7d3b4a90
|
7
|
+
data.tar.gz: fb2ed2951ee072a73c19a4bd384259c0f1d59c6954e606f150241f9acae2b38cc987233a41cdb50ad4b7b6d084de6b740b0e9d1607ab53b924668326e7dbef65
|
data/lib/rorvswild/queue.rb
CHANGED
@@ -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
|
|
data/lib/rorvswild/version.rb
CHANGED
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.
|
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-
|
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:
|