mistral_client 1.2.1 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +3 -0
- data/.ruby-version +1 -1
- data/.travis.yml +5 -3
- data/CHANGELOG.md +7 -0
- data/lib/mistral_client/client.rb +2 -0
- data/lib/mistral_client/environment.rb +1 -0
- data/lib/mistral_client/execution.rb +3 -0
- data/lib/mistral_client/mixins/definable.rb +1 -0
- data/lib/mistral_client/mixins/deletable.rb +1 -0
- data/lib/mistral_client/mixins/mistral_object.rb +1 -0
- data/lib/mistral_client/version.rb +1 -1
- data/mistral_client.gemspec +9 -9
- metadata +19 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ae1d66612f62ddd3348a8f87e3a54e63751f5a34f7d47482c3df7dff3ce38a9f
|
4
|
+
data.tar.gz: 784c972293a9fb51b5ba960401260dc0f2e973eb80a0c322fe89218b85b48c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d909cc3677e550fe94be9a79796ee687697171729d845d7d27020cb69344d0c10a59a71862f401fef7008ada5cb7f8110f0e7428cb74ec34c3194fb54715381
|
7
|
+
data.tar.gz: 63f228bc0f7e2e469209de5dd94c14d8221e1728f554e30f6674ea053e74267a3b9b6dd4a3a69df8d2c5335ebd252a36c09fcb830d085af4bebb933e005c5b60
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.6
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [1.3.0] - 2020-04-20
|
9
|
+
|
10
|
+
### Changed
|
11
|
+
- Relaxed the constraint on the httparty dependency
|
12
|
+
- Added Ruby 2.5 and 2.6 to the build matrix
|
13
|
+
- Updated development dependencies
|
14
|
+
|
8
15
|
## [1.2.1] - 2019-11-07
|
9
16
|
|
10
17
|
### Added
|
@@ -54,6 +54,7 @@ module MistralClient
|
|
54
54
|
|
55
55
|
def post_or_put(verb, path, body, json)
|
56
56
|
raise ArgumentError unless %i[post put].include?(verb)
|
57
|
+
|
57
58
|
headers = if json
|
58
59
|
{ 'Content-Type' => 'application/json' }
|
59
60
|
else
|
@@ -70,6 +71,7 @@ module MistralClient
|
|
70
71
|
if resp.code == 404
|
71
72
|
raise MissingObjectError, JSON.parse(resp.body)['faultstring']
|
72
73
|
end
|
74
|
+
|
73
75
|
raise MistralResponseError.new(resp),
|
74
76
|
"Could not perform the requested operation:\n#{resp.body}"
|
75
77
|
end
|
@@ -28,6 +28,7 @@ module MistralClient
|
|
28
28
|
create_execution
|
29
29
|
end
|
30
30
|
end
|
31
|
+
# rubocop:enable Metrics/ParameterLists
|
31
32
|
|
32
33
|
def patch(description: nil, state: nil, env: nil)
|
33
34
|
body = {}
|
@@ -43,6 +44,7 @@ module MistralClient
|
|
43
44
|
|
44
45
|
private
|
45
46
|
|
47
|
+
# rubocop:disable Metrics/ParameterLists
|
46
48
|
def set_attributes(server, workflow_id, env, task_name, id, input)
|
47
49
|
@server = server
|
48
50
|
@env = env
|
@@ -51,6 +53,7 @@ module MistralClient
|
|
51
53
|
@workflow_id = workflow_id
|
52
54
|
@input = input
|
53
55
|
end
|
56
|
+
# rubocop:enable Metrics/ParameterLists
|
54
57
|
|
55
58
|
def create_execution
|
56
59
|
body = { workflow_id: @workflow_id }
|
@@ -6,6 +6,7 @@ module MistralClient
|
|
6
6
|
if definition.is_a?(Hash) || definition.is_a?(Array)
|
7
7
|
return YAML.dump(definition)
|
8
8
|
end
|
9
|
+
|
9
10
|
definition = File.read(definition) if File.exist?(definition)
|
10
11
|
# Called outside the if/else to validate the YAML.
|
11
12
|
parsed = YAML.safe_load(definition, [], [], true)
|
data/mistral_client.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path('
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require 'mistral_client/version'
|
4
4
|
|
@@ -22,12 +22,12 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
|
-
spec.add_dependency 'httparty', '~> 0.15
|
26
|
-
spec.add_development_dependency 'bundler', '~> 2.
|
27
|
-
spec.add_development_dependency 'pry', '~> 0.
|
28
|
-
spec.add_development_dependency 'rake', '~>
|
29
|
-
spec.add_development_dependency 'rspec', '~> 3.
|
30
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
31
|
-
spec.add_development_dependency 'vcr', '~>
|
32
|
-
spec.add_development_dependency 'webmock', '~> 3.
|
25
|
+
spec.add_dependency 'httparty', '~> 0.15'
|
26
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
27
|
+
spec.add_development_dependency 'pry', '~> 0.13.1'
|
28
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
29
|
+
spec.add_development_dependency 'rspec', '~> 3.9'
|
30
|
+
spec.add_development_dependency 'rubocop', '~> 0.81.0'
|
31
|
+
spec.add_development_dependency 'vcr', '~> 5.1'
|
32
|
+
spec.add_development_dependency 'webmock', '~> 3.8'
|
33
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mistral_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brennan
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-04-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -18,112 +18,112 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.15
|
21
|
+
version: '0.15'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.15
|
28
|
+
version: '0.15'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: bundler
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 2.
|
35
|
+
version: '2.1'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 2.
|
42
|
+
version: '2.1'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: pry
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - "~>"
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.13.1
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - "~>"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 0.13.1
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: rake
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - "~>"
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '
|
63
|
+
version: '13.0'
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - "~>"
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: '
|
70
|
+
version: '13.0'
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: rspec
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '3.
|
77
|
+
version: '3.9'
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - "~>"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: '3.
|
84
|
+
version: '3.9'
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: rubocop
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.81.0
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - "~>"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
98
|
+
version: 0.81.0
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: vcr
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
105
|
+
version: '5.1'
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - "~>"
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: '
|
112
|
+
version: '5.1'
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: webmock
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: '3.
|
119
|
+
version: '3.8'
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - "~>"
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: '3.
|
126
|
+
version: '3.8'
|
127
127
|
description: A Ruby client for OpenStack's Mistral <https://wiki.openstack.org/wiki/Mistral>.
|
128
128
|
email:
|
129
129
|
- opensource@civisanalytics.com
|
@@ -179,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
|
-
|
183
|
-
rubygems_version: 2.5.2.3
|
182
|
+
rubygems_version: 3.0.3
|
184
183
|
signing_key:
|
185
184
|
specification_version: 4
|
186
185
|
summary: Ruby client for Mistral.
|