index_shotgun 1.0.3 → 2.0.1

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: e083f50b59dfe9def74cef986544b8086cc1e60bf2fe765672f233e5935a8685
4
- data.tar.gz: c42212bddff5076c1c7252cf8ff33378a480e64190f7acc47591d3fbd1c16541
3
+ metadata.gz: 9cace453321dc252bf595c6ab616e4ae175d90ce6eab0d0eb4b0d48a747b419e
4
+ data.tar.gz: e8f7ac65cb916549e96b3e5e5694fda2582af66815f8cfd875eb7ec349935878
5
5
  SHA512:
6
- metadata.gz: 72226e56029dd8e36e853e9a23380d51c37991d7785bef739871846fdc985a6bf24ae8f36e041ced640a96ffba6574d35b180ecead0e5b619f07200fac2c401d
7
- data.tar.gz: 5f773916e8a3ed188be272201c9e41e3f35390cd793f7755702c20e2055b60ecf3be2ff5aa8253021a9cfba67b98671581c6fbdc986739d9643645c7a727b5ac
6
+ metadata.gz: 4dab027428b1b44f6af500be63cd8006ef5084150fb3a0a0072e5c3b0480dbbe3ea5fd6914749e5d587880a7fae9a3a3d5bc0fc2a94503f367e7b4c6d369307d
7
+ data.tar.gz: 3185690121cc43d4d426c383b240d017f46af74448de5e5e9f5c7ed5cfe52071f030f4e7f3db1892555917e062dbb116b5bcef1d342485decca6bc2f8c5e60e4
@@ -25,7 +25,6 @@ jobs:
25
25
 
26
26
  matrix:
27
27
  ruby:
28
- - "2.4"
29
28
  - "2.5"
30
29
  - "2.6"
31
30
  - "2.7"
@@ -33,14 +32,14 @@ jobs:
33
32
  - "3.1"
34
33
  - "3.2"
35
34
  - "3.3"
35
+ - "3.4"
36
36
  gemfile:
37
- - activerecord_5_0
38
- - activerecord_5_1
39
- - activerecord_5_2
40
37
  - activerecord_6_0
41
38
  - activerecord_6_1
42
39
  - activerecord_7_0
43
40
  - activerecord_7_1
41
+ - activerecord_7_2
42
+ - activerecord_8_0
44
43
  database:
45
44
  - sqlite3
46
45
  - mysql
@@ -48,54 +47,42 @@ jobs:
48
47
  - oracle
49
48
  exclude:
50
49
  # Rails 7.0+ requires Ruby 2.7+
51
- - ruby: "2.4"
52
- gemfile: activerecord_7_0
53
50
  - ruby: "2.5"
54
51
  gemfile: activerecord_7_0
55
52
  - ruby: "2.6"
56
53
  gemfile: activerecord_7_0
57
- - ruby: "2.4"
58
- gemfile: activerecord_7_1
59
54
  - ruby: "2.5"
60
55
  gemfile: activerecord_7_1
61
56
  - ruby: "2.6"
62
57
  gemfile: activerecord_7_1
63
58
 
64
- # Rails 6.0+ requires Ruby 2.5+
65
- - ruby: "2.4"
66
- gemfile: activerecord_6_0
67
- - ruby: "2.4"
68
- gemfile: activerecord_6_1
69
-
70
- # Rails 5.x doesn't works on Ruby 3.0+
71
- - ruby: "3.0"
72
- gemfile: activerecord_5_0
59
+ # Rails 7.2+ requires Ruby 3.1+
60
+ - ruby: "2.5"
61
+ gemfile: activerecord_7_2
62
+ - ruby: "2.6"
63
+ gemfile: activerecord_7_2
64
+ - ruby: "2.7"
65
+ gemfile: activerecord_7_2
73
66
  - ruby: "3.0"
74
- gemfile: activerecord_5_1
67
+ gemfile: activerecord_7_2
68
+
69
+ # Rails 8.0+ requires Ruby 3.2+
70
+ - ruby: "2.5"
71
+ gemfile: activerecord_8_0
72
+ - ruby: "2.6"
73
+ gemfile: activerecord_8_0
74
+ - ruby: "2.7"
75
+ gemfile: activerecord_8_0
75
76
  - ruby: "3.0"
76
- gemfile: activerecord_5_2
77
- - ruby: "3.1"
78
- gemfile: activerecord_5_0
79
- - ruby: "3.1"
80
- gemfile: activerecord_5_1
77
+ gemfile: activerecord_8_0
81
78
  - ruby: "3.1"
82
- gemfile: activerecord_5_2
83
- - ruby: "3.2"
84
- gemfile: activerecord_5_0
85
- - ruby: "3.2"
86
- gemfile: activerecord_5_1
87
- - ruby: "3.2"
88
- gemfile: activerecord_5_2
89
- - ruby: "3.3"
90
- gemfile: activerecord_5_0
91
- - ruby: "3.3"
92
- gemfile: activerecord_5_1
93
- - ruby: "3.3"
94
- gemfile: activerecord_5_2
95
-
96
- # TODO: latest activerecord-oracle_enhanced-adapter doesn't support activerecord 7.1
79
+ gemfile: activerecord_8_0
80
+
81
+ # TODO: latest activerecord-oracle_enhanced-adapter doesn't support activerecord 7.2+
97
82
  - database: oracle
98
- gemfile: activerecord_7_1
83
+ gemfile: activerecord_7_2
84
+ - database: oracle
85
+ gemfile: activerecord_8_0
99
86
 
100
87
  env:
101
88
  BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
@@ -124,7 +111,7 @@ jobs:
124
111
  options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
125
112
 
126
113
  oracle:
127
- image: deepdiver/docker-oracle-xe-11g
114
+ image: deepdiver/docker-oracle-xe-11g:2.0
128
115
  ports:
129
116
  - 1521
130
117
  env:
@@ -192,7 +179,7 @@ jobs:
192
179
  runs-on: ubuntu-latest
193
180
 
194
181
  env:
195
- RUBY_VERSION: 2.4
182
+ RUBY_VERSION: 2.5
196
183
  BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
197
184
 
198
185
  steps:
data/.rubocop.yml CHANGED
@@ -4,14 +4,16 @@ inherit_gem:
4
4
  - "config/rspec.yml"
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.4
7
+ TargetRubyVersion: 2.5
8
+ SuggestExtensions: false
9
+ NewCops: disable
8
10
 
9
- Layout/AlignHash:
11
+ Layout/HashAlignment:
10
12
  EnforcedHashRocketStyle: table
11
13
  EnforcedColonStyle: table
12
14
 
13
15
  Metrics/AbcSize:
14
- Max: 33
16
+ Max: 37
15
17
 
16
18
  Metrics/MethodLength:
17
19
  Max: 25
@@ -19,6 +21,9 @@ Metrics/MethodLength:
19
21
  RSpec/NestedGroups:
20
22
  Enabled: false
21
23
 
24
+ RSpec/RepeatedDescription:
25
+ Enabled: false
26
+
22
27
  RSpec/SharedExamples:
23
28
  Enabled: false
24
29
 
@@ -26,3 +31,6 @@ Security/Eval:
26
31
  Exclude:
27
32
  - "Gemfile"
28
33
  - "gemfiles/*.gemfile"
34
+
35
+ Style/ExplicitBlockArgument:
36
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,33 +1,47 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
- [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.3...master)
3
+ [Full Changelog](https://github.com/sue445/index_shotgun/compare/v2.0.1...master)
4
4
 
5
- ## [v1.0.2](https://github.com/sue445/index_shotgun/tree/v1.0.3) (2024/05/14)
5
+ ## [v2.0.1](https://github.com/sue445/index_shotgun/releases/tag/v2.0.1) (2025/01/18)
6
+ [Full Changelog](https://github.com/sue445/index_shotgun/compare/v2.0.0...v2.0.1)
7
+
8
+ * Fix `NameError: uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger` when activesupport < 7.1
9
+ * https://github.com/sue445/index_shotgun/pull/151
10
+
11
+ ## [v2.0.0](https://github.com/sue445/index_shotgun/releases/tag/v2.0.0) (2024/05/15)
12
+ [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.3...v2.0.0)
13
+
14
+ * :bomb: **[BREAKING CHANGE]** Requires Ruby2.5+ and activerecord 6.0+
15
+ * https://github.com/sue445/index_shotgun/pull/141
16
+ * Upgrade to rubocop 1.28.2
17
+ * https://github.com/sue445/index_shotgun/pull/142
18
+
19
+ ## [v1.0.3](https://github.com/sue445/index_shotgun/releases/tag/v1.0.3) (2024/05/14)
6
20
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.2...v1.0.3)
7
21
 
8
22
  * Fixed false positives when there are multiple unique indexes on a single table
9
23
  * https://github.com/sue445/index_shotgun/pull/140
10
24
 
11
- ## [v1.0.2](https://github.com/sue445/index_shotgun/tree/v1.0.2) (2023/12/28)
25
+ ## [v1.0.2](https://github.com/sue445/index_shotgun/releases/tag/v1.0.2) (2023/12/28)
12
26
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.1...v1.0.2)
13
27
 
14
28
  * Fixed deprecation warning in activesupport 7.1
15
29
  * https://github.com/sue445/index_shotgun/pull/134
16
30
 
17
- ## [v1.0.1](https://github.com/sue445/index_shotgun/tree/v1.0.1) (2021/11/20)
31
+ ## [v1.0.1](https://github.com/sue445/index_shotgun/releases/tag/v1.0.1) (2021/11/20)
18
32
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.0...v1.0.1)
19
33
 
20
34
  * Enable MFA requirement for gem releasing
21
35
  * https://github.com/sue445/index_shotgun/pull/111
22
36
 
23
- ## [v1.0.0](https://github.com/sue445/index_shotgun/tree/v1.0.0) (2019/01/06)
37
+ ## [v1.0.0](https://github.com/sue445/index_shotgun/releases/tag/v1.0.0) (2019/01/06)
24
38
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.3.0...v1.0.0)
25
39
 
26
40
  ### Breaking changes :bomb:
27
41
  * Drop support for Ruby 2.2 and Rails 4.2
28
42
  * https://github.com/sue445/index_shotgun/pull/60
29
43
 
30
- ## [v0.3.0](https://github.com/sue445/index_shotgun/tree/v0.3.0) (2016/07/23)
44
+ ## [v0.3.0](https://github.com/sue445/index_shotgun/releases/tag/v0.3.0) (2016/07/23)
31
45
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.2.1...v0.3.0)
32
46
 
33
47
  **Merged pull requests:**
@@ -38,7 +52,7 @@
38
52
  - Add CI for oracle [\#23](https://github.com/sue445/index_shotgun/pull/23) ([sue445](https://github.com/sue445))
39
53
  - Test ruby 2.3.1 [\#22](https://github.com/sue445/index_shotgun/pull/22) ([sue445](https://github.com/sue445))
40
54
 
41
- ## [v0.2.1](https://github.com/sue445/index_shotgun/tree/v0.2.1) (2016/02/17)
55
+ ## [v0.2.1](https://github.com/sue445/index_shotgun/releases/tag/v0.2.1) (2016/02/17)
42
56
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.2.0...v0.2.1)
43
57
 
44
58
  **Closed issues:**
@@ -51,7 +65,7 @@
51
65
  - Relax bundler version [\#19](https://github.com/sue445/index_shotgun/pull/19) ([sue445](https://github.com/sue445))
52
66
  - Add ruby 2.3 [\#18](https://github.com/sue445/index_shotgun/pull/18) ([sue445](https://github.com/sue445))
53
67
 
54
- ## [v0.2.0](https://github.com/sue445/index_shotgun/tree/v0.2.0) (2015/11/09)
68
+ ## [v0.2.0](https://github.com/sue445/index_shotgun/releases/tag/v0.2.0) (2015/11/09)
55
69
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0...v0.2.0)
56
70
 
57
71
  **Merged pull requests:**
@@ -59,7 +73,7 @@
59
73
  - Support Oracle Database [\#17](https://github.com/sue445/index_shotgun/pull/17) ([koic](https://github.com/koic))
60
74
  - Add group to database gem dependency [\#16](https://github.com/sue445/index_shotgun/pull/16) ([sue445](https://github.com/sue445))
61
75
 
62
- ## [v0.1.0](https://github.com/sue445/index_shotgun/tree/v0.1.0) (2015/09/30)
76
+ ## [v0.1.0](https://github.com/sue445/index_shotgun/releases/tag/v0.1.0) (2015/09/30)
63
77
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0.beta3...v0.1.0)
64
78
 
65
79
  **Closed issues:**
@@ -74,14 +88,14 @@
74
88
  - Tweak result message of unique index [\#12](https://github.com/sue445/index_shotgun/pull/12) ([sue445](https://github.com/sue445))
75
89
  - Write doc [\#10](https://github.com/sue445/index_shotgun/pull/10) ([sue445](https://github.com/sue445))
76
90
 
77
- ## [v0.1.0.beta3](https://github.com/sue445/index_shotgun/tree/v0.1.0.beta3) (2015/09/17)
91
+ ## [v0.1.0.beta3](https://github.com/sue445/index_shotgun/releases/tag/v0.1.0.beta3) (2015/09/17)
78
92
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0.beta2...v0.1.0.beta3)
79
93
 
80
94
  **Merged pull requests:**
81
95
 
82
96
  - Add summary [\#11](https://github.com/sue445/index_shotgun/pull/11) ([sue445](https://github.com/sue445))
83
97
 
84
- ## [v0.1.0.beta2](https://github.com/sue445/index_shotgun/tree/v0.1.0.beta2) (2015/09/16)
98
+ ## [v0.1.0.beta2](https://github.com/sue445/index_shotgun/releases/tag/v0.1.0.beta2) (2015/09/16)
85
99
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0.beta1...v0.1.0.beta2)
86
100
 
87
101
  **Merged pull requests:**
@@ -93,7 +107,7 @@
93
107
  - Setup codeclimate, coveralls [\#2](https://github.com/sue445/index_shotgun/pull/2) ([sue445](https://github.com/sue445))
94
108
  - Setup travis [\#1](https://github.com/sue445/index_shotgun/pull/1) ([sue445](https://github.com/sue445))
95
109
 
96
- ## [v0.1.0.beta1](https://github.com/sue445/index_shotgun/tree/v0.1.0.beta1) (2015/09/06)
110
+ ## [v0.1.0.beta1](https://github.com/sue445/index_shotgun/releases/tag/v0.1.0.beta1) (2015/09/06)
97
111
 
98
112
 
99
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
113
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile CHANGED
@@ -19,5 +19,3 @@ end
19
19
  group :sqlite3 do
20
20
  gem "sqlite3"
21
21
  end
22
-
23
- eval_gemfile "#{__dir__}/gemfiles/common.gemfile"
data/README.md CHANGED
@@ -1,8 +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
- [![Build Status](https://github.com/sue445/index_shotgun/workflows/test/badge.svg?branch=master)](https://github.com/sue445/index_shotgun/actions?query=workflow%3Atest)
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
4
  [![Code Climate](https://codeclimate.com/github/sue445/index_shotgun/badges/gpa.svg)](https://codeclimate.com/github/sue445/index_shotgun)
5
- [![Coverage Status](https://coveralls.io/repos/sue445/index_shotgun/badge.svg?branch=master&service=github)](https://coveralls.io/github/sue445/index_shotgun?branch=master)
6
5
 
7
6
  Duplicate index checker.
8
7
 
@@ -45,7 +44,7 @@ ALTER TABLE `user_stocks` DROP INDEX `index_user_stocks_on_user_id`;
45
44
  ```
46
45
 
47
46
  ## Requirements
48
- * Ruby 2.3+
47
+ * Ruby 2.5+
49
48
  * Database you want to use (ex. MySQL, PostgreSQL or SQLite3)
50
49
 
51
50
  ## Installation
data/ci/build.sh CHANGED
@@ -1,18 +1,5 @@
1
1
  #!/bin/bash -xe
2
2
 
3
- if [ "${DATABASE}" = "mysql" ]; then
4
- export BUNDLE_WITHOUT="postgresql sqlite3 oracle"
5
- elif [ "${DATABASE}" = "postgresql" ]; then
6
- export BUNDLE_WITHOUT="mysql sqlite3 oracle"
7
- elif [ "${DATABASE}" = "sqlite3" ]; then
8
- export BUNDLE_WITHOUT="mysql postgresql oracle"
9
- elif [ "${DATABASE}" = "oracle" ]; then
10
- export BUNDLE_WITHOUT="mysql postgresql sqlite3"
11
- else
12
- echo "${DATABASE} is unknown"
13
- exit 1
14
- fi
15
-
16
3
  cp ci/database.yml.${DATABASE} spec/config/database.yml
17
4
  bundle exec rspec --profile
18
5
 
data/ci/install.sh CHANGED
@@ -9,19 +9,19 @@ if [ "${DATABASE}" = "mysql" ]; then
9
9
  sudo apt-get update
10
10
  sudo apt-get install -y libmysqlclient-dev
11
11
 
12
- export BUNDLE_WITHOUT="postgresql sqlite3 oracle"
12
+ bundle config set --local without "postgresql sqlite3 oracle"
13
13
 
14
14
  elif [ "${DATABASE}" = "postgresql" ]; then
15
15
  sudo apt-get update
16
16
  sudo apt-get install -y libpq-dev
17
17
 
18
- export BUNDLE_WITHOUT="mysql sqlite3 oracle"
18
+ bundle config set --local without "mysql sqlite3 oracle"
19
19
 
20
20
  elif [ "${DATABASE}" = "sqlite3" ]; then
21
21
  sudo apt-get update
22
22
  sudo apt-get install -y libsqlite3-dev
23
23
 
24
- export BUNDLE_WITHOUT="mysql postgresql oracle"
24
+ bundle config set --local without "mysql postgresql oracle"
25
25
 
26
26
  elif [ "${DATABASE}" = "oracle" ]; then
27
27
  # c.f. https://github.com/kubo/ruby-oci8/blob/ruby-oci8-2.2.7/docs/install-instant-client.md#install-oracle-instant-client-packages
@@ -35,14 +35,22 @@ elif [ "${DATABASE}" = "oracle" ]; then
35
35
  unzip instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip
36
36
 
37
37
  sudo apt-get update
38
- sudo apt-get install -y libaio1
38
+
39
+ # libaio1 is replaced to libaio1t64
40
+ # c.f. https://askubuntu.com/questions/1512196/libaio1-on-noble
41
+ # sudo apt-get install -y libaio1
42
+ sudo apt-get install -y libaio1t64
43
+ sudo ln -s /usr/lib/$(uname -m)-linux-gnu/libaio.so.1t64 /usr/lib/$(uname -m)-linux-gnu/libaio.so.1
39
44
 
40
45
  popd
41
46
 
42
- export BUNDLE_WITHOUT="mysql postgresql sqlite3"
47
+ bundle config set --local without "mysql postgresql sqlite3"
48
+
49
+ elif [ "${DATABASE}" = "sqlite3" ]; then
50
+ bundle config set --local without "mysql postgresql oracle"
43
51
 
44
52
  else
45
- export BUNDLE_WITHOUT="mysql postgresql sqlite3 oracle"
53
+ bundle config set --local without "mysql postgresql sqlite3 oracle"
46
54
 
47
55
  fi
48
56
 
@@ -22,6 +22,9 @@ group :sqlite3 do
22
22
  gem "sqlite3", "~> 1.4"
23
23
  end
24
24
 
25
- eval_gemfile "#{__dir__}/common.gemfile"
25
+ # for Ruby 3.4+
26
+ gem "base64"
27
+ gem "bigdecimal"
28
+ gem "mutex_m"
26
29
 
27
30
  gemspec path: "../"
@@ -22,6 +22,9 @@ group :sqlite3 do
22
22
  gem "sqlite3", "~> 1.4"
23
23
  end
24
24
 
25
- eval_gemfile "#{__dir__}/common.gemfile"
25
+ # for Ruby 3.4+
26
+ gem "base64"
27
+ gem "bigdecimal"
28
+ gem "mutex_m"
26
29
 
27
30
  gemspec path: "../"
@@ -24,6 +24,9 @@ group :sqlite3 do
24
24
  gem "sqlite3", "~> 1.4"
25
25
  end
26
26
 
27
- eval_gemfile "#{__dir__}/common.gemfile"
27
+ # for Ruby 3.4+
28
+ gem "base64"
29
+ gem "bigdecimal"
30
+ gem "mutex_m"
28
31
 
29
32
  gemspec path: "../"
@@ -12,17 +12,14 @@ group :mysql do
12
12
  gem "mysql2", "~> 0.5"
13
13
  end
14
14
 
15
- # TODO: latest activerecord-oracle_enhanced-adapter doesn't support activerecord 7.1
16
- # group :oracle do
17
- # gem "activerecord-oracle_enhanced-adapter", "~> 7.0.0"
18
- # gem "ruby-oci8"
19
- # end
15
+ group :oracle do
16
+ gem "activerecord-oracle_enhanced-adapter", "~> 7.1.0.beta2"
17
+ gem "ruby-oci8"
18
+ end
20
19
 
21
20
  group :sqlite3 do
22
21
  # c.f. https://github.com/rails/rails/blob/v7.1.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
23
22
  gem "sqlite3", "~> 1.4"
24
23
  end
25
24
 
26
- eval_gemfile "#{__dir__}/common.gemfile"
27
-
28
25
  gemspec path: "../"
@@ -0,0 +1,26 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 7.2.0.beta1"
4
+
5
+ group :postgresql do
6
+ # c.f. https://github.com/rails/rails/blob/v7.2.0.beta1/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3-L4
7
+ gem "pg", "~> 1.1"
8
+ end
9
+
10
+ group :mysql do
11
+ # c.f. https://github.com/rails/rails/blob/v7.2.0.beta1/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
12
+ gem "mysql2", "~> 0.5"
13
+ end
14
+
15
+ # TODO: latest activerecord-oracle_enhanced-adapter doesn't support activerecord 7.2
16
+ # group :oracle do
17
+ # gem "activerecord-oracle_enhanced-adapter", "~> 7.0.0"
18
+ # gem "ruby-oci8"
19
+ # end
20
+
21
+ group :sqlite3 do
22
+ # c.f. https://github.com/rails/rails/blob/v7.2.0.beta1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
23
+ gem "sqlite3", ">= 1.4"
24
+ end
25
+
26
+ gemspec path: "../"
@@ -0,0 +1,26 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 8.0.0.rc1"
4
+
5
+ group :postgresql do
6
+ # c.f. https://github.com/rails/rails/blob/v8.0.0.rc1/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3-L4
7
+ gem "pg", "~> 1.1"
8
+ end
9
+
10
+ group :mysql do
11
+ # c.f. https://github.com/rails/rails/blob/v8.0.0.rc1/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
12
+ gem "mysql2", "~> 0.5"
13
+ end
14
+
15
+ # TODO: latest activerecord-oracle_enhanced-adapter doesn't support activerecord 8.0
16
+ # group :oracle do
17
+ # gem "activerecord-oracle_enhanced-adapter", "~> 7.0.0"
18
+ # gem "ruby-oci8"
19
+ # end
20
+
21
+ group :sqlite3 do
22
+ # c.f. https://github.com/rails/rails/blob/v8.0.0.rc1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L14
23
+ gem "sqlite3", ">= 2.1"
24
+ end
25
+
26
+ gemspec path: "../"
@@ -19,25 +19,23 @@ Gem::Specification.new do |spec|
19
19
  spec.metadata["documentation_uri"] = "https://sue445.github.io/index_shotgun/"
20
20
  spec.metadata["rubygems_mfa_required"] = "true"
21
21
 
22
- spec.required_ruby_version = ">= 2.4.0"
22
+ spec.required_ruby_version = ">= 2.5.0"
23
23
 
24
24
  spec.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
25
25
  spec.bindir = "exe"
26
26
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
- spec.add_dependency "activerecord", ">= 5.0.0"
29
+ spec.add_dependency "activerecord", ">= 6.0.0"
30
30
  spec.add_dependency "thor"
31
31
 
32
32
  spec.add_development_dependency "bundler"
33
- spec.add_development_dependency "coveralls_reborn"
34
- spec.add_development_dependency "onkcop", "0.53.0.2"
33
+ spec.add_development_dependency "onkcop", "1.0.0.0"
35
34
  spec.add_development_dependency "rake"
36
35
  spec.add_development_dependency "rake_shared_context", "0.2.2"
37
36
  spec.add_development_dependency "rspec"
38
37
  spec.add_development_dependency "rspec-its"
39
- spec.add_development_dependency "rubocop", "0.62.0"
40
- spec.add_development_dependency "rubocop_auto_corrector"
41
- spec.add_development_dependency "simplecov", "< 0.18.0"
38
+ spec.add_development_dependency "rubocop", "1.28.2"
39
+ spec.add_development_dependency "rubocop_auto_corrector", "< 0.4.4" # FIXME: rubocop --autocorrect doesn't available on rubocop 1.28.2
42
40
  spec.add_development_dependency "yard"
43
41
  end
@@ -1,3 +1,3 @@
1
1
  module IndexShotgun
2
- VERSION = "1.0.3".freeze
2
+ VERSION = "2.0.1".freeze
3
3
  end
data/lib/index_shotgun.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  require "index_shotgun/version"
2
2
  require "index_shotgun/analyzer"
3
+
4
+ # FIXME: NameError: uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger when activesupport < 7.1
5
+ require "logger"
6
+
3
7
  require "active_record"
4
8
 
5
9
  module IndexShotgun
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: index_shotgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2025-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.0
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,34 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: coveralls_reborn
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: onkcop
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - '='
74
60
  - !ruby/object:Gem::Version
75
- version: 0.53.0.2
61
+ version: 1.0.0.0
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - '='
81
67
  - !ruby/object:Gem::Version
82
- version: 0.53.0.2
68
+ version: 1.0.0.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: rake
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -142,42 +128,28 @@ dependencies:
142
128
  requirements:
143
129
  - - '='
144
130
  - !ruby/object:Gem::Version
145
- version: 0.62.0
131
+ version: 1.28.2
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
136
  - - '='
151
137
  - !ruby/object:Gem::Version
152
- version: 0.62.0
138
+ version: 1.28.2
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: rubocop_auto_corrector
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: '0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: simplecov
169
141
  requirement: !ruby/object:Gem::Requirement
170
142
  requirements:
171
143
  - - "<"
172
144
  - !ruby/object:Gem::Version
173
- version: 0.18.0
145
+ version: 0.4.4
174
146
  type: :development
175
147
  prerelease: false
176
148
  version_requirements: !ruby/object:Gem::Requirement
177
149
  requirements:
178
150
  - - "<"
179
151
  - !ruby/object:Gem::Version
180
- version: 0.18.0
152
+ version: 0.4.4
181
153
  - !ruby/object:Gem::Dependency
182
154
  name: yard
183
155
  requirement: !ruby/object:Gem::Requirement
@@ -223,14 +195,12 @@ files:
223
195
  - ci/database.yml.sqlite3
224
196
  - ci/install.sh
225
197
  - exe/index_shotgun
226
- - gemfiles/activerecord_5_0.gemfile
227
- - gemfiles/activerecord_5_1.gemfile
228
- - gemfiles/activerecord_5_2.gemfile
229
198
  - gemfiles/activerecord_6_0.gemfile
230
199
  - gemfiles/activerecord_6_1.gemfile
231
200
  - gemfiles/activerecord_7_0.gemfile
232
201
  - gemfiles/activerecord_7_1.gemfile
233
- - gemfiles/common.gemfile
202
+ - gemfiles/activerecord_7_2.gemfile
203
+ - gemfiles/activerecord_8_0.gemfile
234
204
  - index_shotgun.gemspec
235
205
  - lib/index_shotgun.rb
236
206
  - lib/index_shotgun/analyzer.rb
@@ -257,7 +227,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
257
227
  requirements:
258
228
  - - ">="
259
229
  - !ruby/object:Gem::Version
260
- version: 2.4.0
230
+ version: 2.5.0
261
231
  required_rubygems_version: !ruby/object:Gem::Requirement
262
232
  requirements:
263
233
  - - ">="
@@ -1,26 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", "~> 5.0.7"
4
-
5
- group :postgresql do
6
- # https://github.com/rails/rails/blob/v5.0.7/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L2
7
- gem "pg", ">= 0.18", "< 2.0"
8
- end
9
-
10
- group :mysql do
11
- # https://github.com/rails/rails/blob/v5.0.7/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L4
12
- gem "mysql2", ">= 0.4.4", "< 0.6.0"
13
- end
14
-
15
- group :oracle do
16
- gem "activerecord-oracle_enhanced-adapter", "~> 1.7.11"
17
- gem "ruby-oci8"
18
- end
19
-
20
- group :sqlite3 do
21
- gem "sqlite3", "~> 1.3.6"
22
- end
23
-
24
- eval_gemfile "#{__dir__}/common.gemfile"
25
-
26
- gemspec path: "../"
@@ -1,26 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", "~> 5.1.6"
4
-
5
- group :postgresql do
6
- # https://github.com/rails/rails/blob/v5.1.6/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L2
7
- gem "pg", ">= 0.18", "< 2.0"
8
- end
9
-
10
- group :mysql do
11
- # https://github.com/rails/rails/blob/v5.1.6/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L4-L6
12
- gem "mysql2", ">= 0.4.4", "< 0.6.0"
13
- end
14
-
15
- group :oracle do
16
- gem "activerecord-oracle_enhanced-adapter", "~> 1.8.2"
17
- gem "ruby-oci8"
18
- end
19
-
20
- group :sqlite3 do
21
- gem "sqlite3", "~> 1.3.6"
22
- end
23
-
24
- eval_gemfile "#{__dir__}/common.gemfile"
25
-
26
- gemspec path: "../"
@@ -1,26 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", "~> 5.2.0"
4
-
5
- group :postgresql do
6
- # https://github.com/rails/rails/blob/v5.2.0/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L4
7
- gem "pg", ">= 0.18", "< 2.0"
8
- end
9
-
10
- group :mysql do
11
- # https://github.com/rails/rails/blob/v5.2.0/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
12
- gem "mysql2", ">= 0.4.4", "< 0.6.0"
13
- end
14
-
15
- group :oracle do
16
- gem "activerecord-oracle_enhanced-adapter", "~> 5.2.3"
17
- gem "ruby-oci8"
18
- end
19
-
20
- group :sqlite3 do
21
- gem "sqlite3", "~> 1.3.6"
22
- end
23
-
24
- eval_gemfile "#{__dir__}/common.gemfile"
25
-
26
- gemspec path: "../"
@@ -1,21 +0,0 @@
1
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.0")
2
- # byebug v11.1.0+ requires Ruby 2.4.0+
3
- gem "byebug", "< 11.1.0"
4
-
5
- # simplecov-html v0.12.3+ requires Ruby 2.4.0+
6
- gem "simplecov-html", "< 0.12.3"
7
-
8
- # parallel v1.20.0 requires Ruby 2.5.0+ and parallel v1.20.1+ requires Ruby 2.4.0+
9
- gem "parallel", "< 1.20.0"
10
- end
11
-
12
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.4.4")
13
- # zeitwerk requires Ruby 2.4.4+
14
- gem "activesupport", "< 6.0.0"
15
- end
16
-
17
- if Gem::Version.create(RUBY_VERSION) < Gem::Version.create("2.5.0")
18
- # parser 3.3.0.0 uses String#delete_suffix, but String#delete_suffix is available since Ruby 2.5.0+
19
- # c.f https://github.com/whitequark/parser/blob/v3.3.0.0/lib/parser/lexer/literal.rb#L250
20
- gem "parser", "< 3.3.0.0"
21
- end