index_shotgun 1.0.0 → 1.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
- SHA1:
3
- metadata.gz: 65ac3d14caebadb787d825c169398eb63567c2b0
4
- data.tar.gz: c11b30830d3a14fea4369c9f99048bd0065dd4ba
2
+ SHA256:
3
+ metadata.gz: 177ae0bdc732e173f7813384773d2d1d7494a3427a2e9683caafdc2c7dde5112
4
+ data.tar.gz: 8d671561f7c7aa86a4169eef4ed7e7f35fd39279e5809e13acbbd8b1a9892e70
5
5
  SHA512:
6
- metadata.gz: bda06e43aadddb1813c9e0f097299a417e68b86f1775d8c364cde6da5a95ba8ee552e575f0ef09fd896e29177ac88b7dd75b44403c4276dca47fff0b3b4f27ff
7
- data.tar.gz: 229854c455c117d6e1fe70a8b7a29bb5d057489a7ccb5582bed9a07f0bafcacabcd11be23636c68dc131ed7f21187d63cc9d9689ab518bac8ab216e69df36b76
6
+ metadata.gz: 523d34c9aad011951a1b76beb8e55a7ff07282a83b830d19f2029966e6100f75de8ea9aa1a9df77c3fe4f464076866629b7e031168156c4d19434cd2cff5c6d9
7
+ data.tar.gz: a5319c356f1f834e5b294cfc844f5eb8b578172de2650eff782f0987ac2a847ec0cde84e73db398773e65345ef13361bf7e9efc48ffd7e4be9eeef157a95fbfb
@@ -0,0 +1,222 @@
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 20 * * 5" # JST 5:00 (Sat)
14
+
15
+ jobs:
16
+ test:
17
+ runs-on: ubuntu-latest
18
+
19
+ strategy:
20
+ fail-fast: false
21
+
22
+ matrix:
23
+ ruby:
24
+ - "2.4"
25
+ - "2.5"
26
+ - "2.6"
27
+ - "2.7"
28
+ - "3.0"
29
+ gemfile:
30
+ - activerecord_5_0
31
+ - activerecord_5_1
32
+ - activerecord_5_2
33
+ - activerecord_6_0
34
+ - activerecord_6_1
35
+ - activerecord_7_0
36
+ database:
37
+ - sqlite3
38
+ - mysql
39
+ - postgresql
40
+ - oracle
41
+ exclude:
42
+ # TODO: Remove this after activerecord-oracle_enhanced-adapter supports activerecord v7
43
+ - database: oracle
44
+ gemfile: activerecord_7_0
45
+
46
+ # Rails 7.0+ requires Ruby 2.7+
47
+ - ruby: "2.4"
48
+ gemfile: activerecord_7_0
49
+ - ruby: "2.5"
50
+ gemfile: activerecord_7_0
51
+ - ruby: "2.6"
52
+ gemfile: activerecord_7_0
53
+
54
+ # Rails 6.0+ requires Ruby 2.5+
55
+ - ruby: "2.4"
56
+ gemfile: activerecord_6_0
57
+ - ruby: "2.4"
58
+ gemfile: activerecord_6_1
59
+
60
+ # Rails 5.x doesn't works on Ruby 3.0+
61
+ - ruby: "3.0"
62
+ gemfile: activerecord_5_0
63
+ - ruby: "3.0"
64
+ gemfile: activerecord_5_1
65
+ - ruby: "3.0"
66
+ gemfile: activerecord_5_2
67
+
68
+ env:
69
+ BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
70
+ DATABASE: ${{ matrix.database }}
71
+
72
+ # for oracle
73
+ LD_LIBRARY_PATH: /opt/oracle/instantclient_19_3
74
+ NLS_LANG: AMERICAN_AMERICA.UTF8
75
+ ORACLE_SYSTEM_PASSWORD: oracle
76
+
77
+ services:
78
+ mysql:
79
+ image: mysql:8
80
+ ports:
81
+ - 3306
82
+ env:
83
+ MYSQL_ROOT_PASSWORD: root
84
+
85
+ postgresql:
86
+ image: postgres:10-alpine
87
+ ports:
88
+ - 5432
89
+ env:
90
+ POSTGRES_USER: postgres
91
+ POSTGRES_PASSWORD: postgres
92
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
93
+
94
+ oracle:
95
+ image: deepdiver/docker-oracle-xe-11g
96
+ ports:
97
+ - 1521
98
+ env:
99
+ ORACLE_SYSTEM_PASSWORD: oracle
100
+
101
+ steps:
102
+ - uses: actions/checkout@v2
103
+
104
+ - uses: ruby/setup-ruby@v1
105
+ with:
106
+ ruby-version: ${{ matrix.ruby }}
107
+
108
+ - name: Cache vendor/bundle
109
+ uses: actions/cache@v1
110
+ id: cache_gem
111
+ with:
112
+ path: vendor/bundle
113
+ key: v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ env.DATABASE }}-${{ github.sha }}
114
+ restore-keys: |
115
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-${{ env.DATABASE }}-
116
+ v1-gem-${{ runner.os }}-${{ matrix.ruby }}-${{ matrix.gemfile }}-
117
+
118
+ - name: Install
119
+ run: |
120
+ set -xe
121
+ ./ci/install.sh
122
+
123
+ - name: Setup Code Climate Test Reporter
124
+ uses: aktions/codeclimate-test-reporter@v1
125
+ with:
126
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
127
+ command: before-build
128
+ continue-on-error: true
129
+
130
+ # c.f. https://github.blog/changelog/2020-02-21-github-actions-breaking-change-ubuntu-virtual-environments-will-no-longer-start-the-mysql-service-automatically/
131
+ - run: sudo /etc/init.d/mysql start
132
+
133
+ - name: Run test
134
+ run: |
135
+ set -xe
136
+ ./ci/build.sh
137
+ env:
138
+ MYSQL_PORT: ${{ job.services.mysql.ports['3306'] }}
139
+ POSTGRESQL_PORT: ${{ job.services.postgresql.ports['5432'] }}
140
+ ORACLE_PORT: ${{ job.services.oracle.ports['1521'] }}
141
+
142
+ - name: Teardown Code Climate Test Reporter
143
+ uses: aktions/codeclimate-test-reporter@v1
144
+ with:
145
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
146
+ command: after-build
147
+ if: always()
148
+ continue-on-error: true
149
+
150
+ - name: Slack Notification (not success)
151
+ uses: lazy-actions/slatify@master
152
+ if: "! success()"
153
+ continue-on-error: true
154
+ with:
155
+ job_name: ${{ format('*build* ({0}, {1}, {2})', matrix.ruby, matrix.gemfile, matrix.database) }}
156
+ type: ${{ job.status }}
157
+ icon_emoji: ":octocat:"
158
+ url: ${{ secrets.SLACK_WEBHOOK }}
159
+ token: ${{ secrets.GITHUB_TOKEN }}
160
+
161
+ rubocop:
162
+ runs-on: ubuntu-latest
163
+
164
+ env:
165
+ RUBY_VERSION: 2.4
166
+ BUNDLE_WITHOUT: mysql postgresql sqlite3 oracle
167
+
168
+ steps:
169
+ - uses: actions/checkout@v1
170
+
171
+ - uses: ruby/setup-ruby@v1
172
+ with:
173
+ ruby-version: ${{ env.RUBY_VERSION }}
174
+
175
+ - name: Cache vendor/bundle
176
+ uses: actions/cache@v1
177
+ id: cache_gem_rubocop
178
+ with:
179
+ path: vendor/bundle
180
+ key: v1-gem-rubocop-${{ runner.os }}-${{ env.RUBY_VERSION }}-${{ github.sha }}
181
+ restore-keys: |
182
+ v1-gem-rubocop-${{ runner.os }}-${{ env.RUBY_VERSION }}-
183
+
184
+ - name: Install
185
+ run: |
186
+ set -xe
187
+ ./ci/install.sh
188
+
189
+ - name: Run rubocop
190
+ run: |
191
+ set -xe
192
+ bundle exec rubocop
193
+
194
+ - name: Slack Notification (not success)
195
+ uses: lazy-actions/slatify@master
196
+ if: "! success()"
197
+ continue-on-error: true
198
+ with:
199
+ job_name: '*rubocop*'
200
+ type: ${{ job.status }}
201
+ icon_emoji: ":octocat:"
202
+ url: ${{ secrets.SLACK_WEBHOOK }}
203
+ token: ${{ secrets.GITHUB_TOKEN }}
204
+
205
+ notify:
206
+ needs:
207
+ - test
208
+ - rubocop
209
+
210
+ runs-on: ubuntu-latest
211
+
212
+ steps:
213
+ - name: Slack Notification (success)
214
+ uses: lazy-actions/slatify@master
215
+ if: always()
216
+ continue-on-error: true
217
+ with:
218
+ job_name: '*build*'
219
+ type: ${{ job.status }}
220
+ icon_emoji: ":octocat:"
221
+ url: ${{ secrets.SLACK_WEBHOOK }}
222
+ token: ${{ secrets.GITHUB_TOKEN }}
data/.rubocop.yml CHANGED
@@ -4,7 +4,7 @@ inherit_gem:
4
4
  - "config/rspec.yml"
5
5
 
6
6
  AllCops:
7
- TargetRubyVersion: 2.3
7
+ TargetRubyVersion: 2.4
8
8
 
9
9
  Layout/AlignHash:
10
10
  EnforcedHashRocketStyle: table
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change Log
2
2
  ## Unreleased
3
- [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.0...master)
3
+ [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.1...master)
4
+
5
+ ## [v1.0.1](https://github.com/sue445/index_shotgun/tree/v1.0.1) (2021/11/20)
6
+ [Full Changelog](https://github.com/sue445/index_shotgun/compare/v1.0.0...v1.0.1)
7
+
8
+ * Enable MFA requirement for gem releasing
9
+ * https://github.com/sue445/index_shotgun/pull/111
4
10
 
5
11
  ## [v1.0.0](https://github.com/sue445/index_shotgun/tree/v1.0.0) (2019/01/06)
6
12
  [Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.3.0...v1.0.0)
data/Gemfile CHANGED
@@ -16,4 +16,8 @@ group :oracle do
16
16
  gem "ruby-oci8"
17
17
  end
18
18
 
19
- eval(Pathname("gemfiles/common.gemfile").read)
19
+ group :sqlite3 do
20
+ gem "sqlite3"
21
+ end
22
+
23
+ eval_gemfile "#{__dir__}/gemfiles/common.gemfile"
data/README.md CHANGED
@@ -1,7 +1,6 @@
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://travis-ci.org/sue445/index_shotgun.svg?branch=master)](https://travis-ci.org/sue445/index_shotgun)
4
- [![CircleCI](https://circleci.com/gh/sue445/index_shotgun/tree/master.svg?style=svg)](https://circleci.com/gh/sue445/index_shotgun/tree/master)
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)
5
4
  [![Code Climate](https://codeclimate.com/github/sue445/index_shotgun/badges/gpa.svg)](https://codeclimate.com/github/sue445/index_shotgun)
6
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)
7
6
 
data/ci/build.sh CHANGED
@@ -9,16 +9,16 @@ bundle exec ./exe/index_shotgun version
9
9
  set +e
10
10
 
11
11
  if [ ${DATABASE} = "mysql" ]; then
12
- bundle exec ./exe/index_shotgun mysql --database=index_shotgun_test --username=travis
12
+ bundle exec ./exe/index_shotgun mysql --database=index_shotgun_test --username=root --password=root --port=$MYSQL_PORT
13
13
  RET=$?
14
14
  elif [ ${DATABASE} = "postgresql" ]; then
15
- bundle exec ./exe/index_shotgun postgresql --database=index_shotgun_test --username=postgres
15
+ bundle exec ./exe/index_shotgun postgresql --database=index_shotgun_test --username=postgres --password=postgres --port=$POSTGRESQL_PORT
16
16
  RET=$?
17
17
  elif [ ${DATABASE} = "sqlite3" ]; then
18
18
  bundle exec ./exe/index_shotgun sqlite3 --database=spec/db/index_shotgun_test.db
19
19
  RET=$?
20
20
  elif [ ${DATABASE} = "oracle" ]; then
21
- bundle exec ./exe/index_shotgun oracle --database=xe --username=system --password=oracle
21
+ bundle exec ./exe/index_shotgun oracle --database=xe --username=system --password=oracle --port=$ORACLE_PORT
22
22
  RET=$?
23
23
  fi
24
24
 
@@ -1,5 +1,7 @@
1
1
  test:
2
2
  adapter: mysql2
3
3
  database: index_shotgun_test
4
- username: travis
4
+ username: root
5
+ password: root
5
6
  encoding: utf8
7
+ port: <%= ENV["MYSQL_PORT"] %>
@@ -1,5 +1,5 @@
1
1
  test:
2
2
  adapter: oracle_enhanced
3
- database: //localhost:1521/xe
3
+ database: //localhost:<%= ENV["ORACLE_PORT"] %>/xe
4
4
  username: system
5
5
  password: oracle
@@ -2,3 +2,6 @@ test:
2
2
  adapter: postgresql
3
3
  database: index_shotgun_test
4
4
  username: postgres
5
+ password: postgres
6
+ port: <%= ENV["POSTGRESQL_PORT"] %>
7
+ host: localhost
data/ci/install.sh ADDED
@@ -0,0 +1,47 @@
1
+ #!/bin/bash -xe
2
+
3
+ gem install bundler --no-document -v 1.17.3 || true
4
+
5
+ if [ "${DATABASE}" = "mysql" ]; then
6
+ sudo apt-get update
7
+ sudo apt-get install -y libmysqlclient-dev
8
+
9
+ export BUNDLE_WITHOUT="postgresql sqlite3 oracle"
10
+
11
+ elif [ "${DATABASE}" = "postgresql" ]; then
12
+ sudo apt-get update
13
+ sudo apt-get install -y libpq-dev
14
+
15
+ export BUNDLE_WITHOUT="mysql sqlite3 oracle"
16
+
17
+ elif [ "${DATABASE}" = "sqlite3" ]; then
18
+ sudo apt-get update
19
+ sudo apt-get install -y libsqlite3-dev
20
+
21
+ export BUNDLE_WITHOUT="mysql postgresql oracle"
22
+
23
+ elif [ "${DATABASE}" = "oracle" ]; then
24
+ # c.f. https://github.com/kubo/ruby-oci8/blob/ruby-oci8-2.2.7/docs/install-instant-client.md#install-oracle-instant-client-packages
25
+ mkdir -p /opt/oracle
26
+ pushd /opt/oracle
27
+
28
+ wget https://download.oracle.com/otn_software/linux/instantclient/193000/instantclient-basiclite-linux.x64-19.3.0.0.0dbru.zip
29
+ wget https://download.oracle.com/otn_software/linux/instantclient/193000/instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip
30
+
31
+ unzip instantclient-basiclite-linux.x64-19.3.0.0.0dbru.zip
32
+ unzip instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip
33
+
34
+ sudo apt-get update
35
+ sudo apt-get install -y libaio1
36
+
37
+ popd
38
+
39
+ export BUNDLE_WITHOUT="mysql postgresql sqlite3"
40
+
41
+ else
42
+ export BUNDLE_WITHOUT="mysql postgresql sqlite3 oracle"
43
+
44
+ fi
45
+
46
+ bundle config set --local path "vendor/bundle/"
47
+ bundle install --jobs $(nproc) --retry 3
@@ -17,6 +17,10 @@ group :oracle do
17
17
  gem "ruby-oci8"
18
18
  end
19
19
 
20
- gemspec path: "../"
20
+ group :sqlite3 do
21
+ gem "sqlite3", "~> 1.3.6"
22
+ end
21
23
 
22
- eval(Pathname("#{__dir__}/common.gemfile").read)
24
+ eval_gemfile "#{__dir__}/common.gemfile"
25
+
26
+ gemspec path: "../"
@@ -17,6 +17,10 @@ group :oracle do
17
17
  gem "ruby-oci8"
18
18
  end
19
19
 
20
- gemspec path: "../"
20
+ group :sqlite3 do
21
+ gem "sqlite3", "~> 1.3.6"
22
+ end
21
23
 
22
- eval(Pathname("#{__dir__}/common.gemfile").read)
24
+ eval_gemfile "#{__dir__}/common.gemfile"
25
+
26
+ gemspec path: "../"
@@ -17,6 +17,10 @@ group :oracle do
17
17
  gem "ruby-oci8"
18
18
  end
19
19
 
20
- gemspec path: "../"
20
+ group :sqlite3 do
21
+ gem "sqlite3", "~> 1.3.6"
22
+ end
21
23
 
22
- eval(Pathname("#{__dir__}/common.gemfile").read)
24
+ eval_gemfile "#{__dir__}/common.gemfile"
25
+
26
+ gemspec path: "../"
@@ -0,0 +1,27 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 6.0.0"
4
+
5
+ group :postgresql do
6
+ # c.f. https://github.com/rails/rails/blob/v6.0.0.rc1/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
+ # c.f. https://github.com/rails/rails/blob/v6.0.0.rc1/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
12
+ gem "mysql2", ">= 0.4.4"
13
+ end
14
+
15
+ group :oracle do
16
+ gem "activerecord-oracle_enhanced-adapter", "~> 6.0.0"
17
+ gem "ruby-oci8"
18
+ end
19
+
20
+ group :sqlite3 do
21
+ # c.f. https://github.com/rails/rails/blob/v6.0.0.rc1/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
22
+ gem "sqlite3", "~> 1.4"
23
+ end
24
+
25
+ eval_gemfile "#{__dir__}/common.gemfile"
26
+
27
+ gemspec path: "../"
@@ -0,0 +1,27 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 6.1.0"
4
+
5
+ group :postgresql do
6
+ # c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
7
+ gem "pg", "~> 1.1"
8
+ end
9
+
10
+ group :mysql do
11
+ # c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
12
+ gem "mysql2", "~> 0.5"
13
+ end
14
+
15
+ group :oracle do
16
+ gem "activerecord-oracle_enhanced-adapter", "~> 6.1.2"
17
+ gem "ruby-oci8"
18
+ end
19
+
20
+ group :sqlite3 do
21
+ # c.f. https://github.com/rails/rails/blob/v6.1.0/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
22
+ gem "sqlite3", "~> 1.4"
23
+ end
24
+
25
+ eval_gemfile "#{__dir__}/common.gemfile"
26
+
27
+ gemspec path: "../"
@@ -0,0 +1,29 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "activerecord", "~> 7.0.0.alpha2"
4
+
5
+ group :postgresql do
6
+ # c.f. https://github.com/rails/rails/blob/v7.0.0.alpha2/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L3
7
+ gem "pg", "~> 1.1"
8
+ end
9
+
10
+ group :mysql do
11
+ # c.f. https://github.com/rails/rails/blob/v7.0.0.alpha2/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb#L6
12
+ gem "mysql2", "~> 0.5"
13
+ end
14
+
15
+ group :oracle do
16
+ # TODO: Enable this after activerecord-oracle_enhanced-adapter supports activerecord v7
17
+ # gem "activerecord-oracle_enhanced-adapter", "~> 6.1.2"
18
+
19
+ gem "ruby-oci8"
20
+ end
21
+
22
+ group :sqlite3 do
23
+ # c.f. https://github.com/rails/rails/blob/v7.0.0.alpha2/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb#L13
24
+ gem "sqlite3", "~> 1.4"
25
+ end
26
+
27
+ eval_gemfile "#{__dir__}/common.gemfile"
28
+
29
+ gemspec path: "../"
@@ -1,3 +1,15 @@
1
- group :sqlite3 do
2
- gem "sqlite3"
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"
3
15
  end
@@ -13,7 +13,12 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/sue445/index_shotgun"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.required_ruby_version = ">= 2.3.0"
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/master/CHANGELOG.md"
19
+ spec.metadata["rubygems_mfa_required"] = "true"
20
+
21
+ spec.required_ruby_version = ">= 2.4.0"
17
22
 
18
23
  spec.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
19
24
  spec.bindir = "exe"
@@ -26,13 +31,12 @@ Gem::Specification.new do |spec|
26
31
  spec.add_development_dependency "bundler"
27
32
  spec.add_development_dependency "coveralls"
28
33
  spec.add_development_dependency "onkcop", "0.53.0.2"
29
- spec.add_development_dependency "pry-byebug"
30
- spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rake"
31
35
  spec.add_development_dependency "rake_shared_context", "0.2.2"
32
36
  spec.add_development_dependency "rspec"
33
37
  spec.add_development_dependency "rspec-its"
34
38
  spec.add_development_dependency "rspec-power_assert"
35
39
  spec.add_development_dependency "rubocop", "0.62.0"
36
40
  spec.add_development_dependency "rubocop_auto_corrector"
37
- spec.add_development_dependency "simplecov"
41
+ spec.add_development_dependency "simplecov", "< 0.18.0"
38
42
  end
@@ -1,3 +1,3 @@
1
1
  module IndexShotgun
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
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.0
4
+ version: 1.0.1
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: 2021-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.53.0.2
83
83
  - !ruby/object:Gem::Dependency
84
- name: pry-byebug
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: rake_shared_context
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -196,16 +182,16 @@ dependencies:
196
182
  name: simplecov
197
183
  requirement: !ruby/object:Gem::Requirement
198
184
  requirements:
199
- - - ">="
185
+ - - "<"
200
186
  - !ruby/object:Gem::Version
201
- version: '0'
187
+ version: 0.18.0
202
188
  type: :development
203
189
  prerelease: false
204
190
  version_requirements: !ruby/object:Gem::Requirement
205
191
  requirements:
206
- - - ">="
192
+ - - "<"
207
193
  - !ruby/object:Gem::Version
208
- version: '0'
194
+ version: 0.18.0
209
195
  description: duplicate index checker
210
196
  email:
211
197
  - sue445@sue445.net
@@ -214,13 +200,12 @@ executables:
214
200
  extensions: []
215
201
  extra_rdoc_files: []
216
202
  files:
217
- - ".circleci/config.yml"
218
203
  - ".coveralls.yml"
204
+ - ".github/workflows/test.yml"
219
205
  - ".github_changelog_generator"
220
206
  - ".gitignore"
221
207
  - ".rspec"
222
208
  - ".rubocop.yml"
223
- - ".travis.yml"
224
209
  - CHANGELOG.md
225
210
  - Gemfile
226
211
  - LICENSE.txt
@@ -233,10 +218,14 @@ files:
233
218
  - ci/database.yml.oracle
234
219
  - ci/database.yml.postgresql
235
220
  - ci/database.yml.sqlite3
221
+ - ci/install.sh
236
222
  - exe/index_shotgun
237
223
  - gemfiles/activerecord_5_0.gemfile
238
224
  - gemfiles/activerecord_5_1.gemfile
239
225
  - gemfiles/activerecord_5_2.gemfile
226
+ - gemfiles/activerecord_6_0.gemfile
227
+ - gemfiles/activerecord_6_1.gemfile
228
+ - gemfiles/activerecord_7_0.gemfile
240
229
  - gemfiles/common.gemfile
241
230
  - index_shotgun.gemspec
242
231
  - lib/index_shotgun.rb
@@ -250,8 +239,12 @@ files:
250
239
  homepage: https://github.com/sue445/index_shotgun
251
240
  licenses:
252
241
  - MIT
253
- metadata: {}
254
- post_install_message:
242
+ metadata:
243
+ homepage_uri: https://github.com/sue445/index_shotgun
244
+ source_code_uri: https://github.com/sue445/index_shotgun
245
+ changelog_uri: https://github.com/sue445/index_shotgun/blob/master/CHANGELOG.md
246
+ rubygems_mfa_required: 'true'
247
+ post_install_message:
255
248
  rdoc_options: []
256
249
  require_paths:
257
250
  - lib
@@ -259,16 +252,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
252
  requirements:
260
253
  - - ">="
261
254
  - !ruby/object:Gem::Version
262
- version: 2.3.0
255
+ version: 2.4.0
263
256
  required_rubygems_version: !ruby/object:Gem::Requirement
264
257
  requirements:
265
258
  - - ">="
266
259
  - !ruby/object:Gem::Version
267
260
  version: '0'
268
261
  requirements: []
269
- rubyforge_project:
270
- rubygems_version: 2.5.2.3
271
- signing_key:
262
+ rubygems_version: 3.2.22
263
+ signing_key:
272
264
  specification_version: 4
273
265
  summary: duplicate index checker
274
266
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,162 +0,0 @@
1
- version: 2.1
2
-
3
- environment: &environment
4
- LANG: en_US.UTF-8
5
- LANGUAGE: en_US.UTF-8
6
- LC_ALL: C.UTF-8
7
-
8
- BUNDLE_PATH: vendor/bundle
9
- CC_TEST_REPORTER_ID: 377596024a4c6f3c4c4b9a0cd16add92fb5e7f716663629b5efd080377c0b838
10
-
11
- executors:
12
- ruby:
13
- docker:
14
- - image: circleci/ruby
15
- environment:
16
- <<: *environment
17
-
18
- working_directory: /home/circleci/app
19
-
20
- oracle:
21
- docker:
22
- - image: wnameless/oracle-xe-11g:16.04
23
- environment:
24
- <<: *environment
25
- DATABASE: oracle
26
-
27
- ORACLE_HOME: /u01/app/oracle/product/11.2.0/xe
28
- ORACLE_SID: XE
29
- ORACLE_SYSTEM_PASSWORD: oracle
30
- NLS_LANG: AMERICAN_AMERICA.UTF8
31
-
32
- working_directory: /home/circleci/app
33
-
34
- commands:
35
- setup_bundle:
36
- description: "Setup bundle with cache"
37
-
38
- parameters:
39
- bundle_without:
40
- type: string
41
-
42
- steps:
43
- - restore_cache:
44
- keys:
45
- - v3-bundle-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
46
- - v3-bundle-{{ .Environment.CIRCLE_JOB }}
47
-
48
- - run:
49
- name: Setup bundle
50
- command: |
51
- set -xe
52
- ruby --version
53
- bundle --version
54
- gem --version
55
-
56
- bundle check || bundle install --jobs=4 --without << parameters.bundle_without >> --path=${BUNDLE_PATH:-vendor/bundle}
57
- bundle clean
58
-
59
- - save_cache:
60
- key: v3-bundle-{{ .Environment.CIRCLE_JOB }}-{{ epoch }}
61
- paths:
62
- - /home/circleci/app/vendor/bundle
63
- - /home/circleci/app/gemfiles/vendor/bundle
64
- - /home/circleci/app/Gemfile.lock
65
-
66
- with-cc-test-reporter:
67
- description: "Run test with cc-test-reporter"
68
- parameters:
69
- steps:
70
- type: steps
71
- default: []
72
- description: "Run steps between `before-build` and `after-build`"
73
- steps:
74
- - run:
75
- name: Setup Code Climate test-reporter
76
- command: |
77
- # download test reporter as a static binary
78
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
79
- chmod +x ./cc-test-reporter
80
- - run: ./cc-test-reporter before-build
81
- - steps: << parameters.steps >>
82
- - run:
83
- command: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
84
- when: always
85
-
86
- jobs:
87
- oracle_activerecord:
88
- parameters:
89
- gemfile:
90
- type: string
91
- executor:
92
- name: oracle
93
- environment:
94
- BUNDLE_GEMFILE: gemfiles/<< parameters.gemfile >>.gemfile
95
- steps:
96
- - run:
97
- name: Setup ruby
98
- command: |
99
- apt-get update
100
- apt-get install -y software-properties-common
101
- apt-add-repository -y ppa:brightbox/ruby-ng
102
- apt-get update
103
- apt-get install -y ruby2.5 ruby2.5-dev git build-essential tar curl
104
-
105
- gem update --system --no-document
106
- gem install bundler --no-document
107
- shell: /bin/bash -xe
108
-
109
- - run:
110
- name: Setup oracle
111
- command: |
112
- export PATH=$ORACLE_HOME/bin:$PATH
113
- export LD_LIBRARY_PATH=$ORACLE_HOME/lib
114
- /usr/sbin/startup.sh
115
- /etc/init.d/oracle-xe status
116
- shell: /bin/bash -xe
117
-
118
- - checkout
119
- - setup_bundle:
120
- bundle_without: mysql postgresql sqlite3
121
-
122
- - with-cc-test-reporter:
123
- steps:
124
- - run: ./ci/build.sh
125
-
126
- rubocop:
127
- executor:
128
- name: ruby
129
-
130
- steps:
131
- - checkout
132
- - setup_bundle:
133
- bundle_without: mysql postgresql sqlite3 oracle
134
-
135
- - run: bundle exec rubocop
136
-
137
- build_jobs: &build_jobs
138
- - oracle_activerecord:
139
- name: "oracle_activerecord:5.0"
140
- gemfile: "activerecord_5_0"
141
- - oracle_activerecord:
142
- name: "oracle_activerecord:5.1"
143
- gemfile: "activerecord_5_1"
144
- - oracle_activerecord:
145
- name: "oracle_activerecord:5.2"
146
- gemfile: "activerecord_5_2"
147
- - rubocop
148
-
149
- workflows:
150
- version: 2
151
-
152
- build:
153
- jobs: *build_jobs
154
-
155
- weekly_build:
156
- triggers:
157
- - schedule:
158
- cron: "00 19 * * 5" # JST 4:00 (Sat)
159
- filters:
160
- branches:
161
- only: master
162
- jobs: *build_jobs
data/.travis.yml DELETED
@@ -1,39 +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/activerecord_5_0.gemfile
10
- - gemfiles/activerecord_5_1.gemfile
11
- - gemfiles/activerecord_5_2.gemfile
12
- env:
13
- - DATABASE=mysql
14
- - DATABASE=postgresql
15
- - DATABASE=sqlite3
16
- bundler_args: --without oracle
17
- before_install:
18
- - travis_retry gem update --system || travis_retry gem update --system 2.7.8
19
- - travis_retry gem install bundler --no-document || travis_retry gem install bundler --no-document -v 1.17.3
20
- before_script:
21
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
22
- - chmod +x ./cc-test-reporter
23
- - ./cc-test-reporter before-build
24
- - export CC_TEST_REPORTER_ID=377596024a4c6f3c4c4b9a0cd16add92fb5e7f716663629b5efd080377c0b838
25
- script: "./ci/build.sh"
26
- after_script:
27
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
28
- branches:
29
- only:
30
- - master
31
- notifications:
32
- email: false
33
- slack:
34
- secure: YGQKOd0oz96gfQtyfTLj7N2Riq93oj1lR9X5hf4071Zu9q3wQjLD4a5y39iVAtOpK2Lw3ShM93kcGREZfpThx9jQ0jUd26DWLLFokZvM82l5+hD7PMhLU1Pv/EbW7mTGAw1TR0su98m91A71qJghdZsT/UrP+QN/4zV72I8XiYrkAiKaTLaucEN4Pn2GgSAGV4Hs7eqT7jNBkGbxSOio3MttoYMDz7dBfR3Z8GRk7jSL5z820zejHNPbfbpwZQhtx/rY/KGSHoIRDc7je6Aiebd5wElQFKsh13LFYSbGaYvB2gRdU/ZmyG0YLV+0hUvWYS14QvCUFrCbiKmRf58tTk3Y/FVtBga+Aj11JrAgpvR9qf2y+gC3BwBwBwaElZ2gMmfZOzXPI7P+OATKbVCQOE4PCAIUkfBbaYkg6FJlYwaume5n+ObLhZPZwa8EGaOkrzonKRhU7hMBT6A+aQkwz0wfccErEog8vB/5OYSMquxZtfWywLgUpnyg97SYeC8aaON+/U8edWsYUR+0bBIySNYEAq0algQEo52cLh4qNpLJeb/zRdFX2b+CI1EYPa+rDSygD7NpT+mx5/5leAcxyvp4S3iKxjFEVkoKwIEoLnqbqjarwz2LjJ+l32wZDhmBV5UggpKoieV5KtpkIwOCJ4g6t+aq786oSW+/GWWI9s0=
35
- matrix:
36
- allow_failures:
37
- - rvm: ruby-head
38
- cache: bundler
39
- sudo: false