orchestrator_client 0.4.3 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/spec.yaml +23 -0
- data/Gemfile +2 -0
- data/README.md +9 -3
- data/lib/orchestrator_client/config.rb +2 -1
- data/lib/orchestrator_client/version.rb +1 -1
- data/lib/orchestrator_client.rb +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 93481bb0328a23d6f13e292034cfd87a6fa70a8840f2620c1213b51e9785b352
|
4
|
+
data.tar.gz: 32bbf411fae34bdbbbfbe3194e17136a905aa17732c9065cf14db7a587d0c8e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb35e80b9b9e687d8928e0e086c86829f91f716f1d819d7238493cbcea7944747eaac59f960f1d57d62fa019d6dbd8dbe6eb1c21fa9c5c963ab939b4b7d03b42
|
7
|
+
data.tar.gz: '08a446bc925bbe6ca0048f3d5c0135a1538662a8c44ed53d041677454dd50bb07009eb467c99765cbd4ffe4a600e4b767a880eadaca3d944a39f880f5a58540e'
|
@@ -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/Gemfile
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,8 @@ A simple client for interacting with the Orchestration Services API in Puppet En
|
|
5
5
|
|
6
6
|
## Compatibility
|
7
7
|
|
8
|
-
Currently, this client supports the "V1" endpoints shipped as part of Puppet Enterprise 2016.2
|
8
|
+
Currently, this client supports the "V1" endpoints shipped as part of Puppet Enterprise 2016.2 -
|
9
|
+
2019.8.4.
|
9
10
|
|
10
11
|
## Installation
|
11
12
|
|
@@ -28,6 +29,7 @@ expected to be at `~/.puppetlabs/token` which is the default location used by
|
|
28
29
|
* `User-Agent`- Set `User-Agent` header for HTTP requests. Defaults to `OrchestratorRubyClient/[VERSION]`
|
29
30
|
* `job-poll-interval`- Set the default amount of time to sleep when polling in Orchestrator::Job#wait and #each\_event
|
30
31
|
* `job-poll-timeout`- Set the default maximum amount of time to wait in Orchestrator::Job#wait
|
32
|
+
* `read-timeout` - The time to wait before raising a Timeout exception when making HTTP requests.
|
31
33
|
|
32
34
|
### Example
|
33
35
|
|
@@ -69,9 +71,13 @@ issues](https://github.com/puppetlabs/orchestrator_api-ruby/issues).
|
|
69
71
|
If you are interested in contributing to this project, please see the
|
70
72
|
[Contribution Guidelines](CONTRIBUTING.md)
|
71
73
|
|
72
|
-
##
|
74
|
+
## Releasing
|
73
75
|
|
74
|
-
|
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).
|
75
81
|
|
76
82
|
## License
|
77
83
|
|
@@ -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
|
data/lib/orchestrator_client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orchestrator_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.3
|
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
|
@@ -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,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
- !ruby/object:Gem::Version
|
78
79
|
version: '0'
|
79
80
|
requirements: []
|
80
|
-
|
81
|
-
rubygems_version: 2.5.1
|
81
|
+
rubygems_version: 3.0.9
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Simple Ruby client library for PE Orchestration Services
|