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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e1ff4832667d7c6dafef681f090dc8272db58fad74929c128159c8ecdb70050d
4
- data.tar.gz: 8ae32d68603a45c29df7203fe24b16571b11eab18c9a080dd204a9bcfe68f6cf
3
+ metadata.gz: 84f52cfb312b85ddfe431472ea41512f265cf08b42c040c6081f97e11c8ac971
4
+ data.tar.gz: c28a2d4f9a434080e4b9cd7bfcad0e4072d54f9a8aa5d365bc9fca91dc7e1c45
5
5
  SHA512:
6
- metadata.gz: 489aa232414c0fa7cdf5e4545e5256044ca7e491313116d3f2f79b4fc9d1405f2f01172f797e8993152a94240f8f31085d8f37bd6a0caeda4464e12aac5fe280
7
- data.tar.gz: 673a92c87d9536c48a06bd01c7240ce658611bdd994bc181960fd23ecca848660a2027a8deee74fc911608ffd61314b81f8e4be0bc82bd13cf20407bba2e267c
6
+ metadata.gz: 73512cb83f5a851c04189838ea186e841f35c235fb746e65a269e79de07c6daf3c680c535dd3820caa336aeedf91b208e0fc0b0b93035fd06d99b9e66c4dc0fe
7
+ data.tar.gz: 342220033c10d96302648591c56cd3aef256ae6237378c3ebd39b04f7f10a940ed4589eaad198dd9e0d2044d222dab1646a664147ba3ac6eac9f9b93ca1dfbf9
data/.codeclimate.yml CHANGED
@@ -12,5 +12,5 @@ plugins:
12
12
  rubocop:
13
13
  enabled: true
14
14
  config: ".rubocop_cc.yml"
15
- channel: rubocop-0-82
15
+ channel: rubocop-1-56-3
16
16
  version: '2'
@@ -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: '0 0 * * 0'
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@v2
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 == '2.7' }}
32
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' }}
33
33
  continue-on-error: true
34
- uses: paambaati/codeclimate-action@v3.0.0
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
- :base_url => base_url,
27
- :username => username,
28
- :password => password,
29
- :verify_ssl => verify_ssl
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 = {:verify_ssl => connection_attrs.delete(:verify_ssl)}
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
 
@@ -1,3 +1,3 @@
1
1
  module ForemanApiClient
2
- VERSION = "1.0.2"
2
+ VERSION = "1.1.0"
3
3
  end
data/renovate.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "inheritConfig": true,
4
+ "inheritConfigRepoName": "manageiq/renovate-config"
5
+ }
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.2
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: 2022-09-08 00:00:00.000000000 Z
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.3.18
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: []