orchestrator_client 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- 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/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b485d794a3db932e0582b9fdfd1f39af599f47d49d1cbcb931804a245771859b
|
4
|
+
data.tar.gz: 5a43d5c16087089270575d5dae0bce64cd46e96040b7607c2b94afe1274dc7d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e33456162bfbf5dfde8c2e26f79cd4ffb2955bd6e9b55b7a5b98eaf5324c573499148e4bd82903d807cc0f79ba638b42427a1123e9b27514870e37f90121593
|
7
|
+
data.tar.gz: 8951b80de1cf8febf203fea0272e25db095ba1844e59e6e5b904cbecb28ab6942a8e5291988eff8f2ac3b5c7297cd7c7f524c7cafede419905180dc3da3ac06f
|
@@ -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
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Puppet
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-24 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
|