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 +4 -4
- data/.github/workflows/ci.yaml +19 -19
- data/CHANGELOG.md +17 -1
- data/Gemfile +3 -5
- data/README.md +0 -2
- data/activerecord-id_regions.gemspec +4 -3
- data/lib/active_record/id_regions/version.rb +1 -1
- data/renovate.json +2 -3
- metadata +14 -15
- data/.codeclimate.yml +0 -43
- 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: 5401b9bce018aba64180cd907f6f6b9c5fa75cd3a197faefdc408313c20e3305
|
|
4
|
+
data.tar.gz: b7cac504836bc1fc9cdb9dbcb7fabfc51d064fe20690dfafbbce9fa7138ea7a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5abe8770769bad26ff3fc6446a391bb919e7a9fb712f76c58bc76b95deedc831731c91c57209ae6d162b6ae8a0eb5fa2815ba3fa4e79697a9378d9997bace12e
|
|
7
|
+
data.tar.gz: d0fafc0b544b00d706b775297e269379918ec719f0361a6af454d5d22d82ef0db5319070ac68457a9e8b70028f79bd57185db0b0245dfa7c0a73be5ca656131b
|
data/.github/workflows/ci.yaml
CHANGED
|
@@ -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:
|
|
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
|
|
16
|
-
- '3.
|
|
17
|
-
- '3.1'
|
|
22
|
+
- '3.2'
|
|
23
|
+
- '3.3'
|
|
18
24
|
rails-version:
|
|
19
|
-
- '
|
|
20
|
-
- '
|
|
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@
|
|
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.
|
|
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
data/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/activerecord-id_regions)
|
|
4
4
|
[](https://github.com/ManageIQ/activerecord-id_regions/actions/workflows/ci.yaml)
|
|
5
|
-
[](https://codeclimate.com/github/ManageIQ/activerecord-id_regions)
|
|
6
|
-
[](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/coverage)
|
|
7
5
|
|
|
8
6
|
[](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.
|
|
24
|
-
spec.add_dependency "
|
|
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"
|
data/renovate.json
CHANGED
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
|
+
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:
|
|
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:
|
|
19
|
+
version: 7.2.3
|
|
20
20
|
- - "<"
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
|
-
version: '
|
|
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:
|
|
29
|
+
version: 7.2.3
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: '
|
|
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:
|
|
39
|
+
version: 7.2.3
|
|
40
40
|
- - "<"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '
|
|
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:
|
|
49
|
+
version: 7.2.3
|
|
50
50
|
- - "<"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '
|
|
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: '
|
|
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.
|
|
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