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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d179d85c7b1f2e913b992219e730f1fbe8af33c0
4
- data.tar.gz: ca300a02de26f8669081e5a182e87177334498d7
2
+ SHA256:
3
+ metadata.gz: 93481bb0328a23d6f13e292034cfd87a6fa70a8840f2620c1213b51e9785b352
4
+ data.tar.gz: 32bbf411fae34bdbbbfbe3194e17136a905aa17732c9065cf14db7a587d0c8e6
5
5
  SHA512:
6
- metadata.gz: 59fe35d43fac64ba909f69b253ec7cf446d63442e2857c203c5a7235fd4c53b5f15bba11f9096e9dfa7b2243cab833ba3886c1a574da10acdb21474f963e9d24
7
- data.tar.gz: 05f262caf8791aab7b4883180a54bcec71c2b8bd799778e57a9262ff61115de9d6145e2c2b19e30db323880f094fa16ec614c0e668871f9098c199ade6d4b261
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
@@ -9,4 +9,6 @@ end
9
9
 
10
10
  group :development do
11
11
  gem 'pry'
12
+ gem 'pry-stack_explorer'
13
+ gem 'pry-byebug'
12
14
  end
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
- ## Authors
74
+ ## Releasing
73
75
 
74
- Tom Linkin <tom@puppet.com>
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
- 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.4.3'.freeze
2
+ VERSION = '0.5.3'.freeze
3
3
  end
@@ -33,6 +33,7 @@ class OrchestratorClient
33
33
  else
34
34
  f.adapter :net_http_persistent, pool_size: 5 do |http|
35
35
  http.idle_timeout = 30
36
+ http.read_timeout = config['read-timeout'] if config['read-timeout']
36
37
  end
37
38
  end
38
39
  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.4.3
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: 2019-09-20 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
@@ -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
- rubyforge_project:
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