manageiq-api-client 0.6.0 → 0.8.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/.github/workflows/ci.yaml +17 -19
- data/CHANGELOG.md +15 -1
- data/Gemfile +5 -5
- data/README.md +0 -2
- data/lib/manageiq/api/client/identity.rb +2 -0
- data/lib/manageiq/api/client/product_info.rb +4 -2
- data/lib/manageiq/api/client/server_info.rb +6 -2
- data/lib/manageiq/api/client/version.rb +1 -1
- data/lib/manageiq/api/client.rb +1 -0
- data/manageiq-api-client.gemspec +2 -2
- data/renovate.json +2 -3
- metadata +8 -13
- data/.codeclimate.yml +0 -16
- data/.rubocop_cc.yml +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 744148d0e81fdc1ba755bcdb33efabf4e5d9b0cdd2e5434426286ca7dd9a3bcc
|
|
4
|
+
data.tar.gz: 33bbc1d16ee742562aa7b7edba73a30fa237f0c4fe9930c23dc09bc28a7f2727
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e233afea2f115d4135c782e173251f3dd186deb185ad0f49546bc1dd93726d643729fc5e184ced39e29d986c5a8be2be9db7dccdbc59100a2fd9c49c059b7b8a
|
|
7
|
+
data.tar.gz: 5774a79d323a6069c23afef835b63a00b24f22713a9c2d36f480cf11f37fd503ebb5064fcff41208ae41f34c29c7f6a6805481ccc626e98ab863cb7f5a98e059
|
data/.github/workflows/ci.yaml
CHANGED
|
@@ -1,42 +1,40 @@
|
|
|
1
1
|
name: CI
|
|
2
|
-
|
|
3
2
|
on:
|
|
4
|
-
push:
|
|
5
3
|
pull_request:
|
|
4
|
+
push:
|
|
5
|
+
branches-ignore:
|
|
6
|
+
- dependabot/*
|
|
7
|
+
- renovate/*
|
|
6
8
|
schedule:
|
|
7
|
-
- cron:
|
|
8
|
-
|
|
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
|
|
9
16
|
jobs:
|
|
10
17
|
ci:
|
|
11
18
|
runs-on: ubuntu-latest
|
|
12
19
|
strategy:
|
|
13
20
|
matrix:
|
|
14
21
|
ruby-version:
|
|
15
|
-
- '3.0'
|
|
16
|
-
- '3.1'
|
|
17
22
|
- '3.2'
|
|
18
23
|
- '3.3'
|
|
24
|
+
- '3.4'
|
|
19
25
|
rails-version:
|
|
20
|
-
- '7.0'
|
|
21
|
-
- '7.1'
|
|
22
26
|
- '7.2'
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
rails-version: '7.2'
|
|
27
|
+
- '8.0'
|
|
28
|
+
- '8.1'
|
|
26
29
|
env:
|
|
27
|
-
TEST_RAILS_VERSION: ${{ matrix.rails-version }}
|
|
28
|
-
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
30
|
+
TEST_RAILS_VERSION: "${{ matrix.rails-version }}"
|
|
29
31
|
steps:
|
|
30
|
-
- uses: actions/checkout@
|
|
32
|
+
- uses: actions/checkout@v7
|
|
31
33
|
- name: Set up Ruby
|
|
32
34
|
uses: ruby/setup-ruby@v1
|
|
33
35
|
with:
|
|
34
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
36
|
+
ruby-version: "${{ matrix.ruby-version }}"
|
|
35
37
|
bundler-cache: true
|
|
36
38
|
timeout-minutes: 30
|
|
37
39
|
- name: Run tests
|
|
38
40
|
run: bundle exec rake
|
|
39
|
-
- name: Report code coverage
|
|
40
|
-
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
|
|
41
|
-
continue-on-error: true
|
|
42
|
-
uses: paambaati/codeclimate-action@v9
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.8.0] - 2026-07-15
|
|
10
|
+
### Added
|
|
11
|
+
- Add Rails 8.1 support [[#167]](https://github.com/ManageIQ/manageiq-api-client/pull/167)
|
|
12
|
+
- Add new attributes to `Identity`, `ProductInfo`, and `ServerInfo` from the base entrypoint response (`miq_groups`, `branding_info`, `authentication`, `release`, `time`, `enterprise_href`, `plugins`) [[#138]](https://github.com/ManageIQ/manageiq-api-client/pull/138)
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Replace Automation Manager strings with Automation Provider [[#165]](https://github.com/ManageIQ/manageiq-api-client/pull/165)
|
|
16
|
+
|
|
17
|
+
## [0.7.0] - 2026-01-16
|
|
18
|
+
### Changed
|
|
19
|
+
- Add ruby/rails 3.4/8.0, drop EOL rubies/rails less than 3.2/7.2. [[#139]](https://github.com/ManageIQ/manageiq-api-client/pull/139)
|
|
20
|
+
|
|
9
21
|
## [0.6.0] - 2025-01-03
|
|
10
22
|
### Changed
|
|
11
23
|
- Add rails 7.1 support, drop rails 6.0-6.1 and rubies less than 3.0. [[#129]](https://github.com/ManageIQ/manageiq-api-client/pull/129)
|
|
@@ -83,7 +95,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
83
95
|
- Add CHANGELOG.md
|
|
84
96
|
- Update README with simple instructions reflecting the query interface.
|
|
85
97
|
|
|
86
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.
|
|
98
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.8.0...HEAD
|
|
99
|
+
[0.8.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.7.0...v0.8.0
|
|
100
|
+
[0.7.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.6.0...v0.7.0
|
|
87
101
|
[0.6.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.5.0...v0.6.0
|
|
88
102
|
[0.5.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.4.1...v0.5.0
|
|
89
103
|
[0.4.1]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.4.0...v0.4.1
|
data/Gemfile
CHANGED
|
@@ -9,12 +9,12 @@ eval_gemfile(dev_gemfile) if File.exist?(dev_gemfile)
|
|
|
9
9
|
|
|
10
10
|
minimum_version =
|
|
11
11
|
case ENV['TEST_RAILS_VERSION']
|
|
12
|
-
when "
|
|
13
|
-
"~>
|
|
14
|
-
when "
|
|
15
|
-
"~>
|
|
12
|
+
when "8.1"
|
|
13
|
+
"~>8.1.3"
|
|
14
|
+
when "8.0"
|
|
15
|
+
"~>8.0.4"
|
|
16
16
|
else
|
|
17
|
-
"~>7.
|
|
17
|
+
"~>7.2.3"
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
gem "activesupport", minimum_version
|
data/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/manageiq-api-client)
|
|
4
4
|
[](https://github.com/ManageIQ/manageiq-api-client/actions/workflows/ci.yaml)
|
|
5
|
-
[](https://codeclimate.com/github/ManageIQ/manageiq-api-client)
|
|
6
|
-
[](https://codeclimate.com/github/ManageIQ/manageiq-api-client/coverage)
|
|
7
5
|
|
|
8
6
|
This gem provides Ruby access to the ManageIQ API by exposing the ManageIQ
|
|
9
7
|
collections, resources and related actions as Ruby objects and equivalent methods.
|
|
@@ -11,6 +11,7 @@ module ManageIQ
|
|
|
11
11
|
attr_reader :role_href
|
|
12
12
|
attr_reader :tenant
|
|
13
13
|
attr_reader :groups
|
|
14
|
+
attr_reader :miq_groups
|
|
14
15
|
|
|
15
16
|
def initialize(identity_spec)
|
|
16
17
|
@userid = identity_spec["userid"]
|
|
@@ -22,6 +23,7 @@ module ManageIQ
|
|
|
22
23
|
@role_href = identity_spec["role_href"]
|
|
23
24
|
@tenant = identity_spec["tenant"]
|
|
24
25
|
@groups = identity_spec["groups"]
|
|
26
|
+
@miq_groups = identity_spec["miq_groups"]
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
@@ -7,10 +7,12 @@ module ManageIQ
|
|
|
7
7
|
attr_reader :copyright
|
|
8
8
|
attr_reader :support_website
|
|
9
9
|
attr_reader :support_website_text
|
|
10
|
+
attr_reader :branding_info
|
|
11
|
+
attr_reader :authentication
|
|
10
12
|
|
|
11
13
|
def initialize(product_info)
|
|
12
|
-
@name, @name_full, @copyright, @support_website, @support_website_text =
|
|
13
|
-
product_info.values_at("name", "name_full", "copyright", "support_website", "support_website_text")
|
|
14
|
+
@name, @name_full, @copyright, @support_website, @support_website_text, @branding_info, @authentication =
|
|
15
|
+
product_info.values_at("name", "name_full", "copyright", "support_website", "support_website_text", "branding_info", "authentication")
|
|
14
16
|
end
|
|
15
17
|
end
|
|
16
18
|
end
|
|
@@ -8,10 +8,14 @@ module ManageIQ
|
|
|
8
8
|
attr_reader :server_href
|
|
9
9
|
attr_reader :zone_href
|
|
10
10
|
attr_reader :region_href
|
|
11
|
+
attr_reader :release
|
|
12
|
+
attr_reader :time
|
|
13
|
+
attr_reader :enterprise_href
|
|
14
|
+
attr_reader :plugins
|
|
11
15
|
|
|
12
16
|
def initialize(server_info)
|
|
13
|
-
@version, @build, @appliance, @server_href, @zone_href, @region_href =
|
|
14
|
-
server_info.values_at("version", "build", "appliance", "server_href", "zone_href", "region_href")
|
|
17
|
+
@version, @build, @appliance, @server_href, @zone_href, @region_href, @release, @time, @enterprise_href, @plugins =
|
|
18
|
+
server_info.values_at("version", "build", "appliance", "server_href", "zone_href", "region_href", "release", "time", "enterprise_href", "plugins")
|
|
15
19
|
end
|
|
16
20
|
end
|
|
17
21
|
end
|
data/lib/manageiq/api/client.rb
CHANGED
data/manageiq-api-client.gemspec
CHANGED
|
@@ -23,9 +23,9 @@ Gem::Specification.new do |spec|
|
|
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
24
24
|
spec.require_paths = ["lib"]
|
|
25
25
|
|
|
26
|
-
spec.required_ruby_version = '>= 3.
|
|
26
|
+
spec.required_ruby_version = '>= 3.2'
|
|
27
27
|
|
|
28
|
-
spec.add_dependency "activesupport", ">= 7.
|
|
28
|
+
spec.add_dependency "activesupport", ">= 7.2", "<8.2"
|
|
29
29
|
spec.add_dependency "faraday", ">= 1.0", "< 3.0"
|
|
30
30
|
spec.add_dependency "faraday-follow_redirects"
|
|
31
31
|
spec.add_dependency "json", "~> 2.3"
|
data/renovate.json
CHANGED
metadata
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: manageiq-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alberto Bellotti
|
|
8
8
|
- Jason Frey
|
|
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
|
|
@@ -17,20 +16,20 @@ dependencies:
|
|
|
17
16
|
requirements:
|
|
18
17
|
- - ">="
|
|
19
18
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '7.
|
|
19
|
+
version: '7.2'
|
|
21
20
|
- - "<"
|
|
22
21
|
- !ruby/object:Gem::Version
|
|
23
|
-
version: '8.
|
|
22
|
+
version: '8.2'
|
|
24
23
|
type: :runtime
|
|
25
24
|
prerelease: false
|
|
26
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
27
26
|
requirements:
|
|
28
27
|
- - ">="
|
|
29
28
|
- !ruby/object:Gem::Version
|
|
30
|
-
version: '7.
|
|
29
|
+
version: '7.2'
|
|
31
30
|
- - "<"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '8.
|
|
32
|
+
version: '8.2'
|
|
34
33
|
- !ruby/object:Gem::Dependency
|
|
35
34
|
name: faraday
|
|
36
35
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -187,12 +186,10 @@ executables: []
|
|
|
187
186
|
extensions: []
|
|
188
187
|
extra_rdoc_files: []
|
|
189
188
|
files:
|
|
190
|
-
- ".codeclimate.yml"
|
|
191
189
|
- ".github/workflows/ci.yaml"
|
|
192
190
|
- ".gitignore"
|
|
193
191
|
- ".rspec"
|
|
194
192
|
- ".rubocop.yml"
|
|
195
|
-
- ".rubocop_cc.yml"
|
|
196
193
|
- ".rubocop_local.yml"
|
|
197
194
|
- ".whitesource"
|
|
198
195
|
- CHANGELOG.md
|
|
@@ -230,7 +227,6 @@ homepage: http://github.com/ManageIQ/manageiq-api-client
|
|
|
230
227
|
licenses:
|
|
231
228
|
- MIT
|
|
232
229
|
metadata: {}
|
|
233
|
-
post_install_message:
|
|
234
230
|
rdoc_options: []
|
|
235
231
|
require_paths:
|
|
236
232
|
- lib
|
|
@@ -238,15 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
238
234
|
requirements:
|
|
239
235
|
- - ">="
|
|
240
236
|
- !ruby/object:Gem::Version
|
|
241
|
-
version: '3.
|
|
237
|
+
version: '3.2'
|
|
242
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
239
|
requirements:
|
|
244
240
|
- - ">="
|
|
245
241
|
- !ruby/object:Gem::Version
|
|
246
242
|
version: '0'
|
|
247
243
|
requirements: []
|
|
248
|
-
rubygems_version: 3.
|
|
249
|
-
signing_key:
|
|
244
|
+
rubygems_version: 3.6.9
|
|
250
245
|
specification_version: 4
|
|
251
246
|
summary: ManageIQ API Client
|
|
252
247
|
test_files: []
|
data/.codeclimate.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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-1-56-3
|
|
16
|
-
version: '2'
|
data/.rubocop_cc.yml
DELETED