cloudenvoy 0.2.0 → 0.3.0

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
  SHA256:
3
- metadata.gz: 504b503a71e3417dc060ca78ab1653e670b77a87a094394d231e1c8d6bace2f9
4
- data.tar.gz: fc905028b47de294dc1a42c7c6ea6edbf3148db8c2e9f94c3b656f2f480fd317
3
+ metadata.gz: 11748609c85a5b715ad36310318e28930ea9ce05ad4716f7ef09de4295c3d2c7
4
+ data.tar.gz: 34251b0947169a81f39a162a437a9070ccf61311d4f13e1e1e3fb82010a6d24d
5
5
  SHA512:
6
- metadata.gz: 7f91e316422710774f1298c9e8f675c89c79e2e6b1043903b8beacf5c7929696b7d3131f25aeda9f3cd54f0b1f81c65291b9ec92dfa4acb66ef03c837e5c6d89
7
- data.tar.gz: 7d6cfe241d6477428c40c40fd28975c8e27752a4d485ba2a40a865d8d60f426770118f88e376ee6bc8750277cebff8f3e5dc14f59463c44ccfcfd4918c763109
6
+ metadata.gz: 3df950d144f1b7cd98b7f69eb880fab5ab46bc3dfb19835c68b643a481208439cd8a241af7e723671f8889be40cc732f6769ce904f41b5d3bd9e364833b97af4
7
+ data.tar.gz: 44ed54ea2fb8171088613244bb74c1ce561398cb1a55dbf12092f974692838d8f6b2e5503366bb774f275fdce653eea4471fcdfd45f2cf008af92738f18c75ac
@@ -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)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudenvoy (0.2.0)
4
+ cloudenvoy (0.3.0)
5
5
  activesupport
6
6
  google-cloud-pubsub (~> 2.0)
7
7
  jwt
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../..
3
3
  specs:
4
- cloudenvoy (0.1.0.dev)
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)
@@ -3,7 +3,7 @@
3
3
  class HelloSubscriber
4
4
  include Cloudenvoy::Subscriber
5
5
 
6
- cloudenvoy_options topics: ['hello-msgs']
6
+ cloudenvoy_options topic: 'hello-msgs'
7
7
 
8
8
  #
9
9
  # Process a pub/sub message
@@ -101,7 +101,7 @@ module Cloudenvoy
101
101
  # @return [Array<Hash>] The list of subscribed topics.
102
102
  #
103
103
  def topics
104
- @topics ||= (Array(cloudenvoy_options_hash[:topic]) + Array(cloudenvoy_options_hash[:topics])).map do |t|
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
- relative_name = t[:name] || t['name']
130
+ topic_name = t[:name] || t['name']
131
131
  sub_opts = t.reject { |k, _| k.to_sym == :name }
132
- PubSubClient.upsert_subscription(t, subscription_name(relative_name), sub_opts)
132
+ PubSubClient.upsert_subscription(topic_name, subscription_name(topic_name), sub_opts)
133
133
  end
134
134
  end
135
135
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cloudenvoy
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
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.2.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-22 00:00:00.000000000 Z
11
+ date: 2020-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport