activerecord-simple_index_name 1.1.1 → 1.1.3
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 +4 -48
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +103 -32
- data/CHANGELOG.md +13 -1
- data/README.md +2 -2
- data/activerecord-simple_index_name.gemspec +1 -0
- data/gemfiles/common.gemfile +5 -0
- data/gemfiles/rails_6_0.gemfile +9 -0
- data/gemfiles/rails_6_1.gemfile +9 -0
- data/gemfiles/rails_7_0.gemfile +6 -0
- data/gemfiles/rails_7_2.gemfile +10 -0
- data/gemfiles/rails_8_0.gemfile +10 -0
- data/gemfiles/rails_8_1.gemfile +10 -0
- data/lib/active_record/simple_index_name/configuration.rb +12 -6
- data/lib/active_record/simple_index_name/version.rb +1 -1
- metadata +23 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e70808f3fb4d0cc8543fad5113dc68439e5ac283f9ecd1e05e850bd531ba3710
|
|
4
|
+
data.tar.gz: fd1b06d368ed19855fb344c5549adfda2359cc2eb752fca31505ea5bbafc7d91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 986c9ea57b5e0cbc744fcfbde39e5b5f67ac9a4d571aec200cd26bf9354f5c88f3d173cb07cc1bbbafa869bc1774e45dcdc1c1cdecc05e7e0bc19f8aee774749
|
|
7
|
+
data.tar.gz: 28b1d146d1efea030ac6e511b73de62dbfca914c687c82ee64f496591bdce65de70b5ccbb7df5807d21c03c63f8e2df29b9fb5ac47767134616e7f9aa265c71c
|
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/activerecord-simple_index_name
|
|
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/activerecord-simple_index_name
|
|
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,62 +1,18 @@
|
|
|
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
|
-
|
|
10
|
-
# Allows you to run this workflow manually from the Actions tab
|
|
11
7
|
workflow_dispatch:
|
|
12
8
|
|
|
13
|
-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
14
9
|
permissions:
|
|
15
10
|
contents: read
|
|
16
11
|
pages: write
|
|
17
12
|
id-token: write
|
|
18
13
|
|
|
19
|
-
# Allow one concurrent deployment
|
|
20
|
-
concurrency:
|
|
21
|
-
group: "pages"
|
|
22
|
-
cancel-in-progress: true
|
|
23
|
-
|
|
24
14
|
jobs:
|
|
25
|
-
# Single deploy job since we're just deploying
|
|
26
15
|
deploy:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
runs-on: ubuntu-latest
|
|
31
|
-
steps:
|
|
32
|
-
- name: Checkout
|
|
33
|
-
uses: actions/checkout@v4
|
|
34
|
-
|
|
35
|
-
- uses: ruby/setup-ruby@v1
|
|
36
|
-
with:
|
|
37
|
-
ruby-version: ruby
|
|
38
|
-
bundler-cache: true
|
|
39
|
-
|
|
40
|
-
- run: bundle exec yard
|
|
41
|
-
|
|
42
|
-
- name: Setup Pages
|
|
43
|
-
uses: actions/configure-pages@v4
|
|
44
|
-
- name: Upload artifact
|
|
45
|
-
uses: actions/upload-pages-artifact@v3
|
|
46
|
-
with:
|
|
47
|
-
# Upload entire repository
|
|
48
|
-
path: './doc'
|
|
49
|
-
- name: Deploy to GitHub Pages
|
|
50
|
-
id: deployment
|
|
51
|
-
uses: actions/deploy-pages@main
|
|
52
|
-
|
|
53
|
-
- name: Slack Notification (not success)
|
|
54
|
-
uses: lazy-actions/slatify@master
|
|
55
|
-
if: "! success()"
|
|
56
|
-
continue-on-error: true
|
|
57
|
-
with:
|
|
58
|
-
job_name: "*pages*"
|
|
59
|
-
type: ${{ job.status }}
|
|
60
|
-
icon_emoji: ":octocat:"
|
|
61
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
62
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
16
|
+
uses: sue445/workflows/.github/workflows/pages-yard.yml@main
|
|
17
|
+
secrets:
|
|
18
|
+
slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Publish gem to rubygems.org
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
release:
|
|
8
|
+
if: github.repository == 'sue445/activerecord-simple_index_name'
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
|
|
11
|
+
environment:
|
|
12
|
+
name: rubygems.org
|
|
13
|
+
url: https://rubygems.org/gems/activerecord-simple_index_name
|
|
14
|
+
|
|
15
|
+
permissions:
|
|
16
|
+
contents: write
|
|
17
|
+
id-token: write
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
- name: Harden Runner
|
|
21
|
+
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub release
|
|
37
|
+
run: |
|
|
38
|
+
tag_name="$(git describe --tags --abbrev=0)"
|
|
39
|
+
gh release create "${tag_name}" --verify-tag --generate-notes
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
data/.github/workflows/test.yml
CHANGED
|
@@ -30,6 +30,8 @@ jobs:
|
|
|
30
30
|
- "3.1"
|
|
31
31
|
- "3.2"
|
|
32
32
|
- "3.3"
|
|
33
|
+
- "3.4"
|
|
34
|
+
- "4.0"
|
|
33
35
|
gemfile:
|
|
34
36
|
- rails_5_0
|
|
35
37
|
- rails_5_1
|
|
@@ -38,6 +40,9 @@ jobs:
|
|
|
38
40
|
- rails_6_1
|
|
39
41
|
- rails_7_0
|
|
40
42
|
- rails_7_1
|
|
43
|
+
- rails_7_2
|
|
44
|
+
- rails_8_0
|
|
45
|
+
- rails_8_1
|
|
41
46
|
|
|
42
47
|
exclude:
|
|
43
48
|
# Rails 6.0+ requires Ruby 2.5+
|
|
@@ -68,6 +73,50 @@ jobs:
|
|
|
68
73
|
- ruby: "2.6"
|
|
69
74
|
gemfile: rails_7_1
|
|
70
75
|
|
|
76
|
+
# Rails 7.2+ requires Ruby 3.1+
|
|
77
|
+
- ruby: "2.3"
|
|
78
|
+
gemfile: rails_7_2
|
|
79
|
+
- ruby: "2.4"
|
|
80
|
+
gemfile: rails_7_2
|
|
81
|
+
- ruby: "2.5"
|
|
82
|
+
gemfile: rails_7_2
|
|
83
|
+
- ruby: "2.6"
|
|
84
|
+
gemfile: rails_7_2
|
|
85
|
+
- ruby: "2.7"
|
|
86
|
+
gemfile: rails_7_2
|
|
87
|
+
- ruby: "3.0"
|
|
88
|
+
gemfile: rails_7_2
|
|
89
|
+
|
|
90
|
+
# Rails 8.0+ requires Ruby 3.2+
|
|
91
|
+
- ruby: "2.3"
|
|
92
|
+
gemfile: rails_8_0
|
|
93
|
+
- ruby: "2.4"
|
|
94
|
+
gemfile: rails_8_0
|
|
95
|
+
- ruby: "2.5"
|
|
96
|
+
gemfile: rails_8_0
|
|
97
|
+
- ruby: "2.6"
|
|
98
|
+
gemfile: rails_8_0
|
|
99
|
+
- ruby: "2.7"
|
|
100
|
+
gemfile: rails_8_0
|
|
101
|
+
- ruby: "3.0"
|
|
102
|
+
gemfile: rails_8_0
|
|
103
|
+
- ruby: "3.1"
|
|
104
|
+
gemfile: rails_8_0
|
|
105
|
+
- ruby: "2.3"
|
|
106
|
+
gemfile: rails_8_1
|
|
107
|
+
- ruby: "2.4"
|
|
108
|
+
gemfile: rails_8_1
|
|
109
|
+
- ruby: "2.5"
|
|
110
|
+
gemfile: rails_8_1
|
|
111
|
+
- ruby: "2.6"
|
|
112
|
+
gemfile: rails_8_1
|
|
113
|
+
- ruby: "2.7"
|
|
114
|
+
gemfile: rails_8_1
|
|
115
|
+
- ruby: "3.0"
|
|
116
|
+
gemfile: rails_8_1
|
|
117
|
+
- ruby: "3.1"
|
|
118
|
+
gemfile: rails_8_1
|
|
119
|
+
|
|
71
120
|
# Rails 5.x doesn't work on Ruby 3.0+
|
|
72
121
|
- ruby: "3.0"
|
|
73
122
|
gemfile: rails_5_0
|
|
@@ -93,63 +142,85 @@ jobs:
|
|
|
93
142
|
gemfile: rails_5_1
|
|
94
143
|
- ruby: "3.3"
|
|
95
144
|
gemfile: rails_5_2
|
|
145
|
+
- ruby: "3.4"
|
|
146
|
+
gemfile: rails_5_0
|
|
147
|
+
- ruby: "3.4"
|
|
148
|
+
gemfile: rails_5_1
|
|
149
|
+
- ruby: "3.4"
|
|
150
|
+
gemfile: rails_5_2
|
|
151
|
+
- ruby: "4.0"
|
|
152
|
+
gemfile: rails_5_0
|
|
153
|
+
- ruby: "4.0"
|
|
154
|
+
gemfile: rails_5_1
|
|
155
|
+
- ruby: "4.0"
|
|
156
|
+
gemfile: rails_5_2
|
|
96
157
|
|
|
97
158
|
env:
|
|
98
159
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
99
160
|
|
|
100
161
|
steps:
|
|
101
|
-
- uses: actions/checkout@
|
|
162
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
102
163
|
|
|
103
|
-
-
|
|
164
|
+
- run: sudo apt-get update
|
|
165
|
+
- run: sudo apt-get install -y libsqlite3-dev
|
|
166
|
+
|
|
167
|
+
- uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
|
|
104
168
|
with:
|
|
105
169
|
ruby-version: ${{ matrix.ruby }}
|
|
106
170
|
bundler-cache: true
|
|
107
171
|
cache-version: ${{ matrix.gemfile }}
|
|
108
172
|
|
|
109
|
-
- run: bundle update --jobs $(nproc) --retry 3
|
|
173
|
+
- run: bundle update --all --jobs $(nproc) --retry 3
|
|
110
174
|
|
|
111
|
-
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
175
|
+
- run: bundle exec rspec
|
|
176
|
+
|
|
177
|
+
- name: Slack Notification (not success)
|
|
178
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
179
|
+
if: "! success()"
|
|
116
180
|
continue-on-error: true
|
|
181
|
+
with:
|
|
182
|
+
status: ${{ job.status }}
|
|
183
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
184
|
+
matrix: ${{ toJson(matrix) }}
|
|
117
185
|
|
|
118
|
-
|
|
186
|
+
yard:
|
|
187
|
+
runs-on: ubuntu-latest
|
|
188
|
+
|
|
189
|
+
steps:
|
|
190
|
+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
119
191
|
|
|
120
|
-
-
|
|
121
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
192
|
+
- uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
|
|
122
193
|
with:
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
194
|
+
ruby-version: ruby
|
|
195
|
+
bundler-cache: true
|
|
196
|
+
|
|
197
|
+
- run: bundle update --all --jobs $(nproc) --retry 3
|
|
198
|
+
|
|
199
|
+
- name: yard generating test
|
|
200
|
+
run: |
|
|
201
|
+
set -xe
|
|
202
|
+
bundle exec yard
|
|
203
|
+
ls -ld doc/
|
|
127
204
|
|
|
128
205
|
- name: Slack Notification (not success)
|
|
129
|
-
uses:
|
|
206
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
130
207
|
if: "! success()"
|
|
131
208
|
continue-on-error: true
|
|
132
209
|
with:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
210
|
+
status: ${{ job.status }}
|
|
211
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
212
|
+
|
|
213
|
+
all-pass:
|
|
214
|
+
if: always()
|
|
138
215
|
|
|
139
|
-
notify:
|
|
140
216
|
needs:
|
|
141
217
|
- test
|
|
218
|
+
- yard
|
|
142
219
|
|
|
143
|
-
runs-on: ubuntu-
|
|
220
|
+
runs-on: ubuntu-slim
|
|
144
221
|
|
|
145
222
|
steps:
|
|
146
|
-
- name:
|
|
147
|
-
uses:
|
|
148
|
-
if: always()
|
|
149
|
-
continue-on-error: true
|
|
223
|
+
- name: check dependent jobs
|
|
224
|
+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
|
150
225
|
with:
|
|
151
|
-
|
|
152
|
-
type: ${{ job.status }}
|
|
153
|
-
icon_emoji: ":octocat:"
|
|
154
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
155
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
226
|
+
jobs: ${{ toJSON(needs) }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
|
-
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.
|
|
4
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.3...master)
|
|
5
|
+
|
|
6
|
+
## [v1.1.3](https://github.com/sue445/activerecord-simple_index_name/releases/tag/v1.1.3)
|
|
7
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.2...v1.1.3)
|
|
8
|
+
|
|
9
|
+
* Fix deprecation warning since activerecord 8.1
|
|
10
|
+
* https://github.com/sue445/activerecord-simple_index_name/pull/137
|
|
11
|
+
|
|
12
|
+
## [v1.1.2](https://github.com/sue445/activerecord-simple_index_name/releases/tag/v1.1.2)
|
|
13
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.1...v1.1.2)
|
|
14
|
+
|
|
15
|
+
* Release gem from GitHub Actions
|
|
16
|
+
* https://github.com/sue445/activerecord-simple_index_name/pull/114
|
|
5
17
|
|
|
6
18
|
## v1.1.1
|
|
7
19
|
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.0...v1.1.1)
|
data/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Shorten index name
|
|
4
4
|
|
|
5
5
|
[](https://badge.fury.io/rb/activerecord-simple_index_name)
|
|
6
|
-
[](https://github.com/sue445/activerecord-simple_index_name/actions/workflows/test.yml)
|
|
7
7
|
[](https://coveralls.io/github/sue445/activerecord-simple_index_name?branch=master)
|
|
8
|
-
[](https://qlty.sh/gh/sue445/projects/activerecord-simple_index_name)
|
|
9
9
|
|
|
10
10
|
## Requirements
|
|
11
11
|
* Ruby 2.3+
|
|
@@ -35,5 +35,6 @@ Gem::Specification.new do |spec|
|
|
|
35
35
|
spec.add_development_dependency "rspec"
|
|
36
36
|
spec.add_development_dependency "simplecov"
|
|
37
37
|
spec.add_development_dependency "sqlite3"
|
|
38
|
+
spec.add_development_dependency "term-ansicolor", "!= 1.11.1" # ref. https://github.com/flori/term-ansicolor/issues/41
|
|
38
39
|
spec.add_development_dependency "yard"
|
|
39
40
|
end
|
data/gemfiles/common.gemfile
CHANGED
|
@@ -2,3 +2,8 @@ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")
|
|
|
2
2
|
# minitest v5.16.0+ requires ruby 2.6.0+
|
|
3
3
|
gem "minitest", "< 5.16.0"
|
|
4
4
|
end
|
|
5
|
+
|
|
6
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.7.0")
|
|
7
|
+
# term-ansicolor 1.9.0+ doesn't work on Ruby < 2.7
|
|
8
|
+
gem "term-ansicolor", "< 1.9.0"
|
|
9
|
+
end
|
data/gemfiles/rails_6_0.gemfile
CHANGED
data/gemfiles/rails_6_1.gemfile
CHANGED
data/gemfiles/rails_7_0.gemfile
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 7.2.0.beta1"
|
|
4
|
+
|
|
5
|
+
# c.f. https://github.com/rails/rails/blob/v7.2.0.beta1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
|
6
|
+
gem "sqlite3", ">= 1.4"
|
|
7
|
+
|
|
8
|
+
gemspec path: '../'
|
|
9
|
+
|
|
10
|
+
eval_gemfile "./common.gemfile"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 8.0.0.rc1"
|
|
4
|
+
|
|
5
|
+
# c.f. https://github.com/rails/rails/blob/v7.2.0.beta1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
|
6
|
+
gem "sqlite3", ">= 1.4"
|
|
7
|
+
|
|
8
|
+
gemspec path: '../'
|
|
9
|
+
|
|
10
|
+
eval_gemfile "./common.gemfile"
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
source "https://rubygems.org"
|
|
2
|
+
|
|
3
|
+
gem "rails", "~> 8.1.0.rc1"
|
|
4
|
+
|
|
5
|
+
# c.f. https://github.com/rails/rails/blob/v8.1.0.beta1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
|
6
|
+
gem "sqlite3", ">= 2.1"
|
|
7
|
+
|
|
8
|
+
gemspec path: '../'
|
|
9
|
+
|
|
10
|
+
eval_gemfile "./common.gemfile"
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
module ActiveRecord
|
|
2
2
|
module SimpleIndexName
|
|
3
|
-
require "active_support/configurable"
|
|
4
|
-
|
|
5
3
|
class Configuration
|
|
6
|
-
|
|
4
|
+
if ActiveSupport.gem_version < Gem::Version.create("8.1.0")
|
|
5
|
+
require "active_support/configurable"
|
|
6
|
+
|
|
7
|
+
include ActiveSupport::Configurable
|
|
8
|
+
|
|
9
|
+
config_accessor :auto_shorten
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
configure do |config|
|
|
12
|
+
config.auto_shorten = true
|
|
13
|
+
end
|
|
14
|
+
else
|
|
15
|
+
require "active_support/core_ext/class/attribute"
|
|
9
16
|
|
|
10
|
-
|
|
11
|
-
config.auto_shorten = true
|
|
17
|
+
class_attribute :auto_shorten, default: true
|
|
12
18
|
end
|
|
13
19
|
end
|
|
14
20
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activerecord-simple_index_name
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.3
|
|
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
|
|
@@ -136,6 +135,20 @@ dependencies:
|
|
|
136
135
|
- - ">="
|
|
137
136
|
- !ruby/object:Gem::Version
|
|
138
137
|
version: '0'
|
|
138
|
+
- !ruby/object:Gem::Dependency
|
|
139
|
+
name: term-ansicolor
|
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
|
141
|
+
requirements:
|
|
142
|
+
- - "!="
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: 1.11.1
|
|
145
|
+
type: :development
|
|
146
|
+
prerelease: false
|
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
148
|
+
requirements:
|
|
149
|
+
- - "!="
|
|
150
|
+
- !ruby/object:Gem::Version
|
|
151
|
+
version: 1.11.1
|
|
139
152
|
- !ruby/object:Gem::Dependency
|
|
140
153
|
name: yard
|
|
141
154
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -159,7 +172,10 @@ extra_rdoc_files: []
|
|
|
159
172
|
files:
|
|
160
173
|
- ".coveralls.yml"
|
|
161
174
|
- ".github/dependabot.yml"
|
|
175
|
+
- ".github/release.yml"
|
|
176
|
+
- ".github/workflows/dependabot-manager.yml"
|
|
162
177
|
- ".github/workflows/pages.yml"
|
|
178
|
+
- ".github/workflows/release_gem.yml"
|
|
163
179
|
- ".github/workflows/test.yml"
|
|
164
180
|
- ".gitignore"
|
|
165
181
|
- ".rspec"
|
|
@@ -180,6 +196,9 @@ files:
|
|
|
180
196
|
- gemfiles/rails_6_1.gemfile
|
|
181
197
|
- gemfiles/rails_7_0.gemfile
|
|
182
198
|
- gemfiles/rails_7_1.gemfile
|
|
199
|
+
- gemfiles/rails_7_2.gemfile
|
|
200
|
+
- gemfiles/rails_8_0.gemfile
|
|
201
|
+
- gemfiles/rails_8_1.gemfile
|
|
183
202
|
- lib/active_record/simple_index_name.rb
|
|
184
203
|
- lib/active_record/simple_index_name/active_record_ext.rb
|
|
185
204
|
- lib/active_record/simple_index_name/active_record_ext_7_0.rb
|
|
@@ -200,7 +219,6 @@ metadata:
|
|
|
200
219
|
changelog_uri: https://github.com/sue445/activerecord-simple_index_name/blob/master/CHANGELOG.md
|
|
201
220
|
documentation_uri: https://sue445.github.io/activerecord-simple_index_name/
|
|
202
221
|
rubygems_mfa_required: 'true'
|
|
203
|
-
post_install_message:
|
|
204
222
|
rdoc_options: []
|
|
205
223
|
require_paths:
|
|
206
224
|
- lib
|
|
@@ -215,8 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
215
233
|
- !ruby/object:Gem::Version
|
|
216
234
|
version: '0'
|
|
217
235
|
requirements: []
|
|
218
|
-
rubygems_version:
|
|
219
|
-
signing_key:
|
|
236
|
+
rubygems_version: 4.0.3
|
|
220
237
|
specification_version: 4
|
|
221
238
|
summary: Shorten index name
|
|
222
239
|
test_files: []
|