index_shotgun 3.0.0 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0279ef3881e13d88280d6bd74cd9eb9dfef670528d165faedef0698bfc7b2bd5'
4
- data.tar.gz: e4eb4d165caec0b99edd42eb44fedb0f77c8e1cd59e35cbe6d9495a7c56d0e43
3
+ metadata.gz: acaefb5aeee959c52b4c3b49300cd5d72c98578fc31d093cc495c674dd15f9ac
4
+ data.tar.gz: ce41e71848e9499b8124a3616b627fcca142cc829e7b9aebddbd64c3802d2314
5
5
  SHA512:
6
- metadata.gz: 303fb0cf2ba572b47fcfcc782a463e7c1bd63ee40bdf516f7bc91f01c058cc11c0077fbbd023a03859ea0e95fee34f4737b1c849df753549a0d5e21546933a20
7
- data.tar.gz: '078fb3cc2b8b28172e395a9d0f4363ddfca5539e1bc740bdd5b47a0a89a6a69185f21d45248bae28d5bec6b184919c2ec5b2c08606060a99367a6d0590ab52d3'
6
+ metadata.gz: 6f8c7e4c7664390dda384f4b75c95c68470387c8a18707098573fde350c196f94780744bcf5daa46df7e45ce00c9b31fc968e4f9a5a696dd86bb09eff542a022
7
+ data.tar.gz: 04da4316c01852baaf3737cfd6d108d6112368c5376e12891a553b418ae480e466e84e2c4a1cc975ed1f82c38d1092468e52dcb045cf023d4b782c690b80b912
@@ -2,11 +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: weekly
9
- cooldown:
10
- default-days: 7
11
+ interval: monthly
12
+ time: "05:00"
13
+ timezone: Asia/Tokyo
11
14
  assignees:
12
15
  - sue445
16
+ cooldown:
17
+ default-days: 7
18
+ exclude:
19
+ - ruby/setup-ruby
20
+ ###########################################################
@@ -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 }}
@@ -1,63 +1,20 @@
1
- # Simple workflow for deploying static content to GitHub Pages
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
- environment:
30
- name: github-pages
31
- url: ${{ steps.deployment.outputs.page_url }}
32
- runs-on: ubuntu-latest
33
- env:
34
- BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
35
- steps:
36
- - name: Checkout
37
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
38
-
39
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
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@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
48
- - name: Upload artifact
49
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
50
- with:
51
- # Upload entire repository
52
- path: './doc'
53
- - name: Deploy to GitHub Pages
54
- id: deployment
55
- uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
56
-
57
- - name: Slack Notification (not success)
58
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # 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
@@ -5,40 +5,11 @@ on:
5
5
 
6
6
  jobs:
7
7
  release:
8
- if: github.repository == 'sue445/index_shotgun'
9
- runs-on: ubuntu-latest
10
-
11
- environment:
12
- name: rubygems.org
13
- url: https://rubygems.org/gems/index_shotgun
14
-
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
15
13
  permissions:
16
14
  contents: write
17
15
  id-token: write
18
-
19
- env:
20
- BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
21
-
22
- steps:
23
- - name: Harden Runner
24
- uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
25
- with:
26
- egress-policy: audit
27
-
28
- - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
29
-
30
- - name: Set up Ruby
31
- uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
32
- with:
33
- bundler-cache: true
34
- ruby-version: ruby
35
-
36
- - name: Publish to RubyGems
37
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
38
-
39
- - name: Create GitHub release
40
- run: |
41
- tag_name="$(git describe --tags --abbrev=0)"
42
- gh release create "${tag_name}" --verify-tag --generate-notes
43
- env:
44
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -35,6 +35,7 @@ jobs:
35
35
  - "3.2"
36
36
  - "3.3"
37
37
  - "3.4"
38
+ - "4.0"
38
39
  gemfile:
39
40
  - activerecord_7_1
40
41
  - activerecord_7_2
@@ -46,10 +47,6 @@ jobs:
46
47
  - postgresql
47
48
  - oracle
48
49
  exclude:
49
- # TODO: latest activerecord-oracle_enhanced-adapter doesn't support activerecord 8.1+
50
- - database: oracle
51
- gemfile: activerecord_8_1
52
-
53
50
  # Rails 7.2+ requires Ruby 3.1+
54
51
  - ruby: "2.7"
55
52
  gemfile: activerecord_7_2
@@ -104,14 +101,14 @@ jobs:
104
101
  ORACLE_SYSTEM_PASSWORD: oracle
105
102
 
106
103
  steps:
107
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
104
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
108
105
 
109
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
106
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
110
107
  with:
111
108
  ruby-version: ${{ matrix.ruby }}
112
109
 
113
110
  - name: Cache vendor/bundle
114
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
111
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
115
112
  id: cache_gem
116
113
  with:
117
114
  path: vendor/bundle
@@ -125,13 +122,6 @@ jobs:
125
122
  set -xe
126
123
  ./ci/install.sh
127
124
 
128
- - name: Setup Code Climate Test Reporter
129
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
130
- with:
131
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
132
- command: before-build
133
- continue-on-error: true
134
-
135
125
  # c.f. https://github.com/actions/virtual-environments/issues/4732#issuecomment-992614476
136
126
  - run: sudo systemctl start mysql
137
127
 
@@ -144,16 +134,8 @@ jobs:
144
134
  POSTGRESQL_PORT: ${{ job.services.postgresql.ports['5432'] }}
145
135
  ORACLE_PORT: ${{ job.services.oracle.ports['1521'] }}
146
136
 
147
- - name: Teardown Code Climate Test Reporter
148
- uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
149
- with:
150
- codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
151
- command: after-build
152
- if: always()
153
- continue-on-error: true
154
-
155
137
  - name: Slack Notification (not success)
156
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
138
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
157
139
  if: "! success()"
158
140
  continue-on-error: true
159
141
  with:
@@ -168,14 +150,14 @@ jobs:
168
150
  BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
169
151
 
170
152
  steps:
171
- - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
153
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
172
154
 
173
- - uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
155
+ - uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
174
156
  with:
175
157
  ruby-version: ruby
176
158
 
177
159
  - name: Cache vendor/bundle
178
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
160
+ uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
179
161
  id: cache_gem_rubocop
180
162
  with:
181
163
  path: vendor/bundle
@@ -194,25 +176,59 @@ jobs:
194
176
  bundle exec rubocop
195
177
 
196
178
  - name: Slack Notification (not success)
197
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
179
+ uses: act10ns/slack@d96404edccc6d6467fc7f8134a420c851b1e9054 # v2.2.0
198
180
  if: "! success()"
199
181
  continue-on-error: true
200
182
  with:
201
183
  status: ${{ job.status }}
202
184
  webhook-url: ${{ secrets.SLACK_WEBHOOK }}
203
185
 
204
- notify:
205
- needs:
206
- - test
207
- - rubocop
208
-
186
+ yard:
209
187
  runs-on: ubuntu-latest
210
188
 
189
+ env:
190
+ BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
191
+
211
192
  steps:
212
- - name: Slack Notification (success)
213
- uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
214
- if: always()
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()"
215
215
  continue-on-error: true
216
216
  with:
217
217
  status: ${{ job.status }}
218
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/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
- [Full Changelog](https://github.com/sue445/index_shotgun/compare/v3.0.0...master)
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
4
10
 
5
11
  ## [v3.0.0](https://github.com/sue445/index_shotgun/releases/tag/v3.0.0) (2025/11/29)
6
12
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v2.0.1...v3.0.0)
data/Gemfile CHANGED
@@ -19,3 +19,5 @@ end
19
19
  group :sqlite3 do
20
20
  gem "sqlite3"
21
21
  end
22
+
23
+ eval_gemfile "./gemfiles/common.gemfile"
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # IndexShotgun :fire: :gun: :cop:
2
2
  [![Gem Version](https://badge.fury.io/rb/index_shotgun.svg)](http://badge.fury.io/rb/index_shotgun)
3
3
  [![test](https://github.com/sue445/index_shotgun/actions/workflows/test.yml/badge.svg)](https://github.com/sue445/index_shotgun/actions/workflows/test.yml)
4
- [![Code Climate](https://codeclimate.com/github/sue445/index_shotgun/badges/gpa.svg)](https://codeclimate.com/github/sue445/index_shotgun)
4
+ [![Maintainability](https://qlty.sh/gh/sue445/projects/index_shotgun/maintainability.svg)](https://qlty.sh/gh/sue445/projects/index_shotgun)
5
5
 
6
6
  Duplicate index checker.
7
7
 
data/ci/install.sh CHANGED
@@ -55,4 +55,4 @@ else
55
55
  fi
56
56
 
57
57
  bundle config set --local path "vendor/bundle/"
58
- bundle update --jobs $(nproc) --retry 3
58
+ bundle update --all --jobs $(nproc) --retry 3
@@ -22,4 +22,6 @@ group :sqlite3 do
22
22
  gem "sqlite3", "~> 1.4"
23
23
  end
24
24
 
25
+ eval_gemfile "./common.gemfile"
26
+
25
27
  gemspec path: "../"
@@ -22,4 +22,6 @@ group :sqlite3 do
22
22
  gem "sqlite3", ">= 1.4"
23
23
  end
24
24
 
25
+ eval_gemfile "./common.gemfile"
26
+
25
27
  gemspec path: "../"
@@ -22,4 +22,6 @@ group :sqlite3 do
22
22
  gem "sqlite3", ">= 2.1"
23
23
  end
24
24
 
25
+ eval_gemfile "./common.gemfile"
26
+
25
27
  gemspec path: "../"
@@ -12,14 +12,16 @@ group :mysql do
12
12
  gem "mysql2", "~> 0.5"
13
13
  end
14
14
 
15
- # group :oracle do
16
- # gem "activerecord-oracle_enhanced-adapter", "~> 8.0.0.rc1"
17
- # gem "ruby-oci8"
18
- # end
15
+ group :oracle do
16
+ gem "activerecord-oracle_enhanced-adapter", "~> 8.1.0"
17
+ gem "ruby-oci8"
18
+ end
19
19
 
20
20
  group :sqlite3 do
21
21
  # c.f. https://github.com/rails/rails/blob/v8.1.0.rc1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
22
22
  gem "sqlite3", ">= 2.1"
23
23
  end
24
24
 
25
+ eval_gemfile "./common.gemfile"
26
+
25
27
  gemspec path: "../"
@@ -0,0 +1,4 @@
1
+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.2.0")
2
+ # NOTE: i18n 1.15.0+ requires Ruby 3.2+
3
+ gem "i18n", "< 1.15.0"
4
+ end
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
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
39
  spec.add_development_dependency "rubocop", "1.81.7"
@@ -1,3 +1,3 @@
1
1
  module IndexShotgun
2
- VERSION = "3.0.0".freeze
2
+ VERSION = "3.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index_shotgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
@@ -93,6 +93,20 @@ dependencies:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
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'
96
110
  - !ruby/object:Gem::Dependency
97
111
  name: rspec
98
112
  requirement: !ruby/object:Gem::Requirement
@@ -173,6 +187,8 @@ extra_rdoc_files: []
173
187
  files:
174
188
  - ".coveralls.yml"
175
189
  - ".github/dependabot.yml"
190
+ - ".github/release.yml"
191
+ - ".github/workflows/dependabot-manager.yml"
176
192
  - ".github/workflows/pages.yml"
177
193
  - ".github/workflows/release_gem.yml"
178
194
  - ".github/workflows/test.yml"
@@ -199,6 +215,7 @@ files:
199
215
  - gemfiles/activerecord_7_2.gemfile
200
216
  - gemfiles/activerecord_8_0.gemfile
201
217
  - gemfiles/activerecord_8_1.gemfile
218
+ - gemfiles/common.gemfile
202
219
  - index_shotgun.gemspec
203
220
  - lib/index_shotgun.rb
204
221
  - lib/index_shotgun/analyzer.rb
@@ -231,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
248
  - !ruby/object:Gem::Version
232
249
  version: '0'
233
250
  requirements: []
234
- rubygems_version: 3.6.7
251
+ rubygems_version: 4.0.16
235
252
  specification_version: 4
236
253
  summary: duplicate index checker
237
254
  test_files: []