activerecord-id_regions 0.3.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 925295a4420b873017837a1d4def190c2fc6af0590d2d4c4feb8bd6dd293076d
4
- data.tar.gz: bec97edc1aba41fc89526b7976f7dcdf4c3527c4dc8ee59bccd4a6a05546f872
3
+ metadata.gz: f20b767967d5f68c9850e0578551104099b1c3eb56538732a1054d5af84d43b3
4
+ data.tar.gz: d4faba2b8ce98ed4c3591700166814fe94ebe50c86d235e4896dbda4115cb515
5
5
  SHA512:
6
- metadata.gz: aed5222004162cb3bb7c0b0eba80da3eb9bf36911a6b793c8c9d171d3456849e0b802c08e0c1ef3236e0bb86a5e0784ea8e29eb808d868686f15bad3f3cc443d
7
- data.tar.gz: c2172a8b3918f56996d5b79a1c3ae75d5dc496264538c2b7bd761894ebe2b5529860adc44402742793ac1ce20e11dbfb9a0a5fae92259259f717ac4fa56bd26d
6
+ metadata.gz: 7ea1fed1243f0546545b05cfa7af7428417a1898b33d8c85f081a649ea85465f3e32c03b26ae3e5a4b119bbd9d25a9f739500fa3958fd185915013b74f8de4a6
7
+ data.tar.gz: ead30f4633cb2aa2e70cf97242f8c273114d74eb2ae8defb494f6fc97ff2da6df0900c97e86c8d034675c593a19424f8c8210f55da794715a7504aba60ffd443
data/.codeclimate.yml CHANGED
@@ -12,7 +12,7 @@ plugins:
12
12
  rubocop:
13
13
  enabled: true
14
14
  config: ".rubocop_cc.yml"
15
- channel: rubocop-0-82
15
+ channel: rubocop-1-56-3
16
16
  brakeman:
17
17
  enabled: false
18
18
  bundler-audit:
@@ -0,0 +1,58 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: '0 0 * * 0'
8
+
9
+ jobs:
10
+ ci:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version:
15
+ - '2.7'
16
+ - '3.0'
17
+ - '3.1'
18
+ - '3.2'
19
+ - '3.3'
20
+ rails-version:
21
+ - '7.0'
22
+ - '7.1'
23
+ - '7.2'
24
+ exclude:
25
+ - ruby-version: '2.7'
26
+ rails-version: '7.2'
27
+ - ruby-version: '3.0'
28
+ rails-version: '7.2'
29
+ services:
30
+ postgres:
31
+ image: manageiq/postgresql:13
32
+ env:
33
+ POSTGRESQL_USER: root
34
+ POSTGRESQL_PASSWORD: smartvm
35
+ POSTGRESQL_DATABASE: activerecord_id_regions_test
36
+ options: --health-cmd pg_isready --health-interval 2s --health-timeout 5s --health-retries 5
37
+ ports:
38
+ - 5432:5432
39
+ env:
40
+ TEST_RAILS_VERSION: ${{ matrix.rails-version }}
41
+ PGHOST: localhost
42
+ PGUSER: root
43
+ PGPASSWORD: smartvm
44
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - name: Set up Ruby
48
+ uses: ruby/setup-ruby@v1
49
+ with:
50
+ ruby-version: ${{ matrix.ruby-version }}
51
+ bundler-cache: true
52
+ timeout-minutes: 30
53
+ - name: Run tests
54
+ run: bundle exec rake
55
+ - name: Report code coverage
56
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
57
+ continue-on-error: true
58
+ uses: paambaati/codeclimate-action@v9
data/.rspec CHANGED
@@ -1,4 +1,3 @@
1
1
  --require spec_helper
2
2
  --color
3
3
  --order random
4
- --format documentation
data/CHANGELOG.md CHANGED
@@ -5,11 +5,24 @@ This project adheres to [Semantic Versioning](http://semver.org/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.5.0] - 2024-10-10
9
+ ### Changed
10
+
11
+ - Add support for rails 7.1 and 7.2
12
+ - Drop rails 6.0 and 6.1
13
+
14
+ ## [0.4.0] - 2024-05-14
15
+ ### Changed
16
+
17
+ - Add support for rails 7
18
+
8
19
  ## [0.3.2] - 2022-02-02
9
20
  ### Fixed
10
21
 
11
22
  - Loosened active record support to include active record 6.1
12
23
  - Fixed keyword arguments for ruby 3.0 support
13
24
 
14
- [Unreleased]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.2...HEAD
25
+ [Unreleased]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.5.0...HEAD
26
+ [0.5.0]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.4.0...v0.5.0
27
+ [0.4.0]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.2...v0.4.0
15
28
  [0.3.2]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.1...v0.3.2
data/Gemfile CHANGED
@@ -3,11 +3,15 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in activerecord-id_regions.gemspec
4
4
  gemspec
5
5
 
6
- case ENV['TEST_RAILS_VERSION']
7
- when "6.0"
8
- gem "activerecord", "~>6.0.4"
9
- gem "activesupport", "~>6.0.4"
10
- when "6.1"
11
- gem "activerecord", "~>6.1.4"
12
- gem "activesupport", "~>6.1.4"
13
- end
6
+ minimum_version =
7
+ case ENV['TEST_RAILS_VERSION']
8
+ when "7.2"
9
+ "~>7.2.1"
10
+ when "7.1"
11
+ "~>7.1.4"
12
+ else
13
+ "~>7.0.8"
14
+ end
15
+
16
+ gem "activerecord", minimum_version
17
+ gem "activesupport", minimum_version
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ActiveRecord::IdRegions
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/activerecord-id_regions.svg)](http://badge.fury.io/rb/activerecord-id_regions)
4
- [![Build Status](https://travis-ci.org/ManageIQ/activerecord-id_regions.svg)](https://travis-ci.org/ManageIQ/activerecord-id_regions)
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
5
  [![Code Climate](https://codeclimate.com/github/ManageIQ/activerecord-id_regions.svg)](https://codeclimate.com/github/ManageIQ/activerecord-id_regions)
6
6
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/activerecord-id_regions/coverage)
7
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,13 +20,13 @@ 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.0"
24
- spec.add_dependency "activesupport", ">= 5.0", "< 7.0"
23
+ spec.add_dependency "activerecord", ">= 7.0.8", "<8.0"
24
+ spec.add_dependency "activesupport", ">= 7.0.8", "<8.0"
25
25
  spec.add_dependency "pg"
26
26
 
27
27
  spec.add_development_dependency "bundler"
28
28
  spec.add_development_dependency "manageiq-style"
29
29
  spec.add_development_dependency "rake"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
- spec.add_development_dependency "simplecov"
31
+ spec.add_development_dependency "simplecov", ">= 0.21.2"
32
32
  end
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module IdRegions
3
- VERSION = "0.3.2".freeze
3
+ VERSION = "0.5.0".freeze
4
4
  end
5
5
  end
data/renovate.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "config:recommended"
5
+ ]
6
+ }
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.3.2
4
+ version: 0.5.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: 2022-02-02 00:00:00.000000000 Z
11
+ date: 2024-10-10 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.0.8
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.0'
22
+ version: '8.0'
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.0.8
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.0'
32
+ version: '8.0'
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.0.8
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '7.0'
42
+ version: '8.0'
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.0.8
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '7.0'
52
+ version: '8.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: pg
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -126,14 +126,14 @@ dependencies:
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: '0'
129
+ version: 0.21.2
130
130
  type: :development
131
131
  prerelease: false
132
132
  version_requirements: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - ">="
135
135
  - !ruby/object:Gem::Version
136
- version: '0'
136
+ version: 0.21.2
137
137
  description: ActiveRecord extension to allow partitioning ids into regions, for merge
138
138
  replication purposes
139
139
  email:
@@ -142,13 +142,13 @@ extensions: []
142
142
  extra_rdoc_files: []
143
143
  files:
144
144
  - ".codeclimate.yml"
145
+ - ".github/workflows/ci.yaml"
145
146
  - ".gitignore"
146
147
  - ".rspec"
147
148
  - ".rspec_ci"
148
149
  - ".rubocop.yml"
149
150
  - ".rubocop_cc.yml"
150
151
  - ".rubocop_local.yml"
151
- - ".travis.yml"
152
152
  - ".whitesource"
153
153
  - CHANGELOG.md
154
154
  - Gemfile
@@ -163,10 +163,12 @@ files:
163
163
  - lib/active_record/id_regions/migration.rb
164
164
  - lib/active_record/id_regions/version.rb
165
165
  - lib/activerecord-id_regions.rb
166
+ - renovate.json
166
167
  homepage: https://github.com/ManageIQ/activerecord-id_regions
167
168
  licenses:
168
169
  - Apache-2.0
169
- metadata: {}
170
+ metadata:
171
+ rubygems_mfa_required: 'true'
170
172
  post_install_message:
171
173
  rdoc_options: []
172
174
  require_paths:
@@ -182,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
184
  - !ruby/object:Gem::Version
183
185
  version: '0'
184
186
  requirements: []
185
- rubygems_version: 3.3.5
187
+ rubygems_version: 3.3.27
186
188
  signing_key:
187
189
  specification_version: 4
188
190
  summary: ActiveRecord extension to allow partitioning ids into regions, for merge
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- dist: bionic
2
- language: ruby
3
- rvm:
4
- - 2.6.9
5
- - 2.7.5
6
- - 3.0.3
7
- cache: bundler
8
- env:
9
- matrix:
10
- - TEST_RAILS_VERSION=6.1
11
- - TEST_RAILS_VERSION=6.0
12
- addons:
13
- postgresql: '10'
14
- before_script:
15
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
16
- - chmod +x ./cc-test-reporter
17
- - ./cc-test-reporter before-build
18
- after_script:
19
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
20
- notifications:
21
- webhooks:
22
- urls:
23
- - https://webhooks.gitter.im/e/d69f1b2b4c21a45fd023
24
- on_success: change
25
- on_failure: always
26
- on_start: never