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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2cdfc490c9707aedc4549c12c37cd78341fe4595a9621037e573c78654d68a1
4
- data.tar.gz: 51a1583acd8a1226822a5c62171c33437173d7b5baec27f78e0ce0902f31257b
3
+ metadata.gz: b9cc629e01c1d1d3df3c94517d37724393dd2c2fc17ec27f76e6479b9daff65f
4
+ data.tar.gz: d07879c721735a977b860dab2f45a750cd82b6c74f27a1b82c599a135123dd69
5
5
  SHA512:
6
- metadata.gz: '0643549d0ede3ed3bf374044a281d04dc0294e6042b357ce5715eccc53cdceaecc69a8b5ac9da043deceb9547452aaf4c77a2efc9a9bf781bfc9613dafd0619f'
7
- data.tar.gz: 8b316a1eb3d2d3c95e2ec239985db49fba675615e4f2a27165e0f5c33cf622ad06adfb21bbf314eaf1e9311b8f3913ab3eefc8aa88bdcfed150855de4fa33435
6
+ metadata.gz: 4c64ac6770fb1d53f43684a66b82da4918c42c8ef49b87bdecfe36a665d962a6b89a45e372933357b7dcf367438da87ccd0a424009e5c5724dc7afdca661a74a
7
+ data.tar.gz: f00bb11867b80bd55d41391b5aee0357367e354621696e8bcbdf6efc4749b57070ab48b5b20c07cd3082dccf58e07093e29e241490d010e3a73eaf78093f1178
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.6.6
1
+ ruby 2.7.1
data/.travis.yml CHANGED
@@ -9,8 +9,9 @@ env:
9
9
  - CC_TEST_REPORTER_ID=7ab310950456b913cd7e947f6671e3e9c16822f33bd8c572dadcc14593fe4fb5
10
10
  - COVERAGE=true
11
11
  rvm:
12
- - 2.4
12
+ - 2.5
13
13
  - 2.6
14
+ - 2.7
14
15
  before_install:
15
16
  - gem install bundler -v 1.16.1
16
17
  before_script:
data/Gemfile.lock CHANGED
@@ -8,9 +8,9 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- hanami-events-cloud_pubsub (2.6.3)
11
+ hanami-events-cloud_pubsub (2.7.0)
12
12
  dry-configurable (>= 0.8)
13
- google-cloud-pubsub (>= 0.38.1, < 1.4)
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.3.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.11.4)
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.4)
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.4'
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
@@ -18,11 +18,11 @@ module Hanami
18
18
  )
19
19
  end
20
20
 
21
- def call(msg, opts = {})
21
+ def call(msg, **opts)
22
22
  status = :running
23
23
 
24
24
  begin
25
- ret = yield(opts)
25
+ ret = yield(**opts)
26
26
  status = :succeeded
27
27
  ret
28
28
  rescue StandardError
@@ -3,7 +3,7 @@
3
3
  module Hanami
4
4
  module Events
5
5
  module CloudPubsub
6
- VERSION = '2.6.3'
6
+ VERSION = '2.7.0'
7
7
  end
8
8
  end
9
9
  end
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.6.3
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-04-29 00:00:00.000000000 Z
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.4'
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.4'
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.0.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