activerecord-simple_index_name 1.0.1 → 1.1.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 +10 -0
- data/.github/workflows/pages.yml +62 -0
- data/.github/workflows/test.yml +63 -44
- data/.yardopts +2 -0
- data/CHANGELOG.md +13 -1
- data/Gemfile +2 -0
- data/activerecord-simple_index_name.gemspec +3 -2
- data/gemfiles/common.gemfile +4 -0
- data/gemfiles/rails_5_0.gemfile +2 -0
- data/gemfiles/rails_5_1.gemfile +2 -0
- data/gemfiles/rails_5_2.gemfile +2 -0
- data/gemfiles/rails_6_0.gemfile +12 -2
- data/gemfiles/rails_6_1.gemfile +12 -2
- data/gemfiles/rails_7_0.gemfile +20 -0
- data/gemfiles/rails_7_1.gemfile +18 -0
- data/lib/active_record/simple_index_name/active_record_ext.rb +4 -24
- data/lib/active_record/simple_index_name/active_record_ext_7_0.rb +25 -0
- data/lib/active_record/simple_index_name/active_record_ext_7_1.rb +44 -0
- data/lib/active_record/simple_index_name/version.rb +1 -1
- metadata +16 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7ca20ae4b53c61233c9cd4557affc85edfa6a240142e73909504988c3086440
|
4
|
+
data.tar.gz: 5e219f9fc4b7ea8170b52d71aad0f5fa43327e8707a035f12713a6a2932acf9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfb056260114daed2ceabef679c2d2754bbc9aca82485d3b972d2434aec7460d40aea177956d11f60d7a7ccb201c1950153c8dd09748eb36f6c7b6e17c532df5
|
7
|
+
data.tar.gz: 67d6a55eb4c404f0ac4040478f87b5b2f9e9ab89507ac992c264b49b650161188626bb1eb6c47e2d2afc5301a3a1325077dba5d6b445ed61e39d7cb4fabbad3c
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# c.f. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
2
|
+
version: 2
|
3
|
+
|
4
|
+
updates:
|
5
|
+
- package-ecosystem: github-actions
|
6
|
+
directory: /
|
7
|
+
schedule:
|
8
|
+
interval: weekly
|
9
|
+
assignees:
|
10
|
+
- sue445
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Simple workflow for deploying static content to GitHub Pages
|
2
|
+
name: Deploy static content to Pages
|
3
|
+
|
4
|
+
on:
|
5
|
+
# Runs on pushes targeting the default branch
|
6
|
+
push:
|
7
|
+
branches:
|
8
|
+
- master
|
9
|
+
|
10
|
+
# Allows you to run this workflow manually from the Actions tab
|
11
|
+
workflow_dispatch:
|
12
|
+
|
13
|
+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
14
|
+
permissions:
|
15
|
+
contents: read
|
16
|
+
pages: write
|
17
|
+
id-token: write
|
18
|
+
|
19
|
+
# Allow one concurrent deployment
|
20
|
+
concurrency:
|
21
|
+
group: "pages"
|
22
|
+
cancel-in-progress: true
|
23
|
+
|
24
|
+
jobs:
|
25
|
+
# Single deploy job since we're just deploying
|
26
|
+
deploy:
|
27
|
+
environment:
|
28
|
+
name: github-pages
|
29
|
+
url: ${{ steps.deployment.outputs.page_url }}
|
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 }}
|
data/.github/workflows/test.yml
CHANGED
@@ -16,94 +16,113 @@ jobs:
|
|
16
16
|
test:
|
17
17
|
runs-on: ubuntu-latest
|
18
18
|
|
19
|
-
container: ${{ matrix.ruby }}
|
20
|
-
|
21
19
|
strategy:
|
22
20
|
fail-fast: false
|
23
21
|
|
24
22
|
matrix:
|
25
23
|
ruby:
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
-
|
24
|
+
- "2.3"
|
25
|
+
- "2.4"
|
26
|
+
- "2.5"
|
27
|
+
- "2.6"
|
28
|
+
- "2.7"
|
29
|
+
- "3.0"
|
30
|
+
- "3.1"
|
31
|
+
- "3.2"
|
32
|
+
- "3.3"
|
33
33
|
gemfile:
|
34
34
|
- rails_5_0
|
35
35
|
- rails_5_1
|
36
36
|
- rails_5_2
|
37
37
|
- rails_6_0
|
38
38
|
- rails_6_1
|
39
|
-
|
40
|
-
-
|
41
|
-
allow_failures: "true"
|
39
|
+
- rails_7_0
|
40
|
+
- rails_7_1
|
42
41
|
|
43
42
|
exclude:
|
44
43
|
# Rails 6.0+ requires Ruby 2.5+
|
45
|
-
- ruby:
|
44
|
+
- ruby: "2.3"
|
46
45
|
gemfile: rails_6_0
|
47
|
-
- ruby:
|
46
|
+
- ruby: "2.4"
|
48
47
|
gemfile: rails_6_0
|
49
|
-
- ruby:
|
48
|
+
- ruby: "2.3"
|
50
49
|
gemfile: rails_6_1
|
51
|
-
- ruby:
|
50
|
+
- ruby: "2.4"
|
52
51
|
gemfile: rails_6_1
|
53
52
|
|
53
|
+
# Rails 7.0+ requires Ruby 2.7+
|
54
|
+
- ruby: "2.3"
|
55
|
+
gemfile: rails_7_0
|
56
|
+
- ruby: "2.4"
|
57
|
+
gemfile: rails_7_0
|
58
|
+
- ruby: "2.5"
|
59
|
+
gemfile: rails_7_0
|
60
|
+
- ruby: "2.6"
|
61
|
+
gemfile: rails_7_0
|
62
|
+
- ruby: "2.3"
|
63
|
+
gemfile: rails_7_1
|
64
|
+
- ruby: "2.4"
|
65
|
+
gemfile: rails_7_1
|
66
|
+
- ruby: "2.5"
|
67
|
+
gemfile: rails_7_1
|
68
|
+
- ruby: "2.6"
|
69
|
+
gemfile: rails_7_1
|
70
|
+
|
54
71
|
# Rails 5.x doesn't work on Ruby 3.0+
|
55
|
-
- ruby:
|
72
|
+
- ruby: "3.0"
|
73
|
+
gemfile: rails_5_0
|
74
|
+
- ruby: "3.0"
|
75
|
+
gemfile: rails_5_1
|
76
|
+
- ruby: "3.0"
|
77
|
+
gemfile: rails_5_2
|
78
|
+
- ruby: "3.1"
|
79
|
+
gemfile: rails_5_0
|
80
|
+
- ruby: "3.1"
|
81
|
+
gemfile: rails_5_1
|
82
|
+
- ruby: "3.1"
|
83
|
+
gemfile: rails_5_2
|
84
|
+
- ruby: "3.2"
|
85
|
+
gemfile: rails_5_0
|
86
|
+
- ruby: "3.2"
|
87
|
+
gemfile: rails_5_1
|
88
|
+
- ruby: "3.2"
|
89
|
+
gemfile: rails_5_2
|
90
|
+
- ruby: "3.3"
|
56
91
|
gemfile: rails_5_0
|
57
|
-
- ruby:
|
92
|
+
- ruby: "3.3"
|
58
93
|
gemfile: rails_5_1
|
59
|
-
- ruby:
|
94
|
+
- ruby: "3.3"
|
60
95
|
gemfile: rails_5_2
|
61
96
|
|
62
97
|
env:
|
63
98
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
64
99
|
|
65
100
|
steps:
|
66
|
-
- uses: actions/checkout@
|
101
|
+
- uses: actions/checkout@v4
|
67
102
|
|
68
|
-
-
|
69
|
-
|
70
|
-
- name: Cache vendor/bundle
|
71
|
-
uses: actions/cache@v1
|
72
|
-
id: cache_gem
|
103
|
+
- uses: ruby/setup-ruby@v1
|
73
104
|
with:
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
- name: bundle update
|
81
|
-
run: |
|
82
|
-
set -xe
|
83
|
-
bundle config path vendor/bundle
|
84
|
-
bundle update --jobs $(nproc) --retry 3
|
85
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
105
|
+
ruby-version: ${{ matrix.ruby }}
|
106
|
+
bundler-cache: true
|
107
|
+
cache-version: ${{ matrix.gemfile }}
|
108
|
+
|
109
|
+
- run: bundle update --jobs $(nproc) --retry 3
|
86
110
|
|
87
111
|
- name: Setup Code Climate Test Reporter
|
88
112
|
uses: aktions/codeclimate-test-reporter@v1
|
89
113
|
with:
|
90
114
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
91
115
|
command: before-build
|
92
|
-
if: matrix.ruby >= 'ruby:2.4'
|
93
116
|
continue-on-error: true
|
94
117
|
|
95
|
-
-
|
96
|
-
run: |
|
97
|
-
set -xe
|
98
|
-
bundle exec rspec
|
99
|
-
continue-on-error: ${{ matrix.allow_failures == 'true' }}
|
118
|
+
- run: bundle exec rspec
|
100
119
|
|
101
120
|
- name: Teardown Code Climate Test Reporter
|
102
121
|
uses: aktions/codeclimate-test-reporter@v1
|
103
122
|
with:
|
104
123
|
codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
|
105
124
|
command: after-build
|
106
|
-
if:
|
125
|
+
if: always()
|
107
126
|
continue-on-error: true
|
108
127
|
|
109
128
|
- name: Slack Notification (not success)
|
data/.yardopts
ADDED
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.
|
4
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.1...master)
|
5
|
+
|
6
|
+
## v1.1.1
|
7
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.0...v1.1.1)
|
8
|
+
|
9
|
+
* Fix support activerecord 7.1
|
10
|
+
* https://github.com/sue445/activerecord-simple_index_name/pull/95
|
11
|
+
|
12
|
+
## v1.1.0
|
13
|
+
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.1...v1.1.0)
|
14
|
+
|
15
|
+
* Support activerecord 7.1
|
16
|
+
* https://github.com/sue445/activerecord-simple_index_name/pull/88
|
5
17
|
|
6
18
|
## v1.0.1
|
7
19
|
[full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.0...v1.0.1)
|
data/Gemfile
CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = spec.homepage
|
19
19
|
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
|
20
|
+
spec.metadata["documentation_uri"] = "https://sue445.github.io/activerecord-simple_index_name/"
|
20
21
|
spec.metadata["rubygems_mfa_required"] = "true"
|
21
22
|
|
22
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -28,11 +29,11 @@ Gem::Specification.new do |spec|
|
|
28
29
|
spec.add_dependency "activesupport", ">= 5.0.0"
|
29
30
|
|
30
31
|
spec.add_development_dependency "bundler"
|
31
|
-
spec.add_development_dependency "
|
32
|
+
spec.add_development_dependency "coveralls_reborn"
|
32
33
|
spec.add_development_dependency "rails"
|
33
34
|
spec.add_development_dependency "rake"
|
34
35
|
spec.add_development_dependency "rspec"
|
35
|
-
spec.add_development_dependency "rspec-power_assert"
|
36
36
|
spec.add_development_dependency "simplecov"
|
37
37
|
spec.add_development_dependency "sqlite3"
|
38
|
+
spec.add_development_dependency "yard"
|
38
39
|
end
|
data/gemfiles/rails_5_0.gemfile
CHANGED
data/gemfiles/rails_5_1.gemfile
CHANGED
data/gemfiles/rails_5_2.gemfile
CHANGED
data/gemfiles/rails_6_0.gemfile
CHANGED
@@ -2,7 +2,17 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gem "rails", "~> 6.0.0"
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("3.0.0")
|
6
|
+
# FIXME: sqlite3 1.7.0 cannot be installed with ruby 2.7
|
7
|
+
# ref.
|
8
|
+
# * https://github.com/sue445/activerecord-simple_index_name/actions/runs/7345118908/job/19997837875?pr=94
|
9
|
+
# * https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v1.7.0
|
10
|
+
gem "sqlite3", "~> 1.4", "< 1.7.0"
|
11
|
+
else
|
12
|
+
# c.f. https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
13
|
+
gem "sqlite3", "~> 1.4"
|
14
|
+
end
|
7
15
|
|
8
16
|
gemspec path: '../'
|
17
|
+
|
18
|
+
eval_gemfile "./common.gemfile"
|
data/gemfiles/rails_6_1.gemfile
CHANGED
@@ -2,7 +2,17 @@ source "https://rubygems.org"
|
|
2
2
|
|
3
3
|
gem "rails", "~> 6.1.0"
|
4
4
|
|
5
|
-
|
6
|
-
|
5
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("3.0.0")
|
6
|
+
# FIXME: sqlite3 1.7.0 cannot be installed with ruby 2.7
|
7
|
+
# ref.
|
8
|
+
# * https://github.com/sue445/activerecord-simple_index_name/actions/runs/7345118908/job/19997837875?pr=94
|
9
|
+
# * https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v1.7.0
|
10
|
+
gem "sqlite3", "~> 1.4", "< 1.7.0"
|
11
|
+
else
|
12
|
+
# c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
13
|
+
gem "sqlite3", "~> 1.4"
|
14
|
+
end
|
7
15
|
|
8
16
|
gemspec path: '../'
|
17
|
+
|
18
|
+
eval_gemfile "./common.gemfile"
|
@@ -0,0 +1,20 @@
|
|
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 "rails", "~> 7.0.1"
|
6
|
+
|
7
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("3.0.0")
|
8
|
+
# FIXME: sqlite3 1.7.0 cannot be installed with ruby 2.7
|
9
|
+
# ref.
|
10
|
+
# * https://github.com/sue445/activerecord-simple_index_name/actions/runs/7345118908/job/19997837875?pr=94
|
11
|
+
# * https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v1.7.0
|
12
|
+
gem "sqlite3", "~> 1.4", "< 1.7.0"
|
13
|
+
else
|
14
|
+
# c.f. https://github.com/rails/rails/blob/v7.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
|
15
|
+
gem "sqlite3", "~> 1.4"
|
16
|
+
end
|
17
|
+
|
18
|
+
gemspec path: '../'
|
19
|
+
|
20
|
+
eval_gemfile "./common.gemfile"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "rails", "~> 7.1.1"
|
4
|
+
|
5
|
+
if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("3.0.0")
|
6
|
+
# FIXME: sqlite3 1.7.0 cannot be installed with ruby 2.7
|
7
|
+
# ref.
|
8
|
+
# * https://github.com/sue445/activerecord-simple_index_name/actions/runs/7345118908/job/19997837875?pr=94
|
9
|
+
# * https://github.com/sparklemotion/sqlite3-ruby/releases/tag/v1.7.0
|
10
|
+
gem "sqlite3", "~> 1.4", "< 1.7.0"
|
11
|
+
else
|
12
|
+
# c.f. https://github.com/rails/rails/blob/v7.1.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
|
13
|
+
gem "sqlite3", "~> 1.4"
|
14
|
+
end
|
15
|
+
|
16
|
+
gemspec path: '../'
|
17
|
+
|
18
|
+
eval_gemfile "./common.gemfile"
|
@@ -1,25 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
if ActiveRecord::SimpleIndexName.current_shorten? && Hash === options && options[:column]
|
6
|
-
Array.wrap(options[:column]) * "_and_"
|
7
|
-
else
|
8
|
-
super
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
def rename_index(table_name, old_name, new_name)
|
13
|
-
if ActiveRecord::SimpleIndexName.current_shorten? && old_name == new_name
|
14
|
-
# nop
|
15
|
-
else
|
16
|
-
super
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do
|
24
|
-
prepend ActiveRecord::SimpleIndexName::ActiveRecordExt
|
1
|
+
if ActiveRecord.version >= Gem::Version.create("7.1.0")
|
2
|
+
require "active_record/simple_index_name/active_record_ext_7_1"
|
3
|
+
else
|
4
|
+
require "active_record/simple_index_name/active_record_ext_7_0"
|
25
5
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module ActiveRecord
|
2
|
+
module SimpleIndexName
|
3
|
+
module ActiveRecordExt_7_0
|
4
|
+
def index_name(table_name, options)
|
5
|
+
if ActiveRecord::SimpleIndexName.current_shorten? && Hash === options && options[:column]
|
6
|
+
Array.wrap(options[:column]) * "_and_"
|
7
|
+
else
|
8
|
+
super
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
def rename_index(table_name, old_name, new_name)
|
13
|
+
if ActiveRecord::SimpleIndexName.current_shorten? && old_name == new_name
|
14
|
+
# nop
|
15
|
+
else
|
16
|
+
super
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
ActiveRecord::ConnectionAdapters::AbstractAdapter.class_eval do
|
24
|
+
prepend ActiveRecord::SimpleIndexName::ActiveRecordExt_7_0
|
25
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module ActiveRecord
|
2
|
+
module SimpleIndexName
|
3
|
+
module ActiveRecordExt_7_1
|
4
|
+
module SchemaStatements
|
5
|
+
def generate_index_name(table_name, column)
|
6
|
+
if ActiveRecord::SimpleIndexName.current_shorten?
|
7
|
+
Array.wrap(column) * "_and_"
|
8
|
+
else
|
9
|
+
super
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def rename_index(table_name, old_name, new_name)
|
14
|
+
if ActiveRecord::SimpleIndexName.current_shorten? && old_name == new_name
|
15
|
+
# nop
|
16
|
+
else
|
17
|
+
super
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
module V7_0
|
23
|
+
def legacy_index_name(table_name, options)
|
24
|
+
if ActiveRecord::SimpleIndexName.current_shorten? && Hash === options && options[:column]
|
25
|
+
Array.wrap(options[:column]) * "_and_"
|
26
|
+
else
|
27
|
+
super
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
ActiveRecord::ConnectionAdapters::SchemaStatements.class_eval do
|
36
|
+
prepend ActiveRecord::SimpleIndexName::ActiveRecordExt_7_1::SchemaStatements
|
37
|
+
end
|
38
|
+
|
39
|
+
ActiveRecord::Migration::Compatibility::V7_0.class_eval do
|
40
|
+
prepend ActiveRecord::SimpleIndexName::ActiveRecordExt_7_1::V7_0
|
41
|
+
end
|
42
|
+
ActiveRecord::Migration::Compatibility::V7_0::TableDefinition.module_eval do
|
43
|
+
prepend ActiveRecord::SimpleIndexName::ActiveRecordExt_7_1::V7_0
|
44
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-simple_index_name
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: coveralls_reborn
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: simplecov
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -123,7 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: sqlite3
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: yard
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|
@@ -158,9 +158,12 @@ extensions: []
|
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
160
|
- ".coveralls.yml"
|
161
|
+
- ".github/dependabot.yml"
|
162
|
+
- ".github/workflows/pages.yml"
|
161
163
|
- ".github/workflows/test.yml"
|
162
164
|
- ".gitignore"
|
163
165
|
- ".rspec"
|
166
|
+
- ".yardopts"
|
164
167
|
- CHANGELOG.md
|
165
168
|
- Gemfile
|
166
169
|
- LICENSE.txt
|
@@ -169,13 +172,18 @@ files:
|
|
169
172
|
- activerecord-simple_index_name.gemspec
|
170
173
|
- bin/console
|
171
174
|
- bin/setup
|
175
|
+
- gemfiles/common.gemfile
|
172
176
|
- gemfiles/rails_5_0.gemfile
|
173
177
|
- gemfiles/rails_5_1.gemfile
|
174
178
|
- gemfiles/rails_5_2.gemfile
|
175
179
|
- gemfiles/rails_6_0.gemfile
|
176
180
|
- gemfiles/rails_6_1.gemfile
|
181
|
+
- gemfiles/rails_7_0.gemfile
|
182
|
+
- gemfiles/rails_7_1.gemfile
|
177
183
|
- lib/active_record/simple_index_name.rb
|
178
184
|
- lib/active_record/simple_index_name/active_record_ext.rb
|
185
|
+
- lib/active_record/simple_index_name/active_record_ext_7_0.rb
|
186
|
+
- lib/active_record/simple_index_name/active_record_ext_7_1.rb
|
179
187
|
- lib/active_record/simple_index_name/configuration.rb
|
180
188
|
- lib/active_record/simple_index_name/disable_shorten.rb
|
181
189
|
- lib/active_record/simple_index_name/enable_shorten.rb
|
@@ -190,6 +198,7 @@ metadata:
|
|
190
198
|
homepage_uri: https://github.com/sue445/activerecord-simple_index_name
|
191
199
|
source_code_uri: https://github.com/sue445/activerecord-simple_index_name
|
192
200
|
changelog_uri: https://github.com/sue445/activerecord-simple_index_name/blob/master/CHANGELOG.md
|
201
|
+
documentation_uri: https://sue445.github.io/activerecord-simple_index_name/
|
193
202
|
rubygems_mfa_required: 'true'
|
194
203
|
post_install_message:
|
195
204
|
rdoc_options: []
|
@@ -206,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
215
|
- !ruby/object:Gem::Version
|
207
216
|
version: '0'
|
208
217
|
requirements: []
|
209
|
-
rubygems_version: 3.
|
218
|
+
rubygems_version: 3.4.10
|
210
219
|
signing_key:
|
211
220
|
specification_version: 4
|
212
221
|
summary: Shorten index name
|