activerecord-simple_index_name 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1349b6bb5d2dd7d12b7ef3e0a4f067c556d4d5b2d3dc26ec5d38a080c2a1a09
4
- data.tar.gz: 26bcb5d314c5a1710c6693ee22f4174239733caa2758037563c80973414cf143
3
+ metadata.gz: cfe687f13f57f5ccc76c31edbd72d16148dfcee0943df043a733e32656e3f759
4
+ data.tar.gz: fd6ce85a38b133f2c74aeea9ac131bf191fb52fa0e877470b04ac32c5347d798
5
5
  SHA512:
6
- metadata.gz: 81da0ed73a11e0c00ed6dad8c42a99569c70b43ff4501e005719874ee87390ae5a24f2efa0bd986d80f46edaab711dbcf43779966b0162586a527a965ec9dc12
7
- data.tar.gz: 19cff730581356afd9a47b4d140eb17035cb25fb2bc16baab68b7b1ffa16f123d1103b2f9755d89472a96f148fd6958c14779c286e72a99093bf29c75af4f50c
6
+ metadata.gz: 056a3d0d3427acf88c7200e88a0e4b2b89d9373cdc49a10a06098d823787f7b0dea5fb9a41f2547c3e249c0727b323c8d297d376cca869d1e168e7391ef6f7c8
7
+ data.tar.gz: f6b065227d6181d283965717afc31a5b91e4cd882bd69c13106f3148c305711bb46c0cddb85c30d6223c3531a2ad99fd08625a9a3c9ea87b70c9e0260991cd95
@@ -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@v3
44
+ - name: Upload artifact
45
+ uses: actions/upload-pages-artifact@v2
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 }}
@@ -0,0 +1,148 @@
1
+ name: test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ types:
9
+ - opened
10
+ - synchronize
11
+ - reopened
12
+ schedule:
13
+ - cron: "0 10 * * 5" # JST 19:00 (Fri)
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+
19
+ strategy:
20
+ fail-fast: false
21
+
22
+ matrix:
23
+ ruby:
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
+ gemfile:
33
+ - rails_5_0
34
+ - rails_5_1
35
+ - rails_5_2
36
+ - rails_6_0
37
+ - rails_6_1
38
+ - rails_7_0
39
+ - rails_7_1
40
+
41
+ exclude:
42
+ # Rails 6.0+ requires Ruby 2.5+
43
+ - ruby: "2.3"
44
+ gemfile: rails_6_0
45
+ - ruby: "2.4"
46
+ gemfile: rails_6_0
47
+ - ruby: "2.3"
48
+ gemfile: rails_6_1
49
+ - ruby: "2.4"
50
+ gemfile: rails_6_1
51
+
52
+ # Rails 7.0+ requires Ruby 2.7+
53
+ - ruby: "2.3"
54
+ gemfile: rails_7_0
55
+ - ruby: "2.4"
56
+ gemfile: rails_7_0
57
+ - ruby: "2.5"
58
+ gemfile: rails_7_0
59
+ - ruby: "2.6"
60
+ gemfile: rails_7_0
61
+ - ruby: "2.3"
62
+ gemfile: rails_7_1
63
+ - ruby: "2.4"
64
+ gemfile: rails_7_1
65
+ - ruby: "2.5"
66
+ gemfile: rails_7_1
67
+ - ruby: "2.6"
68
+ gemfile: rails_7_1
69
+
70
+ # Rails 5.x doesn't work on Ruby 3.0+
71
+ - ruby: "3.0"
72
+ gemfile: rails_5_0
73
+ - ruby: "3.0"
74
+ gemfile: rails_5_1
75
+ - ruby: "3.0"
76
+ gemfile: rails_5_2
77
+ - ruby: "3.1"
78
+ gemfile: rails_5_0
79
+ - ruby: "3.1"
80
+ gemfile: rails_5_1
81
+ - ruby: "3.1"
82
+ gemfile: rails_5_2
83
+ - ruby: "3.2"
84
+ gemfile: rails_5_0
85
+ - ruby: "3.2"
86
+ gemfile: rails_5_1
87
+ - ruby: "3.2"
88
+ gemfile: rails_5_2
89
+
90
+ env:
91
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
92
+
93
+ steps:
94
+ - uses: actions/checkout@v4
95
+
96
+ - uses: ruby/setup-ruby@v1
97
+ with:
98
+ ruby-version: ${{ matrix.ruby }}
99
+ bundler-cache: true
100
+ cache-version: ${{ matrix.gemfile }}
101
+
102
+ - run: bundle update --jobs $(nproc) --retry 3
103
+
104
+ - name: Setup Code Climate Test Reporter
105
+ uses: aktions/codeclimate-test-reporter@v1
106
+ with:
107
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
108
+ command: before-build
109
+ continue-on-error: true
110
+
111
+ - run: bundle exec rspec
112
+
113
+ - name: Teardown Code Climate Test Reporter
114
+ uses: aktions/codeclimate-test-reporter@v1
115
+ with:
116
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
117
+ command: after-build
118
+ if: always()
119
+ continue-on-error: true
120
+
121
+ - name: Slack Notification (not success)
122
+ uses: lazy-actions/slatify@master
123
+ if: "! success()"
124
+ continue-on-error: true
125
+ with:
126
+ job_name: ${{ format('*build* ({0}, {1})', matrix.ruby, matrix.gemfile) }}
127
+ type: ${{ job.status }}
128
+ icon_emoji: ":octocat:"
129
+ url: ${{ secrets.SLACK_WEBHOOK }}
130
+ token: ${{ secrets.GITHUB_TOKEN }}
131
+
132
+ notify:
133
+ needs:
134
+ - test
135
+
136
+ runs-on: ubuntu-latest
137
+
138
+ steps:
139
+ - name: Slack Notification (success)
140
+ uses: lazy-actions/slatify@master
141
+ if: always()
142
+ continue-on-error: true
143
+ with:
144
+ job_name: '*build*'
145
+ type: ${{ job.status }}
146
+ icon_emoji: ":octocat:"
147
+ url: ${{ secrets.SLACK_WEBHOOK }}
148
+ token: ${{ secrets.GITHUB_TOKEN }}
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --markup markdown
2
+ --no-private
data/CHANGELOG.md CHANGED
@@ -1,8 +1,21 @@
1
1
  # Change Log
2
2
 
3
3
  ## Unreleased
4
- [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.0...master)
4
+ [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.1.0...master)
5
5
 
6
+ ## v1.1.0
7
+ [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.1...v1.1.0)
8
+
9
+ * Support activerecord 7.1
10
+ * https://github.com/sue445/activerecord-simple_index_name/pull/88
11
+
12
+ ## v1.0.1
13
+ [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v1.0.0...v1.0.1)
14
+
15
+ * Enable MFA requirement for gem releasing
16
+ * https://github.com/sue445/activerecord-simple_index_name/pull/73
17
+
18
+ ## v1.0.0
6
19
  ### Breaking changes :bomb:
7
20
  [full changelog](http://github.com/sue445/activerecord-simple_index_name/compare/v0.4.0...v1.0.0)
8
21
 
@@ -24,7 +37,7 @@
24
37
  * https://github.com/sue445/activerecord-simple_index_name/pull/30
25
38
 
26
39
  ### Other
27
- * Tiny
40
+ * Tiny
28
41
  * https://github.com/sue445/activerecord-simple_index_name/pull/29
29
42
  * https://github.com/sue445/activerecord-simple_index_name/pull/28
30
43
  * https://github.com/sue445/activerecord-simple_index_name/pull/27
@@ -35,7 +48,7 @@
35
48
  ### Enhancements
36
49
  * Support activerecord 5.0.0.beta2
37
50
  * https://github.com/sue445/activerecord-simple_index_name/pull/22
38
-
51
+
39
52
  ### Other
40
53
  * Keep ruby 2.3.x build on Travis CI
41
54
  * https://github.com/sue445/activerecord-simple_index_name/pull/25
@@ -61,13 +74,13 @@
61
74
  ### Other
62
75
  * Test with Rails 4.0.x
63
76
  * https://github.com/sue445/activerecord-simple_index_name/pull/19
64
- * Other tiny refactorings
77
+ * Other tiny refactorings
65
78
  * https://github.com/sue445/activerecord-simple_index_name/pull/14
66
79
  * https://github.com/sue445/activerecord-simple_index_name/pull/15
67
80
  * https://github.com/sue445/activerecord-simple_index_name/pull/16
68
81
  * https://github.com/sue445/activerecord-simple_index_name/pull/21
69
82
  * https://github.com/sue445/activerecord-simple_index_name/pull/23
70
83
  * https://github.com/sue445/activerecord-simple_index_name/pull/24
71
-
84
+
72
85
  ## v0.1.0
73
86
  * First release
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in activerecord-simple_index_name.gemspec
4
4
  gemspec
5
+
6
+ eval_gemfile "./gemfiles/common.gemfile"
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Shorten index name
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/activerecord-simple_index_name.svg)](https://badge.fury.io/rb/activerecord-simple_index_name)
6
- [![Build Status](https://travis-ci.org/sue445/activerecord-simple_index_name.svg?branch=master)](https://travis-ci.org/sue445/activerecord-simple_index_name)
6
+ [![Build Status](https://github.com/sue445/activerecord-simple_index_name/workflows/test/badge.svg?branch=master)](https://github.com/sue445/activerecord-simple_index_name/actions?query=workflow%3Atest)
7
7
  [![Coverage Status](https://coveralls.io/repos/sue445/activerecord-simple_index_name/badge.svg?branch=master&service=github)](https://coveralls.io/github/sue445/activerecord-simple_index_name?branch=master)
8
8
  [![Code Climate](https://codeclimate.com/github/sue445/activerecord-simple_index_name/badges/gpa.svg)](https://codeclimate.com/github/sue445/activerecord-simple_index_name)
9
9
 
@@ -14,6 +14,12 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = "https://github.com/sue445/activerecord-simple_index_name"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = spec.homepage
19
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
20
+ spec.metadata["documentation_uri"] = "https://sue445.github.io/activerecord-simple_index_name/"
21
+ spec.metadata["rubygems_mfa_required"] = "true"
22
+
17
23
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
24
  spec.bindir = "exe"
19
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -23,12 +29,11 @@ Gem::Specification.new do |spec|
23
29
  spec.add_dependency "activesupport", ">= 5.0.0"
24
30
 
25
31
  spec.add_development_dependency "bundler"
26
- spec.add_development_dependency "coveralls"
27
- spec.add_development_dependency "pry-byebug"
32
+ spec.add_development_dependency "coveralls_reborn"
28
33
  spec.add_development_dependency "rails"
29
- spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rake"
30
35
  spec.add_development_dependency "rspec"
31
- spec.add_development_dependency "rspec-power_assert"
32
36
  spec.add_development_dependency "simplecov"
33
37
  spec.add_development_dependency "sqlite3"
38
+ spec.add_development_dependency "yard"
34
39
  end
@@ -0,0 +1,4 @@
1
+ if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.6.0")
2
+ # minitest v5.16.0+ requires ruby 2.6.0+
3
+ gem "minitest", "< 5.16.0"
4
+ end
@@ -1,5 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 5.0.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
7
+
8
+ eval_gemfile "./common.gemfile"
@@ -1,5 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 5.1.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
7
+
8
+ eval_gemfile "./common.gemfile"
@@ -1,5 +1,8 @@
1
1
  source "https://rubygems.org"
2
2
 
3
3
  gem "rails", "~> 5.2.0"
4
+ gem "sqlite3", "~> 1.3.6"
4
5
 
5
6
  gemspec path: '../'
7
+
8
+ eval_gemfile "./common.gemfile"
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 6.0.0"
4
+
5
+ # c.f. https://github.com/rails/rails/blob/v6.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
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", "~> 6.1.0"
4
+
5
+ # c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
6
+ gem "sqlite3", "~> 1.4"
7
+
8
+ gemspec path: '../'
9
+
10
+ eval_gemfile "./common.gemfile"
@@ -0,0 +1,12 @@
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
+ # c.f. https://github.com/rails/rails/blob/v7.0.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
8
+ gem "sqlite3", "~> 1.4"
9
+
10
+ gemspec path: '../'
11
+
12
+ eval_gemfile "./common.gemfile"
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "rails", "~> 7.1.0"
4
+
5
+ # c.f. https://github.com/rails/rails/blob/v7.1.0/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"
@@ -1,25 +1,5 @@
1
- module ActiveRecord
2
- module SimpleIndexName
3
- module ActiveRecordExt
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
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,41 @@
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
@@ -1,5 +1,5 @@
1
1
  module ActiveRecord
2
2
  module SimpleIndexName
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  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.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-01-06 00:00:00.000000000 Z
11
+ date: 2023-10-07 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: coveralls
56
+ name: coveralls_reborn
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: pry-byebug
70
+ name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rails
84
+ name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -94,20 +94,6 @@ dependencies:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: rake
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '10.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '10.0'
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: rspec
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +109,7 @@ dependencies:
123
109
  - !ruby/object:Gem::Version
124
110
  version: '0'
125
111
  - !ruby/object:Gem::Dependency
126
- name: rspec-power_assert
112
+ name: simplecov
127
113
  requirement: !ruby/object:Gem::Requirement
128
114
  requirements:
129
115
  - - ">="
@@ -137,7 +123,7 @@ dependencies:
137
123
  - !ruby/object:Gem::Version
138
124
  version: '0'
139
125
  - !ruby/object:Gem::Dependency
140
- name: simplecov
126
+ name: sqlite3
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
129
  - - ">="
@@ -151,7 +137,7 @@ dependencies:
151
137
  - !ruby/object:Gem::Version
152
138
  version: '0'
153
139
  - !ruby/object:Gem::Dependency
154
- name: sqlite3
140
+ name: yard
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
143
  - - ">="
@@ -172,9 +158,12 @@ extensions: []
172
158
  extra_rdoc_files: []
173
159
  files:
174
160
  - ".coveralls.yml"
161
+ - ".github/dependabot.yml"
162
+ - ".github/workflows/pages.yml"
163
+ - ".github/workflows/test.yml"
175
164
  - ".gitignore"
176
165
  - ".rspec"
177
- - ".travis.yml"
166
+ - ".yardopts"
178
167
  - CHANGELOG.md
179
168
  - Gemfile
180
169
  - LICENSE.txt
@@ -183,11 +172,18 @@ files:
183
172
  - activerecord-simple_index_name.gemspec
184
173
  - bin/console
185
174
  - bin/setup
175
+ - gemfiles/common.gemfile
186
176
  - gemfiles/rails_5_0.gemfile
187
177
  - gemfiles/rails_5_1.gemfile
188
178
  - gemfiles/rails_5_2.gemfile
179
+ - gemfiles/rails_6_0.gemfile
180
+ - gemfiles/rails_6_1.gemfile
181
+ - gemfiles/rails_7_0.gemfile
182
+ - gemfiles/rails_7_1.gemfile
189
183
  - lib/active_record/simple_index_name.rb
190
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
191
187
  - lib/active_record/simple_index_name/configuration.rb
192
188
  - lib/active_record/simple_index_name/disable_shorten.rb
193
189
  - lib/active_record/simple_index_name/enable_shorten.rb
@@ -198,8 +194,13 @@ files:
198
194
  homepage: https://github.com/sue445/activerecord-simple_index_name
199
195
  licenses:
200
196
  - MIT
201
- metadata: {}
202
- post_install_message:
197
+ metadata:
198
+ homepage_uri: https://github.com/sue445/activerecord-simple_index_name
199
+ source_code_uri: https://github.com/sue445/activerecord-simple_index_name
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/
202
+ rubygems_mfa_required: 'true'
203
+ post_install_message:
203
204
  rdoc_options: []
204
205
  require_paths:
205
206
  - lib
@@ -214,8 +215,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
214
215
  - !ruby/object:Gem::Version
215
216
  version: '0'
216
217
  requirements: []
217
- rubygems_version: 3.0.1
218
- signing_key:
218
+ rubygems_version: 3.4.10
219
+ signing_key:
219
220
  specification_version: 4
220
221
  summary: Shorten index name
221
222
  test_files: []
data/.travis.yml DELETED
@@ -1,43 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.3
4
- - 2.4
5
- - 2.5
6
- - 2.6
7
- - ruby-head
8
- gemfile:
9
- - gemfiles/rails_5_0.gemfile
10
- - gemfiles/rails_5_1.gemfile
11
- - gemfiles/rails_5_2.gemfile
12
- cache: bundler
13
- sudo: false
14
- before_install:
15
- - travis_retry gem update --system || travis_retry gem update --system 2.7.8
16
- - travis_retry gem install bundler --no-document -v 1.17.3
17
- before_script:
18
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
19
- - chmod +x ./cc-test-reporter
20
- - ./cc-test-reporter before-build
21
- script:
22
- - bundle exec rspec
23
- after_script:
24
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
25
- branches:
26
- only:
27
- - master
28
- notifications:
29
- email: false
30
- slack:
31
- secure: iJVdq7jPe/vHRBDRZhGOBrvUNqXAVWtfP6yBoZ58RaMcboelaNxZm15o4+EhTCwNb3Sz3wM3MXQo9oQngB31UNpleavg0xK315oFBsQQ24M6oMWdCR6PndWH3sJtf5CZvXUZ0hEZDPG2dkDGTfXF2HyhyotHI3FzrvXAjI8R8sJKxGRVAga0uDAfUntsS19SS8Ftwt6ob3VNKl5GKYElZ4U/gZ3n2e+I8dxiTy9YNBaydNLf33lZe3iZHTQbcRDxH5HbLof0FItGPEvoPJSxnqa6OyfbsTajhRUUOU2m2RInJjSHCliHV1F8nzPjotCl6N7OegO2HJ93FepsZ2dOul/Hbxkb0BuxFxYFgGfS0bHDb66V6JiqmLpwBi/QibP1kVEiP4vizLdX5b32fi/p1L7FRDX00qsYsjEdDyBH5WrWF4yTKTpNotwHmb/E4nFfbtme3jawvSJq5Kg1FL07H3pTP6nUgEKKyYq1FQhxHEGgKHMZYmUG+B7kILgQj3ZM0w7M09Hb2NMDuv7PEr7CbOw6x7ulVUu8ZfgpU7+jKUlnSS8xPN7/kso3hnSWA4PRlNt0Ef9ingUstNpb4wJYDiAmYD7NfFLf4K6CikkcgGXJbV/XYwszb8DKV39vIYDgW0VzREerixo4+SQE0v7FFF1ZQQbQ3yZaQ26UnlYm/Ag=
32
- matrix:
33
- allow_failures:
34
- - rvm: ruby-head
35
- include:
36
- - rvm: 2.6
37
- env: RUBYOPT="--jit"
38
- - rvm: ruby-head
39
- env: RUBYOPT="--jit"
40
-
41
- env:
42
- global:
43
- - CC_TEST_REPORTER_ID=900e51ca1a374ee25f9166b5eb3f2a1d86fa33ca47d4dee6e9746f4120fc7fef