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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c24a1692b79fc980b6a1c4b7d400ceae6fa29a2
4
- data.tar.gz: acf5bae2cf05a35b8bed3fd0284e901c8b962e05
3
+ metadata.gz: 7547f7996df2c7effe62196325f9c3ce662930d4
4
+ data.tar.gz: 2ce107a0c1c214629086fe1c83da8bb0889de0ea
5
5
  SHA512:
6
- metadata.gz: 0569fe92aecf7244ea9e5a78ab5a9987e01c651d354e38ffbd8ddfdf6222ede4cfc1b74fc32c4dd55cfb824bd5b282769e99266c54653e3c1667993e49ecd1f8
7
- data.tar.gz: aaaeda31795661b22989279bab17a0f1bde16fe96da67e66cec815398ace6f5d10d762e5559d8fc979a180ad08d79a602682c0ace974fc32306890e1195282a5
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?
@@ -1,3 +1,3 @@
1
1
  class GooglePubsubEnhancer
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler