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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aac63216e3e0f6dc0bf04834cd3d3c15d0841ad29df87f7049a62f09edd094ca
4
- data.tar.gz: 46b891a309306f3987695ba37987737e4302bbc32aa639b4be7df8acfe4df078
3
+ metadata.gz: 2997a85c87293786353e655a95ac3f30d17cd04352970f09b7813b23bbc72de9
4
+ data.tar.gz: 631538f4ba353a996862c2b55a7020f6f886bdb5a6217fdb5afa1e0f06913eb0
5
5
  SHA512:
6
- metadata.gz: c82dd8ad7e28bee42b1bd055d17fc88616aff4b5f93fca9d4ad90489dd13a51bb6c62a6a5ab6693145f1fb54f6ba0ac1a7e1fe12ce0c59f81b9b639b639bb874
7
- data.tar.gz: 5f98c01fb769d47d59a6bc52d346a46c195dd71883d3d4f2652e689206d0cd5c804897f598cb683d1ea119d2fa6a2505bc587382a086fe1ec22bf74c54a9d355
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.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-x86_64-linux)
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-x86_64-linux)
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)
@@ -14,7 +14,7 @@ module Hanami
14
14
  def call(message, args = {})
15
15
  succeeded = false
16
16
  failed = false
17
- yield
17
+ yield(args)
18
18
  succeeded = true
19
19
  rescue StandardError => err
20
20
  failed = true
@@ -10,9 +10,9 @@ module Hanami
10
10
  @logger = logger
11
11
  end
12
12
 
13
- def call(msg, *_args)
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 = lambda do |*args|
46
+ traverse_stack = proc do |**opts|
47
47
  if stack.empty?
48
- yield(*base_args, *args)
48
+ yield(*base_args, **opts)
49
49
  else
50
- stack.shift.call(*base_args, *args, &traverse_stack)
50
+ stack.shift.call(*base_args, **opts, &traverse_stack)
51
51
  end
52
52
  end
53
53
 
@@ -3,7 +3,7 @@
3
3
  module Hanami
4
4
  module Events
5
5
  module CloudPubsub
6
- VERSION = '2.1.1'
6
+ VERSION = '2.1.2'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-events-cloud_pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer