mistral_client 2.0.0 → 3.0.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: 34f8fe4927bf0a63c4116a071881feeaa08c2e7aaf395ffa6fda00be01a25a3d
4
- data.tar.gz: 71c54308a991fd231ab0689577d19a424de75768c149ab3e02e8703e7f55d1c1
3
+ metadata.gz: 90addb71051ae5cbbb705a0fe9854e1886679dc13925b11d50ea30e099c76642
4
+ data.tar.gz: c2f00c0eceec0bf3e36c69869d88cd828b6a358fb75abafa6394b86bff15fae3
5
5
  SHA512:
6
- metadata.gz: 551bae7ab6e7a7758882c7af6af1f5c6aa6ce829a6eff64c74e337480f2fdaced3bc0d49f2107aab1f27edcbdd7df3732a874d9a2b0193f0b2b3a753d78ca65b
7
- data.tar.gz: a83d532bee4796185fffedc1364f7ec123b30594e16742c2a0b9e061b63da026a32d32bf911860424b0f6e3b182d81f984b27cf8ae28fd249c902fdcfddf6c5f
6
+ metadata.gz: f0a9877af1fec3a8dbe35eac14106303d943b3a19961957cfc0bf275efe69847f4cb1c9f235232925496d68d8b15da18dec67987f7daa674920e3b98ef5e89fe
7
+ data.tar.gz: 225f79f8b62fc39c86101d2200f2c7ebc639b05a91c1f91d1d58bfd8b12d8149fe406e30cd3268a0efd2734574d7b8ab3f701ee18de573d0ba028795939c42ac
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.5
2
+ TargetRubyVersion: 3.1
3
3
  NewCops: disable
4
4
  SuggestExtensions: false
5
5
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.0.0
1
+ 3.1.4
data/.travis.yml CHANGED
@@ -1,12 +1,7 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.5.8
5
- - 2.6.6
6
- - 2.7.2
7
- - 3.0.0
4
+ - 3.1.4
5
+ - 3.2.2
8
6
  before_install:
9
7
  - gem install bundler
10
- branches:
11
- only:
12
- - master
@@ -64,7 +64,7 @@ module MistralClient
64
64
  else
65
65
  { 'Content-Type' => 'text/plain' }
66
66
  end
67
- options = @http_options.merge(headers: headers, body: body)
67
+ options = @http_options.merge(headers:, body:)
68
68
  resp = HTTParty.send(verb, "#{@base}/#{path}", options)
69
69
  check_for_error(resp)
70
70
  JSON.parse(resp.body)
@@ -35,7 +35,7 @@ module MistralClient
35
35
  body = {}
36
36
  body[:description] = description unless description.nil?
37
37
  body[:state] = state if state
38
- body[:params] = { env: env } if env
38
+ body[:params] = { env: } if env
39
39
 
40
40
  return if body.empty?
41
41
 
@@ -7,7 +7,7 @@ module MistralClient
7
7
 
8
8
  definition = File.read(definition) if File.exist?(definition)
9
9
  # Called outside the if/else to validate the YAML.
10
- parsed = YAML.safe_load(definition, [], [], true)
10
+ parsed = YAML.safe_load(definition, aliases: true)
11
11
  if defined? massage_definition
12
12
  massage_definition(parsed)
13
13
  else
@@ -17,7 +17,7 @@ module MistralClient
17
17
  self
18
18
  end
19
19
 
20
- def list(params = {})
20
+ def list(**params)
21
21
  resp = @server.get("#{self.class::PATH}?#{URI.encode_www_form(params)}")
22
22
  resp[self.class::PATH].map do |t|
23
23
  task = self.class.new(@server)
@@ -1,3 +1,3 @@
1
1
  module MistralClient
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '3.0.0'.freeze
3
3
  end
@@ -25,9 +25,9 @@ module MistralClient
25
25
  def execute!(env: nil, task_name: nil, input: nil)
26
26
  Execution.new(@server,
27
27
  workflow_id: @id,
28
- env: env,
29
- task_name: task_name,
30
- input: input)
28
+ env:,
29
+ task_name:,
30
+ input:)
31
31
  end
32
32
 
33
33
  def valid?(definition)
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/civisanalytics/mistral_client'
15
15
  spec.license = 'BSD-3-Clause'
16
16
 
17
- spec.required_ruby_version = ['>= 2.5', '< 3.1']
17
+ spec.required_ruby_version = ['>= 3.1', '< 4']
18
18
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
19
19
  f.match(%r{^(test|spec|features)/})
20
20
  end
@@ -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.1'
27
- spec.add_development_dependency 'pry', '~> 0.13.1'
25
+ spec.add_dependency 'httparty', '~> 0.21.0'
26
+ spec.add_development_dependency 'bundler', '~> 2.5.7'
27
+ spec.add_development_dependency 'pry', '~> 0.14.2'
28
28
  spec.add_development_dependency 'rake', '~> 13.0'
29
- spec.add_development_dependency 'rspec', '~> 3.9'
30
- spec.add_development_dependency 'rubocop', '~> 1.9.1'
31
- spec.add_development_dependency 'vcr', '~> 5.1'
32
- spec.add_development_dependency 'webmock', '~> 3.8'
29
+ spec.add_development_dependency 'rspec', '~> 3.13.0'
30
+ spec.add_development_dependency 'rubocop', '~> 1.62.1'
31
+ spec.add_development_dependency 'vcr', '~> 6.2'
32
+ spec.add_development_dependency 'webmock', '~> 3.23'
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: 2.0.0
4
+ version: 3.0.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: 2021-02-09 00:00:00.000000000 Z
13
+ date: 2024-04-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httparty
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '0.15'
21
+ version: 0.21.0
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.21.0
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.1'
35
+ version: 2.5.7
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.1'
42
+ version: 2.5.7
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.13.1
49
+ version: 0.14.2
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.13.1
56
+ version: 0.14.2
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: rake
59
59
  requirement: !ruby/object:Gem::Requirement
@@ -74,56 +74,56 @@ dependencies:
74
74
  requirements:
75
75
  - - "~>"
76
76
  - !ruby/object:Gem::Version
77
- version: '3.9'
77
+ version: 3.13.0
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.9'
84
+ version: 3.13.0
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: 1.9.1
91
+ version: 1.62.1
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: 1.9.1
98
+ version: 1.62.1
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: '5.1'
105
+ version: '6.2'
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: '5.1'
112
+ version: '6.2'
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.8'
119
+ version: '3.23'
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.8'
126
+ version: '3.23'
127
127
  description: A Ruby client for OpenStack's Mistral <https://docs.openstack.org/mistral/latest/>.
128
128
  email:
129
129
  - opensource@civisanalytics.com
@@ -172,17 +172,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  requirements:
173
173
  - - ">="
174
174
  - !ruby/object:Gem::Version
175
- version: '2.5'
175
+ version: '3.1'
176
176
  - - "<"
177
177
  - !ruby/object:Gem::Version
178
- version: '3.1'
178
+ version: '4'
179
179
  required_rubygems_version: !ruby/object:Gem::Requirement
180
180
  requirements:
181
181
  - - ">="
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.2.3
185
+ rubygems_version: 3.3.26
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Ruby client for Mistral.