zeebe-client 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -1
- data/CHANGELOG.md +7 -0
- data/CODE_OF_CONDUCT.md +73 -0
- data/README.md +30 -2
- data/Rakefile +16 -1
- data/lib/zeebe/client/version.rb +1 -1
- data/spec/integration/client_spec.rb +20 -0
- data/spec/spec_helper.rb +5 -0
- data/zeebe-client.gemspec +5 -4
- metadata +29 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5cb20414eb306313cc2a6a68b347dc4eaedc85a76e7ca8637352b3f9ab217cfb
|
4
|
+
data.tar.gz: 63d61e008d9c565b94f72dffe68c6a6df52c9432f50ddec5c6d24a24e198dd17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f294d138f22cd962acece2ff8b2f4c99fbacb3bbd30cf4226b01ce967e602661ad6cfef73cc67eac5da78196e3afc3a809017e458e004963fbffdce332806d0
|
7
|
+
data.tar.gz: 575548bf57e5d82884b20d7ded08f57dce147cf32c080e4a60d606e650e19b25acabb5cca11b875a2fcf9e4aa04016d62dd25500271ae515a1c9db4d82dfc0da
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at code-of-conduct@zeebe.io. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
72
|
+
|
73
|
+
[homepage]: https://www.contributor-covenant.org
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Zeebe Ruby Client
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/
|
3
|
+
[![Build Status](https://travis-ci.org/zeebe-io/zeebe-client-ruby.svg?branch=master)](https://travis-ci.org/zeebe-io/zeebe-client-ruby/)
|
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.14.0
|
17
17
|
```
|
18
18
|
|
19
19
|
And then try the available [demo script](examples/demo.rb).
|
@@ -23,3 +23,31 @@ See the [changelog](CHANGELOG.md) before upgrading.
|
|
23
23
|
## Development
|
24
24
|
|
25
25
|
The `gen-grpc.sh` script can be used to generate Ruby code for the Zeebe proto.
|
26
|
+
|
27
|
+
To start Zeebe locally for running the integration tests use:
|
28
|
+
|
29
|
+
```sh
|
30
|
+
bundle exec rake zeebe:start
|
31
|
+
bundle exec rake spec
|
32
|
+
bundle exec rake zeebe:stop
|
33
|
+
```
|
34
|
+
|
35
|
+
To retrieve the latest GRPC proto from the Zeebe repository:
|
36
|
+
|
37
|
+
```sh
|
38
|
+
wget -O proto/gateway.proto https://raw.githubusercontent.com/zeebe-io/zeebe/develop/gateway-protocol/src/main/proto/gateway.proto
|
39
|
+
```
|
40
|
+
|
41
|
+
## Status
|
42
|
+
|
43
|
+
This is a community extension for [Zeebe](https://zeebe.io) that will be maintained on a best effort basis.
|
44
|
+
|
45
|
+
## License
|
46
|
+
|
47
|
+
zeebe-client-ruby is licensed under the Apache License, Version 2.0. See LICENSE for more information.
|
48
|
+
|
49
|
+
## Code of Conduct
|
50
|
+
|
51
|
+
This project adheres to the Contributor Covenant [Code of
|
52
|
+
Conduct](/CODE_OF_CONDUCT.md). By participating, you are expected to uphold
|
53
|
+
this code. Please report unacceptable behavior to code-of-conduct@zeebe.io.
|
data/Rakefile
CHANGED
@@ -1,8 +1,23 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
2
3
|
require 'rubocop/rake_task'
|
3
4
|
require 'bundler/audit/task'
|
4
5
|
|
6
|
+
RSpec::Core::RakeTask.new(:spec)
|
5
7
|
RuboCop::RakeTask.new
|
6
8
|
Bundler::Audit::Task.new
|
7
9
|
|
8
|
-
task default: [:rubocop, 'bundle:audit']
|
10
|
+
task default: [:rubocop, :spec, 'bundle:audit']
|
11
|
+
|
12
|
+
task travis: ['zeebe:start', :default, 'zeebe:stop']
|
13
|
+
|
14
|
+
desc 'Starts Zeebe Docker container'
|
15
|
+
task 'zeebe:start' do
|
16
|
+
sh 'docker run -d --name zeebe --rm -p 26500:26500 camunda/zeebe:0.14.0'
|
17
|
+
sleep(5)
|
18
|
+
end
|
19
|
+
|
20
|
+
desc 'Stops Zeebe Docker container'
|
21
|
+
task 'zeebe:stop' do
|
22
|
+
sh 'docker rm -f -v zeebe'
|
23
|
+
end
|
data/lib/zeebe/client/version.rb
CHANGED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# do some basic smoke testing with the Zeebe::Client against a real Zeebe gateway port,
|
4
|
+
# the aim is not to test all possible procedures available via GRPC
|
5
|
+
describe Zeebe::Client do
|
6
|
+
let(:client) do
|
7
|
+
Zeebe::Client::GatewayProtocol::Gateway::Stub.new('localhost:26500', :this_channel_is_insecure)
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'has topology' do
|
11
|
+
topology = client.topology(Zeebe::Client::GatewayProtocol::TopologyRequest.new)
|
12
|
+
expect(topology.clusterSize).to eq(1)
|
13
|
+
expect(topology.replicationFactor).to eq(1)
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'lists workflows' do
|
17
|
+
workflows = client.list_workflows(Zeebe::Client::GatewayProtocol::ListWorkflowsRequest.new).workflows
|
18
|
+
expect(workflows).to eq([])
|
19
|
+
end
|
20
|
+
end
|
data/spec/spec_helper.rb
ADDED
data/zeebe-client.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.description = 'Zeebe client containing a simple wrapper for the GRPC protocol used by Zeebe.io.'
|
11
11
|
s.author = 'Christian Nicolai'
|
12
12
|
s.email = 'chrnicolai@gmail.com'
|
13
|
-
s.homepage = 'https://github.com/
|
13
|
+
s.homepage = 'https://github.com/zeebe-io/zeebe-client-ruby'
|
14
14
|
s.license = 'Apache-2.0'
|
15
15
|
|
16
16
|
s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
|
@@ -19,11 +19,12 @@ Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
s.required_ruby_version = '>= 2.3'
|
21
21
|
|
22
|
-
s.add_runtime_dependency 'grpc', '~> 1.
|
22
|
+
s.add_runtime_dependency 'grpc', '~> 1.18.0'
|
23
23
|
|
24
|
-
s.add_development_dependency 'grpc-tools', '~> 1.
|
24
|
+
s.add_development_dependency 'grpc-tools', '~> 1.18.0'
|
25
25
|
s.add_development_dependency 'bundler'
|
26
26
|
s.add_development_dependency 'rake'
|
27
|
-
s.add_development_dependency '
|
27
|
+
s.add_development_dependency 'rspec'
|
28
|
+
s.add_development_dependency 'rubocop', '~> 0.63.0'
|
28
29
|
s.add_development_dependency 'bundler-audit'
|
29
30
|
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.
|
4
|
+
version: 0.2.0
|
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: 2019-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.18.0
|
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.
|
26
|
+
version: 1.18.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: grpc-tools
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.18.0
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.18.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,20 +66,34 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rubocop
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
89
|
+
version: 0.63.0
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
96
|
+
version: 0.63.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: bundler-audit
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,6 +120,7 @@ files:
|
|
106
120
|
- ".rubocop_todo.yml"
|
107
121
|
- ".travis.yml"
|
108
122
|
- CHANGELOG.md
|
123
|
+
- CODE_OF_CONDUCT.md
|
109
124
|
- Gemfile
|
110
125
|
- LICENSE
|
111
126
|
- README.md
|
@@ -117,8 +132,10 @@ files:
|
|
117
132
|
- lib/zeebe/client/proto/gateway_services_pb.rb
|
118
133
|
- lib/zeebe/client/version.rb
|
119
134
|
- proto/gateway.proto
|
135
|
+
- spec/integration/client_spec.rb
|
136
|
+
- spec/spec_helper.rb
|
120
137
|
- zeebe-client.gemspec
|
121
|
-
homepage: https://github.com/
|
138
|
+
homepage: https://github.com/zeebe-io/zeebe-client-ruby
|
122
139
|
licenses:
|
123
140
|
- Apache-2.0
|
124
141
|
metadata: {}
|
@@ -142,4 +159,6 @@ rubygems_version: 2.7.7
|
|
142
159
|
signing_key:
|
143
160
|
specification_version: 4
|
144
161
|
summary: Zeebe Client
|
145
|
-
test_files:
|
162
|
+
test_files:
|
163
|
+
- spec/integration/client_spec.rb
|
164
|
+
- spec/spec_helper.rb
|