active_record_tweaks 0.2.4 → 0.2.5
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/CODEOWNERS +13 -0
- data/.github/FUNDING.yml +2 -0
- data/.github/dependabot.yml +20 -0
- data/.github/workflows/coverage.yml +66 -0
- data/.github/workflows/tests.yaml +55 -0
- data/Appraisals +8 -18
- data/CHANGELOG.md +17 -7
- data/README.md +7 -3
- data/active_record_tweaks.gemspec +5 -4
- data/gemfiles/rails_6_0.gemfile +4 -4
- data/gemfiles/rails_6_1.gemfile +10 -0
- data/gemfiles/rails_7_0.gemfile +10 -0
- data/lib/active_record_tweaks/integration.rb +16 -4
- data/lib/active_record_tweaks/version.rb +1 -1
- data/spec/active_record_tweaks_spec.rb +29 -4
- data/spec/spec_helper.rb +18 -3
- metadata +34 -17
- data/.travis.yml +0 -24
- data/gemfiles/rails_4_2.gemfile +0 -11
- data/gemfiles/rails_5_0.gemfile +0 -11
- data/gemfiles/rails_5_1.gemfile +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 148a7169a1a8ecdaa48749b04a6b6d3fbca5148717cd397271de51e59cd29a1f
|
4
|
+
data.tar.gz: 992fd1f3433839433bef7e645ca8d2cb10d3d1a28d3da6fce327f90c258220ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fbf083180ee5c4a27a81d9715ff7f51b96ef9ee04bcc67b471658ff831c21a21a6234b9acb4eea9c83d2b5aafb0b9ba85f5690ced0a93123d4c7b9e1ce30239
|
7
|
+
data.tar.gz: d999cf0151e108094a4494f755e6f4ba8d7cd71d02292364bb4a759b2a7ac1fd37da38639e3457aece5d55ad9d5be566e8a5610fe6b35610ed2eef5494e46b03
|
data/.github/CODEOWNERS
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Lines starting with '#' are comments.
|
2
|
+
# Each line is a file pattern followed by one or more owners.
|
3
|
+
|
4
|
+
# These owners will be the default owners for everything in the repo.
|
5
|
+
* @PikachuEXE
|
6
|
+
|
7
|
+
# Order is important. The last matching pattern has the most precedence.
|
8
|
+
# So if a pull request only touches javascript files, only these owners
|
9
|
+
# will be requested to review.
|
10
|
+
# *.rb @PikachuEXE
|
11
|
+
|
12
|
+
# You can also use email addresses if you prefer.
|
13
|
+
# docs/* docs@example.com
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
version: 2
|
2
|
+
updates:
|
3
|
+
- package-ecosystem: bundler
|
4
|
+
directory: "/"
|
5
|
+
schedule:
|
6
|
+
interval: monthly
|
7
|
+
time: "06:00"
|
8
|
+
timezone: Asia/Hong_Kong
|
9
|
+
open-pull-requests-limit: 10
|
10
|
+
labels:
|
11
|
+
- "dependencies"
|
12
|
+
- package-ecosystem: github-actions
|
13
|
+
directory: "/"
|
14
|
+
schedule:
|
15
|
+
interval: monthly
|
16
|
+
time: "06:00"
|
17
|
+
timezone: Asia/Hong_Kong
|
18
|
+
open-pull-requests-limit: 10
|
19
|
+
labels:
|
20
|
+
- "dependencies"
|
@@ -0,0 +1,66 @@
|
|
1
|
+
name: Coverage
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
paths-ignore:
|
8
|
+
- 'README.md'
|
9
|
+
push:
|
10
|
+
branches:
|
11
|
+
- master
|
12
|
+
paths-ignore:
|
13
|
+
- 'README.md'
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
coverage:
|
17
|
+
name: Coverage
|
18
|
+
# Homemade support for [ci skip] no longer needed
|
19
|
+
# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
|
20
|
+
# if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
21
|
+
strategy:
|
22
|
+
fail-fast: false
|
23
|
+
matrix:
|
24
|
+
os:
|
25
|
+
- ubuntu
|
26
|
+
ruby:
|
27
|
+
- "2.7"
|
28
|
+
gemfile:
|
29
|
+
- gemfiles/rails_5_2.gemfile
|
30
|
+
- gemfiles/rails_6_0.gemfile
|
31
|
+
- gemfiles/rails_6_1.gemfile
|
32
|
+
- gemfiles/rails_7_0.gemfile
|
33
|
+
env:
|
34
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
35
|
+
COVERALLS: true
|
36
|
+
runs-on: ${{ matrix.os }}-latest
|
37
|
+
steps:
|
38
|
+
- name: Checkout
|
39
|
+
uses: actions/checkout@v3
|
40
|
+
|
41
|
+
- name: Setup Ruby
|
42
|
+
uses: ruby/setup-ruby@v1
|
43
|
+
with:
|
44
|
+
ruby-version: ${{ matrix.ruby }}
|
45
|
+
bundler-cache: true
|
46
|
+
|
47
|
+
- name: Collect coverage info
|
48
|
+
run: bundle exec rake spec
|
49
|
+
|
50
|
+
- name: Coveralls Parallel
|
51
|
+
uses: coverallsapp/github-action@master
|
52
|
+
continue-on-error: true
|
53
|
+
with:
|
54
|
+
github-token: ${{ secrets.github_token }}
|
55
|
+
flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
|
56
|
+
parallel: true
|
57
|
+
|
58
|
+
finish:
|
59
|
+
needs: coverage
|
60
|
+
runs-on: ubuntu-latest
|
61
|
+
steps:
|
62
|
+
- name: Send to Coveralls
|
63
|
+
uses: coverallsapp/github-action@master
|
64
|
+
with:
|
65
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
66
|
+
parallel-finished: true
|
@@ -0,0 +1,55 @@
|
|
1
|
+
name: Tests
|
2
|
+
|
3
|
+
on:
|
4
|
+
pull_request:
|
5
|
+
branches:
|
6
|
+
- master
|
7
|
+
paths-ignore:
|
8
|
+
- 'README.md'
|
9
|
+
push:
|
10
|
+
branches:
|
11
|
+
- master
|
12
|
+
paths-ignore:
|
13
|
+
- 'README.md'
|
14
|
+
|
15
|
+
jobs:
|
16
|
+
unit_tests:
|
17
|
+
name: Unit Tests
|
18
|
+
# Homemade support for [ci skip] no longer needed
|
19
|
+
# https://github.blog/changelog/2021-02-08-github-actions-skip-pull-request-and-push-workflows-with-skip-ci/
|
20
|
+
# if: "contains(github.event.commits[0].message, '[ci skip]') == false"
|
21
|
+
strategy:
|
22
|
+
fail-fast: false
|
23
|
+
matrix:
|
24
|
+
os:
|
25
|
+
- ubuntu
|
26
|
+
ruby:
|
27
|
+
- "2.7"
|
28
|
+
- "3.0"
|
29
|
+
- "3.1"
|
30
|
+
gemfile:
|
31
|
+
- gemfiles/rails_6_0.gemfile
|
32
|
+
- gemfiles/rails_6_1.gemfile
|
33
|
+
- gemfiles/rails_7_0.gemfile
|
34
|
+
allow_failures:
|
35
|
+
- false
|
36
|
+
include:
|
37
|
+
- os: ubuntu
|
38
|
+
ruby: ruby-head
|
39
|
+
gemfile: gemfiles/rails_7_0.gemfile
|
40
|
+
allow_failures: true
|
41
|
+
env:
|
42
|
+
BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
|
43
|
+
ALLOW_FAILURES: "${{ matrix.allow_failures }}"
|
44
|
+
runs-on: ${{ matrix.os }}-latest
|
45
|
+
continue-on-error: ${{ endsWith(matrix.ruby, 'head') || matrix.ruby == 'debug' }}
|
46
|
+
steps:
|
47
|
+
- name: Checkout
|
48
|
+
uses: actions/checkout@v3
|
49
|
+
- name: Setup Ruby
|
50
|
+
uses: ruby/setup-ruby@v1
|
51
|
+
with:
|
52
|
+
ruby-version: ${{ matrix.ruby }}
|
53
|
+
bundler-cache: true
|
54
|
+
- name: Test
|
55
|
+
run: bundle exec rake spec || $ALLOW_FAILURES
|
data/Appraisals
CHANGED
@@ -1,40 +1,30 @@
|
|
1
1
|
|
2
|
-
appraise "
|
3
|
-
version = "~>
|
4
|
-
gem "activesupport", version
|
5
|
-
gem "actionpack", version
|
6
|
-
gem "activerecord", version
|
7
|
-
gem "railties", version
|
8
|
-
gem "sqlite3", "~> 1.3.6"
|
9
|
-
end
|
10
|
-
|
11
|
-
appraise "rails_5_0" do
|
12
|
-
version = "~> 5.0.0"
|
2
|
+
appraise "rails_5_2" do
|
3
|
+
version = "~> 5.2.0"
|
13
4
|
gem "activesupport", version
|
14
5
|
gem "actionpack", version
|
15
6
|
gem "activerecord", version
|
16
7
|
gem "railties", version
|
17
|
-
gem "sqlite3", "~> 1.3.6"
|
18
8
|
end
|
19
9
|
|
20
|
-
appraise "
|
21
|
-
version = "~>
|
10
|
+
appraise "rails_6_0" do
|
11
|
+
version = "~> 6.0.0"
|
22
12
|
gem "activesupport", version
|
23
13
|
gem "actionpack", version
|
24
14
|
gem "activerecord", version
|
25
15
|
gem "railties", version
|
26
16
|
end
|
27
17
|
|
28
|
-
appraise "
|
29
|
-
version = "~>
|
18
|
+
appraise "rails_6_1" do
|
19
|
+
version = "~> 6.1.0"
|
30
20
|
gem "activesupport", version
|
31
21
|
gem "actionpack", version
|
32
22
|
gem "activerecord", version
|
33
23
|
gem "railties", version
|
34
24
|
end
|
35
25
|
|
36
|
-
appraise "
|
37
|
-
version = "~>
|
26
|
+
appraise "rails_7_0" do
|
27
|
+
version = "~> 7.0.0"
|
38
28
|
gem "activesupport", version
|
39
29
|
gem "actionpack", version
|
40
30
|
gem "activerecord", version
|
data/CHANGELOG.md
CHANGED
@@ -18,6 +18,14 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
18
18
|
- Nothing
|
19
19
|
|
20
20
|
|
21
|
+
## [0.2.5] - 2022-04-12
|
22
|
+
|
23
|
+
### Changed
|
24
|
+
|
25
|
+
- Add support for AR 7.x
|
26
|
+
- Drop support for Ruby < 2.7
|
27
|
+
|
28
|
+
|
21
29
|
## [0.2.4] - 2019-08-26
|
22
30
|
|
23
31
|
### Changed
|
@@ -66,11 +74,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
66
74
|
### Added
|
67
75
|
|
68
76
|
- Initial Release
|
69
|
-
|
70
|
-
|
71
|
-
[Unreleased]: https://github.com/
|
72
|
-
[0.2.
|
73
|
-
[0.2.
|
74
|
-
[0.2.
|
75
|
-
[0.2.
|
77
|
+
|
78
|
+
|
79
|
+
[Unreleased]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.2.5...HEAD
|
80
|
+
[0.2.5]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.2.4...v0.2.5
|
81
|
+
[0.2.4]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.2.3...v0.2.4
|
82
|
+
[0.2.3]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.2.2...v0.2.3
|
83
|
+
[0.2.2]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.2.1...v0.2.2
|
84
|
+
[0.2.1]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.2.0...v0.2.1
|
85
|
+
[0.2.0]: https://github.com/PikachuEXE/active_record_tweaks/compare/v0.1...v0.2.0
|
76
86
|
|
data/README.md
CHANGED
@@ -5,11 +5,15 @@ Active Record is great, but could be better. Here are some tweaks for it.
|
|
5
5
|
|
6
6
|
## Status
|
7
7
|
|
8
|
-
[](https://github.com/PikachuEXE/active_record_tweaks/actions?query=workflow%3ATests)
|
9
|
+
|
9
10
|
[](http://badge.fury.io/rb/active_record_tweaks)
|
10
|
-
[](http://badge.fury.io/rb/active_record_tweaks)
|
12
|
+
|
11
13
|
[](https://coveralls.io/r/PikachuEXE/active_record_tweaks)
|
12
|
-
[](https://codeclimate.com/github/PikachuEXE/active_record_tweaks)
|
15
|
+
|
16
|
+
> The above badges are generated by https://shields.io/
|
13
17
|
|
14
18
|
|
15
19
|
## Installation
|
@@ -27,20 +27,21 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
28
28
|
s.require_paths = ["lib"]
|
29
29
|
|
30
|
-
s.add_dependency "activerecord", ">=
|
30
|
+
s.add_dependency "activerecord", ">= 5.2.0", "< 8.0.0"
|
31
31
|
|
32
32
|
s.add_development_dependency "bundler", ">= 1.0.0"
|
33
|
-
s.add_development_dependency "rake", ">= 10.0", "<=
|
33
|
+
s.add_development_dependency "rake", ">= 10.0", "<= 14.0"
|
34
34
|
s.add_development_dependency "appraisal", "~> 2.0"
|
35
35
|
s.add_development_dependency "rspec", "~> 3.0"
|
36
36
|
s.add_development_dependency "rspec-its", "~> 1.0"
|
37
37
|
s.add_development_dependency "sqlite3", ">= 1.3"
|
38
38
|
s.add_development_dependency "database_cleaner", ">= 1.0"
|
39
|
-
s.add_development_dependency "
|
39
|
+
s.add_development_dependency "simplecov", ">= 0.21"
|
40
|
+
s.add_development_dependency "simplecov-lcov", ">= 0.8"
|
40
41
|
s.add_development_dependency "gem-release", ">= 0.7"
|
41
42
|
s.add_development_dependency "timecop", ">= 0.7.1"
|
42
43
|
|
43
|
-
s.required_ruby_version = ">= 2.
|
44
|
+
s.required_ruby_version = ">= 2.7.0"
|
44
45
|
|
45
46
|
s.required_rubygems_version = ">= 1.4.0"
|
46
47
|
end
|
data/gemfiles/rails_6_0.gemfile
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "activesupport", "~> 6.0.0
|
6
|
-
gem "actionpack", "~> 6.0.0
|
7
|
-
gem "activerecord", "~> 6.0.0
|
8
|
-
gem "railties", "~> 6.0.0
|
5
|
+
gem "activesupport", "~> 6.0.0"
|
6
|
+
gem "actionpack", "~> 6.0.0"
|
7
|
+
gem "activerecord", "~> 6.0.0"
|
8
|
+
gem "railties", "~> 6.0.0"
|
9
9
|
|
10
10
|
gemspec path: "../"
|
@@ -40,8 +40,14 @@ module ActiveRecordTweaks
|
|
40
40
|
|
41
41
|
timestamp = max_updated_attribute_timestamp_for_cache_key(attribute_names)
|
42
42
|
if timestamp
|
43
|
-
|
44
|
-
|
43
|
+
timestamp_str = timestamp.utc.yield_self do |utc_time|
|
44
|
+
if utc_time.respond_to?(:to_fs)
|
45
|
+
utc_time.to_fs(cache_timestamp_format)
|
46
|
+
else
|
47
|
+
utc_time.to_s(cache_timestamp_format)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
"#{self.class.model_name.cache_key}/#{id}-#{timestamp_str}"
|
45
51
|
else
|
46
52
|
"#{self.class.model_name.cache_key}/#{id}"
|
47
53
|
end
|
@@ -87,8 +93,14 @@ module ActiveRecordTweaks
|
|
87
93
|
timestamp_columns = args.empty? ? [:updated_at] : args
|
88
94
|
|
89
95
|
if (timestamp = max_updated_column_timestamp_for_cache_key(timestamp_columns))
|
90
|
-
|
91
|
-
|
96
|
+
timestamp_str = timestamp.utc.yield_self do |utc_time|
|
97
|
+
if utc_time.respond_to?(:to_fs)
|
98
|
+
utc_time.to_fs(cache_timestamp_format)
|
99
|
+
else
|
100
|
+
utc_time.to_s(cache_timestamp_format)
|
101
|
+
end
|
102
|
+
end
|
103
|
+
"#{model_name.cache_key}/all/#{count}-#{timestamp_str}"
|
92
104
|
else
|
93
105
|
cache_key_without_timestamp
|
94
106
|
end
|
@@ -23,7 +23,7 @@ describe Parent do
|
|
23
23
|
let(:record) { Parent.create! }
|
24
24
|
|
25
25
|
context "and update_at is nil" do
|
26
|
-
before { record.
|
26
|
+
before { record.update!(updated_at: nil) }
|
27
27
|
|
28
28
|
it "works like #cache_key" do
|
29
29
|
should eq "#{record.class.model_name.cache_key}/#{record.id}"
|
@@ -58,9 +58,26 @@ describe Parent do
|
|
58
58
|
end
|
59
59
|
|
60
60
|
let(:virtual_update_at_1) { record.virtual_update_at_1 }
|
61
|
-
let(:virtual_update_at_1_in_cache_key)
|
61
|
+
let(:virtual_update_at_1_in_cache_key) do
|
62
|
+
|
63
|
+
virtual_update_at_1.utc.yield_self do |utc_time|
|
64
|
+
if utc_time.respond_to?(:to_fs)
|
65
|
+
utc_time.to_fs(:nsec)
|
66
|
+
else
|
67
|
+
utc_time.to_s(:nsec)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
62
71
|
let(:virtual_update_at_2) { record.virtual_update_at_2 }
|
63
|
-
let(:virtual_update_at_2_in_cache_key)
|
72
|
+
let(:virtual_update_at_2_in_cache_key) do
|
73
|
+
virtual_update_at_2.utc.yield_self do |utc_time|
|
74
|
+
if utc_time.respond_to?(:to_fs)
|
75
|
+
utc_time.to_fs(:nsec)
|
76
|
+
else
|
77
|
+
utc_time.to_s(:nsec)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
64
81
|
|
65
82
|
subject { record.cache_key_from_attribute(*arguments) }
|
66
83
|
|
@@ -211,8 +228,16 @@ describe Parent do
|
|
211
228
|
let!(:parent) { klass.create! }
|
212
229
|
|
213
230
|
it do
|
231
|
+
expected_time_str = klass.maximum(:updated_at).utc.yield_self do |utc_time|
|
232
|
+
if utc_time.respond_to?(:to_fs)
|
233
|
+
utc_time.to_fs(:nsec)
|
234
|
+
else
|
235
|
+
utc_time.to_s(:nsec)
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
214
239
|
should eq "parents/all/"\
|
215
|
-
"#{klass.count}-#{
|
240
|
+
"#{klass.count}-#{expected_time_str}"
|
216
241
|
end
|
217
242
|
|
218
243
|
context "when record all has nil updated timestamps" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,6 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
if ENV["COVERALLS"]
|
4
|
+
require "simplecov"
|
5
|
+
require "simplecov-lcov"
|
6
|
+
|
7
|
+
SimpleCov::Formatter::LcovFormatter.config do |c|
|
8
|
+
c.report_with_single_file = true
|
9
|
+
c.single_report_path = "coverage/lcov.info"
|
10
|
+
end
|
11
|
+
|
12
|
+
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
|
13
|
+
[SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::LcovFormatter]
|
14
|
+
)
|
15
|
+
|
16
|
+
SimpleCov.start do
|
17
|
+
add_filter "spec/"
|
18
|
+
end
|
4
19
|
end
|
5
20
|
|
6
21
|
require "active_record"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record_tweaks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PikachuEXE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 5.2.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: 8.0.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:
|
29
|
+
version: 5.2.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 8.0.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
version: '10.0'
|
54
54
|
- - "<="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: '
|
56
|
+
version: '14.0'
|
57
57
|
type: :development
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -63,7 +63,7 @@ dependencies:
|
|
63
63
|
version: '10.0'
|
64
64
|
- - "<="
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: '
|
66
|
+
version: '14.0'
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: appraisal
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,19 +135,33 @@ dependencies:
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '1.0'
|
137
137
|
- !ruby/object:Gem::Dependency
|
138
|
-
name:
|
138
|
+
name: simplecov
|
139
139
|
requirement: !ruby/object:Gem::Requirement
|
140
140
|
requirements:
|
141
141
|
- - ">="
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '0.
|
143
|
+
version: '0.21'
|
144
144
|
type: :development
|
145
145
|
prerelease: false
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - ">="
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '0.
|
150
|
+
version: '0.21'
|
151
|
+
- !ruby/object:Gem::Dependency
|
152
|
+
name: simplecov-lcov
|
153
|
+
requirement: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0.8'
|
158
|
+
type: :development
|
159
|
+
prerelease: false
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0.8'
|
151
165
|
- !ruby/object:Gem::Dependency
|
152
166
|
name: gem-release
|
153
167
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,9 +198,13 @@ executables: []
|
|
184
198
|
extensions: []
|
185
199
|
extra_rdoc_files: []
|
186
200
|
files:
|
201
|
+
- ".github/CODEOWNERS"
|
202
|
+
- ".github/FUNDING.yml"
|
203
|
+
- ".github/dependabot.yml"
|
204
|
+
- ".github/workflows/coverage.yml"
|
205
|
+
- ".github/workflows/tests.yaml"
|
187
206
|
- ".gitignore"
|
188
207
|
- ".rspec"
|
189
|
-
- ".travis.yml"
|
190
208
|
- Appraisals
|
191
209
|
- CHANGELOG.md
|
192
210
|
- Gemfile
|
@@ -195,11 +213,10 @@ files:
|
|
195
213
|
- Rakefile
|
196
214
|
- active_record_tweaks.gemspec
|
197
215
|
- gemfiles/.bundle/config
|
198
|
-
- gemfiles/rails_4_2.gemfile
|
199
|
-
- gemfiles/rails_5_0.gemfile
|
200
|
-
- gemfiles/rails_5_1.gemfile
|
201
216
|
- gemfiles/rails_5_2.gemfile
|
202
217
|
- gemfiles/rails_6_0.gemfile
|
218
|
+
- gemfiles/rails_6_1.gemfile
|
219
|
+
- gemfiles/rails_7_0.gemfile
|
203
220
|
- lib/active_record_tweaks.rb
|
204
221
|
- lib/active_record_tweaks/integration.rb
|
205
222
|
- lib/active_record_tweaks/version.rb
|
@@ -217,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
217
234
|
requirements:
|
218
235
|
- - ">="
|
219
236
|
- !ruby/object:Gem::Version
|
220
|
-
version: 2.
|
237
|
+
version: 2.7.0
|
221
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
222
239
|
requirements:
|
223
240
|
- - ">="
|
224
241
|
- !ruby/object:Gem::Version
|
225
242
|
version: 1.4.0
|
226
243
|
requirements: []
|
227
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.3.11
|
228
245
|
signing_key:
|
229
246
|
specification_version: 4
|
230
247
|
summary: Some Tweaks for ActiveRecord
|
data/.travis.yml
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# Send builds to container-based infrastructure
|
2
|
-
# http://docs.travis-ci.com/user/workers/container-based-infrastructure/
|
3
|
-
sudo: false
|
4
|
-
language: ruby
|
5
|
-
cache:
|
6
|
-
- bundler
|
7
|
-
rvm:
|
8
|
-
- 2.4
|
9
|
-
- 2.5
|
10
|
-
- 2.6
|
11
|
-
- ruby-head
|
12
|
-
gemfile:
|
13
|
-
- gemfiles/rails_4_2.gemfile
|
14
|
-
- gemfiles/rails_5_0.gemfile
|
15
|
-
- gemfiles/rails_5_1.gemfile
|
16
|
-
- gemfiles/rails_5_2.gemfile
|
17
|
-
- gemfiles/rails_6_0.gemfile
|
18
|
-
matrix:
|
19
|
-
fast_finish: true
|
20
|
-
exclude:
|
21
|
-
- rvm: 2.4
|
22
|
-
gemfile: gemfiles/rails_6_0.gemfile
|
23
|
-
allow_failures:
|
24
|
-
- rvm: ruby-head
|
data/gemfiles/rails_4_2.gemfile
DELETED
data/gemfiles/rails_5_0.gemfile
DELETED
data/gemfiles/rails_5_1.gemfile
DELETED