hanami-events-cloud_pubsub 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/hanami/events/cloud_pubsub/middleware/auto_retry.rb +1 -1
- data/lib/hanami/events/cloud_pubsub/middleware/logging.rb +2 -2
- data/lib/hanami/events/cloud_pubsub/middleware/stack.rb +3 -3
- data/lib/hanami/events/cloud_pubsub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2997a85c87293786353e655a95ac3f30d17cd04352970f09b7813b23bbc72de9
|
4
|
+
data.tar.gz: 631538f4ba353a996862c2b55a7020f6f886bdb5a6217fdb5afa1e0f06913eb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16fe26dc4fc1593ecb5c5013ff06366ca3a4e86fbdd5bc5fadb3fd0cc7a25b3ab5de7ccc90d34af1bcb61579df462de9878978b76e41184822af99ccaa36807c
|
7
|
+
data.tar.gz: f550ac05a5e90a6076c611455bb038668c6b117e742daee11297facc05c367566213692b2cd9cacb2f08030a347afa9927a4e5137d3776a07fbe2a6e8f586bb8
|
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ GIT
|
|
8
8
|
PATH
|
9
9
|
remote: .
|
10
10
|
specs:
|
11
|
-
hanami-events-cloud_pubsub (2.1.
|
11
|
+
hanami-events-cloud_pubsub (2.1.2)
|
12
12
|
dry-configurable (~> 0.8.0)
|
13
13
|
google-cloud-pubsub (~> 0.34.0)
|
14
14
|
hanami-cli (~> 0.2)
|
@@ -49,7 +49,7 @@ GEM
|
|
49
49
|
googleauth (>= 0.6.2, < 0.10.0)
|
50
50
|
grpc (>= 1.7.2, < 2.0)
|
51
51
|
rly (~> 0.2.3)
|
52
|
-
google-protobuf (3.7.0
|
52
|
+
google-protobuf (3.7.0)
|
53
53
|
googleapis-common-protos (1.3.8)
|
54
54
|
google-protobuf (~> 3.0)
|
55
55
|
googleapis-common-protos-types (~> 1.0)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
multi_json (~> 1.11)
|
64
64
|
os (>= 0.9, < 2.0)
|
65
65
|
signet (~> 0.7)
|
66
|
-
grpc (1.19.0
|
66
|
+
grpc (1.19.0)
|
67
67
|
google-protobuf (~> 3.1)
|
68
68
|
googleapis-common-protos-types (~> 1.0.0)
|
69
69
|
grpc-google-iam-v1 (0.6.9)
|
@@ -10,9 +10,9 @@ module Hanami
|
|
10
10
|
@logger = logger
|
11
11
|
end
|
12
12
|
|
13
|
-
def call(msg,
|
13
|
+
def call(msg, opts = {})
|
14
14
|
started_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
15
|
-
yield
|
15
|
+
yield(opts)
|
16
16
|
ensure
|
17
17
|
ended_at = Process.clock_gettime(Process::CLOCK_MONOTONIC)
|
18
18
|
seconds = ended_at - started_at
|
@@ -43,11 +43,11 @@ module Hanami
|
|
43
43
|
def invoke(*base_args)
|
44
44
|
stack = entries.dup
|
45
45
|
|
46
|
-
traverse_stack =
|
46
|
+
traverse_stack = proc do |**opts|
|
47
47
|
if stack.empty?
|
48
|
-
yield(*base_args,
|
48
|
+
yield(*base_args, **opts)
|
49
49
|
else
|
50
|
-
stack.shift.call(*base_args,
|
50
|
+
stack.shift.call(*base_args, **opts, &traverse_stack)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|