orchestrator_client 0.5.1 → 0.5.4
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/spec.yaml +23 -0
- data/README.md +8 -0
- data/lib/orchestrator_client/config.rb +2 -1
- data/lib/orchestrator_client/error.rb +1 -0
- data/lib/orchestrator_client/job.rb +1 -0
- data/lib/orchestrator_client/version.rb +1 -1
- data/orchestrator_client.gemspec +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 676536da147b3d7689b25b378c695906c6a460de3fc79275ef773d33f28ec147
|
4
|
+
data.tar.gz: 2f99e2f7d669ad0d78f0f66593e41a2aa008c20e14e0ac9bb6219eccf545b46f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3823529e56b77b9945a9b3360abf75d4c79408831bfd90f96996b981147ab87ec06c8cbe94584c82575d14f9435c38ddd53eeb716179bd086c38bdc8e03d1ca0
|
7
|
+
data.tar.gz: e0914bf78b4422d8f65c298e106c698d053458feaa8016ffe21fbf88518526a5c0c3ed2b296cd25c2843865fdb105b3736158c51d329aec1d7dfc158e6877eb1
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: Spec tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
types: [opened, reopened, edited, synchronize]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
|
9
|
+
spec:
|
10
|
+
name: Spec test
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
steps:
|
13
|
+
- name: Checkout repository
|
14
|
+
uses: actions/checkout@v2
|
15
|
+
- name: Setup Ruby
|
16
|
+
uses: ruby/setup-ruby@v1
|
17
|
+
with:
|
18
|
+
ruby-version: 2.7
|
19
|
+
bundler-cache: true
|
20
|
+
- name: Update gems
|
21
|
+
run: bundle update
|
22
|
+
- name: Run tests
|
23
|
+
run: bundle exec rspec
|
data/README.md
CHANGED
@@ -71,6 +71,14 @@ issues](https://github.com/puppetlabs/orchestrator_api-ruby/issues).
|
|
71
71
|
If you are interested in contributing to this project, please see the
|
72
72
|
[Contribution Guidelines](CONTRIBUTING.md)
|
73
73
|
|
74
|
+
## Releasing
|
75
|
+
|
76
|
+
Use the
|
77
|
+
https://cinext-jenkinsmaster-sre-prod-1.delivery.puppetlabs.net/job/qe_orchestrator-client-ruby_init-multijob_master/
|
78
|
+
job to release. This pipeline will update the [version file](lib/orchestrator_client/version.rb),
|
79
|
+
create the tag you specify, and push release [to
|
80
|
+
rubygems](https://rubygems.org/gems/orchestrator_client).
|
81
|
+
|
74
82
|
## License
|
75
83
|
|
76
84
|
See LICENSE.
|
@@ -98,7 +98,8 @@ class OrchestratorClient::Config
|
|
98
98
|
else
|
99
99
|
validate_file('token-file', config['token-file'])
|
100
100
|
token = File.open(config['token-file']) { |f| f.read.strip }
|
101
|
-
|
101
|
+
# If the token file contains illegal characters
|
102
|
+
if token =~ URI::UNSAFE
|
102
103
|
raise OrchestratorClient::ConfigError.new("token-file '#{config['token-file']}' contains illegal characters")
|
103
104
|
end
|
104
105
|
@config['token'] = token
|
@@ -57,3 +57,4 @@ class OrchestratorClient::ApiError::QueryError < OrchestratorClient::ApiError; e
|
|
57
57
|
class OrchestratorClient::ApiError::UnknownError < OrchestratorClient::ApiError; end
|
58
58
|
class OrchestratorClient::ApiError::UnauthorizedError < OrchestratorClient::ApiError; end
|
59
59
|
class OrchestratorClient::BadResponse < RuntimeError; end
|
60
|
+
class OrchestratorClient::JobWaitTimeout < RuntimeError; end
|
data/orchestrator_client.gemspec
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestrator_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.17.4
|
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:
|
26
|
+
version: 0.17.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: net-http-persistent
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +44,7 @@ executables: []
|
|
44
44
|
extensions: []
|
45
45
|
extra_rdoc_files: []
|
46
46
|
files:
|
47
|
+
- ".github/workflows/spec.yaml"
|
47
48
|
- ".gitignore"
|
48
49
|
- CODEOWNERS
|
49
50
|
- CONTRIBUTING.md
|
@@ -77,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
- !ruby/object:Gem::Version
|
78
79
|
version: '0'
|
79
80
|
requirements: []
|
80
|
-
rubygems_version: 3.0.
|
81
|
+
rubygems_version: 3.0.9
|
81
82
|
signing_key:
|
82
83
|
specification_version: 4
|
83
84
|
summary: Simple Ruby client library for PE Orchestration Services
|