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 +4 -4
- data/lib/google_pubsub_enhancer/spec.rb +2 -1
- 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: f79852f972a0a15dfc6c9beef70669a2bbd85ae2
|
4
|
+
data.tar.gz: 830de88a7bf67d58426b12fecfc3ee8b4b56bed1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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
|
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.
|
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-
|
12
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|