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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d88e73d2514e155572b97745897b17079a1928a940594689d46be83e9ac627c
4
- data.tar.gz: b71650d13b819c6583d65b551e73d3567fb7073579dea3797ca3400348be7193
3
+ metadata.gz: 744148d0e81fdc1ba755bcdb33efabf4e5d9b0cdd2e5434426286ca7dd9a3bcc
4
+ data.tar.gz: 33bbc1d16ee742562aa7b7edba73a30fa237f0c4fe9930c23dc09bc28a7f2727
5
5
  SHA512:
6
- metadata.gz: a20a206b5d392b4215f16a306c199b789327fb8471d8e7283e6c8b4715d5edfd8fbe420ef6fcf9ef7645376e614f5a04590cab535832862b54e8c702616c068a
7
- data.tar.gz: c1b0a4910db51962290a3a24eb306678bc16cc3d79533ad1b1e7810f3c4e05eb2f1fc325f73b42521160379fa9b55d8e065760566de7347861d78b5660e8a889
6
+ metadata.gz: e233afea2f115d4135c782e173251f3dd186deb185ad0f49546bc1dd93726d643729fc5e184ced39e29d986c5a8be2be9db7dccdbc59100a2fd9c49c059b7b8a
7
+ data.tar.gz: 5774a79d323a6069c23afef835b63a00b24f22713a9c2d36f480cf11f37fd503ebb5064fcff41208ae41f34c29c7f6a6805481ccc626e98ab863cb7f5a98e059
@@ -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: '0 0 * * 0'
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
- exclude:
24
- - ruby-version: '3.0'
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@v4
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.6.0...HEAD
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 "7.2"
13
- "~>7.2.1"
14
- when "7.1"
15
- "~>7.1.4"
12
+ when "8.1"
13
+ "~>8.1.3"
14
+ when "8.0"
15
+ "~>8.0.4"
16
16
  else
17
- "~>7.0.8"
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
  [![Gem Version](https://badge.fury.io/rb/manageiq-api-client.svg)](http://badge.fury.io/rb/manageiq-api-client)
4
4
  [![CI](https://github.com/ManageIQ/manageiq-api-client/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-api-client/actions/workflows/ci.yaml)
5
- [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-api-client.svg)](https://codeclimate.com/github/ManageIQ/manageiq-api-client)
6
- [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-api-client/badges/coverage.svg)](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
@@ -1,7 +1,7 @@
1
1
  module ManageIQ
2
2
  module API
3
3
  class Client
4
- VERSION = "0.6.0".freeze
4
+ VERSION = "0.8.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -1,3 +1,4 @@
1
+ require "logger" # Require logger due to active_support breaking on Rails <= 7.0. See https://github.com/rails/rails/pull/54264
1
2
  require "active_support"
2
3
  require "active_support/core_ext"
3
4
  require "faraday"
@@ -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.0'
26
+ spec.required_ruby_version = '>= 3.2'
27
27
 
28
- spec.add_dependency "activesupport", ">= 7.0", "<8.0"
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
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
- "extends": [
4
- "config:recommended"
5
- ]
3
+ "inheritConfig": true,
4
+ "inheritConfigRepoName": "manageiq/renovate-config"
6
5
  }
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.6.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: 2025-01-03 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: activesupport
@@ -17,20 +16,20 @@ dependencies:
17
16
  requirements:
18
17
  - - ">="
19
18
  - !ruby/object:Gem::Version
20
- version: '7.0'
19
+ version: '7.2'
21
20
  - - "<"
22
21
  - !ruby/object:Gem::Version
23
- version: '8.0'
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.0'
29
+ version: '7.2'
31
30
  - - "<"
32
31
  - !ruby/object:Gem::Version
33
- version: '8.0'
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.0'
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.5.22
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
@@ -1,4 +0,0 @@
1
- inherit_from:
2
- - ".rubocop_base.yml"
3
- - ".rubocop_cc_base.yml"
4
- - ".rubocop_local.yml"