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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e686e0883d0f22984bcc8f7f10f1b1f98a9824a8439c8e66ce4cb345128a0b3
4
- data.tar.gz: 73853c08047115fa0da5792043d8469df480fd5d73e659bb627e7f08e87f5ce2
3
+ metadata.gz: 676536da147b3d7689b25b378c695906c6a460de3fc79275ef773d33f28ec147
4
+ data.tar.gz: 2f99e2f7d669ad0d78f0f66593e41a2aa008c20e14e0ac9bb6219eccf545b46f
5
5
  SHA512:
6
- metadata.gz: c9cb2125237818733cdc737d2a2d427b4759fc64857af085076f80a5a3965152369ea3e38329a31eec9fe73498bf3608be1daa8251a5e63cdc253aa3ff149d5b
7
- data.tar.gz: 73546958e6d55201504a8ba6aef5ad15aae51cc40c6b9fafc519c45ea0c09dfa5e0628a9003e6ef68cc3876341409e71c15eefe240795ad5aab33b5360b2810c
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
- 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
@@ -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
@@ -93,5 +93,6 @@ class OrchestratorClient::Job
93
93
  sleep @poll_interval
94
94
  counter += @poll_interval
95
95
  end
96
+ raise OrchestratorClient::JobWaitTimeout
96
97
  end
97
98
  end
@@ -1,3 +1,3 @@
1
1
  class OrchestratorClient
2
- VERSION = '0.5.1'.freeze
2
+ VERSION = '0.5.4'.freeze
3
3
  end
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
15
15
  s.license = "Apache-2.0"
16
16
  s.require_paths = ["lib"]
17
17
 
18
- s.add_dependency 'faraday'
18
+ s.add_dependency 'faraday', '~> 0.17.4'
19
19
  s.add_dependency 'net-http-persistent'
20
20
  end
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.1
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: 2021-01-14 00:00:00.000000000 Z
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: '0'
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: '0'
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.8
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