index_shotgun 2.0.1 → 3.0.1
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/dependabot.yml +11 -1
- data/.github/release.yml +31 -0
- data/.github/workflows/dependabot-manager.yml +28 -0
- data/.github/workflows/pages.yml +6 -49
- data/.github/workflows/release_gem.yml +15 -0
- data/.github/workflows/test.yml +65 -64
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +17 -1
- data/Gemfile +2 -0
- data/README.md +1 -1
- data/ci/install.sh +1 -1
- data/gemfiles/activerecord_7_1.gemfile +2 -0
- data/gemfiles/activerecord_7_2.gemfile +6 -5
- data/gemfiles/activerecord_8_0.gemfile +6 -5
- data/gemfiles/activerecord_8_1.gemfile +27 -0
- data/gemfiles/common.gemfile +4 -0
- data/index_shotgun.gemspec +5 -4
- data/lib/index_shotgun/analyzer.rb +1 -1
- data/lib/index_shotgun/version.rb +1 -1
- metadata +31 -18
- data/gemfiles/activerecord_6_0.gemfile +0 -30
- data/gemfiles/activerecord_6_1.gemfile +0 -30
- data/gemfiles/activerecord_7_0.gemfile +0 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acaefb5aeee959c52b4c3b49300cd5d72c98578fc31d093cc495c674dd15f9ac
|
|
4
|
+
data.tar.gz: ce41e71848e9499b8124a3616b627fcca142cc829e7b9aebddbd64c3802d2314
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f8c7e4c7664390dda384f4b75c95c68470387c8a18707098573fde350c196f94780744bcf5daa46df7e45ce00c9b31fc968e4f9a5a696dd86bb09eff542a022
|
|
7
|
+
data.tar.gz: 04da4316c01852baaf3737cfd6d108d6112368c5376e12891a553b418ae480e466e84e2c4a1cc975ed1f82c38d1092468e52dcb045cf023d4b782c690b80b912
|
data/.github/dependabot.yml
CHANGED
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
version: 2
|
|
3
3
|
|
|
4
4
|
updates:
|
|
5
|
+
###########################################################
|
|
6
|
+
# NOTE: following sections are auto generated. DO NOT EDIT!
|
|
7
|
+
###########################################################
|
|
5
8
|
- package-ecosystem: github-actions
|
|
6
9
|
directory: /
|
|
7
10
|
schedule:
|
|
8
|
-
interval:
|
|
11
|
+
interval: monthly
|
|
12
|
+
time: "05:00"
|
|
13
|
+
timezone: Asia/Tokyo
|
|
9
14
|
assignees:
|
|
10
15
|
- sue445
|
|
16
|
+
cooldown:
|
|
17
|
+
default-days: 7
|
|
18
|
+
exclude:
|
|
19
|
+
- ruby/setup-ruby
|
|
20
|
+
###########################################################
|
data/.github/release.yml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# ref. https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes#configuring-automatically-generated-release-notes
|
|
2
|
+
|
|
3
|
+
changelog:
|
|
4
|
+
exclude:
|
|
5
|
+
labels:
|
|
6
|
+
- chore
|
|
7
|
+
|
|
8
|
+
categories:
|
|
9
|
+
- title: ":bomb: Breaking Changes"
|
|
10
|
+
labels:
|
|
11
|
+
- breaking change
|
|
12
|
+
|
|
13
|
+
- title: ":lock: Security Fix"
|
|
14
|
+
labels:
|
|
15
|
+
- security
|
|
16
|
+
|
|
17
|
+
- title: ":rocket: Features"
|
|
18
|
+
labels:
|
|
19
|
+
- enhancement
|
|
20
|
+
|
|
21
|
+
- title: ":bug: Bug Fixes"
|
|
22
|
+
labels:
|
|
23
|
+
- bug
|
|
24
|
+
|
|
25
|
+
- title: ":dependabot: Dependency updates"
|
|
26
|
+
labels:
|
|
27
|
+
- dependencies
|
|
28
|
+
|
|
29
|
+
- title: ":pencil: Other Changes"
|
|
30
|
+
labels:
|
|
31
|
+
- "*"
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: dependabot-manager
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize # PR branch is rebased
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
dependabot-auto-merge:
|
|
11
|
+
uses: sue445/workflows/.github/workflows/dependabot-auto-merge.yml@main
|
|
12
|
+
with:
|
|
13
|
+
repo-name: sue445/index_shotgun
|
|
14
|
+
secrets:
|
|
15
|
+
# TODO: Set secrets to Dependabot secrets
|
|
16
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
17
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
19
|
+
|
|
20
|
+
dependabot-security-alert:
|
|
21
|
+
uses: sue445/workflows/.github/workflows/dependabot-security-alert.yml@main
|
|
22
|
+
with:
|
|
23
|
+
repo-name: sue445/index_shotgun
|
|
24
|
+
secrets:
|
|
25
|
+
# TODO: Set secrets to Dependabot secrets
|
|
26
|
+
app-id: ${{ secrets.GH_APP_ID }}
|
|
27
|
+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
28
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
data/.github/workflows/pages.yml
CHANGED
|
@@ -1,63 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
name: Deploy static content to Pages
|
|
1
|
+
name: Deploy yard to Pages
|
|
3
2
|
|
|
4
3
|
on:
|
|
5
|
-
# Runs on pushes targeting the default branch
|
|
6
4
|
push:
|
|
7
5
|
branches:
|
|
8
6
|
- master
|
|
9
|
-
paths-ignore:
|
|
10
|
-
- ".github/workflows/test.yml"
|
|
11
|
-
|
|
12
|
-
# Allows you to run this workflow manually from the Actions tab
|
|
13
7
|
workflow_dispatch:
|
|
14
8
|
|
|
15
|
-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
16
9
|
permissions:
|
|
17
10
|
contents: read
|
|
18
11
|
pages: write
|
|
19
12
|
id-token: write
|
|
20
13
|
|
|
21
|
-
# Allow one concurrent deployment
|
|
22
|
-
concurrency:
|
|
23
|
-
group: "pages"
|
|
24
|
-
cancel-in-progress: true
|
|
25
|
-
|
|
26
14
|
jobs:
|
|
27
|
-
# Single deploy job since we're just deploying
|
|
28
15
|
deploy:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
|
|
35
|
-
steps:
|
|
36
|
-
- name: Checkout
|
|
37
|
-
uses: actions/checkout@v4
|
|
38
|
-
|
|
39
|
-
- uses: ruby/setup-ruby@v1
|
|
40
|
-
with:
|
|
41
|
-
ruby-version: ruby
|
|
42
|
-
bundler-cache: true
|
|
43
|
-
|
|
44
|
-
- run: bundle exec yard
|
|
45
|
-
|
|
46
|
-
- name: Setup Pages
|
|
47
|
-
uses: actions/configure-pages@v5
|
|
48
|
-
- name: Upload artifact
|
|
49
|
-
uses: actions/upload-pages-artifact@v3
|
|
50
|
-
with:
|
|
51
|
-
# Upload entire repository
|
|
52
|
-
path: './doc'
|
|
53
|
-
- name: Deploy to GitHub Pages
|
|
54
|
-
id: deployment
|
|
55
|
-
uses: actions/deploy-pages@main
|
|
56
|
-
|
|
57
|
-
- name: Slack Notification (not success)
|
|
58
|
-
uses: act10ns/slack@v2
|
|
59
|
-
if: "! success()"
|
|
60
|
-
continue-on-error: true
|
|
61
|
-
with:
|
|
62
|
-
status: ${{ job.status }}
|
|
63
|
-
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
16
|
+
uses: sue445/workflows/.github/workflows/pages-yard.yml@main
|
|
17
|
+
secrets:
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
19
|
+
with:
|
|
20
|
+
bundle-without: mysql postgresql sqlite3 oracle
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
uses: sue445/workflows/.github/workflows/release_gem.yml@main
|
|
9
|
+
with:
|
|
10
|
+
repo-name: sue445/index_shotgun
|
|
11
|
+
gem-name: index_shotgun
|
|
12
|
+
bundle-without: mysql:postgresql:sqlite3:oracle
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
id-token: write
|
data/.github/workflows/test.yml
CHANGED
|
@@ -16,6 +16,10 @@ on:
|
|
|
16
16
|
schedule:
|
|
17
17
|
- cron: "0 20 * * 5" # JST 5:00 (Sat)
|
|
18
18
|
|
|
19
|
+
concurrency:
|
|
20
|
+
group: ci-${{ github.ref }}-${{ github.workflow }}
|
|
21
|
+
cancel-in-progress: true
|
|
22
|
+
|
|
19
23
|
jobs:
|
|
20
24
|
test:
|
|
21
25
|
runs-on: ubuntu-latest
|
|
@@ -25,64 +29,43 @@ jobs:
|
|
|
25
29
|
|
|
26
30
|
matrix:
|
|
27
31
|
ruby:
|
|
28
|
-
- "2.5"
|
|
29
|
-
- "2.6"
|
|
30
32
|
- "2.7"
|
|
31
33
|
- "3.0"
|
|
32
34
|
- "3.1"
|
|
33
35
|
- "3.2"
|
|
34
36
|
- "3.3"
|
|
35
37
|
- "3.4"
|
|
38
|
+
- "4.0"
|
|
36
39
|
gemfile:
|
|
37
|
-
- activerecord_6_0
|
|
38
|
-
- activerecord_6_1
|
|
39
|
-
- activerecord_7_0
|
|
40
40
|
- activerecord_7_1
|
|
41
41
|
- activerecord_7_2
|
|
42
42
|
- activerecord_8_0
|
|
43
|
+
- activerecord_8_1
|
|
43
44
|
database:
|
|
44
45
|
- sqlite3
|
|
45
46
|
- mysql
|
|
46
47
|
- postgresql
|
|
47
48
|
- oracle
|
|
48
49
|
exclude:
|
|
49
|
-
# Rails 7.0+ requires Ruby 2.7+
|
|
50
|
-
- ruby: "2.5"
|
|
51
|
-
gemfile: activerecord_7_0
|
|
52
|
-
- ruby: "2.6"
|
|
53
|
-
gemfile: activerecord_7_0
|
|
54
|
-
- ruby: "2.5"
|
|
55
|
-
gemfile: activerecord_7_1
|
|
56
|
-
- ruby: "2.6"
|
|
57
|
-
gemfile: activerecord_7_1
|
|
58
|
-
|
|
59
50
|
# Rails 7.2+ requires Ruby 3.1+
|
|
60
|
-
- ruby: "2.5"
|
|
61
|
-
gemfile: activerecord_7_2
|
|
62
|
-
- ruby: "2.6"
|
|
63
|
-
gemfile: activerecord_7_2
|
|
64
51
|
- ruby: "2.7"
|
|
65
52
|
gemfile: activerecord_7_2
|
|
66
53
|
- ruby: "3.0"
|
|
67
54
|
gemfile: activerecord_7_2
|
|
68
55
|
|
|
69
56
|
# Rails 8.0+ requires Ruby 3.2+
|
|
70
|
-
- ruby: "2.5"
|
|
71
|
-
gemfile: activerecord_8_0
|
|
72
|
-
- ruby: "2.6"
|
|
73
|
-
gemfile: activerecord_8_0
|
|
74
57
|
- ruby: "2.7"
|
|
75
58
|
gemfile: activerecord_8_0
|
|
76
59
|
- ruby: "3.0"
|
|
77
60
|
gemfile: activerecord_8_0
|
|
78
61
|
- ruby: "3.1"
|
|
79
62
|
gemfile: activerecord_8_0
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
gemfile:
|
|
84
|
-
-
|
|
85
|
-
gemfile:
|
|
63
|
+
- ruby: "2.7"
|
|
64
|
+
gemfile: activerecord_8_1
|
|
65
|
+
- ruby: "3.0"
|
|
66
|
+
gemfile: activerecord_8_1
|
|
67
|
+
- ruby: "3.1"
|
|
68
|
+
gemfile: activerecord_8_1
|
|
86
69
|
|
|
87
70
|
env:
|
|
88
71
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
@@ -118,14 +101,14 @@ jobs:
|
|
|
118
101
|
ORACLE_SYSTEM_PASSWORD: oracle
|
|
119
102
|
|
|
120
103
|
steps:
|
|
121
|
-
- uses: actions/checkout@
|
|
104
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
122
105
|
|
|
123
|
-
- uses: ruby/setup-ruby@v1
|
|
106
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
124
107
|
with:
|
|
125
108
|
ruby-version: ${{ matrix.ruby }}
|
|
126
109
|
|
|
127
110
|
- name: Cache vendor/bundle
|
|
128
|
-
uses: actions/cache@
|
|
111
|
+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
129
112
|
id: cache_gem
|
|
130
113
|
with:
|
|
131
114
|
path: vendor/bundle
|
|
@@ -139,13 +122,6 @@ jobs:
|
|
|
139
122
|
set -xe
|
|
140
123
|
./ci/install.sh
|
|
141
124
|
|
|
142
|
-
- name: Setup Code Climate Test Reporter
|
|
143
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
144
|
-
with:
|
|
145
|
-
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
146
|
-
command: before-build
|
|
147
|
-
continue-on-error: true
|
|
148
|
-
|
|
149
125
|
# c.f. https://github.com/actions/virtual-environments/issues/4732#issuecomment-992614476
|
|
150
126
|
- run: sudo systemctl start mysql
|
|
151
127
|
|
|
@@ -158,16 +134,8 @@ jobs:
|
|
|
158
134
|
POSTGRESQL_PORT: ${{ job.services.postgresql.ports['5432'] }}
|
|
159
135
|
ORACLE_PORT: ${{ job.services.oracle.ports['1521'] }}
|
|
160
136
|
|
|
161
|
-
- name: Teardown Code Climate Test Reporter
|
|
162
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
163
|
-
with:
|
|
164
|
-
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
165
|
-
command: after-build
|
|
166
|
-
if: always()
|
|
167
|
-
continue-on-error: true
|
|
168
|
-
|
|
169
137
|
- name: Slack Notification (not success)
|
|
170
|
-
uses: act10ns/slack@v2
|
|
138
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
171
139
|
if: "! success()"
|
|
172
140
|
continue-on-error: true
|
|
173
141
|
with:
|
|
@@ -179,24 +147,23 @@ jobs:
|
|
|
179
147
|
runs-on: ubuntu-latest
|
|
180
148
|
|
|
181
149
|
env:
|
|
182
|
-
RUBY_VERSION: 2.5
|
|
183
150
|
BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
|
|
184
151
|
|
|
185
152
|
steps:
|
|
186
|
-
- uses: actions/checkout@
|
|
153
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
187
154
|
|
|
188
|
-
- uses: ruby/setup-ruby@v1
|
|
155
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
189
156
|
with:
|
|
190
|
-
ruby-version:
|
|
157
|
+
ruby-version: ruby
|
|
191
158
|
|
|
192
159
|
- name: Cache vendor/bundle
|
|
193
|
-
uses: actions/cache@
|
|
160
|
+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
194
161
|
id: cache_gem_rubocop
|
|
195
162
|
with:
|
|
196
163
|
path: vendor/bundle
|
|
197
|
-
key: v1-gem-rubocop-${{ runner.os }}-${{
|
|
164
|
+
key: v1-gem-rubocop-${{ runner.os }}-${{ github.sha }}
|
|
198
165
|
restore-keys: |
|
|
199
|
-
v1-gem-rubocop-${{ runner.os }}
|
|
166
|
+
v1-gem-rubocop-${{ runner.os }}-
|
|
200
167
|
|
|
201
168
|
- name: Install
|
|
202
169
|
run: |
|
|
@@ -209,25 +176,59 @@ jobs:
|
|
|
209
176
|
bundle exec rubocop
|
|
210
177
|
|
|
211
178
|
- name: Slack Notification (not success)
|
|
212
|
-
uses: act10ns/slack@v2
|
|
179
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
213
180
|
if: "! success()"
|
|
214
181
|
continue-on-error: true
|
|
215
182
|
with:
|
|
216
183
|
status: ${{ job.status }}
|
|
217
184
|
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
218
185
|
|
|
219
|
-
|
|
220
|
-
needs:
|
|
221
|
-
- test
|
|
222
|
-
- rubocop
|
|
223
|
-
|
|
186
|
+
yard:
|
|
224
187
|
runs-on: ubuntu-latest
|
|
225
188
|
|
|
189
|
+
env:
|
|
190
|
+
BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
|
|
191
|
+
|
|
226
192
|
steps:
|
|
227
|
-
-
|
|
228
|
-
|
|
229
|
-
|
|
193
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
194
|
+
|
|
195
|
+
- uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
|
|
196
|
+
with:
|
|
197
|
+
ruby-version: ruby
|
|
198
|
+
bundler-cache: true
|
|
199
|
+
|
|
200
|
+
- name: bundle update
|
|
201
|
+
run: |
|
|
202
|
+
set -xe
|
|
203
|
+
bundle config path vendor/bundle
|
|
204
|
+
bundle update --all --jobs $(nproc) --retry 3
|
|
205
|
+
|
|
206
|
+
- name: yard generating test
|
|
207
|
+
run: |
|
|
208
|
+
set -xe
|
|
209
|
+
bundle exec yard
|
|
210
|
+
ls -ld doc/
|
|
211
|
+
|
|
212
|
+
- name: Slack Notification (not success)
|
|
213
|
+
uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
|
|
214
|
+
if: "! success()"
|
|
230
215
|
continue-on-error: true
|
|
231
216
|
with:
|
|
232
217
|
status: ${{ job.status }}
|
|
233
218
|
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
219
|
+
|
|
220
|
+
all-pass:
|
|
221
|
+
if: always()
|
|
222
|
+
|
|
223
|
+
needs:
|
|
224
|
+
- test
|
|
225
|
+
- rubocop
|
|
226
|
+
- yard
|
|
227
|
+
|
|
228
|
+
runs-on: ubuntu-slim
|
|
229
|
+
|
|
230
|
+
steps:
|
|
231
|
+
- name: check dependent jobs
|
|
232
|
+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
|
233
|
+
with:
|
|
234
|
+
jobs: ${{ toJSON(needs) }}
|
data/.rubocop.yml
CHANGED
|
@@ -4,10 +4,13 @@ inherit_gem:
|
|
|
4
4
|
- "config/rspec.yml"
|
|
5
5
|
|
|
6
6
|
AllCops:
|
|
7
|
-
TargetRubyVersion: 2.
|
|
7
|
+
TargetRubyVersion: 2.7
|
|
8
8
|
SuggestExtensions: false
|
|
9
9
|
NewCops: disable
|
|
10
10
|
|
|
11
|
+
Layout/ClassStructure:
|
|
12
|
+
Enabled: false
|
|
13
|
+
|
|
11
14
|
Layout/HashAlignment:
|
|
12
15
|
EnforcedHashRocketStyle: table
|
|
13
16
|
EnforcedColonStyle: table
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
## Unreleased
|
|
3
|
-
[Full Changelog](https://github.com/sue445/index_shotgun/compare/
|
|
3
|
+
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v3.0.1...master)
|
|
4
|
+
|
|
5
|
+
## [v3.0.1](https://github.com/sue445/index_shotgun/releases/tag/v3.0.1) (2026/08/23)
|
|
6
|
+
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v3.0.0...v3.0.1)
|
|
7
|
+
|
|
8
|
+
* Migrate release_gem workflow to sue445/workflows (Also testing the gem release)
|
|
9
|
+
* https://github.com/sue445/index_shotgun/pull/206
|
|
10
|
+
|
|
11
|
+
## [v3.0.0](https://github.com/sue445/index_shotgun/releases/tag/v3.0.0) (2025/11/29)
|
|
12
|
+
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v2.0.1...v3.0.0)
|
|
13
|
+
|
|
14
|
+
* :bomb: **[BREAKING CHANGE]** Requires Ruby 2.7+ and activerecord 7.1+
|
|
15
|
+
* https://github.com/sue445/index_shotgun/pull/159
|
|
16
|
+
* Upgrade to RuboCop v1.81.7
|
|
17
|
+
* https://github.com/sue445/index_shotgun/pull/160
|
|
18
|
+
* Release gem from GitHub Actions
|
|
19
|
+
* https://github.com/sue445/index_shotgun/pull/158
|
|
4
20
|
|
|
5
21
|
## [v2.0.1](https://github.com/sue445/index_shotgun/releases/tag/v2.0.1) (2025/01/18)
|
|
6
22
|
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v2.0.0...v2.0.1)
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# IndexShotgun :fire: :gun: :cop:
|
|
2
2
|
[](http://badge.fury.io/rb/index_shotgun)
|
|
3
3
|
[](https://github.com/sue445/index_shotgun/actions/workflows/test.yml)
|
|
4
|
-
[](https://qlty.sh/gh/sue445/projects/index_shotgun)
|
|
5
5
|
|
|
6
6
|
Duplicate index checker.
|
|
7
7
|
|
data/ci/install.sh
CHANGED
|
@@ -12,15 +12,16 @@ group :mysql do
|
|
|
12
12
|
gem "mysql2", "~> 0.5"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# end
|
|
15
|
+
group :oracle do
|
|
16
|
+
gem "activerecord-oracle_enhanced-adapter", "~> 7.2.0.rc1"
|
|
17
|
+
gem "ruby-oci8"
|
|
18
|
+
end
|
|
20
19
|
|
|
21
20
|
group :sqlite3 do
|
|
22
21
|
# c.f. https://github.com/rails/rails/blob/v7.2.0.beta1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
|
23
22
|
gem "sqlite3", ">= 1.4"
|
|
24
23
|
end
|
|
25
24
|
|
|
25
|
+
eval_gemfile "./common.gemfile"
|
|
26
|
+
|
|
26
27
|
gemspec path: "../"
|
|
@@ -12,15 +12,16 @@ group :mysql do
|
|
|
12
12
|
gem "mysql2", "~> 0.5"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# end
|
|
15
|
+
group :oracle do
|
|
16
|
+
gem "activerecord-oracle_enhanced-adapter", "~> 8.0.0.rc1"
|
|
17
|
+
gem "ruby-oci8"
|
|
18
|
+
end
|
|
20
19
|
|
|
21
20
|
group :sqlite3 do
|
|
22
21
|
# c.f. https://github.com/rails/rails/blob/v8.0.0.rc1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
|
23
22
|
gem "sqlite3", ">= 2.1"
|
|
24
23
|
end
|
|
25
24
|
|
|
25
|
+
eval_gemfile "./common.gemfile"
|
|
26
|
+
|
|
26
27
|
gemspec path: "../"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "activerecord", "~> 8.1.0.rc1"
|
|
4
|
+
|
|
5
|
+
group :postgresql do
|
|
6
|
+
# c.f. https://github.com/rails/rails/blob/v8.1.0.rc1/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3-L4
|
|
7
|
+
gem "pg", "~> 1.1"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
group :mysql do
|
|
11
|
+
# c.f. https://github.com/rails/rails/blob/v8.1.0.rc1/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
|
|
12
|
+
gem "mysql2", "~> 0.5"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
group :oracle do
|
|
16
|
+
gem "activerecord-oracle_enhanced-adapter", "~> 8.1.0"
|
|
17
|
+
gem "ruby-oci8"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
group :sqlite3 do
|
|
21
|
+
# c.f. https://github.com/rails/rails/blob/v8.1.0.rc1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
|
22
|
+
gem "sqlite3", ">= 2.1"
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
eval_gemfile "./common.gemfile"
|
|
26
|
+
|
|
27
|
+
gemspec path: "../"
|
data/index_shotgun.gemspec
CHANGED
|
@@ -19,23 +19,24 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.metadata["documentation_uri"] = "https://sue445.github.io/index_shotgun/"
|
|
20
20
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
21
21
|
|
|
22
|
-
spec.required_ruby_version = ">= 2.
|
|
22
|
+
spec.required_ruby_version = ">= 2.7.0"
|
|
23
23
|
|
|
24
24
|
spec.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
|
|
25
25
|
spec.bindir = "exe"
|
|
26
26
|
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
|
27
27
|
spec.require_paths = ["lib"]
|
|
28
28
|
|
|
29
|
-
spec.add_dependency "activerecord", ">=
|
|
29
|
+
spec.add_dependency "activerecord", ">= 7.1.0"
|
|
30
30
|
spec.add_dependency "thor"
|
|
31
31
|
|
|
32
32
|
spec.add_development_dependency "bundler"
|
|
33
33
|
spec.add_development_dependency "onkcop", "1.0.0.0"
|
|
34
34
|
spec.add_development_dependency "rake"
|
|
35
35
|
spec.add_development_dependency "rake_shared_context", "0.2.2"
|
|
36
|
+
spec.add_development_dependency "rdoc"
|
|
36
37
|
spec.add_development_dependency "rspec"
|
|
37
38
|
spec.add_development_dependency "rspec-its"
|
|
38
|
-
spec.add_development_dependency "rubocop", "1.
|
|
39
|
-
spec.add_development_dependency "rubocop_auto_corrector"
|
|
39
|
+
spec.add_development_dependency "rubocop", "1.81.7"
|
|
40
|
+
spec.add_development_dependency "rubocop_auto_corrector"
|
|
40
41
|
spec.add_development_dependency "yard"
|
|
41
42
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: index_shotgun
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 3.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- sue445
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: activerecord
|
|
@@ -16,14 +15,14 @@ dependencies:
|
|
|
16
15
|
requirements:
|
|
17
16
|
- - ">="
|
|
18
17
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
18
|
+
version: 7.1.0
|
|
20
19
|
type: :runtime
|
|
21
20
|
prerelease: false
|
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
22
|
requirements:
|
|
24
23
|
- - ">="
|
|
25
24
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
25
|
+
version: 7.1.0
|
|
27
26
|
- !ruby/object:Gem::Dependency
|
|
28
27
|
name: thor
|
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -94,6 +93,20 @@ dependencies:
|
|
|
94
93
|
- - '='
|
|
95
94
|
- !ruby/object:Gem::Version
|
|
96
95
|
version: 0.2.2
|
|
96
|
+
- !ruby/object:Gem::Dependency
|
|
97
|
+
name: rdoc
|
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
|
99
|
+
requirements:
|
|
100
|
+
- - ">="
|
|
101
|
+
- !ruby/object:Gem::Version
|
|
102
|
+
version: '0'
|
|
103
|
+
type: :development
|
|
104
|
+
prerelease: false
|
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
106
|
+
requirements:
|
|
107
|
+
- - ">="
|
|
108
|
+
- !ruby/object:Gem::Version
|
|
109
|
+
version: '0'
|
|
97
110
|
- !ruby/object:Gem::Dependency
|
|
98
111
|
name: rspec
|
|
99
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -128,28 +141,28 @@ dependencies:
|
|
|
128
141
|
requirements:
|
|
129
142
|
- - '='
|
|
130
143
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 1.
|
|
144
|
+
version: 1.81.7
|
|
132
145
|
type: :development
|
|
133
146
|
prerelease: false
|
|
134
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
135
148
|
requirements:
|
|
136
149
|
- - '='
|
|
137
150
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 1.
|
|
151
|
+
version: 1.81.7
|
|
139
152
|
- !ruby/object:Gem::Dependency
|
|
140
153
|
name: rubocop_auto_corrector
|
|
141
154
|
requirement: !ruby/object:Gem::Requirement
|
|
142
155
|
requirements:
|
|
143
|
-
- - "
|
|
156
|
+
- - ">="
|
|
144
157
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 0
|
|
158
|
+
version: '0'
|
|
146
159
|
type: :development
|
|
147
160
|
prerelease: false
|
|
148
161
|
version_requirements: !ruby/object:Gem::Requirement
|
|
149
162
|
requirements:
|
|
150
|
-
- - "
|
|
163
|
+
- - ">="
|
|
151
164
|
- !ruby/object:Gem::Version
|
|
152
|
-
version: 0
|
|
165
|
+
version: '0'
|
|
153
166
|
- !ruby/object:Gem::Dependency
|
|
154
167
|
name: yard
|
|
155
168
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -174,7 +187,10 @@ extra_rdoc_files: []
|
|
|
174
187
|
files:
|
|
175
188
|
- ".coveralls.yml"
|
|
176
189
|
- ".github/dependabot.yml"
|
|
190
|
+
- ".github/release.yml"
|
|
191
|
+
- ".github/workflows/dependabot-manager.yml"
|
|
177
192
|
- ".github/workflows/pages.yml"
|
|
193
|
+
- ".github/workflows/release_gem.yml"
|
|
178
194
|
- ".github/workflows/test.yml"
|
|
179
195
|
- ".github_changelog_generator"
|
|
180
196
|
- ".gitignore"
|
|
@@ -195,12 +211,11 @@ files:
|
|
|
195
211
|
- ci/database.yml.sqlite3
|
|
196
212
|
- ci/install.sh
|
|
197
213
|
- exe/index_shotgun
|
|
198
|
-
- gemfiles/activerecord_6_0.gemfile
|
|
199
|
-
- gemfiles/activerecord_6_1.gemfile
|
|
200
|
-
- gemfiles/activerecord_7_0.gemfile
|
|
201
214
|
- gemfiles/activerecord_7_1.gemfile
|
|
202
215
|
- gemfiles/activerecord_7_2.gemfile
|
|
203
216
|
- gemfiles/activerecord_8_0.gemfile
|
|
217
|
+
- gemfiles/activerecord_8_1.gemfile
|
|
218
|
+
- gemfiles/common.gemfile
|
|
204
219
|
- index_shotgun.gemspec
|
|
205
220
|
- lib/index_shotgun.rb
|
|
206
221
|
- lib/index_shotgun/analyzer.rb
|
|
@@ -219,7 +234,6 @@ metadata:
|
|
|
219
234
|
changelog_uri: https://github.com/sue445/index_shotgun/blob/master/CHANGELOG.md
|
|
220
235
|
documentation_uri: https://sue445.github.io/index_shotgun/
|
|
221
236
|
rubygems_mfa_required: 'true'
|
|
222
|
-
post_install_message:
|
|
223
237
|
rdoc_options: []
|
|
224
238
|
require_paths:
|
|
225
239
|
- lib
|
|
@@ -227,15 +241,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
227
241
|
requirements:
|
|
228
242
|
- - ">="
|
|
229
243
|
- !ruby/object:Gem::Version
|
|
230
|
-
version: 2.
|
|
244
|
+
version: 2.7.0
|
|
231
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
246
|
requirements:
|
|
233
247
|
- - ">="
|
|
234
248
|
- !ruby/object:Gem::Version
|
|
235
249
|
version: '0'
|
|
236
250
|
requirements: []
|
|
237
|
-
rubygems_version:
|
|
238
|
-
signing_key:
|
|
251
|
+
rubygems_version: 4.0.16
|
|
239
252
|
specification_version: 4
|
|
240
253
|
summary: duplicate index checker
|
|
241
254
|
test_files: []
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
gem "activerecord", "~> 6.0.0"
|
|
4
|
-
|
|
5
|
-
group :postgresql do
|
|
6
|
-
# c.f. https://github.com/rails/rails/blob/v6.0.0.rc1/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L4
|
|
7
|
-
gem "pg", ">= 0.18", "< 2.0"
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
group :mysql do
|
|
11
|
-
# c.f. https://github.com/rails/rails/blob/v6.0.0.rc1/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
|
|
12
|
-
gem "mysql2", ">= 0.4.4"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
group :oracle do
|
|
16
|
-
gem "activerecord-oracle_enhanced-adapter", "~> 6.0.0"
|
|
17
|
-
gem "ruby-oci8"
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
group :sqlite3 do
|
|
21
|
-
# c.f. https://github.com/rails/rails/blob/v6.0.0.rc1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
|
22
|
-
gem "sqlite3", "~> 1.4"
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
# for Ruby 3.4+
|
|
26
|
-
gem "base64"
|
|
27
|
-
gem "bigdecimal"
|
|
28
|
-
gem "mutex_m"
|
|
29
|
-
|
|
30
|
-
gemspec path: "../"
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
gem "activerecord", "~> 6.1.0"
|
|
4
|
-
|
|
5
|
-
group :postgresql do
|
|
6
|
-
# c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
|
|
7
|
-
gem "pg", "~> 1.1"
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
group :mysql do
|
|
11
|
-
# c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
|
|
12
|
-
gem "mysql2", "~> 0.5"
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
group :oracle do
|
|
16
|
-
gem "activerecord-oracle_enhanced-adapter", "~> 6.1.2"
|
|
17
|
-
gem "ruby-oci8"
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
group :sqlite3 do
|
|
21
|
-
# c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
|
22
|
-
gem "sqlite3", "~> 1.4"
|
|
23
|
-
end
|
|
24
|
-
|
|
25
|
-
# for Ruby 3.4+
|
|
26
|
-
gem "base64"
|
|
27
|
-
gem "bigdecimal"
|
|
28
|
-
gem "mutex_m"
|
|
29
|
-
|
|
30
|
-
gemspec path: "../"
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
source "https://rubygems.org"
|
|
2
|
-
|
|
3
|
-
# NOTE: Ruby 3.1 + Rails 7.0.0 doesn't work
|
|
4
|
-
# c.f. https://gist.github.com/yahonda/2776d8d7b6ea7045359f38c10449937b
|
|
5
|
-
gem "activerecord", "~> 7.0.1"
|
|
6
|
-
|
|
7
|
-
group :postgresql do
|
|
8
|
-
# c.f. https://github.com/rails/rails/blob/v7.0.0/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
|
|
9
|
-
gem "pg", "~> 1.1"
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
group :mysql do
|
|
13
|
-
# c.f. https://github.com/rails/rails/blob/v7.0.0/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
|
|
14
|
-
gem "mysql2", "~> 0.5"
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
group :oracle do
|
|
18
|
-
gem "activerecord-oracle_enhanced-adapter", "~> 7.0.0"
|
|
19
|
-
gem "ruby-oci8"
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
group :sqlite3 do
|
|
23
|
-
# c.f. https://github.com/rails/rails/blob/v7.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
|
24
|
-
gem "sqlite3", "~> 1.4"
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
# for Ruby 3.4+
|
|
28
|
-
gem "base64"
|
|
29
|
-
gem "bigdecimal"
|
|
30
|
-
gem "mutex_m"
|
|
31
|
-
|
|
32
|
-
gemspec path: "../"
|