inventory_refresh 2.2.0 → 2.3.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: b6942604d2501cd3b0bf5245144f1a90cf2c63d314774eae29a7d0a76af5c82e
4
- data.tar.gz: 881b3474280819e6fec3a222bd460d47bb757926e265c04232eb3b9c2632ddc3
3
+ metadata.gz: e4569cba43fd79dc11ff991c840f552d46e9591466ef305b0eeb84b96ef6fd38
4
+ data.tar.gz: 2b32f1658cfcddbf52f8a784fbec64ee0ef41ffc128244b2e8940171570453c9
5
5
  SHA512:
6
- metadata.gz: 7d831efe8b6f4e3ca0a9187ea133ad7c0da372aa80b86d0219fccf77abb8b870e4ccce2a4acbd4d4a39cfe0d86cecaf15b7f3ecd7812d52b0fdbfa537674345e
7
- data.tar.gz: de6d47d1e11c101ede913c66f74a589d14500ce5c96be8e7ba85adbd91be8a57f21850ae4aee57af736dbe1917616481164e1ffe596793bf6abdf373da61a987
6
+ metadata.gz: e4a23130e0bd03d5c4e3bb85ec9e624c460cc65eb51ff2d74cd80a3c5b1b186eb30e5eb5b20fab6e38c8c65d0b0e35f62b540ba10c7708288ce9c1b9faff9b9e
7
+ data.tar.gz: c3d5eab0fdfd347f52a673011fcab83a04727892d64bd1baa4b77e3ce6f43fc8aa22d11f0589c9f69064e2816aa8efd6e1338ef0e5421fb843b2662027ca96a6
@@ -1,11 +1,18 @@
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
@@ -20,9 +27,14 @@ jobs:
20
27
  - '7.0'
21
28
  - '7.1'
22
29
  - '7.2'
30
+ - '8.0'
23
31
  exclude:
24
32
  - ruby-version: '3.0'
25
33
  rails-version: '7.2'
34
+ - ruby-version: '3.0'
35
+ rails-version: '8.0'
36
+ - ruby-version: '3.1'
37
+ rails-version: '8.0'
26
38
  services:
27
39
  postgres:
28
40
  image: manageiq/postgresql:13
@@ -30,27 +42,22 @@ jobs:
30
42
  POSTGRESQL_USER: root
31
43
  POSTGRESQL_PASSWORD: smartvm
32
44
  POSTGRESQL_DATABASE: inventory_refresh_dummy_test
33
- options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
45
+ options: "--health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5"
34
46
  ports:
35
47
  - 5432:5432
36
48
  env:
37
- TEST_RAILS_VERSION: ${{ matrix.rails-version }}
49
+ TEST_RAILS_VERSION: "${{ matrix.rails-version }}"
38
50
  PGHOST: localhost
39
51
  PGPASSWORD: smartvm
40
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
41
52
  steps:
42
- - uses: actions/checkout@v4
53
+ - uses: actions/checkout@v6
43
54
  - name: Set up Ruby
44
55
  uses: ruby/setup-ruby@v1
45
56
  with:
46
- ruby-version: ${{ matrix.ruby-version }}
57
+ ruby-version: "${{ matrix.ruby-version }}"
47
58
  bundler-cache: true
48
59
  timeout-minutes: 30
49
60
  - name: Prepare tests
50
61
  run: bundle exec rake spec:setup
51
62
  - name: Run tests
52
63
  run: bundle exec rake
53
- - name: Report code coverage
54
- if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
55
- continue-on-error: true
56
- uses: paambaati/codeclimate-action@v9
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [2.3.0] - 2026-01-20
9
+ ### Added
10
+ - Support rails 8.0 ([#148](https://github.com/ManageIQ/inventory_refresh/pull/148))
11
+
8
12
  ## [2.2.0] - 2024-09-30
9
13
  ### Changed
10
14
  - Drop old versions of ruby and rails, add ruby 3.3 and rails 7.2 ([#139](https://github.com/ManageIQ/inventory_refresh/pull/139))
@@ -53,3 +57,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
53
57
 
54
58
  ### Fixed
55
59
  - Fix InventoryCollection missing cache returns (#107)
60
+
61
+ [Unreleased]: https://github.com/ManageIQ/inventory_refresh/compare/v2.3.0...HEAD
62
+ [2.3.0]: https://github.com/ManageIQ/inventory_refresh/compare/v2.2.0...v2.3.0
63
+ [2.2.0]: https://github.com/ManageIQ/inventory_refresh/compare/v2.1.1...v2.2.0
64
+ [2.1.1]: https://github.com/ManageIQ/inventory_refresh/compare/v2.1.0...v2.1.1
65
+ [2.1.0]: https://github.com/ManageIQ/inventory_refresh/compare/v2.0.0...v2.1.0
66
+ [2.0.0]: https://github.com/ManageIQ/inventory_refresh/compare/v1.1.0...v2.0.0
67
+ [1.1.0]: https://github.com/ManageIQ/inventory_refresh/compare/v1.0.0...v1.1.0
68
+ [1.0.0]: https://github.com/ManageIQ/inventory_refresh/compare/v0.3.6...v1.0.0
data/Gemfile CHANGED
@@ -8,6 +8,8 @@ gemspec
8
8
 
9
9
  minimum_version =
10
10
  case ENV['TEST_RAILS_VERSION']
11
+ when "8.0"
12
+ "~>8.0.4"
11
13
  when "7.2"
12
14
  "~>7.2.1"
13
15
  when "7.1"
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/inventory_refresh.svg)](http://badge.fury.io/rb/inventory_refresh)
4
4
  [![CI](https://github.com/ManageIQ/inventory_refresh/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/inventory_refresh/actions/workflows/ci.yaml)
5
- [![Code Climate](https://codeclimate.com/github/ManageIQ/inventory_refresh.svg)](https://codeclimate.com/github/ManageIQ/inventory_refresh)
6
- [![Test Coverage](https://codeclimate.com/github/ManageIQ/inventory_refresh/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/inventory_refresh/coverage)
7
5
 
8
6
  [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq/providers?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9
7
 
data/Rakefile CHANGED
@@ -11,7 +11,6 @@ namespace :spec do
11
11
  end
12
12
 
13
13
  task :db_load_schema do
14
- require "active_record"
15
14
  with_connection(test_database_name) { load File.join(__dir__, %w[spec schema.rb]) }
16
15
  end
17
16
 
@@ -33,6 +32,7 @@ namespace :spec do
33
32
  end
34
33
 
35
34
  def with_connection(database_name)
35
+ require "logger" # Require logger due to active_record breaking on Rails <= 7.0. See https://github.com/rails/rails/pull/54264
36
36
  require "active_record"
37
37
  pool = ActiveRecord::Base.establish_connection(connection_spec["test"].merge("database" => database_name))
38
38
  yield ActiveRecord::Base.connection
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.metadata['rubygems_mfa_required'] = 'true'
24
24
 
25
25
  spec.required_ruby_version = '>= 3.0'
26
- spec.add_dependency "activerecord", ">=7.0.8", "<8.0"
26
+ spec.add_dependency "activerecord", ">=7.0.8", "<8.1"
27
27
  spec.add_dependency "more_core_extensions", ">=3.5", "< 5"
28
28
  spec.add_dependency "pg", "> 0"
29
29
 
@@ -1,3 +1,3 @@
1
1
  module InventoryRefresh
2
- VERSION = "2.2.0".freeze
2
+ VERSION = "2.3.0".freeze
3
3
  end
@@ -1,3 +1,5 @@
1
+ require "logger" # Require logger due to active_record breaking on Rails <= 7.0. See https://github.com/rails/rails/pull/54264
2
+
1
3
  require "inventory_refresh/graph"
2
4
  require "inventory_refresh/inventory_collection"
3
5
  require "inventory_refresh/inventory_object"
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,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inventory_refresh
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-09-30 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -19,7 +18,7 @@ dependencies:
19
18
  version: 7.0.8
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
- version: '8.0'
21
+ version: '8.1'
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +28,7 @@ dependencies:
29
28
  version: 7.0.8
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
- version: '8.0'
31
+ version: '8.1'
33
32
  - !ruby/object:Gem::Dependency
34
33
  name: more_core_extensions
35
34
  requirement: !ruby/object:Gem::Requirement
@@ -163,19 +162,16 @@ dependencies:
163
162
  - !ruby/object:Gem::Version
164
163
  version: 0.21.2
165
164
  description: Topological Inventory Persister
166
- email:
167
165
  executables: []
168
166
  extensions: []
169
167
  extra_rdoc_files: []
170
168
  files:
171
- - ".codeclimate.yml"
172
169
  - ".github/CODEOWNERS"
173
170
  - ".github/workflows/ci.yaml"
174
171
  - ".gitignore"
175
172
  - ".rspec"
176
173
  - ".rspec_ci"
177
174
  - ".rubocop.yml"
178
- - ".rubocop_cc.yml"
179
175
  - ".rubocop_local.yml"
180
176
  - ".whitesource"
181
177
  - ".yamllint"
@@ -239,7 +235,6 @@ licenses:
239
235
  - Apache-2.0
240
236
  metadata:
241
237
  rubygems_mfa_required: 'true'
242
- post_install_message:
243
238
  rdoc_options: []
244
239
  require_paths:
245
240
  - lib
@@ -254,8 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
254
249
  - !ruby/object:Gem::Version
255
250
  version: '0'
256
251
  requirements: []
257
- rubygems_version: 3.4.20
258
- signing_key:
252
+ rubygems_version: 3.6.7
259
253
  specification_version: 4
260
254
  summary: Topological Inventory Persister
261
255
  test_files: []
data/.codeclimate.yml DELETED
@@ -1,43 +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
- brakeman:
17
- enabled: false
18
- bundler-audit:
19
- enabled: false
20
- csslint:
21
- enabled: false
22
- duplication:
23
- enabled: true
24
- config:
25
- languages:
26
- - ruby
27
- - javascript
28
- eslint:
29
- enabled: false
30
- channel: eslint-3
31
- fixme:
32
- enabled: false
33
- markdownlint:
34
- enabled: false
35
- exclude_patterns:
36
- - ".git/"
37
- - "**.xml"
38
- - "**.yaml"
39
- - "**.yml"
40
- - locale/
41
- - spec/
42
- - tools/
43
- 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"