google-pubsub-enhancer 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_pubsub_enhancer.rb +1 -0
- data/lib/google_pubsub_enhancer/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: 7547f7996df2c7effe62196325f9c3ce662930d4
|
4
|
+
data.tar.gz: 2ce107a0c1c214629086fe1c83da8bb0889de0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11502a8fdf9b17ab597cd167ec4489e6a7cd317c125542311e64ff3157e56c0030e412a3b995b065f8e05b55a8ba576582f8e58e19e91563d8721b58054b1173
|
7
|
+
data.tar.gz: 733606dbaac9f47caa4ae611afa8fcc6506e9619a45203a7de91c0e80988c49d77a18b2a81326aa96c2d9143155cf72976baad1b0b0c778d8bd13c3c9c9f677f
|
@@ -40,6 +40,7 @@ class GooglePubsubEnhancer
|
|
40
40
|
private
|
41
41
|
|
42
42
|
def work(subscription, opts)
|
43
|
+
return if opts[:shutdown].call
|
43
44
|
while received_messages = subscription.pull(:max => GooglePubsubEnhancer::Constants::MAX_PULL_SIZE)
|
44
45
|
break if opts[:shutdown].call || received_messages == nil
|
45
46
|
next if received_messages.empty?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-pubsub-enhancer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bejczib
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|