foreman_api_client 1.0.2 → 1.1.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 +1 -1
- data/.github/workflows/ci.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/README.md +5 -4
- data/lib/foreman_api_client/connection.rb +4 -1
- data/lib/foreman_api_client/version.rb +1 -1
- data/renovate.json +5 -0
- metadata +4 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84f52cfb312b85ddfe431472ea41512f265cf08b42c040c6081f97e11c8ac971
|
4
|
+
data.tar.gz: c28a2d4f9a434080e4b9cd7bfcad0e4072d54f9a8aa5d365bc9fca91dc7e1c45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73512cb83f5a851c04189838ea186e841f35c235fb746e65a269e79de07c6daf3c680c535dd3820caa336aeedf91b208e0fc0b0b93035fd06d99b9e66c4dc0fe
|
7
|
+
data.tar.gz: 342220033c10d96302648591c56cd3aef256ae6237378c3ebd39b04f7f10a940ed4589eaad198dd9e0d2044d222dab1646a664147ba3ac6eac9f9b93ca1dfbf9
|
data/.codeclimate.yml
CHANGED
data/.github/workflows/ci.yaml
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
+
---
|
1
2
|
name: CI
|
2
|
-
|
3
3
|
on:
|
4
4
|
push:
|
5
5
|
pull_request:
|
6
6
|
schedule:
|
7
|
-
- cron:
|
8
|
-
|
7
|
+
- cron: 0 0 * * 0
|
9
8
|
jobs:
|
10
9
|
ci:
|
11
10
|
runs-on: ubuntu-latest
|
@@ -16,19 +15,20 @@ jobs:
|
|
16
15
|
- '2.6'
|
17
16
|
- '2.7'
|
18
17
|
- '3.0'
|
18
|
+
- '3.1'
|
19
19
|
env:
|
20
|
-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
20
|
+
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
|
21
21
|
steps:
|
22
|
-
- uses: actions/checkout@
|
22
|
+
- uses: actions/checkout@v5
|
23
23
|
- name: Set up Ruby
|
24
24
|
uses: ruby/setup-ruby@v1
|
25
25
|
with:
|
26
|
-
ruby-version: ${{ matrix.ruby-version }}
|
26
|
+
ruby-version: "${{ matrix.ruby-version }}"
|
27
27
|
bundler-cache: true
|
28
28
|
timeout-minutes: 30
|
29
29
|
- name: Run tests
|
30
30
|
run: bundle exec rake
|
31
31
|
- name: Report code coverage
|
32
|
-
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '
|
32
|
+
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }}
|
33
33
|
continue-on-error: true
|
34
|
-
uses: paambaati/codeclimate-action@
|
34
|
+
uses: paambaati/codeclimate-action@v9
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.0] - 2025-10-01
|
10
|
+
### Added
|
11
|
+
- Support setting `ssl_ca_file` [[#35](https://github.com/ManageIQ/foreman_api_client/pull/35)]
|
12
|
+
|
9
13
|
## [1.0.2] - 2022-09-08
|
10
14
|
### Changed
|
11
15
|
- Support Ruby 3.0 [[#20](https://github.com/ManageIQ/foreman_api_client/pull/20)]
|
data/README.md
CHANGED
@@ -23,10 +23,11 @@ And then execute:
|
|
23
23
|
require 'foreman_api_client'
|
24
24
|
ForemanApiClient.logger = Logger.new(STDOUT)
|
25
25
|
connection = ForemanApiClient::Connection.new(
|
26
|
-
:
|
27
|
-
:
|
28
|
-
:
|
29
|
-
:
|
26
|
+
base_url: 'https://foreman.example.com',
|
27
|
+
username: 'API_USER',
|
28
|
+
password: 'API_PASSWORD',
|
29
|
+
verify_ssl: true, # optional: Defaults to `true`
|
30
|
+
ssl_ca_file: '/path/to/ssl_ca_file.pem', # optional: Path to CA certificate file.
|
30
31
|
)
|
31
32
|
c.host(1)
|
32
33
|
=> #<ForemanApiClient::Host:0x0055b8a05daa58 ...>
|
@@ -10,7 +10,10 @@ module ForemanApiClient
|
|
10
10
|
connection_attrs[:uri] = connection_attrs.delete(:base_url)
|
11
11
|
connection_attrs[:api_version] ||= 2
|
12
12
|
connection_attrs[:apidoc_cache_dir] ||= tmpdir
|
13
|
-
options = {
|
13
|
+
options = {
|
14
|
+
verify_ssl: connection_attrs.delete(:verify_ssl),
|
15
|
+
ssl_ca_file: connection_attrs.delete(:ssl_ca_file)
|
16
|
+
}.compact
|
14
17
|
@api = ApipieBindings::API.new(connection_attrs, options)
|
15
18
|
end
|
16
19
|
|
data/renovate.json
ADDED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keenan Brock
|
8
8
|
- Brandon Dunne
|
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: apipie-bindings
|
@@ -154,11 +153,11 @@ files:
|
|
154
153
|
- lib/foreman_api_client/null_logger.rb
|
155
154
|
- lib/foreman_api_client/paged_response.rb
|
156
155
|
- lib/foreman_api_client/version.rb
|
156
|
+
- renovate.json
|
157
157
|
homepage: https://github.com/ManageIQ/foreman_api_client
|
158
158
|
licenses:
|
159
159
|
- Apache-2.0
|
160
160
|
metadata: {}
|
161
|
-
post_install_message:
|
162
161
|
rdoc_options: []
|
163
162
|
require_paths:
|
164
163
|
- lib
|
@@ -173,8 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
172
|
- !ruby/object:Gem::Version
|
174
173
|
version: '0'
|
175
174
|
requirements: []
|
176
|
-
rubygems_version: 3.
|
177
|
-
signing_key:
|
175
|
+
rubygems_version: 3.6.7
|
178
176
|
specification_version: 4
|
179
177
|
summary: Foreman apipie-bindings wrapper
|
180
178
|
test_files: []
|