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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e686e0883d0f22984bcc8f7f10f1b1f98a9824a8439c8e66ce4cb345128a0b3
4
- data.tar.gz: 73853c08047115fa0da5792043d8469df480fd5d73e659bb627e7f08e87f5ce2
3
+ metadata.gz: b485d794a3db932e0582b9fdfd1f39af599f47d49d1cbcb931804a245771859b
4
+ data.tar.gz: 5a43d5c16087089270575d5dae0bce64cd46e96040b7607c2b94afe1274dc7d9
5
5
  SHA512:
6
- metadata.gz: c9cb2125237818733cdc737d2a2d427b4759fc64857af085076f80a5a3965152369ea3e38329a31eec9fe73498bf3608be1daa8251a5e63cdc253aa3ff149d5b
7
- data.tar.gz: 73546958e6d55201504a8ba6aef5ad15aae51cc40c6b9fafc519c45ea0c09dfa5e0628a9003e6ef68cc3876341409e71c15eefe240795ad5aab33b5360b2810c
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
- if token != URI.escape(token)
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
@@ -1,3 +1,3 @@
1
1
  class OrchestratorClient
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.2'.freeze
3
3
  end
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.1
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-01-14 00:00:00.000000000 Z
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