google-pubsub-enhancer 0.5.2 → 0.5.3

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: 6aec8adb074f1d36b33d3a1efeaa5c333ad6ec05
4
- data.tar.gz: d32443aadf30247922961f3061fa892e0b42d7e9
3
+ metadata.gz: f79852f972a0a15dfc6c9beef70669a2bbd85ae2
4
+ data.tar.gz: 830de88a7bf67d58426b12fecfc3ee8b4b56bed1
5
5
  SHA512:
6
- metadata.gz: 2b242ed641ac43f9250c0b429834989b4b6f7b8d1d31fd1222a826be4d957d8855edeb683485ca4423509f2ed2d7dcf9c23bb0969ee0c8b59036e433b9356bb1
7
- data.tar.gz: 160b73f45057fe2d05873ef589d0a8b593d42929d4274e6ee3f40f672848c038540efabfc59fc9e04611775e84655a47becfa1a1b4eba32adfea6ccc34759a10
6
+ metadata.gz: 9f723efe6450d522f65d73401c3345f9708caf5f664987afbb8253a1b08933bf3448bbcaedb41e690a03732b3ac8953f208bec18cb2eb9f77f31635bec7dcaf0
7
+ data.tar.gz: 8f1573ce733a9a21aaf21de9c893b9fb877511cc304254a2276e129147de1b16f59235638f28088b68b8f9184f1cfd993911b8817f39d910153a9c871446a993
@@ -5,12 +5,13 @@ module GooglePubsubEnhancer::Spec
5
5
  let(:pubsub) {double "pubsub"}
6
6
  let(:publisher) { double "publisher"}
7
7
  let(:subscription) { double 'subscription'}
8
+ let(:google_messages) {messages.map { |m| Google::Cloud::Pubsub::Message.new(m.to_s)}}
8
9
  before do
9
10
  ENV['PUBSUB_KEYFILE_JSON'] = JSON.dump(project_id: 'cica')
10
11
  allow(Google::Cloud::Pubsub).to receive(:new).and_return(pubsub)
11
12
  allow(pubsub).to receive(:publish).and_yield(publisher)
12
13
  allow(pubsub).to receive(:subscription).and_return subscription
13
- allow(subscription).to receive(:pull).and_return(messages.map { |m| Google::Cloud::Pubsub::Message.new(m.to_s)},nil)
14
+ allow(subscription).to receive(:pull).and_return(google_messages, nil)
14
15
  allow(publisher).to receive(:publish)
15
16
  allow(subscription).to receive(:acknowledge)
16
17
  end
@@ -1,3 +1,3 @@
1
1
  class GooglePubsubEnhancer
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-pubsub-enhancer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bejczib
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2017-03-13 00:00:00.000000000 Z
12
+ date: 2017-03-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler