hanami-events-cloud_pubsub 2.6.3 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.tool-versions +1 -1
- data/.travis.yml +2 -1
- data/Gemfile.lock +5 -5
- data/hanami-events-cloud_pubsub.gemspec +1 -1
- data/lib/hanami/events/adapter/cloud_pubsub.rb +1 -1
- data/lib/hanami/events/cloud_pubsub/middleware/auto_retry.rb +2 -2
- data/lib/hanami/events/cloud_pubsub/middleware/logging.rb +2 -2
- data/lib/hanami/events/cloud_pubsub/middleware/prometheus.rb +2 -2
- data/lib/hanami/events/cloud_pubsub/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9cc629e01c1d1d3df3c94517d37724393dd2c2fc17ec27f76e6479b9daff65f
|
4
|
+
data.tar.gz: d07879c721735a977b860dab2f45a750cd82b6c74f27a1b82c599a135123dd69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c64ac6770fb1d53f43684a66b82da4918c42c8ef49b87bdecfe36a665d962a6b89a45e372933357b7dcf367438da87ccd0a424009e5c5724dc7afdca661a74a
|
7
|
+
data.tar.gz: f00bb11867b80bd55d41391b5aee0357367e354621696e8bcbdf6efc4749b57070ab48b5b20c07cd3082dccf58e07093e29e241490d010e3a73eaf78093f1178
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.
|
1
|
+
ruby 2.7.1
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -8,9 +8,9 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
hanami-events-cloud_pubsub (2.
|
11
|
+
hanami-events-cloud_pubsub (2.7.0)
|
12
12
|
dry-configurable (>= 0.8)
|
13
|
-
google-cloud-pubsub (>= 0.38.1, < 1.
|
13
|
+
google-cloud-pubsub (>= 0.38.1, < 1.7)
|
14
14
|
hanami-cli (~> 0.2)
|
15
15
|
hanami-events (~> 0.2.0)
|
16
16
|
rack
|
@@ -43,7 +43,7 @@ GEM
|
|
43
43
|
google-cloud-env (1.3.1)
|
44
44
|
faraday (>= 0.17.3, < 2.0)
|
45
45
|
google-cloud-errors (1.0.0)
|
46
|
-
google-cloud-pubsub (1.
|
46
|
+
google-cloud-pubsub (1.6.1)
|
47
47
|
concurrent-ruby (~> 1.1)
|
48
48
|
google-cloud-core (~> 1.2)
|
49
49
|
google-gax (~> 1.8)
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
googleauth (~> 0.9)
|
57
57
|
grpc (~> 1.24)
|
58
58
|
rly (~> 0.2.3)
|
59
|
-
google-protobuf (3.
|
59
|
+
google-protobuf (3.12.0)
|
60
60
|
googleapis-common-protos (1.3.10)
|
61
61
|
google-protobuf (~> 3.11)
|
62
62
|
googleapis-common-protos-types (>= 1.0.5, < 2.0)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
pry (0.13.1)
|
98
98
|
coderay (~> 1.1)
|
99
99
|
method_source (~> 1.0)
|
100
|
-
public_suffix (4.0.
|
100
|
+
public_suffix (4.0.5)
|
101
101
|
rack (2.2.2)
|
102
102
|
rainbow (3.0.0)
|
103
103
|
rake (13.0.1)
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_dependency 'dry-configurable', '>= 0.8'
|
26
|
-
spec.add_dependency 'google-cloud-pubsub', '>= 0.38.1', '< 1.
|
26
|
+
spec.add_dependency 'google-cloud-pubsub', '>= 0.38.1', '< 1.7'
|
27
27
|
spec.add_dependency 'hanami-cli', '~> 0.2'
|
28
28
|
spec.add_dependency 'hanami-events', '~> 0.2.0'
|
29
29
|
spec.add_dependency 'rack'
|
@@ -34,7 +34,7 @@ module Hanami
|
|
34
34
|
payload = serializer.serialize(payload)
|
35
35
|
attributes = { id: SecureRandom.uuid, event_name: event_name }
|
36
36
|
|
37
|
-
topic.publish_async(payload, attributes) do |result|
|
37
|
+
topic.publish_async(payload, **attributes) do |result|
|
38
38
|
logger.info "Published event #{result.inspect}"
|
39
39
|
end
|
40
40
|
end
|
@@ -14,10 +14,10 @@ module Hanami
|
|
14
14
|
@max_attempts = max_attempts
|
15
15
|
end
|
16
16
|
|
17
|
-
def call(message, args
|
17
|
+
def call(message, **args)
|
18
18
|
succeeded = false
|
19
19
|
failed = false
|
20
|
-
yield(args)
|
20
|
+
yield(**args)
|
21
21
|
succeeded = true
|
22
22
|
rescue StandardError => e
|
23
23
|
failed = true
|
@@ -10,9 +10,9 @@ module Hanami
|
|
10
10
|
@logger = logger
|
11
11
|
end
|
12
12
|
|
13
|
-
def call(msg, opts
|
13
|
+
def call(msg, **opts)
|
14
14
|
started_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
15
|
-
yield(opts)
|
15
|
+
yield(**opts)
|
16
16
|
ensure
|
17
17
|
ended_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
18
18
|
seconds = ended_at - started_at
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hanami-events-cloud_pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian Ker-Seymer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 0.38.1
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: '1.
|
36
|
+
version: '1.7'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.38.1
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '1.
|
46
|
+
version: '1.7'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: hanami-cli
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
requirements: []
|
211
|
-
rubygems_version: 3.
|
211
|
+
rubygems_version: 3.1.2
|
212
212
|
signing_key:
|
213
213
|
specification_version: 4
|
214
214
|
summary: Google Cloud Pub/Sub adapter for the hanami-events gem
|