inventory_refresh 2.1.1 → 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: 614330dcc33f7041b91869447db2ed074ad70d0d22582a289ab45de42bdda9cd
4
- data.tar.gz: 44f7cec03b86c2e14519dc88de9aba9fb060aa08f93097474b9b0c8d8148e6d1
3
+ metadata.gz: e4569cba43fd79dc11ff991c840f552d46e9591466ef305b0eeb84b96ef6fd38
4
+ data.tar.gz: 2b32f1658cfcddbf52f8a784fbec64ee0ef41ffc128244b2e8940171570453c9
5
5
  SHA512:
6
- metadata.gz: 6d50b13b3f88e8e810b6220f5e5bdc1d341057048afc19cfac9f453274c7816941200a313a4c2e4bc3af335faf27f4497363e0f37c0311f453845fcf86ea047c
7
- data.tar.gz: d6b1c142c98a7272e5964a97e0d9f59033906707736d3b1e5f3f0722ccbfce6ed3e0c84530eae71d8cef8af0c1985a6477da35f8956cd9bad313a743c1e3a882
6
+ metadata.gz: e4a23130e0bd03d5c4e3bb85ec9e624c460cc65eb51ff2d74cd80a3c5b1b186eb30e5eb5b20fab6e38c8c65d0b0e35f62b540ba10c7708288ce9c1b9faff9b9e
7
+ data.tar.gz: c3d5eab0fdfd347f52a673011fcab83a04727892d64bd1baa4b77e3ce6f43fc8aa22d11f0589c9f69064e2816aa8efd6e1338ef0e5421fb843b2662027ca96a6
@@ -1,33 +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
- - '2.7'
16
22
  - '3.0'
17
23
  - '3.1'
18
24
  - '3.2'
25
+ - '3.3'
19
26
  rails-version:
20
- # rails 6.1 supports ruby >= 2.5
21
- # rails 7.0 supports ruby >= 2.7
22
- - '6.1'
23
27
  - '7.0'
24
28
  - '7.1'
25
- include:
26
- # rails 6.0 (security EOL 6/23?) supports ruby < 2.8 (2.7 EOL 3/23?;)
27
- - ruby-version: '2.6'
28
- rails-version: '6.0'
29
- - ruby-version: '2.7'
30
- rails-version: '6.0'
29
+ - '7.2'
30
+ - '8.0'
31
+ exclude:
32
+ - ruby-version: '3.0'
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'
31
38
  services:
32
39
  postgres:
33
40
  image: manageiq/postgresql:13
@@ -35,27 +42,22 @@ jobs:
35
42
  POSTGRESQL_USER: root
36
43
  POSTGRESQL_PASSWORD: smartvm
37
44
  POSTGRESQL_DATABASE: inventory_refresh_dummy_test
38
- 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"
39
46
  ports:
40
47
  - 5432:5432
41
48
  env:
42
- TEST_RAILS_VERSION: ${{ matrix.rails-version }}
49
+ TEST_RAILS_VERSION: "${{ matrix.rails-version }}"
43
50
  PGHOST: localhost
44
51
  PGPASSWORD: smartvm
45
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
46
52
  steps:
47
- - uses: actions/checkout@v4
53
+ - uses: actions/checkout@v6
48
54
  - name: Set up Ruby
49
55
  uses: ruby/setup-ruby@v1
50
56
  with:
51
- ruby-version: ${{ matrix.ruby-version }}
57
+ ruby-version: "${{ matrix.ruby-version }}"
52
58
  bundler-cache: true
53
59
  timeout-minutes: 30
54
60
  - name: Prepare tests
55
61
  run: bundle exec rake spec:setup
56
62
  - name: Run tests
57
63
  run: bundle exec rake
58
- - name: Report code coverage
59
- if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
60
- continue-on-error: true
61
- uses: paambaati/codeclimate-action@v8
data/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ 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
+
12
+ ## [2.2.0] - 2024-09-30
13
+ ### Changed
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))
15
+
8
16
  ## [2.1.1] - 2024-08-06
9
17
  ### Fixed
10
18
  - Fix rails 7 deprecation on ActiveRecord::Base.default_timezone ([#124](https://github.com/ManageIQ/inventory_refresh/pull/124))
@@ -49,3 +57,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
49
57
 
50
58
  ### Fixed
51
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
@@ -6,11 +6,16 @@ require File.join(Bundler::Plugin.index.load_paths("bundler-inject")[0], "bundle
6
6
  # Specify your gem's dependencies in inventory_refresh.gemspec
7
7
  gemspec
8
8
 
9
- case ENV['TEST_RAILS_VERSION']
10
- when "5.2"
11
- gem "activerecord", "~>5.2.6"
12
- when "6.0"
13
- gem "activerecord", "~>6.0.4"
14
- when "6.1"
15
- gem "activerecord", "~>6.1.4"
16
- end
9
+ minimum_version =
10
+ case ENV['TEST_RAILS_VERSION']
11
+ when "8.0"
12
+ "~>8.0.4"
13
+ when "7.2"
14
+ "~>7.2.1"
15
+ when "7.1"
16
+ "~>7.1.4"
17
+ else
18
+ "~>7.0.8"
19
+ end
20
+
21
+ gem "activerecord", minimum_version
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
@@ -22,7 +22,8 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = ["lib"]
23
23
  spec.metadata['rubygems_mfa_required'] = 'true'
24
24
 
25
- spec.add_dependency "activerecord", ">=5.0", "<7.2"
25
+ spec.required_ruby_version = '>= 3.0'
26
+ spec.add_dependency "activerecord", ">=7.0.8", "<8.1"
26
27
  spec.add_dependency "more_core_extensions", ">=3.5", "< 5"
27
28
  spec.add_dependency "pg", "> 0"
28
29
 
@@ -111,7 +111,8 @@ module InventoryRefresh
111
111
 
112
112
  raise ArgumentError, "only one of manager_uuid or manager_uuid_hash must be passed" unless !!manager_uuid ^ !!manager_uuid_hash.present?
113
113
 
114
- ActiveSupport::Deprecation.warn("Passing a hash for options is deprecated and will be removed in an upcoming release.") if opts.present?
114
+ # TODO: switch to ActiveSupport.deprecator.warn once 7.1+ is a minimum, see: https://github.com/rails/rails/pull/47354
115
+ ActiveSupport::Deprecation.new.warn("Passing a hash for options is deprecated and will be removed in an upcoming release.") if opts.present?
115
116
 
116
117
  manager_uuid ||= manager_uuid_hash
117
118
 
@@ -1,3 +1,3 @@
1
1
  module InventoryRefresh
2
- VERSION = "2.1.1".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.1.1
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-08-06 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
@@ -16,20 +15,20 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '5.0'
18
+ version: 7.0.8
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
- version: '7.2'
21
+ version: '8.1'
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: '5.0'
28
+ version: 7.0.8
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
- version: '7.2'
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
@@ -247,15 +242,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
242
  requirements:
248
243
  - - ">="
249
244
  - !ruby/object:Gem::Version
250
- version: '0'
245
+ version: '3.0'
251
246
  required_rubygems_version: !ruby/object:Gem::Requirement
252
247
  requirements:
253
248
  - - ">="
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"