zeebe-client 0.11.2 → 0.13.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: 57161c4938b4ce113f48c241a088f487b376a575bbb0ab583e58af26d4638d58
4
- data.tar.gz: b0164f2f1d62f525e4f76abc6bdcefc761e87fd9c3eff026885be8af0d3c66a8
3
+ metadata.gz: 6a0afe36c2868f955e28238c6e5f406e8eb2a985c9a8a464566940fa5010c731
4
+ data.tar.gz: 480bf5f843560e583428a3f5e3147ad948ddfbfd056916a1f250581597fb9146
5
5
  SHA512:
6
- metadata.gz: 9b93237e022eebe30f3c0f1e0c65b47d83baa6978afead9aa8e9dcefef4fb3d2c57471d58b32b31830229396b0a687605d4c8e074d2e724200823584e5528715
7
- data.tar.gz: 211857526bc82b80b56ad232e895e46edaeaf572a2fc84bff26d42dd96f342e1009e7ea5dfc0d5377ebfa8683cf05514c71fc88caabd85b7ae09bf8b94a7f8b4
6
+ metadata.gz: c1079c7ae7834e47dcf05da685466e790c384ba1ab3bbcd37f6f89e9baf6fb665b592017e2e6e0b2ff226037c88e4b0ee818fbf9e23404150b7ce35e6fe58f0d
7
+ data.tar.gz: 535b6dddf3323fa6b3ea7859879ff011ac97eb174a6973a74d31fd63d04f894b0479945faf7efcedabc1a4b024d62e30642560b3f4ec10c06746fa1b07463266
@@ -1,3 +1,4 @@
1
+ ---
1
2
  name: ci
2
3
 
3
4
  on:
@@ -5,8 +6,9 @@ on:
5
6
  branches: [master]
6
7
  pull_request:
7
8
  branches: [master]
9
+ workflow_dispatch:
8
10
  schedule:
9
- - cron: '7 4 * * 4' # weekly on thursday morning
11
+ - cron: '55 4 * * 4' # weekly on thursday morning
10
12
 
11
13
  jobs:
12
14
  build:
@@ -17,15 +19,14 @@ jobs:
17
19
  - '2.5'
18
20
  - '2.6'
19
21
  - '2.7'
22
+ - '3.0'
20
23
  steps:
21
24
  - uses: actions/checkout@v2
22
25
  - name: Set up Ruby ${{ matrix.ruby-version }}
23
- uses: actions/setup-ruby@v1
26
+ uses: ruby/setup-ruby@v1
24
27
  with:
25
28
  ruby-version: ${{ matrix.ruby-version }}
26
- - name: Install dependencies
27
- run: |
28
- bundle
29
+ bundler-cache: true # runs 'bundle install' and caches installed gems automatically
29
30
  - name: Test
30
31
  run: |
31
- bundle exec rake travis
32
+ bundle exec rake ci
data/.rubocop.yml CHANGED
@@ -1,9 +1,13 @@
1
1
  ---
2
+ inherit_mode:
3
+ merge:
4
+ - Exclude
5
+
2
6
  AllCops:
3
- TargetRubyVersion: '2.3'
7
+ TargetRubyVersion: '2.5'
4
8
  Exclude:
5
- - 'examples/*'
6
- - 'lib/zeebe/client/proto/*'
9
+ - 'examples/*'
10
+ - 'lib/zeebe/client/proto/*'
7
11
 
8
12
  Layout/EmptyLineAfterGuardClause:
9
13
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.2 (March 30, 2021)
4
+
5
+ - add support for [Zeebe 0.26.2](https://github.com/zeebe-io/zeebe/releases/tag/0.26.2)
6
+
7
+ ## 0.13.1 (February 26, 2021)
8
+
9
+ - support Ruby 3.0
10
+ - add support for [Zeebe 0.26.1](https://github.com/zeebe-io/zeebe/releases/tag/0.26.1)
11
+
12
+ ## 0.13.0 (February 3, 2021)
13
+
14
+ - add support for [Zeebe 0.26.0](https://github.com/zeebe-io/zeebe/releases/tag/0.26.0), thanks []@rusterholz](https://github.com/zeebe-io/zeebe-client-ruby/pull/62)
15
+
16
+ ## 0.12.1 (December 11, 2020)
17
+
18
+ - add support for [Zeebe 0.25.3](https://github.com/zeebe-io/zeebe/releases/tag/0.25.3)
19
+ - drop Travis CI in favor of Github Actions
20
+
21
+ ## 0.12.0 (November 9, 2020)
22
+
23
+ - add support for [Zeebe 0.25.1](https://github.com/zeebe-io/zeebe/releases/tag/0.25.1)
24
+
3
25
  ## 0.11.2 (November 5, 2020)
4
26
 
5
27
  - relax `grpc` dependency version constraint from `~> 1.32.0` to `~> 1.32` thus allowing usage of future versions that are compatible due to [semver](https://github.com/grpc/grpc/blob/master/doc/versioning.md), thanks @rusterholz
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Zeebe Ruby Client
2
2
 
3
- [![Build Status](https://travis-ci.org/zeebe-io/zeebe-client-ruby.svg?branch=master)](https://travis-ci.org/zeebe-io/zeebe-client-ruby/)
3
+ ![Build Status](https://github.com/zeebe-io/zeebe-client-ruby/workflows/ci/badge.svg)
4
4
 
5
5
  [Zeebe](https://zeebe.io) client containing a simple wrapper for the GRPC protocol used by Zeebe.
6
6
 
@@ -13,7 +13,7 @@ Install the gem:
13
13
  Run a Zeebe instance locally:
14
14
 
15
15
  ```sh
16
- docker run -it --rm -p 26500:26500 camunda/zeebe:0.24.3
16
+ docker run -it --rm -p 26500:26500 camunda/zeebe:0.26.2
17
17
  ```
18
18
 
19
19
  And then try the available [demo script](examples/demo.rb).
data/Rakefile CHANGED
@@ -9,11 +9,11 @@ Bundler::Audit::Task.new
9
9
 
10
10
  task default: [:rubocop, :spec, 'bundle:audit']
11
11
 
12
- task travis: ['zeebe:start', :default, 'zeebe:stop']
12
+ task ci: ['zeebe:start', :default, 'zeebe:stop']
13
13
 
14
14
  desc 'Starts Zeebe Docker container'
15
15
  task 'zeebe:start' do
16
- sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.24.3'
16
+ sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.26.2'
17
17
  sleep(10)
18
18
  end
19
19
 
@@ -111,6 +111,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
111
111
  optional :variables, :string, 5
112
112
  end
113
113
  add_message "gateway_protocol.PublishMessageResponse" do
114
+ optional :key, :int64, 1
114
115
  end
115
116
  add_message "gateway_protocol.ResolveIncidentRequest" do
116
117
  optional :incidentKey, :int64, 1
@@ -136,10 +137,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
136
137
  add_message "gateway_protocol.Partition" do
137
138
  optional :partitionId, :int32, 1
138
139
  optional :role, :enum, 2, "gateway_protocol.Partition.PartitionBrokerRole"
140
+ optional :health, :enum, 3, "gateway_protocol.Partition.PartitionBrokerHealth"
139
141
  end
140
142
  add_enum "gateway_protocol.Partition.PartitionBrokerRole" do
141
143
  value :LEADER, 0
142
144
  value :FOLLOWER, 1
145
+ value :INACTIVE, 2
146
+ end
147
+ add_enum "gateway_protocol.Partition.PartitionBrokerHealth" do
148
+ value :HEALTHY, 0
149
+ value :UNHEALTHY, 1
143
150
  end
144
151
  add_message "gateway_protocol.UpdateJobRetriesRequest" do
145
152
  optional :jobKey, :int64, 1
@@ -188,6 +195,7 @@ module Zeebe::Client::GatewayProtocol
188
195
  BrokerInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.BrokerInfo").msgclass
189
196
  Partition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.Partition").msgclass
190
197
  Partition::PartitionBrokerRole = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.Partition.PartitionBrokerRole").enummodule
198
+ Partition::PartitionBrokerHealth = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.Partition.PartitionBrokerHealth").enummodule
191
199
  UpdateJobRetriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesRequest").msgclass
192
200
  UpdateJobRetriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.UpdateJobRetriesResponse").msgclass
193
201
  SetVariablesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gateway_protocol.SetVariablesRequest").msgclass
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Zeebe
3
3
  module Client
4
- VERSION = '0.11.2'.freeze
4
+ VERSION = '0.13.2'.freeze
5
5
  end
6
6
  end
data/proto/gateway.proto CHANGED
@@ -226,6 +226,8 @@ message PublishMessageRequest {
226
226
  }
227
227
 
228
228
  message PublishMessageResponse {
229
+ // the unique ID of the message that was published
230
+ int64 key = 1;
229
231
  }
230
232
 
231
233
  message ResolveIncidentRequest {
@@ -270,12 +272,21 @@ message Partition {
270
272
  enum PartitionBrokerRole {
271
273
  LEADER = 0;
272
274
  FOLLOWER = 1;
275
+ INACTIVE = 2;
276
+ }
277
+
278
+ // Describes the current health of the partition
279
+ enum PartitionBrokerHealth {
280
+ HEALTHY = 0;
281
+ UNHEALTHY = 1;
273
282
  }
274
283
 
275
284
  // the unique ID of this partition
276
285
  int32 partitionId = 1;
277
286
  // the role of the broker for this partition
278
287
  PartitionBrokerRole role = 2;
288
+ // the health of this partition
289
+ PartitionBrokerHealth health = 3;
279
290
  }
280
291
 
281
292
  message UpdateJobRetriesRequest {
data/zeebe-client.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
18
18
  s.require_paths = ['lib']
19
19
 
20
- s.required_ruby_version = '>= 2.3'
20
+ s.required_ruby_version = '>= 2.5'
21
21
 
22
22
  s.add_runtime_dependency 'grpc', '~> 1.32'
23
23
 
@@ -26,6 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_development_dependency 'grpc-tools', '~> 1.32'
27
27
  s.add_development_dependency 'rake'
28
28
  s.add_development_dependency 'rspec'
29
- s.add_development_dependency 'rubocop', '~> 0.81.0'
29
+ s.add_development_dependency 'rubocop', '~> 1.11.0'
30
30
  s.add_development_dependency 'solargraph'
31
31
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeebe-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Nicolai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-05 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.81.0
103
+ version: 1.11.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.81.0
110
+ version: 1.11.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: solargraph
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -134,7 +134,6 @@ files:
134
134
  - ".gitignore"
135
135
  - ".rubocop.yml"
136
136
  - ".solargraph.yml"
137
- - ".travis.yml"
138
137
  - CHANGELOG.md
139
138
  - CODE_OF_CONDUCT.md
140
139
  - Gemfile
@@ -163,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
162
  requirements:
164
163
  - - ">="
165
164
  - !ruby/object:Gem::Version
166
- version: '2.3'
165
+ version: '2.5'
167
166
  required_rubygems_version: !ruby/object:Gem::Requirement
168
167
  requirements:
169
168
  - - ">="
data/.travis.yml DELETED
@@ -1,16 +0,0 @@
1
- ---
2
- os: linux
3
- language: ruby
4
- rvm:
5
- - 2.7
6
- - 2.6
7
- - 2.5
8
-
9
- jobs:
10
- fast_finish: true
11
-
12
- services:
13
- - docker
14
-
15
- script:
16
- - bundle exec rake travis