ansible_tower_client 0.21.3 → 0.22.0
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 +4 -4
- data/.codeclimate.yml +16 -0
- data/.github/workflows/ci.yaml +35 -0
- data/.rubocop.yml +3 -3
- data/.rubocop_cc.yml +4 -0
- data/.whitesource +3 -0
- data/CHANGELOG.md +12 -1
- data/README.md +1 -1
- data/ansible_tower_client.gemspec +4 -2
- data/lib/ansible_tower_client/connection.rb +5 -4
- data/lib/ansible_tower_client/middleware/raise_tower_error.rb +1 -1
- data/lib/ansible_tower_client/version.rb +1 -1
- metadata +36 -8
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f137537814aa52803c219e3d885b68c6b47825c0934185a0e13ec3f27c9f6229
|
|
4
|
+
data.tar.gz: ef2c9dba39e0d2ced61f346397a112cb1f53475c6a8cca332f028aca268e8283
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 071ac3baf433036707483a9758a69f885568695dfb9da4d7aa93e226c1610d48a0568a2b12373a2fe560c4835ee2e29b249a48834d98546bbea7cdf81afdef29
|
|
7
|
+
data.tar.gz: af81a3bbe8a0a8284f2619f56153ecdaf6b37a5be97154487248894cd86e83f1b8883067f8ce688af9ec8171e5d4e78c3f4fa1fab6fe6827a4e8a946e04e718a
|
data/.codeclimate.yml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
prepare:
|
|
2
|
+
fetch:
|
|
3
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
|
|
4
|
+
path: ".rubocop_base.yml"
|
|
5
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
|
|
6
|
+
path: ".rubocop_cc_base.yml"
|
|
7
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/base.yml
|
|
8
|
+
path: styles/base.yml
|
|
9
|
+
- url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/cc_base.yml
|
|
10
|
+
path: styles/cc_base.yml
|
|
11
|
+
plugins:
|
|
12
|
+
rubocop:
|
|
13
|
+
enabled: true
|
|
14
|
+
config: ".rubocop_cc.yml"
|
|
15
|
+
channel: rubocop-0-82
|
|
16
|
+
version: '2'
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
push:
|
|
5
|
+
branches-ignore:
|
|
6
|
+
- dependabot/*
|
|
7
|
+
- renovate/*
|
|
8
|
+
schedule:
|
|
9
|
+
- cron: 0 0 * * 0
|
|
10
|
+
workflow_dispatch:
|
|
11
|
+
concurrency:
|
|
12
|
+
group: "${{ github.workflow }}-${{ github.ref }}"
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
jobs:
|
|
17
|
+
ci:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
matrix:
|
|
21
|
+
ruby-version:
|
|
22
|
+
- '3.0'
|
|
23
|
+
- '3.1'
|
|
24
|
+
- '3.2'
|
|
25
|
+
- '3.3'
|
|
26
|
+
steps:
|
|
27
|
+
- uses: actions/checkout@v6
|
|
28
|
+
- name: Set up Ruby
|
|
29
|
+
uses: ruby/setup-ruby@v1
|
|
30
|
+
with:
|
|
31
|
+
ruby-version: "${{ matrix.ruby-version }}"
|
|
32
|
+
bundler-cache: true
|
|
33
|
+
timeout-minutes: 30
|
|
34
|
+
- name: Run tests
|
|
35
|
+
run: bundle exec rake
|
data/.rubocop.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
inherit_gem:
|
|
2
|
+
manageiq-style: ".rubocop_base.yml"
|
|
1
3
|
inherit_from:
|
|
2
|
-
-
|
|
3
|
-
# put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well
|
|
4
|
-
- .rubocop_local.yml
|
|
4
|
+
- ".rubocop_local.yml"
|
data/.rubocop_cc.yml
ADDED
data/.whitesource
ADDED
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.22.0] - 2026-01-15
|
|
9
|
+
### Changed
|
|
10
|
+
- Update faraday v2 [(#152)](https://github.com/ansible/ansible_tower_client_ruby/pull/152)
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
- Add GitHub Actions CI to replace Travis CI [(#151)](https://github.com/ansible/ansible_tower_client_ruby/pull/151)
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- Fix FactoryBot trait with static attribute [(#149)](https://github.com/ansible/ansible_tower_client_ruby/pull/149)
|
|
17
|
+
|
|
8
18
|
## [0.21.3] - 2020-07-09
|
|
9
19
|
### Fixed
|
|
10
20
|
- Update dependency on more_core_extensions [(#145)](https://github.com/ansible/ansible_tower_client_ruby/pull/145)
|
|
@@ -150,7 +160,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
150
160
|
### Fixed
|
|
151
161
|
- Adjusted project_spec to test on a Project [(#63)](https://github.com/ansible/ansible_tower_client_ruby/pull/63)
|
|
152
162
|
|
|
153
|
-
[Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.
|
|
163
|
+
[Unreleased]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.22.0...master
|
|
164
|
+
[0.22.0]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.3...v0.22.0
|
|
154
165
|
[0.21.3]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.2...v0.21.3
|
|
155
166
|
[0.21.2]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.1...v0.21.2
|
|
156
167
|
[0.21.1]: https://github.com/ansible/ansible_tower_client_ruby/compare/v0.21.0...v0.21.1
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# AnsibleTowerClient
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/ansible_tower_client)
|
|
4
|
-
[](https://github.com/ManageIQ/ansible_tower_client_ruby/actions/workflows/ci.yaml)
|
|
5
5
|
[](https://codeclimate.com/github/ansible/ansible_tower_client_ruby)
|
|
6
6
|
[](https://gemnasium.com/ansible/ansible_tower_client_ruby)
|
|
7
7
|
[](https://coveralls.io/r/ansible/ansible_tower_client_ruby)
|
|
@@ -17,11 +17,13 @@ Gem::Specification.new do |spec|
|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
18
18
|
|
|
19
19
|
spec.add_runtime_dependency "activesupport"
|
|
20
|
-
spec.add_runtime_dependency "faraday"
|
|
21
|
-
spec.add_runtime_dependency "
|
|
20
|
+
spec.add_runtime_dependency "faraday", "~> 2.0"
|
|
21
|
+
spec.add_runtime_dependency "faraday-retry"
|
|
22
|
+
spec.add_runtime_dependency "faraday-follow_redirects"
|
|
22
23
|
spec.add_runtime_dependency "more_core_extensions", "~> 4.0"
|
|
23
24
|
|
|
24
25
|
spec.add_development_dependency "factory_bot", "~> 4.11"
|
|
26
|
+
spec.add_development_dependency "manageiq-style"
|
|
25
27
|
spec.add_development_dependency "rake", "~> 12.3"
|
|
26
28
|
spec.add_development_dependency "rspec"
|
|
27
29
|
end
|
|
@@ -13,8 +13,9 @@ module AnsibleTowerClient
|
|
|
13
13
|
verify_ssl = verify_ssl == OpenSSL::SSL::VERIFY_NONE ? false : true
|
|
14
14
|
|
|
15
15
|
require 'faraday'
|
|
16
|
-
require '
|
|
16
|
+
require 'faraday/follow_redirects'
|
|
17
17
|
require 'ansible_tower_client/middleware/raise_tower_error'
|
|
18
|
+
|
|
18
19
|
Faraday::Response.register_middleware :raise_tower_error => -> { Middleware::RaiseTowerError }
|
|
19
20
|
|
|
20
21
|
connection_opts = { :ssl => {:verify => verify_ssl} }
|
|
@@ -23,13 +24,13 @@ module AnsibleTowerClient
|
|
|
23
24
|
connection_opts[:request] = options[:request] if options[:request].present?
|
|
24
25
|
|
|
25
26
|
@connection = Faraday.new(options[:base_url], connection_opts) do |f|
|
|
26
|
-
f.
|
|
27
|
-
f.use(
|
|
27
|
+
f.request :json
|
|
28
|
+
f.use(Faraday::FollowRedirects::Middleware, :limit => 3, :standards_compliant => true)
|
|
28
29
|
f.request(:url_encoded)
|
|
29
30
|
f.response(:raise_tower_error)
|
|
30
31
|
f.response(:logger, logger)
|
|
31
32
|
f.adapter(Faraday.default_adapter)
|
|
32
|
-
f.
|
|
33
|
+
f.request(:authorization, :basic, options[:username], options[:password])
|
|
33
34
|
end
|
|
34
35
|
end
|
|
35
36
|
|
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ansible_tower_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandon Dunne
|
|
8
8
|
- Drew Bomhof
|
|
9
|
-
autorequire:
|
|
10
9
|
bindir: exe
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: activesupport
|
|
@@ -27,6 +26,20 @@ dependencies:
|
|
|
27
26
|
version: '0'
|
|
28
27
|
- !ruby/object:Gem::Dependency
|
|
29
28
|
name: faraday
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '2.0'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '2.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: faraday-retry
|
|
30
43
|
requirement: !ruby/object:Gem::Requirement
|
|
31
44
|
requirements:
|
|
32
45
|
- - ">="
|
|
@@ -40,7 +53,7 @@ dependencies:
|
|
|
40
53
|
- !ruby/object:Gem::Version
|
|
41
54
|
version: '0'
|
|
42
55
|
- !ruby/object:Gem::Dependency
|
|
43
|
-
name:
|
|
56
|
+
name: faraday-follow_redirects
|
|
44
57
|
requirement: !ruby/object:Gem::Requirement
|
|
45
58
|
requirements:
|
|
46
59
|
- - ">="
|
|
@@ -81,6 +94,20 @@ dependencies:
|
|
|
81
94
|
- - "~>"
|
|
82
95
|
- !ruby/object:Gem::Version
|
|
83
96
|
version: '4.11'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: manageiq-style
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - ">="
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - ">="
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '0'
|
|
84
111
|
- !ruby/object:Gem::Dependency
|
|
85
112
|
name: rake
|
|
86
113
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -117,11 +144,14 @@ executables: []
|
|
|
117
144
|
extensions: []
|
|
118
145
|
extra_rdoc_files: []
|
|
119
146
|
files:
|
|
147
|
+
- ".codeclimate.yml"
|
|
148
|
+
- ".github/workflows/ci.yaml"
|
|
120
149
|
- ".gitignore"
|
|
121
150
|
- ".rspec"
|
|
122
151
|
- ".rubocop.yml"
|
|
152
|
+
- ".rubocop_cc.yml"
|
|
123
153
|
- ".rubocop_local.yml"
|
|
124
|
-
- ".
|
|
154
|
+
- ".whitesource"
|
|
125
155
|
- CHANGELOG.md
|
|
126
156
|
- Gemfile
|
|
127
157
|
- LICENSE.txt
|
|
@@ -168,7 +198,6 @@ homepage: https://github.com/Ansible/ansible_tower_client_ruby
|
|
|
168
198
|
licenses:
|
|
169
199
|
- MIT
|
|
170
200
|
metadata: {}
|
|
171
|
-
post_install_message:
|
|
172
201
|
rdoc_options: []
|
|
173
202
|
require_paths:
|
|
174
203
|
- lib
|
|
@@ -183,8 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
183
212
|
- !ruby/object:Gem::Version
|
|
184
213
|
version: '0'
|
|
185
214
|
requirements: []
|
|
186
|
-
rubygems_version: 3.
|
|
187
|
-
signing_key:
|
|
215
|
+
rubygems_version: 3.6.9
|
|
188
216
|
specification_version: 4
|
|
189
217
|
summary: Ansible Tower REST API wrapper gem
|
|
190
218
|
test_files: []
|