cloudenvoy 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +1 -1
- data/examples/rails/Gemfile.lock +3 -3
- data/examples/rails/app/subscribers/hello_subscriber.rb +1 -1
- data/lib/cloudenvoy/subscriber.rb +3 -3
- data/lib/cloudenvoy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11748609c85a5b715ad36310318e28930ea9ce05ad4716f7ef09de4295c3d2c7
|
|
4
|
+
data.tar.gz: 34251b0947169a81f39a162a437a9070ccf61311d4f13e1e1e3fb82010a6d24d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3df950d144f1b7cd98b7f69eb880fab5ab46bc3dfb19835c68b643a481208439cd8a241af7e723671f8889be40cc732f6769ce904f41b5d3bd9e364833b97af4
|
|
7
|
+
data.tar.gz: 44ed54ea2fb8171088613244bb74c1ce561398cb1a55dbf12092f974692838d8f6b2e5503366bb774f275fdce653eea4471fcdfd45f2cf008af92738f18c75ac
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v0.3.0](https://github.com/keypup-io/cloudenvoy/tree/v0.3.0) (2020-09-26)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/keypup-io/cloudenvoy/compare/v0.2.0...v0.3.0)
|
|
6
|
+
|
|
7
|
+
**Bug fix:**
|
|
8
|
+
- Subscriptions: fix creation. `v0.2.0` introduced a bug as part of support subscription options (e.g. `retain_acked`)
|
|
9
|
+
|
|
3
10
|
## [v0.2.0](https://github.com/keypup-io/cloudenvoy/tree/v0.2.0) (2020-09-22)
|
|
4
11
|
|
|
5
12
|
[Full Changelog](https://github.com/keypup-io/cloudenvoy/compare/v0.1.0...v0.2.0)
|
data/Gemfile.lock
CHANGED
data/examples/rails/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: ../..
|
|
3
3
|
specs:
|
|
4
|
-
cloudenvoy (0.
|
|
4
|
+
cloudenvoy (0.2.0)
|
|
5
5
|
activesupport
|
|
6
6
|
google-cloud-pubsub (~> 2.0)
|
|
7
7
|
jwt
|
|
@@ -95,7 +95,7 @@ GEM
|
|
|
95
95
|
gapic-common (~> 0.3)
|
|
96
96
|
google-cloud-errors (~> 1.0)
|
|
97
97
|
grpc-google-iam-v1 (>= 0.6.10, < 2.0)
|
|
98
|
-
google-protobuf (3.13.0)
|
|
98
|
+
google-protobuf (3.13.0-universal-darwin)
|
|
99
99
|
googleapis-common-protos (1.3.10)
|
|
100
100
|
google-protobuf (~> 3.11)
|
|
101
101
|
googleapis-common-protos-types (>= 1.0.5, < 2.0)
|
|
@@ -109,7 +109,7 @@ GEM
|
|
|
109
109
|
multi_json (~> 1.11)
|
|
110
110
|
os (>= 0.9, < 2.0)
|
|
111
111
|
signet (~> 0.14)
|
|
112
|
-
grpc (1.32.0)
|
|
112
|
+
grpc (1.32.0-universal-darwin)
|
|
113
113
|
google-protobuf (~> 3.13)
|
|
114
114
|
googleapis-common-protos-types (~> 1.0)
|
|
115
115
|
grpc-google-iam-v1 (0.6.10)
|
|
@@ -101,7 +101,7 @@ module Cloudenvoy
|
|
|
101
101
|
# @return [Array<Hash>] The list of subscribed topics.
|
|
102
102
|
#
|
|
103
103
|
def topics
|
|
104
|
-
@topics ||=
|
|
104
|
+
@topics ||= [cloudenvoy_options_hash[:topic], cloudenvoy_options_hash[:topics]].flatten.compact.map do |t|
|
|
105
105
|
t.is_a?(String) ? { name: t } : t
|
|
106
106
|
end
|
|
107
107
|
end
|
|
@@ -127,9 +127,9 @@ module Cloudenvoy
|
|
|
127
127
|
#
|
|
128
128
|
def setup
|
|
129
129
|
topics.map do |t|
|
|
130
|
-
|
|
130
|
+
topic_name = t[:name] || t['name']
|
|
131
131
|
sub_opts = t.reject { |k, _| k.to_sym == :name }
|
|
132
|
-
PubSubClient.upsert_subscription(
|
|
132
|
+
PubSubClient.upsert_subscription(topic_name, subscription_name(topic_name), sub_opts)
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
end
|
data/lib/cloudenvoy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudenvoy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Arnaud Lachaume
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|