activerecord-id_regions 0.4.0 → 0.6.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: 185443ed3b4db677eb3d2356fe95cd93fc9f3551f8e47cfb354cbbba789cf2b0
4
- data.tar.gz: 47af10f63f4bd2041d8a259bb80dbffbfbf7eee770a0f351c4ae3fb5fd4da48a
3
+ metadata.gz: 5401b9bce018aba64180cd907f6f6b9c5fa75cd3a197faefdc408313c20e3305
4
+ data.tar.gz: b7cac504836bc1fc9cdb9dbcb7fabfc51d064fe20690dfafbbce9fa7138ea7a2
5
5
  SHA512:
6
- metadata.gz: 3d3e749be3138b9b43b9e824b17fcf4a7844cd2b7ca9d0b317095ffdd424a8968c5af269ec45ff76917e87c4deabf789fc2f38c39e28a0005bdfd6036499e26a
7
- data.tar.gz: 1588819f29015cad6c0c29209f3ed1f128e63b70490b85d7c1ade1142070652f0ba19bc1d9ca05a426e924131192b5c2176403c11cfe8ca27d355fe25530deb7
6
+ metadata.gz: 5abe8770769bad26ff3fc6446a391bb919e7a9fb712f76c58bc76b95deedc831731c91c57209ae6d162b6ae8a0eb5fa2815ba3fa4e79697a9378d9997bace12e
7
+ data.tar.gz: d0fafc0b544b00d706b775297e269379918ec719f0361a6af454d5d22d82ef0db5319070ac68457a9e8b70028f79bd57185db0b0245dfa7c0a73be5ca656131b
@@ -1,24 +1,29 @@
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
- - '3.0'
17
- - '3.1'
22
+ - '3.2'
23
+ - '3.3'
18
24
  rails-version:
19
- - '6.0'
20
- - '6.1'
21
- - '7.0'
25
+ - '7.2'
26
+ - '8.0'
22
27
  services:
23
28
  postgres:
24
29
  image: manageiq/postgresql:13
@@ -26,26 +31,21 @@ jobs:
26
31
  POSTGRESQL_USER: root
27
32
  POSTGRESQL_PASSWORD: smartvm
28
33
  POSTGRESQL_DATABASE: activerecord_id_regions_test
29
- options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
34
+ options: "--health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5"
30
35
  ports:
31
36
  - 5432:5432
32
37
  env:
33
- TEST_RAILS_VERSION: ${{ matrix.rails-version }}
38
+ TEST_RAILS_VERSION: "${{ matrix.rails-version }}"
34
39
  PGHOST: localhost
35
40
  PGUSER: root
36
41
  PGPASSWORD: smartvm
37
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
38
42
  steps:
39
- - uses: actions/checkout@v4
43
+ - uses: actions/checkout@v6
40
44
  - name: Set up Ruby
41
45
  uses: ruby/setup-ruby@v1
42
46
  with:
43
- ruby-version: ${{ matrix.ruby-version }}
47
+ ruby-version: "${{ matrix.ruby-version }}"
44
48
  bundler-cache: true
45
49
  timeout-minutes: 30
46
50
  - name: Run tests
47
51
  run: bundle exec rake
48
- - name: Report code coverage
49
- if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.rails-version == '6.1' }}
50
- continue-on-error: true
51
- uses: paambaati/codeclimate-action@v6
data/CHANGELOG.md CHANGED
@@ -5,6 +5,20 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.6.0] - 2025-12-11
9
+
10
+ ### Changed
11
+ - Add support for rails 8.0
12
+ - Drop support for end of life versions:
13
+ - rails 7.0, 7.1
14
+ - ruby 2.7, 3.0, and 3.1
15
+
16
+ ## [0.5.0] - 2024-10-10
17
+ ### Changed
18
+
19
+ - Add support for rails 7.1 and 7.2
20
+ - Drop rails 6.0 and 6.1
21
+
8
22
  ## [0.4.0] - 2024-05-14
9
23
  ### Changed
10
24
 
@@ -16,6 +30,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
16
30
  - Loosened active record support to include active record 6.1
17
31
  - Fixed keyword arguments for ruby 3.0 support
18
32
 
19
- [Unreleased]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.4.0...HEAD
33
+ [Unreleased]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.6.0...HEAD
34
+ [0.6.0]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.5.0...v0.6.0
35
+ [0.5.0]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.4.0...v0.5.0
20
36
  [0.4.0]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.2...v0.4.0
21
37
  [0.3.2]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.1...v0.3.2
data/Gemfile CHANGED
@@ -5,12 +5,10 @@ gemspec
5
5
 
6
6
  minimum_version =
7
7
  case ENV['TEST_RAILS_VERSION']
8
- when "6.0"
9
- "~>6.0.4"
10
- when "7.0"
11
- "~>7.0.8"
8
+ when "8.0"
9
+ "~>8.0.4"
12
10
  else
13
- "~>6.1.4"
11
+ "~>7.2.3"
14
12
  end
15
13
 
16
14
  gem "activerecord", minimum_version
data/README.md CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/activerecord-id_regions.svg)](http://badge.fury.io/rb/activerecord-id_regions)
4
4
  [![CI](https://github.com/ManageIQ/activerecord-id_regions/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/activerecord-id_regions/actions/workflows/ci.yaml)
5
- [![Code Climate](https://codeclimate.com/github/ManageIQ/activerecord-id_regions.svg)](https://codeclimate.com/github/ManageIQ/activerecord-id_regions)
6
- [![Test Coverage](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/coverage)
7
5
 
8
6
  [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/activerecord-id_regions?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
9
7
 
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = "activerecord-id_regions"
8
8
  spec.version = ActiveRecord::IdRegions::VERSION
9
9
  spec.authors = ["ManageIQ Developers"]
10
-
10
+ spec.metadata['rubygems_mfa_required'] = 'true'
11
11
  spec.summary = %q{ActiveRecord extension to allow partitioning ids into regions, for merge replication purposes}
12
12
  spec.description = %q{ActiveRecord extension to allow partitioning ids into regions, for merge replication purposes}
13
13
  spec.homepage = "https://github.com/ManageIQ/activerecord-id_regions"
@@ -20,8 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_dependency "activerecord", ">= 5.0", "<7.1"
24
- spec.add_dependency "activesupport", ">= 5.0", "<7.1"
23
+ spec.required_ruby_version = ">= 3.2"
24
+ spec.add_dependency "activerecord", ">= 7.2.3", "<8.1"
25
+ spec.add_dependency "activesupport", ">= 7.2.3", "<8.1"
25
26
  spec.add_dependency "pg"
26
27
 
27
28
  spec.add_development_dependency "bundler"
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module IdRegions
3
- VERSION = "0.4.0".freeze
3
+ VERSION = "0.6.0".freeze
4
4
  end
5
5
  end
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,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-id_regions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2025-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: 7.2.3
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '8.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '5.0'
29
+ version: 7.2.3
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '8.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '5.0'
39
+ version: 7.2.3
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.1'
42
+ version: '8.1'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '5.0'
49
+ version: 7.2.3
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.1'
52
+ version: '8.1'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: pg
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -141,13 +141,11 @@ executables: []
141
141
  extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
- - ".codeclimate.yml"
145
144
  - ".github/workflows/ci.yaml"
146
145
  - ".gitignore"
147
146
  - ".rspec"
148
147
  - ".rspec_ci"
149
148
  - ".rubocop.yml"
150
- - ".rubocop_cc.yml"
151
149
  - ".rubocop_local.yml"
152
150
  - ".whitesource"
153
151
  - CHANGELOG.md
@@ -167,7 +165,8 @@ files:
167
165
  homepage: https://github.com/ManageIQ/activerecord-id_regions
168
166
  licenses:
169
167
  - Apache-2.0
170
- metadata: {}
168
+ metadata:
169
+ rubygems_mfa_required: 'true'
171
170
  post_install_message:
172
171
  rdoc_options: []
173
172
  require_paths:
@@ -176,14 +175,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
176
175
  requirements:
177
176
  - - ">="
178
177
  - !ruby/object:Gem::Version
179
- version: '0'
178
+ version: '3.2'
180
179
  required_rubygems_version: !ruby/object:Gem::Requirement
181
180
  requirements:
182
181
  - - ">="
183
182
  - !ruby/object:Gem::Version
184
183
  version: '0'
185
184
  requirements: []
186
- rubygems_version: 3.3.27
185
+ rubygems_version: 3.5.22
187
186
  signing_key:
188
187
  specification_version: 4
189
188
  summary: ActiveRecord extension to allow partitioning ids into regions, for merge
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"