zeebe-client 0.11.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +32 -0
- data/.rubocop.yml +7 -3
- data/CHANGELOG.md +22 -0
- data/README.md +2 -2
- data/Rakefile +2 -2
- data/lib/zeebe/client/proto/gateway_pb.rb +8 -0
- data/lib/zeebe/client/version.rb +1 -1
- data/proto/gateway.proto +11 -0
- data/zeebe-client.gemspec +3 -3
- metadata +8 -8
- data/.travis.yml +0 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd74ff6015cb61830ba13a3fa196911ed5aa422de879153821545500fe9ea59b
|
4
|
+
data.tar.gz: 0c6592fdd0b90c237a402babdca5122c27a517e0a0e4c9d67f39e0cb3494ae27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a5f922226da7aa08a18e5a836c7e8efaa25481204d7bae2af913b19b01b15b4d0210695a6febf6229f1e5a12697085c0af6f9dff3d22a12036a63899f143a5
|
7
|
+
data.tar.gz: 249b7db0def4d07511e0ad981166ceeb94ecec00a1e34f5ee8a96dbd3aa6f40414370b3964868de7482a7458ba2d2fb1c42c1475e427a79cc3f36762f2a30514
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
name: ci
|
3
|
+
|
4
|
+
on:
|
5
|
+
push:
|
6
|
+
branches: [master]
|
7
|
+
pull_request:
|
8
|
+
branches: [master]
|
9
|
+
workflow_dispatch:
|
10
|
+
schedule:
|
11
|
+
- cron: '55 4 * * 4' # weekly on thursday morning
|
12
|
+
|
13
|
+
jobs:
|
14
|
+
build:
|
15
|
+
runs-on: ubuntu-latest
|
16
|
+
strategy:
|
17
|
+
matrix:
|
18
|
+
ruby-version:
|
19
|
+
- '2.5'
|
20
|
+
- '2.6'
|
21
|
+
- '2.7'
|
22
|
+
- '3.0'
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v2
|
25
|
+
- name: Set up Ruby ${{ matrix.ruby-version }}
|
26
|
+
uses: ruby/setup-ruby@v1
|
27
|
+
with:
|
28
|
+
ruby-version: ${{ matrix.ruby-version }}
|
29
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
30
|
+
- name: Test
|
31
|
+
run: |
|
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.
|
7
|
+
TargetRubyVersion: '2.5'
|
4
8
|
Exclude:
|
5
|
-
|
6
|
-
|
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.1 (February 26, 2021)
|
4
|
+
|
5
|
+
- support Ruby 3.0
|
6
|
+
- add support for [Zeebe 0.26.1](https://github.com/zeebe-io/zeebe/releases/tag/0.26.1)
|
7
|
+
|
8
|
+
## 0.13.0 (February 3, 2021)
|
9
|
+
|
10
|
+
- 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)
|
11
|
+
|
12
|
+
## 0.12.1 (December 11, 2020)
|
13
|
+
|
14
|
+
- add support for [Zeebe 0.25.3](https://github.com/zeebe-io/zeebe/releases/tag/0.25.3)
|
15
|
+
- drop Travis CI in favor of Github Actions
|
16
|
+
|
17
|
+
## 0.12.0 (November 9, 2020)
|
18
|
+
|
19
|
+
- add support for [Zeebe 0.25.1](https://github.com/zeebe-io/zeebe/releases/tag/0.25.1)
|
20
|
+
|
21
|
+
## 0.11.2 (November 5, 2020)
|
22
|
+
|
23
|
+
- 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
|
24
|
+
|
3
25
|
## 0.11.1 (November 4, 2020)
|
4
26
|
|
5
27
|
- add support for [Zeebe 0.24.3](https://github.com/zeebe-io/zeebe/releases/tag/0.24.3)
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Zeebe Ruby Client
|
2
2
|
|
3
|
-
|
3
|
+

|
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.
|
16
|
+
docker run -it --rm -p 26500:26500 camunda/zeebe:0.26.1
|
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
|
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.
|
16
|
+
sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.26.1'
|
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
|
data/lib/zeebe/client/version.rb
CHANGED
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,13 +17,13 @@ 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.
|
20
|
+
s.required_ruby_version = '>= 2.5'
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'grpc', '~> 1.32
|
22
|
+
s.add_runtime_dependency 'grpc', '~> 1.32'
|
23
23
|
|
24
24
|
s.add_development_dependency 'bundler'
|
25
25
|
s.add_development_dependency 'bundler-audit', '~> 0.7.0'
|
26
|
-
s.add_development_dependency 'grpc-tools', '~> 1.32
|
26
|
+
s.add_development_dependency 'grpc-tools', '~> 1.32'
|
27
27
|
s.add_development_dependency 'rake'
|
28
28
|
s.add_development_dependency 'rspec'
|
29
29
|
s.add_development_dependency 'rubocop', '~> 0.81.0'
|
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.
|
4
|
+
version: 0.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Nicolai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.32
|
19
|
+
version: '1.32'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.32
|
26
|
+
version: '1.32'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.32
|
61
|
+
version: '1.32'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.32
|
68
|
+
version: '1.32'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,10 +130,10 @@ extensions: []
|
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
132
|
- ".github/dependabot.yml"
|
133
|
+
- ".github/workflows/ci.yml"
|
133
134
|
- ".gitignore"
|
134
135
|
- ".rubocop.yml"
|
135
136
|
- ".solargraph.yml"
|
136
|
-
- ".travis.yml"
|
137
137
|
- CHANGELOG.md
|
138
138
|
- CODE_OF_CONDUCT.md
|
139
139
|
- Gemfile
|
@@ -162,7 +162,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements:
|
163
163
|
- - ">="
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: '2.
|
165
|
+
version: '2.5'
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
168
|
- - ">="
|