activerecord-simple_index_name 1.1.1 → 1.1.2
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/workflows/pages.yml +8 -11
- data/.github/workflows/release_gem.yml +41 -0
- data/.github/workflows/test.yml +68 -16
- data/CHANGELOG.md +4 -1
- data/README.md +1 -1
- data/activerecord-simple_index_name.gemspec +1 -0
- data/gemfiles/common.gemfile +5 -0
- data/gemfiles/rails_6_0.gemfile +6 -0
- data/gemfiles/rails_6_1.gemfile +6 -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/version.rb +1 -1
- metadata +21 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06fdd154fa866f49c54b8f1d878442093945f6f1cb5dcd0110b510b79ac220c9
|
|
4
|
+
data.tar.gz: 4f1d43781e259cd57d083e4f2dbee0036266de711b25ba5a3efaf4cf652577ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1c4ed076ba045104a2bd78ff7d5f282183413fa9a66d5ee57e2f3e73f3859b7b92dd254bc4213cb1038699f8fd5f2163802e37a636b8019e3e7dc9d101d8c6e
|
|
7
|
+
data.tar.gz: de6756af23d5d48c65752c3ecd4a451c814c8744894cfd3039cdff14918eae9fc16206ada63953d286bcf1e9c3d074425f6dbf57e095f41136afae5cfc66cf87
|
data/.github/workflows/pages.yml
CHANGED
|
@@ -30,9 +30,9 @@ jobs:
|
|
|
30
30
|
runs-on: ubuntu-latest
|
|
31
31
|
steps:
|
|
32
32
|
- name: Checkout
|
|
33
|
-
uses: actions/checkout@
|
|
33
|
+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
34
34
|
|
|
35
|
-
- uses: ruby/setup-ruby@v1
|
|
35
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
36
36
|
with:
|
|
37
37
|
ruby-version: ruby
|
|
38
38
|
bundler-cache: true
|
|
@@ -40,23 +40,20 @@ jobs:
|
|
|
40
40
|
- run: bundle exec yard
|
|
41
41
|
|
|
42
42
|
- name: Setup Pages
|
|
43
|
-
uses: actions/configure-pages@
|
|
43
|
+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0
|
|
44
44
|
- name: Upload artifact
|
|
45
|
-
uses: actions/upload-pages-artifact@
|
|
45
|
+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
|
|
46
46
|
with:
|
|
47
47
|
# Upload entire repository
|
|
48
48
|
path: './doc'
|
|
49
49
|
- name: Deploy to GitHub Pages
|
|
50
50
|
id: deployment
|
|
51
|
-
uses: actions/deploy-pages@
|
|
51
|
+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
|
|
52
52
|
|
|
53
53
|
- name: Slack Notification (not success)
|
|
54
|
-
uses:
|
|
54
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
55
55
|
if: "! success()"
|
|
56
56
|
continue-on-error: true
|
|
57
57
|
with:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
icon_emoji: ":octocat:"
|
|
61
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
62
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
58
|
+
status: ${{ job.status }}
|
|
59
|
+
webhook-url: ${{ 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@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
|
|
22
|
+
with:
|
|
23
|
+
egress-policy: audit
|
|
24
|
+
|
|
25
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
26
|
+
|
|
27
|
+
- name: Set up Ruby
|
|
28
|
+
uses: ruby/setup-ruby@eaecf785f6a34567a6d97f686bbb7bccc1ac1e5c # v1.237.0
|
|
29
|
+
with:
|
|
30
|
+
bundler-cache: true
|
|
31
|
+
ruby-version: ruby
|
|
32
|
+
|
|
33
|
+
- name: Publish to RubyGems
|
|
34
|
+
uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
|
|
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,7 @@ jobs:
|
|
|
30
30
|
- "3.1"
|
|
31
31
|
- "3.2"
|
|
32
32
|
- "3.3"
|
|
33
|
+
- "3.4"
|
|
33
34
|
gemfile:
|
|
34
35
|
- rails_5_0
|
|
35
36
|
- rails_5_1
|
|
@@ -38,6 +39,9 @@ jobs:
|
|
|
38
39
|
- rails_6_1
|
|
39
40
|
- rails_7_0
|
|
40
41
|
- rails_7_1
|
|
42
|
+
- rails_7_2
|
|
43
|
+
- rails_8_0
|
|
44
|
+
- rails_8_1
|
|
41
45
|
|
|
42
46
|
exclude:
|
|
43
47
|
# Rails 6.0+ requires Ruby 2.5+
|
|
@@ -68,6 +72,50 @@ jobs:
|
|
|
68
72
|
- ruby: "2.6"
|
|
69
73
|
gemfile: rails_7_1
|
|
70
74
|
|
|
75
|
+
# Rails 7.2+ requires Ruby 3.1+
|
|
76
|
+
- ruby: "2.3"
|
|
77
|
+
gemfile: rails_7_2
|
|
78
|
+
- ruby: "2.4"
|
|
79
|
+
gemfile: rails_7_2
|
|
80
|
+
- ruby: "2.5"
|
|
81
|
+
gemfile: rails_7_2
|
|
82
|
+
- ruby: "2.6"
|
|
83
|
+
gemfile: rails_7_2
|
|
84
|
+
- ruby: "2.7"
|
|
85
|
+
gemfile: rails_7_2
|
|
86
|
+
- ruby: "3.0"
|
|
87
|
+
gemfile: rails_7_2
|
|
88
|
+
|
|
89
|
+
# Rails 8.0+ requires Ruby 3.2+
|
|
90
|
+
- ruby: "2.3"
|
|
91
|
+
gemfile: rails_8_0
|
|
92
|
+
- ruby: "2.4"
|
|
93
|
+
gemfile: rails_8_0
|
|
94
|
+
- ruby: "2.5"
|
|
95
|
+
gemfile: rails_8_0
|
|
96
|
+
- ruby: "2.6"
|
|
97
|
+
gemfile: rails_8_0
|
|
98
|
+
- ruby: "2.7"
|
|
99
|
+
gemfile: rails_8_0
|
|
100
|
+
- ruby: "3.0"
|
|
101
|
+
gemfile: rails_8_0
|
|
102
|
+
- ruby: "3.1"
|
|
103
|
+
gemfile: rails_8_0
|
|
104
|
+
- ruby: "2.3"
|
|
105
|
+
gemfile: rails_8_1
|
|
106
|
+
- ruby: "2.4"
|
|
107
|
+
gemfile: rails_8_1
|
|
108
|
+
- ruby: "2.5"
|
|
109
|
+
gemfile: rails_8_1
|
|
110
|
+
- ruby: "2.6"
|
|
111
|
+
gemfile: rails_8_1
|
|
112
|
+
- ruby: "2.7"
|
|
113
|
+
gemfile: rails_8_1
|
|
114
|
+
- ruby: "3.0"
|
|
115
|
+
gemfile: rails_8_1
|
|
116
|
+
- ruby: "3.1"
|
|
117
|
+
gemfile: rails_8_1
|
|
118
|
+
|
|
71
119
|
# Rails 5.x doesn't work on Ruby 3.0+
|
|
72
120
|
- ruby: "3.0"
|
|
73
121
|
gemfile: rails_5_0
|
|
@@ -93,14 +141,23 @@ jobs:
|
|
|
93
141
|
gemfile: rails_5_1
|
|
94
142
|
- ruby: "3.3"
|
|
95
143
|
gemfile: rails_5_2
|
|
144
|
+
- ruby: "3.4"
|
|
145
|
+
gemfile: rails_5_0
|
|
146
|
+
- ruby: "3.4"
|
|
147
|
+
gemfile: rails_5_1
|
|
148
|
+
- ruby: "3.4"
|
|
149
|
+
gemfile: rails_5_2
|
|
96
150
|
|
|
97
151
|
env:
|
|
98
152
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
99
153
|
|
|
100
154
|
steps:
|
|
101
|
-
- uses: actions/checkout@
|
|
155
|
+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
|
156
|
+
|
|
157
|
+
- run: sudo apt-get update
|
|
158
|
+
- run: sudo apt-get install -y libsqlite3-dev
|
|
102
159
|
|
|
103
|
-
- uses: ruby/setup-ruby@v1
|
|
160
|
+
- uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
|
|
104
161
|
with:
|
|
105
162
|
ruby-version: ${{ matrix.ruby }}
|
|
106
163
|
bundler-cache: true
|
|
@@ -109,7 +166,7 @@ jobs:
|
|
|
109
166
|
- run: bundle update --jobs $(nproc) --retry 3
|
|
110
167
|
|
|
111
168
|
- name: Setup Code Climate Test Reporter
|
|
112
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
169
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
113
170
|
with:
|
|
114
171
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
115
172
|
command: before-build
|
|
@@ -118,7 +175,7 @@ jobs:
|
|
|
118
175
|
- run: bundle exec rspec
|
|
119
176
|
|
|
120
177
|
- name: Teardown Code Climate Test Reporter
|
|
121
|
-
uses: aktions/codeclimate-test-reporter@v1
|
|
178
|
+
uses: aktions/codeclimate-test-reporter@7634aa9ac7883182f583f15ff7b6ff519939dd0a # v1.2.0
|
|
122
179
|
with:
|
|
123
180
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
|
124
181
|
command: after-build
|
|
@@ -126,15 +183,13 @@ jobs:
|
|
|
126
183
|
continue-on-error: true
|
|
127
184
|
|
|
128
185
|
- name: Slack Notification (not success)
|
|
129
|
-
uses:
|
|
186
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
130
187
|
if: "! success()"
|
|
131
188
|
continue-on-error: true
|
|
132
189
|
with:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
137
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
190
|
+
status: ${{ job.status }}
|
|
191
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
|
192
|
+
matrix: ${{ toJson(matrix) }}
|
|
138
193
|
|
|
139
194
|
notify:
|
|
140
195
|
needs:
|
|
@@ -144,12 +199,9 @@ jobs:
|
|
|
144
199
|
|
|
145
200
|
steps:
|
|
146
201
|
- name: Slack Notification (success)
|
|
147
|
-
uses:
|
|
202
|
+
uses: act10ns/slack@cfcc30955fe9377f4f55e1079e5419ee1014269f # v2
|
|
148
203
|
if: always()
|
|
149
204
|
continue-on-error: true
|
|
150
205
|
with:
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
icon_emoji: ":octocat:"
|
|
154
|
-
url: ${{ secrets.SLACK_WEBHOOK }}
|
|
155
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
|
206
|
+
status: ${{ job.status }}
|
|
207
|
+
webhook-url: ${{ secrets.SLACK_WEBHOOK }}
|
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
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.2...master)
|
|
5
|
+
|
|
6
|
+
## [v1.1.2](https://github.com/sue445/activerecord-simple_index_name/releases/tag/v1.1.2)
|
|
7
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.1...v1.1.2)
|
|
5
8
|
|
|
6
9
|
## v1.1.1
|
|
7
10
|
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.0...v1.1.1)
|
data/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
8
|
[](https://codeclimate.com/github/sue445/activerecord-simple_index_name)
|
|
9
9
|
|
|
@@ -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"
|
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.2
|
|
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
|
|
@@ -160,6 +173,7 @@ files:
|
|
|
160
173
|
- ".coveralls.yml"
|
|
161
174
|
- ".github/dependabot.yml"
|
|
162
175
|
- ".github/workflows/pages.yml"
|
|
176
|
+
- ".github/workflows/release_gem.yml"
|
|
163
177
|
- ".github/workflows/test.yml"
|
|
164
178
|
- ".gitignore"
|
|
165
179
|
- ".rspec"
|
|
@@ -180,6 +194,9 @@ files:
|
|
|
180
194
|
- gemfiles/rails_6_1.gemfile
|
|
181
195
|
- gemfiles/rails_7_0.gemfile
|
|
182
196
|
- gemfiles/rails_7_1.gemfile
|
|
197
|
+
- gemfiles/rails_7_2.gemfile
|
|
198
|
+
- gemfiles/rails_8_0.gemfile
|
|
199
|
+
- gemfiles/rails_8_1.gemfile
|
|
183
200
|
- lib/active_record/simple_index_name.rb
|
|
184
201
|
- lib/active_record/simple_index_name/active_record_ext.rb
|
|
185
202
|
- lib/active_record/simple_index_name/active_record_ext_7_0.rb
|
|
@@ -200,7 +217,6 @@ metadata:
|
|
|
200
217
|
changelog_uri: https://github.com/sue445/activerecord-simple_index_name/blob/master/CHANGELOG.md
|
|
201
218
|
documentation_uri: https://sue445.github.io/activerecord-simple_index_name/
|
|
202
219
|
rubygems_mfa_required: 'true'
|
|
203
|
-
post_install_message:
|
|
204
220
|
rdoc_options: []
|
|
205
221
|
require_paths:
|
|
206
222
|
- lib
|
|
@@ -215,8 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
215
231
|
- !ruby/object:Gem::Version
|
|
216
232
|
version: '0'
|
|
217
233
|
requirements: []
|
|
218
|
-
rubygems_version: 3.
|
|
219
|
-
signing_key:
|
|
234
|
+
rubygems_version: 3.6.7
|
|
220
235
|
specification_version: 4
|
|
221
236
|
summary: Shorten index name
|
|
222
237
|
test_files: []
|