activerecord-id_regions 0.3.1 → 0.3.2

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: 81c3179ff67aa3add2c5761916ee30e5dad895a764722b722d866a5face7d757
4
- data.tar.gz: 7c623bd161493c6be1f75d38898fd380f1325be1cf0394a9046d0810a75dcffe
3
+ metadata.gz: 925295a4420b873017837a1d4def190c2fc6af0590d2d4c4feb8bd6dd293076d
4
+ data.tar.gz: bec97edc1aba41fc89526b7976f7dcdf4c3527c4dc8ee59bccd4a6a05546f872
5
5
  SHA512:
6
- metadata.gz: af5be8140cee0664106d035ac29210aba223bbb2addba17569d289803b2de275f7844bd647a863f68e453112ae995f9da3b1e1844e20249d44d0905fcb515b2f
7
- data.tar.gz: a765ac141f6bce00aa6a6810ee2be0eebe3938e6d8c52222dd691c1908ed95edc104ef25d47e4b904e714b16c7f2dc9cb6fa78bfeefc09dc841ef05a2dfc9558
6
+ metadata.gz: aed5222004162cb3bb7c0b0eba80da3eb9bf36911a6b793c8c9d171d3456849e0b802c08e0c1ef3236e0bb86a5e0784ea8e29eb808d868686f15bad3f3cc443d
7
+ data.tar.gz: c2172a8b3918f56996d5b79a1c3ae75d5dc496264538c2b7bd761894ebe2b5529860adc44402742793ac1ce20e11dbfb9a0a5fae92259259f717ac4fa56bd26d
data/.codeclimate.yml CHANGED
@@ -1,12 +1,18 @@
1
- exclude_paths:
2
- - ".git/"
3
- - "**.xml"
4
- - "**.yaml"
5
- - "**.yml"
6
- - locale/
7
- - spec/
8
- - tools/
9
- engines:
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-0-82
10
16
  brakeman:
11
17
  enabled: false
12
18
  bundler-audit:
@@ -26,19 +32,12 @@ engines:
26
32
  enabled: false
27
33
  markdownlint:
28
34
  enabled: false
29
- prepare:
30
- fetch:
31
- - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
32
- path: ".rubocop_base.yml"
33
- - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
34
- path: ".rubocop_cc_base.yml"
35
- ratings:
36
- paths:
37
- - Gemfile.lock
38
- - "**.rake"
39
- - "**.rb"
40
- plugins:
41
- rubocop:
42
- enabled: true
43
- config: ".rubocop_cc.yml"
44
- channel: rubocop-0-82
35
+ exclude_patterns:
36
+ - ".git/"
37
+ - "**.xml"
38
+ - "**.yaml"
39
+ - "**.yml"
40
+ - locale/
41
+ - spec/
42
+ - tools/
43
+ version: '2'
data/.travis.yml CHANGED
@@ -1,11 +1,22 @@
1
+ dist: bionic
1
2
  language: ruby
2
3
  rvm:
3
- - 2.5.8
4
- - 2.6.6
4
+ - 2.6.9
5
+ - 2.7.5
6
+ - 3.0.3
5
7
  cache: bundler
8
+ env:
9
+ matrix:
10
+ - TEST_RAILS_VERSION=6.1
11
+ - TEST_RAILS_VERSION=6.0
6
12
  addons:
7
13
  postgresql: '10'
8
- after_script: bundle exec codeclimate-test-reporter
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
9
20
  notifications:
10
21
  webhooks:
11
22
  urls:
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ This project adheres to [Semantic Versioning](http://semver.org/).
5
+
6
+ ## [Unreleased]
7
+
8
+ ## [0.3.2] - 2022-02-02
9
+ ### Fixed
10
+
11
+ - Loosened active record support to include active record 6.1
12
+ - Fixed keyword arguments for ruby 3.0 support
13
+
14
+ [Unreleased]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.2...HEAD
15
+ [0.3.2]: https://github.com/ManageIQ/activerecord-id_regions/compare/v0.3.1...v0.3.2
data/Gemfile CHANGED
@@ -2,3 +2,12 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in activerecord-id_regions.gemspec
4
4
  gemspec
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
data/README.md CHANGED
@@ -4,7 +4,6 @@
4
4
  [![Build Status](https://travis-ci.org/ManageIQ/activerecord-id_regions.svg)](https://travis-ci.org/ManageIQ/activerecord-id_regions)
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
- [![Security](https://hakiri.io/github/ManageIQ/activerecord-id_regions/master.svg)](https://hakiri.io/github/ManageIQ/activerecord-id_regions/master)
8
7
 
9
8
  [![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)
10
9
 
@@ -20,12 +20,11 @@ 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", "< 6.1"
24
- spec.add_dependency "activesupport", ">= 5.0", "< 6.1"
23
+ spec.add_dependency "activerecord", ">= 5.0", "< 7.0"
24
+ spec.add_dependency "activesupport", ">= 5.0", "< 7.0"
25
25
  spec.add_dependency "pg"
26
26
 
27
27
  spec.add_development_dependency "bundler"
28
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
29
28
  spec.add_development_dependency "manageiq-style"
30
29
  spec.add_development_dependency "rake"
31
30
  spec.add_development_dependency "rspec", "~> 3.0"
@@ -2,7 +2,7 @@ module ActiveRecord::IdRegions
2
2
  module Migration
3
3
  ALLOWED_ID_VALUES = [false, :uuid, "uuid"].freeze
4
4
 
5
- def create_table(table_name, options = {})
5
+ def create_table(table_name, **options)
6
6
  options[:id] = :bigserial unless ALLOWED_ID_VALUES.include?(options[:id])
7
7
  value = anonymous_class_with_id_regions.rails_sequence_start
8
8
  super
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module IdRegions
3
- VERSION = "0.3.1".freeze
3
+ VERSION = "0.3.2".freeze
4
4
  end
5
5
  end
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.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-10 00:00:00.000000000 Z
11
+ date: 2022-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.1'
22
+ version: '7.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.1'
32
+ version: '7.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activesupport
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '5.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '6.1'
42
+ version: '7.0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '5.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '6.1'
52
+ version: '7.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: pg
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -78,20 +78,6 @@ dependencies:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
- - !ruby/object:Gem::Dependency
82
- name: codeclimate-test-reporter
83
- requirement: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: 1.0.0
88
- type: :development
89
- prerelease: false
90
- version_requirements: !ruby/object:Gem::Requirement
91
- requirements:
92
- - - "~>"
93
- - !ruby/object:Gem::Version
94
- version: 1.0.0
95
81
  - !ruby/object:Gem::Dependency
96
82
  name: manageiq-style
97
83
  requirement: !ruby/object:Gem::Requirement
@@ -150,7 +136,7 @@ dependencies:
150
136
  version: '0'
151
137
  description: ActiveRecord extension to allow partitioning ids into regions, for merge
152
138
  replication purposes
153
- email:
139
+ email:
154
140
  executables: []
155
141
  extensions: []
156
142
  extra_rdoc_files: []
@@ -163,6 +149,8 @@ files:
163
149
  - ".rubocop_cc.yml"
164
150
  - ".rubocop_local.yml"
165
151
  - ".travis.yml"
152
+ - ".whitesource"
153
+ - CHANGELOG.md
166
154
  - Gemfile
167
155
  - LICENSE.txt
168
156
  - README.md
@@ -179,7 +167,7 @@ homepage: https://github.com/ManageIQ/activerecord-id_regions
179
167
  licenses:
180
168
  - Apache-2.0
181
169
  metadata: {}
182
- post_install_message:
170
+ post_install_message:
183
171
  rdoc_options: []
184
172
  require_paths:
185
173
  - lib
@@ -194,8 +182,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
182
  - !ruby/object:Gem::Version
195
183
  version: '0'
196
184
  requirements: []
197
- rubygems_version: 3.0.6
198
- signing_key:
185
+ rubygems_version: 3.3.5
186
+ signing_key:
199
187
  specification_version: 4
200
188
  summary: ActiveRecord extension to allow partitioning ids into regions, for merge
201
189
  replication purposes