index_shotgun 0.3.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module IndexShotgun
2
- VERSION = "0.3.0"
2
+ VERSION = "1.0.0".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: 0.3.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - sue445
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2019-01-06 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: '0'
19
+ version: 5.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: '0'
26
+ version: 5.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: thor
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: codeclimate-test-reporter
56
+ name: coveralls
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
@@ -67,19 +67,19 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: coveralls
70
+ name: onkcop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 0.53.0.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 0.53.0.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: pry-byebug
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -112,16 +112,16 @@ dependencies:
112
112
  name: rake_shared_context
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ">="
115
+ - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: '0'
117
+ version: 0.2.2
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ">="
122
+ - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: '0'
124
+ version: 0.2.2
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,42 @@ dependencies:
170
170
  requirements:
171
171
  - - '='
172
172
  - !ruby/object:Gem::Version
173
- version: 0.31.0
173
+ version: 0.62.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - '='
179
179
  - !ruby/object:Gem::Version
180
- version: 0.31.0
180
+ version: 0.62.0
181
+ - !ruby/object:Gem::Dependency
182
+ name: rubocop_auto_corrector
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: simplecov
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
181
209
  description: duplicate index checker
182
210
  email:
183
211
  - sue445@sue445.net
@@ -186,13 +214,12 @@ executables:
186
214
  extensions: []
187
215
  extra_rdoc_files: []
188
216
  files:
217
+ - ".circleci/config.yml"
189
218
  - ".coveralls.yml"
190
219
  - ".github_changelog_generator"
191
220
  - ".gitignore"
192
- - ".hound.yml"
193
221
  - ".rspec"
194
222
  - ".rubocop.yml"
195
- - ".rubocop_standard.yml"
196
223
  - ".travis.yml"
197
224
  - CHANGELOG.md
198
225
  - Gemfile
@@ -206,12 +233,11 @@ files:
206
233
  - ci/database.yml.oracle
207
234
  - ci/database.yml.postgresql
208
235
  - ci/database.yml.sqlite3
209
- - ci/wercker_setup.sh
210
236
  - exe/index_shotgun
211
- - gemfiles/activerecord_4_2.gemfile
212
237
  - gemfiles/activerecord_5_0.gemfile
213
- - gemfiles/databases.gemfile
214
- - gemfiles/wercker_oracle.gemfile
238
+ - gemfiles/activerecord_5_1.gemfile
239
+ - gemfiles/activerecord_5_2.gemfile
240
+ - gemfiles/common.gemfile
215
241
  - index_shotgun.gemspec
216
242
  - lib/index_shotgun.rb
217
243
  - lib/index_shotgun/analyzer.rb
@@ -221,7 +247,6 @@ files:
221
247
  - lib/index_shotgun/tasks.rb
222
248
  - lib/index_shotgun/tasks/index_shotgun.rake
223
249
  - lib/index_shotgun/version.rb
224
- - wercker.yml
225
250
  homepage: https://github.com/sue445/index_shotgun
226
251
  licenses:
227
252
  - MIT
@@ -234,7 +259,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
259
  requirements:
235
260
  - - ">="
236
261
  - !ruby/object:Gem::Version
237
- version: '2.1'
262
+ version: 2.3.0
238
263
  required_rubygems_version: !ruby/object:Gem::Requirement
239
264
  requirements:
240
265
  - - ">="
@@ -242,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
267
  version: '0'
243
268
  requirements: []
244
269
  rubyforge_project:
245
- rubygems_version: 2.5.1
270
+ rubygems_version: 2.5.2.3
246
271
  signing_key:
247
272
  specification_version: 4
248
273
  summary: duplicate index checker
data/.hound.yml DELETED
@@ -1,2 +0,0 @@
1
- ruby:
2
- config_file: .rubocop.yml
@@ -1,196 +0,0 @@
1
- # via. https://gist.github.com/onk/38bfbd78899d892e0e83
2
-
3
- # target_version:
4
- # rubocop v0.31.0
5
-
6
- # 自動生成されるものはチェック対象から除外する
7
- AllCops:
8
- Exclude:
9
- - "vendor/**/*" # rubocop config/default.yml
10
- - "db/schema.rb"
11
- DisplayCopNames: true
12
-
13
- ##################### Style ##################################
14
-
15
- # redirect_to xxx and return のイディオムを維持したい
16
- Style/AndOr:
17
- EnforcedStyle: conditionals
18
-
19
- # 日本語のコメントを許可する
20
- Style/AsciiComments:
21
- Enabled: false
22
-
23
- # option 等、明示的にハッシュにした方が分かりやすい場合もある
24
- Style/BracesAroundHashParameters:
25
- Enabled: false
26
-
27
- # Style/CollectionMethods 自体は無効になっているのだが、
28
- # https://github.com/bbatsov/rubocop/issues/1084
29
- # https://github.com/bbatsov/rubocop/issues/1334
30
- # Performance/Detect がこの設定値を見るので PreferredMethods だけ変更しておく。
31
- #
32
- # デフォルト値から変えたのは
33
- # find -> detect
34
- # ActiveRecord の find と間違えやすいため
35
- # reduce -> inject
36
- # detect, reject, select と並べたときに韻を踏んでいるため。
37
- # collect -> map を維持しているのは文字数が圧倒的に少ないため。
38
- Style/CollectionMethods:
39
- PreferredMethods:
40
- detect: "detect"
41
- find: "detect"
42
- inject: "inject"
43
- reduce: "inject"
44
-
45
- # Hash#has_key? は許可したい
46
- Style/DeprecatedHashMethods:
47
- Enabled: false
48
-
49
- # ドキュメントの無い public class を許可する
50
- Style/Documentation:
51
- Enabled: false
52
-
53
- # !! のイディオムは積極的に使う
54
- Style/DoubleNegation:
55
- Enabled: false
56
-
57
- # メソッドチェーンの改行は末尾に . を入れる
58
- # REPL に貼り付けた際の暴発を防ぐため
59
- Style/DotPosition:
60
- EnforcedStyle: trailing
61
-
62
- # 明示的に else で nil を返すのは分かりやすいので許可する
63
- Style/EmptyElse:
64
- EnforcedStyle: empty
65
-
66
- # いずれかに揃えるのならば `sprintf` や `format` より String#% が好きです
67
- Style/FormatString:
68
- EnforcedStyle: percent
69
-
70
- # if 文の中に 3 行程度のブロックを書くぐらいは許容した方が現実的
71
- Style/GuardClause:
72
- MinBodyLength: 5
73
-
74
- # 同じ hash 内で記法を混ぜない
75
- # rake タスクの順序の hash は rocket を許可する
76
- Style/HashSyntax:
77
- EnforcedStyle: ruby19_no_mixed_keys
78
- Exclude:
79
- - "**/*.rake"
80
- - "Rakefile"
81
-
82
- # 条件式の方を意識させたい場合には後置の if/unless を使わない方が分かりやすい
83
- Style/IfUnlessModifier:
84
- Enabled: false
85
-
86
- # ({ と hash を開始した場合に ( の位置にインデントさせる
87
- # そもそも {} が必要ない可能性が高いが Style/BracesAroundHashParameters はチェックしないことにしたので
88
- Style/IndentHash:
89
- EnforcedStyle: consistent
90
-
91
- # private/protected は一段深くインデントする
92
- Style/IndentationConsistency:
93
- EnforcedStyle: rails
94
-
95
- # scope 等は複数行でも lambda ではなく ->{} で揃えた方が見た目が綺麗
96
- Style/Lambda:
97
- Enabled: false
98
-
99
- # 1_000_000 と区切り文字が 2 個以上必要になる場合のみ _ 区切りを必須にする
100
- Style/NumericLiterals:
101
- MinDigits: 7
102
-
103
- # has_ から始まるメソッドは許可する
104
- Style/PredicateName:
105
- NamePrefixBlacklist:
106
- - "is_"
107
- - "have_"
108
- NamePrefix:
109
- - "is_"
110
- - "have_"
111
-
112
- # 特に model 内において、ローカル変数とメソッド呼び出しの区別をつけた方が分かりやすい場合が多い
113
- Style/RedundantSelf:
114
- Enabled: false
115
-
116
- # 受け取り側で multiple assignment しろというのを明示
117
- Style/RedundantReturn:
118
- AllowMultipleReturnValues: true
119
-
120
- # fail と使い分ける必要ナシ
121
- Style/SignalException:
122
- EnforcedStyle: only_raise
123
-
124
- # `||` も align に使うことがあるので追加する
125
- Style/SpaceAroundOperators:
126
- MultiSpaceAllowedForOperators:
127
- - "="
128
- - "=>"
129
- - "||"
130
-
131
- # * 式展開したい場合に書き換えるのが面倒
132
- # * 文章ではダブルクォートよりもシングルクォートの方が頻出する
133
- # ことから EnforcedStyle: double_quotes 推奨
134
- Style/StringLiterals:
135
- EnforcedStyle: double_quotes
136
-
137
- # auto-correct 時に Style/StringLiterals とカニバって無限ループになる (v0.28.0)
138
- Style/StringLiteralsInInterpolation:
139
- Enabled: false
140
-
141
- # いくらなんでも inject { |a, e| } は短すぎるので分かりやすい名前をつけたい
142
- Style/SingleLineBlockParams:
143
- Enabled: false
144
-
145
- # * migrate
146
- # * jbuilder
147
- # * model の association
148
- # * controller の callback
149
- # 辺りの桁揃えで引っかかるので全体的にチェックしない
150
- Style/SingleSpaceBeforeFirstArg:
151
- Enabled: false
152
-
153
- # 複数行の場合はケツカンマを入れる
154
- Style/TrailingComma:
155
- EnforcedStyleForMultiline: comma
156
-
157
- ##################### Lint ##################################
158
-
159
- # * 同名のメソッドがある場合にローカル変数に `_` を付ける
160
- # * 一時変数として `_` を付ける
161
- # というテクニックは頻出する
162
- Lint/UnderscorePrefixedVariableName:
163
- Enabled: false
164
-
165
- # 子クラスで実装させるつもりのメソッドで引っかかるので
166
- Lint/UnusedMethodArgument:
167
- Enabled: false
168
-
169
- ##################### Metrics ##################################
170
-
171
- # 30 まではギリギリ許せる範囲だった
172
- Metrics/AbcSize:
173
- Max: 30
174
-
175
- # 6 は強すぎるので緩める
176
- Metrics/CyclomaticComplexity:
177
- Max: 10
178
-
179
- # * 警告 120文字
180
- # * 禁止 160文字
181
- # のイメージ
182
- Metrics/LineLength:
183
- Max: 160
184
- Exclude:
185
- - "db/migrate/*.rb"
186
-
187
- # 20 行超えるのは migration ファイル以外滅多に無い
188
- Metrics/MethodLength:
189
- Max: 20
190
- Exclude:
191
- - "db/migrate/*.rb"
192
-
193
- # 分岐の数。ガード句を多用しているとデフォルト 7 だと厳しい
194
- Metrics/PerceivedComplexity:
195
- Max: 8
196
-
@@ -1,8 +0,0 @@
1
- #!/bin/bash -xe
2
-
3
- apt-get update
4
- apt-get install -y ruby2.3 ruby2.3-dev git build-essential
5
- gem update --system --no-document
6
-
7
- /usr/sbin/startup.sh
8
- /etc/init.d/oracle-xe status
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", "~> 4.2.0"
4
-
5
- gemspec path: '../'
6
-
7
- eval(Pathname("#{__dir__}/databases.gemfile").read)
@@ -1,16 +0,0 @@
1
- group :mysql do
2
- gem "mysql2"
3
- end
4
-
5
- group :oracle do
6
- gem "activerecord-oracle_enhanced-adapter"
7
- gem "ruby-oci8"
8
- end
9
-
10
- group :postgresql do
11
- gem "pg"
12
- end
13
-
14
- group :sqlite3 do
15
- gem "sqlite3"
16
- end
@@ -1,7 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "activerecord", "~> 4.2.0"
4
- gem 'activerecord-oracle_enhanced-adapter', '~> 1.6.0'
5
- gem "ruby-oci8"
6
-
7
- gemspec path: '../'
@@ -1,47 +0,0 @@
1
- # This references the default Ruby container from
2
- # the Docker Hub.
3
- # https://registry.hub.docker.com/_/ruby/
4
- # If you want to use a specific version you would use a tag:
5
- # ruby:2.2.2
6
- box: wnameless/oracle-xe-11g:16.04
7
- # You can also use services such as databases. Read more on our dev center:
8
- # http://devcenter.wercker.com/docs/services/index.html
9
- services:
10
- # - postgres
11
- # http://devcenter.wercker.com/docs/services/postgresql.html
12
-
13
- # - mongodb
14
- # http://devcenter.wercker.com/docs/services/mongodb.html
15
-
16
- # This is the build pipeline. Pipelines are the core of wercker
17
- # Read more about pipelines on our dev center
18
- # http://devcenter.wercker.com/docs/pipelines/index.html
19
- build:
20
- # Steps make up the actions in your pipeline
21
- # Read more about steps on our dev center:
22
- # http://devcenter.wercker.com/docs/steps/index.html
23
- steps:
24
- - script:
25
- name: Setup variables
26
- code: |
27
- export ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
28
- export PATH=$ORACLE_HOME/bin:$PATH
29
- export ORACLE_SID=XE
30
- export LD_LIBRARY_PATH=$ORACLE_HOME/lib
31
- export ORACLE_SYSTEM_PASSWORD=oracle
32
-
33
- - script:
34
- name: Setup container
35
- code: ./ci/wercker_setup.sh
36
- - bundle-install:
37
- jobs: 4
38
- without: mysql postgresql sqlite3
39
- gemfile: ./gemfiles/wercker_oracle.gemfile
40
- - script:
41
- name: Test oracle
42
- code: BUNDLE_GEMFILE=./gemfiles/wercker_oracle.gemfile DATABASE=oracle ./ci/build.sh
43
-
44
- after-steps:
45
- - wantedly/pretty-slack-notify:
46
- webhook_url: $SLACK_WEBHOOK_URL
47
- username: wercker_build