index_shotgun 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github_changelog_generator +1 -0
- data/.gitignore +1 -0
- data/.travis.yml +10 -3
- data/CHANGELOG.md +13 -0
- data/Gemfile +1 -16
- data/README.md +3 -1
- data/{travis_ci → ci}/build.sh +18 -1
- data/{travis_ci → ci}/database.yml.mysql +0 -0
- data/ci/database.yml.oracle +5 -0
- data/{travis_ci → ci}/database.yml.postgresql +0 -0
- data/{travis_ci → ci}/database.yml.sqlite3 +0 -0
- data/ci/wercker_setup.sh +8 -0
- data/gemfiles/activerecord_4_2.gemfile +7 -0
- data/gemfiles/activerecord_5_0.gemfile +7 -0
- data/gemfiles/databases.gemfile +16 -0
- data/gemfiles/wercker_oracle.gemfile +7 -0
- data/index_shotgun.gemspec +1 -1
- data/lib/index_shotgun/analyzer.rb +213 -3
- data/lib/index_shotgun/cli.rb +3 -1
- data/lib/index_shotgun/tasks/index_shotgun.rake +3 -1
- data/lib/index_shotgun/version.rb +1 -1
- data/wercker.yml +47 -0
- metadata +15 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d782336b1c4e2a721d5b94c3127849fa49492f9
|
4
|
+
data.tar.gz: 66240f9286136b54f9b799e03fb9339d31fcc198
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d80243cc017af759eb4322998cd6d423286c1e7649d6625ac0b0392b94e6c563a7ef85fe087594e0a8391f127a36ec32941bedb8b358e6b66f03e6f54429171
|
7
|
+
data.tar.gz: f3ddb4fef643d6bab7157256b347d05719442735b7d8bf6970c133d927ac937c19ad790754df42f5f85be739337f10f12d7161ff11c13d82c59e046786adcead
|
@@ -0,0 +1 @@
|
|
1
|
+
--date-format='%Y/%m/%d'
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- 2.1
|
4
|
-
- 2.2
|
5
|
-
- 2.3.
|
4
|
+
- 2.2.2
|
5
|
+
- 2.3.1
|
6
6
|
- ruby-head
|
7
|
+
gemfile:
|
8
|
+
- gemfiles/activerecord_4_2.gemfile
|
9
|
+
- gemfiles/activerecord_5_0.gemfile
|
7
10
|
env:
|
8
11
|
- DATABASE=mysql
|
9
12
|
- DATABASE=postgresql
|
@@ -13,7 +16,7 @@ before_script:
|
|
13
16
|
- export CODECLIMATE_REPO_TOKEN=377596024a4c6f3c4c4b9a0cd16add92fb5e7f716663629b5efd080377c0b838
|
14
17
|
before_install: gem install bundler -v 1.10.6
|
15
18
|
bundler_args: --without oracle
|
16
|
-
script: "./
|
19
|
+
script: "./ci/build.sh"
|
17
20
|
branches:
|
18
21
|
only:
|
19
22
|
- master
|
@@ -24,5 +27,9 @@ notifications:
|
|
24
27
|
matrix:
|
25
28
|
allow_failures:
|
26
29
|
- rvm: ruby-head
|
30
|
+
exclude:
|
31
|
+
# NOTE: activesupport 5.x requires Ruby version >= 2.2.2
|
32
|
+
- rvm: 2.1
|
33
|
+
gemfile: gemfiles/activerecord_5_0.gemfile
|
27
34
|
cache: bundler
|
28
35
|
sudo: false
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.2.1](https://github.com/sue445/index_shotgun/tree/v0.2.1) (2016/02/17)
|
4
|
+
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.2.0...v0.2.1)
|
5
|
+
|
6
|
+
**Closed issues:**
|
7
|
+
|
8
|
+
- Support mysql2 0.4.x [\#8](https://github.com/sue445/index_shotgun/issues/8)
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- Support mysql2 0.4+ [\#20](https://github.com/sue445/index_shotgun/pull/20) ([sue445](https://github.com/sue445))
|
13
|
+
- Relax bundler version [\#19](https://github.com/sue445/index_shotgun/pull/19) ([sue445](https://github.com/sue445))
|
14
|
+
- Add ruby 2.3 [\#18](https://github.com/sue445/index_shotgun/pull/18) ([sue445](https://github.com/sue445))
|
15
|
+
|
3
16
|
## [v0.2.0](https://github.com/sue445/index_shotgun/tree/v0.2.0) (2015/11/09)
|
4
17
|
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0...v0.2.0)
|
5
18
|
|
data/Gemfile
CHANGED
@@ -3,19 +3,4 @@ source "https://rubygems.org"
|
|
3
3
|
# Specify your gem's dependencies in index_shotgun.gemspec
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
7
|
-
gem "mysql2"
|
8
|
-
end
|
9
|
-
|
10
|
-
group :oracle do
|
11
|
-
gem "activerecord-oracle_enhanced-adapter"
|
12
|
-
gem "ruby-oci8"
|
13
|
-
end
|
14
|
-
|
15
|
-
group :postgresql do
|
16
|
-
gem "pg"
|
17
|
-
end
|
18
|
-
|
19
|
-
group :sqlite3 do
|
20
|
-
gem "sqlite3"
|
21
|
-
end
|
6
|
+
eval(Pathname("gemfiles/databases.gemfile").read)
|
data/README.md
CHANGED
@@ -5,6 +5,8 @@
|
|
5
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
6
|
[![Dependency Status](https://gemnasium.com/sue445/index_shotgun.svg)](https://gemnasium.com/sue445/index_shotgun)
|
7
7
|
|
8
|
+
[![wercker status](https://app.wercker.com/status/1af95c0c5debe57562ec3036c849f80d/m/master "wercker status")](https://app.wercker.com/project/bykey/1af95c0c5debe57562ec3036c849f80d)
|
9
|
+
|
8
10
|
Duplicate index checker.
|
9
11
|
|
10
12
|
This like [pt-duplicate-key-checker](https://www.percona.com/doc/percona-toolkit/2.1/pt-duplicate-key-checker.html), but also supports database other than MySQL
|
@@ -97,7 +99,7 @@ $ gem install pg
|
|
97
99
|
$ gem install sqlite3
|
98
100
|
```
|
99
101
|
|
100
|
-
**
|
102
|
+
**Note:** requirements `activerecord` gem v4.2.5+ when using `mysql2` gem v0.4.0+
|
101
103
|
|
102
104
|
## Usage
|
103
105
|
### Ruby app
|
data/{travis_ci → ci}/build.sh
RENAMED
@@ -1,14 +1,31 @@
|
|
1
1
|
#!/bin/bash -xe
|
2
2
|
|
3
|
-
cp
|
3
|
+
cp ci/database.yml.${DATABASE} spec/config/database.yml
|
4
4
|
bundle exec rspec
|
5
5
|
|
6
6
|
bundle exec ./exe/index_shotgun version
|
7
7
|
|
8
|
+
#########################
|
9
|
+
set +e
|
10
|
+
|
8
11
|
if [ ${DATABASE} = "mysql" ]; then
|
9
12
|
bundle exec ./exe/index_shotgun mysql --database=index_shotgun_test --username=travis
|
13
|
+
RET=$?
|
10
14
|
elif [ ${DATABASE} = "postgresql" ]; then
|
11
15
|
bundle exec ./exe/index_shotgun postgresql --database=index_shotgun_test --username=postgres
|
16
|
+
RET=$?
|
12
17
|
elif [ ${DATABASE} = "sqlite3" ]; then
|
13
18
|
bundle exec ./exe/index_shotgun sqlite3 --database=spec/db/index_shotgun_test.db
|
19
|
+
RET=$?
|
20
|
+
elif [ ${DATABASE} = "oracle" ]; then
|
21
|
+
bundle exec ./exe/index_shotgun oracle --database=xe --username=system --password=oracle
|
22
|
+
RET=$?
|
23
|
+
fi
|
24
|
+
|
25
|
+
set -e
|
26
|
+
#########################
|
27
|
+
|
28
|
+
if [ $RET -ne 1 ]; then
|
29
|
+
echo "Expect exit code is 1, but actual is ${RET}"
|
30
|
+
exit 1
|
14
31
|
fi
|
File without changes
|
File without changes
|
File without changes
|
data/ci/wercker_setup.sh
ADDED
data/index_shotgun.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/sue445/index_shotgun"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
spec.required_ruby_version = ">= 2.1
|
17
|
+
spec.required_ruby_version = ">= 2.1"
|
18
18
|
|
19
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
20
|
spec.bindir = "exe"
|
@@ -2,13 +2,29 @@ module IndexShotgun
|
|
2
2
|
module Analyzer
|
3
3
|
require "index_shotgun/array_start_with"
|
4
4
|
|
5
|
+
class Response
|
6
|
+
attr_accessor :message, :duplicate_index_count, :total_index_count, :total_table_count
|
7
|
+
|
8
|
+
def successful?
|
9
|
+
duplicate_index_count == 0
|
10
|
+
end
|
11
|
+
|
12
|
+
def exit_if_failure!
|
13
|
+
exit(1) unless successful?
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
5
17
|
class << self
|
6
18
|
using IndexShotgun::ArrayStartWith
|
7
19
|
|
8
20
|
# Search duplicate index
|
9
|
-
# @return [
|
21
|
+
# @return [IndexShotgun::Analyzer::Response]
|
10
22
|
def perform
|
11
|
-
tables =
|
23
|
+
tables =
|
24
|
+
ActiveSupport::Deprecation.silence do
|
25
|
+
ActiveRecord::Base.connection.tables
|
26
|
+
end
|
27
|
+
tables.reject! { |table| exclude_tables.include?(table.downcase) }
|
12
28
|
|
13
29
|
duplicate_indexes =
|
14
30
|
tables.each_with_object([]) do |table, array|
|
@@ -42,7 +58,13 @@ module IndexShotgun
|
|
42
58
|
|
43
59
|
EOS
|
44
60
|
|
45
|
-
|
61
|
+
response = Response.new
|
62
|
+
response.duplicate_index_count = duplicate_indexes.count
|
63
|
+
response.message = message
|
64
|
+
response.total_index_count = total_index_count
|
65
|
+
response.total_table_count = tables.count
|
66
|
+
|
67
|
+
response
|
46
68
|
end
|
47
69
|
|
48
70
|
# check duplicate indexes of table
|
@@ -76,6 +98,194 @@ module IndexShotgun
|
|
76
98
|
def table_indexes(table)
|
77
99
|
ActiveRecord::Base.connection.indexes(table)
|
78
100
|
end
|
101
|
+
|
102
|
+
def exclude_tables
|
103
|
+
return @exclude_tables if @exclude_tables
|
104
|
+
|
105
|
+
# Rails default tables
|
106
|
+
tables = %w(ar_internal_metadata schema_migrations)
|
107
|
+
|
108
|
+
# Oracle system tables
|
109
|
+
tables += %w(
|
110
|
+
AQ$DEF$_AQCALL
|
111
|
+
AQ$DEF$_AQERROR
|
112
|
+
AQ$_DEF$_AQCALL_F
|
113
|
+
AQ$_DEF$_AQERROR_F
|
114
|
+
AQ$_INTERNET_AGENTS
|
115
|
+
AQ$_INTERNET_AGENT_PRIVS
|
116
|
+
AQ$_QUEUES
|
117
|
+
AQ$_QUEUE_TABLES
|
118
|
+
AQ$_SCHEDULES
|
119
|
+
CATALOG
|
120
|
+
COL
|
121
|
+
DEF$_AQCALL
|
122
|
+
DEF$_AQERROR
|
123
|
+
DEF$_CALLDEST
|
124
|
+
DEF$_DEFAULTDEST
|
125
|
+
DEF$_DESTINATION
|
126
|
+
DEF$_ERROR
|
127
|
+
DEF$_LOB
|
128
|
+
DEF$_ORIGIN
|
129
|
+
DEF$_PROPAGATOR
|
130
|
+
DEF$_PUSHED_TRANSACTIONS
|
131
|
+
HELP
|
132
|
+
LOGMNRC_DBNAME_UID_MAP
|
133
|
+
LOGMNRC_GSBA
|
134
|
+
LOGMNRC_GSII
|
135
|
+
LOGMNRC_GTCS
|
136
|
+
LOGMNRC_GTLO
|
137
|
+
LOGMNRP_CTAS_PART_MAP
|
138
|
+
LOGMNRT_MDDL$
|
139
|
+
LOGMNR_AGE_SPILL$
|
140
|
+
LOGMNR_ATTRCOL$
|
141
|
+
LOGMNR_ATTRIBUTE$
|
142
|
+
LOGMNR_CCOL$
|
143
|
+
LOGMNR_CDEF$
|
144
|
+
LOGMNR_COL$
|
145
|
+
LOGMNR_COLTYPE$
|
146
|
+
LOGMNR_DICTIONARY$
|
147
|
+
LOGMNR_DICTSTATE$
|
148
|
+
LOGMNR_ENC$
|
149
|
+
LOGMNR_ERROR$
|
150
|
+
LOGMNR_FILTER$
|
151
|
+
LOGMNR_GLOBAL$
|
152
|
+
LOGMNR_GT_TAB_INCLUDE$
|
153
|
+
LOGMNR_GT_USER_INCLUDE$
|
154
|
+
LOGMNR_GT_XID_INCLUDE$
|
155
|
+
LOGMNR_ICOL$
|
156
|
+
LOGMNR_IND$
|
157
|
+
LOGMNR_INDCOMPART$
|
158
|
+
LOGMNR_INDPART$
|
159
|
+
LOGMNR_INDSUBPART$
|
160
|
+
LOGMNR_INTEGRATED_SPILL$
|
161
|
+
LOGMNR_KOPM$
|
162
|
+
LOGMNR_LOB$
|
163
|
+
LOGMNR_LOBFRAG$
|
164
|
+
LOGMNR_LOG$
|
165
|
+
LOGMNR_LOGMNR_BUILDLOG
|
166
|
+
LOGMNR_NTAB$
|
167
|
+
LOGMNR_OBJ$
|
168
|
+
LOGMNR_OPQTYPE$
|
169
|
+
LOGMNR_PARAMETER$
|
170
|
+
LOGMNR_PARTOBJ$
|
171
|
+
LOGMNR_PROCESSED_LOG$
|
172
|
+
LOGMNR_PROPS$
|
173
|
+
LOGMNR_REFCON$
|
174
|
+
LOGMNR_RESTART_CKPT$
|
175
|
+
LOGMNR_RESTART_CKPT_TXINFO$
|
176
|
+
LOGMNR_SEED$
|
177
|
+
LOGMNR_SESSION$
|
178
|
+
LOGMNR_SESSION_ACTIONS$
|
179
|
+
LOGMNR_SESSION_EVOLVE$
|
180
|
+
LOGMNR_SPILL$
|
181
|
+
LOGMNR_SUBCOLTYPE$
|
182
|
+
LOGMNR_TAB$
|
183
|
+
LOGMNR_TABCOMPART$
|
184
|
+
LOGMNR_TABPART$
|
185
|
+
LOGMNR_TABSUBPART$
|
186
|
+
LOGMNR_TS$
|
187
|
+
LOGMNR_TYPE$
|
188
|
+
LOGMNR_UID$
|
189
|
+
LOGMNR_USER$
|
190
|
+
LOGSTDBY$APPLY_MILESTONE
|
191
|
+
LOGSTDBY$APPLY_PROGRESS
|
192
|
+
LOGSTDBY$EDS_TABLES
|
193
|
+
LOGSTDBY$EVENTS
|
194
|
+
LOGSTDBY$FLASHBACK_SCN
|
195
|
+
LOGSTDBY$HISTORY
|
196
|
+
LOGSTDBY$PARAMETERS
|
197
|
+
LOGSTDBY$PLSQL
|
198
|
+
LOGSTDBY$SCN
|
199
|
+
LOGSTDBY$SKIP
|
200
|
+
LOGSTDBY$SKIP_SUPPORT
|
201
|
+
LOGSTDBY$SKIP_TRANSACTION
|
202
|
+
MVIEW$_ADV_AJG
|
203
|
+
MVIEW$_ADV_BASETABLE
|
204
|
+
MVIEW$_ADV_CLIQUE
|
205
|
+
MVIEW$_ADV_ELIGIBLE
|
206
|
+
MVIEW$_ADV_EXCEPTIONS
|
207
|
+
MVIEW$_ADV_FILTER
|
208
|
+
MVIEW$_ADV_FILTERINSTANCE
|
209
|
+
MVIEW$_ADV_FJG
|
210
|
+
MVIEW$_ADV_GC
|
211
|
+
MVIEW$_ADV_INFO
|
212
|
+
MVIEW$_ADV_JOURNAL
|
213
|
+
MVIEW$_ADV_LEVEL
|
214
|
+
MVIEW$_ADV_LOG
|
215
|
+
MVIEW$_ADV_OUTPUT
|
216
|
+
MVIEW$_ADV_PARAMETERS
|
217
|
+
MVIEW$_ADV_PLAN
|
218
|
+
MVIEW$_ADV_PRETTY
|
219
|
+
MVIEW$_ADV_ROLLUP
|
220
|
+
MVIEW$_ADV_SQLDEPEND
|
221
|
+
MVIEW$_ADV_TEMP
|
222
|
+
MVIEW$_ADV_WORKLOAD
|
223
|
+
MVIEW_EVALUATIONS
|
224
|
+
MVIEW_EXCEPTIONS
|
225
|
+
MVIEW_FILTER
|
226
|
+
MVIEW_FILTERINSTANCE
|
227
|
+
MVIEW_LOG
|
228
|
+
MVIEW_RECOMMENDATIONS
|
229
|
+
MVIEW_WORKLOAD
|
230
|
+
OL$
|
231
|
+
OL$HINTS
|
232
|
+
OL$NODES
|
233
|
+
PRODUCT_PRIVS
|
234
|
+
PRODUCT_USER_PROFILE
|
235
|
+
PUBLICSYN
|
236
|
+
REPCAT$_AUDIT_ATTRIBUTE
|
237
|
+
REPCAT$_AUDIT_COLUMN
|
238
|
+
REPCAT$_COLUMN_GROUP
|
239
|
+
REPCAT$_CONFLICT
|
240
|
+
REPCAT$_DDL
|
241
|
+
REPCAT$_EXCEPTIONS
|
242
|
+
REPCAT$_EXTENSION
|
243
|
+
REPCAT$_FLAVORS
|
244
|
+
REPCAT$_FLAVOR_OBJECTS
|
245
|
+
REPCAT$_GENERATED
|
246
|
+
REPCAT$_GROUPED_COLUMN
|
247
|
+
REPCAT$_INSTANTIATION_DDL
|
248
|
+
REPCAT$_KEY_COLUMNS
|
249
|
+
REPCAT$_OBJECT_PARMS
|
250
|
+
REPCAT$_OBJECT_TYPES
|
251
|
+
REPCAT$_PARAMETER_COLUMN
|
252
|
+
REPCAT$_PRIORITY
|
253
|
+
REPCAT$_PRIORITY_GROUP
|
254
|
+
REPCAT$_REFRESH_TEMPLATES
|
255
|
+
REPCAT$_REPCAT
|
256
|
+
REPCAT$_REPCATLOG
|
257
|
+
REPCAT$_REPCOLUMN
|
258
|
+
REPCAT$_REPGROUP_PRIVS
|
259
|
+
REPCAT$_REPOBJECT
|
260
|
+
REPCAT$_REPPROP
|
261
|
+
REPCAT$_REPSCHEMA
|
262
|
+
REPCAT$_RESOLUTION
|
263
|
+
REPCAT$_RESOLUTION_METHOD
|
264
|
+
REPCAT$_RESOLUTION_STATISTICS
|
265
|
+
REPCAT$_RESOL_STATS_CONTROL
|
266
|
+
REPCAT$_RUNTIME_PARMS
|
267
|
+
REPCAT$_SITES_NEW
|
268
|
+
REPCAT$_SITE_OBJECTS
|
269
|
+
REPCAT$_SNAPGROUP
|
270
|
+
REPCAT$_TEMPLATE_OBJECTS
|
271
|
+
REPCAT$_TEMPLATE_PARMS
|
272
|
+
REPCAT$_TEMPLATE_REFGROUPS
|
273
|
+
REPCAT$_TEMPLATE_SITES
|
274
|
+
REPCAT$_TEMPLATE_STATUS
|
275
|
+
REPCAT$_TEMPLATE_TARGETS
|
276
|
+
REPCAT$_TEMPLATE_TYPES
|
277
|
+
REPCAT$_USER_AUTHORIZATIONS
|
278
|
+
REPCAT$_USER_PARM_VALUES
|
279
|
+
SQLPLUS_PRODUCT_PROFILE
|
280
|
+
SYSCATALOG
|
281
|
+
SYSFILES
|
282
|
+
TAB
|
283
|
+
TABQUOTAS
|
284
|
+
)
|
285
|
+
|
286
|
+
@exclude_tables = tables.map(&:downcase)
|
287
|
+
@exclude_tables
|
288
|
+
end
|
79
289
|
end
|
80
290
|
end
|
81
291
|
end
|
data/lib/index_shotgun/cli.rb
CHANGED
@@ -71,7 +71,9 @@ module IndexShotgun
|
|
71
71
|
config[:password] = ask("Input password (hidden):", echo: false) if ask_password
|
72
72
|
|
73
73
|
ActiveRecord::Base.establish_connection(config)
|
74
|
-
|
74
|
+
response = IndexShotgun::Analyzer.perform
|
75
|
+
puts response.message
|
76
|
+
response.exit_if_failure!
|
75
77
|
end
|
76
78
|
end
|
77
79
|
end
|
data/wercker.yml
ADDED
@@ -0,0 +1,47 @@
|
|
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
|
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.
|
4
|
+
version: 0.3.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-
|
11
|
+
date: 2016-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -187,6 +187,7 @@ extensions: []
|
|
187
187
|
extra_rdoc_files: []
|
188
188
|
files:
|
189
189
|
- ".coveralls.yml"
|
190
|
+
- ".github_changelog_generator"
|
190
191
|
- ".gitignore"
|
191
192
|
- ".hound.yml"
|
192
193
|
- ".rspec"
|
@@ -200,7 +201,17 @@ files:
|
|
200
201
|
- Rakefile
|
201
202
|
- bin/console
|
202
203
|
- bin/setup
|
204
|
+
- ci/build.sh
|
205
|
+
- ci/database.yml.mysql
|
206
|
+
- ci/database.yml.oracle
|
207
|
+
- ci/database.yml.postgresql
|
208
|
+
- ci/database.yml.sqlite3
|
209
|
+
- ci/wercker_setup.sh
|
203
210
|
- exe/index_shotgun
|
211
|
+
- gemfiles/activerecord_4_2.gemfile
|
212
|
+
- gemfiles/activerecord_5_0.gemfile
|
213
|
+
- gemfiles/databases.gemfile
|
214
|
+
- gemfiles/wercker_oracle.gemfile
|
204
215
|
- index_shotgun.gemspec
|
205
216
|
- lib/index_shotgun.rb
|
206
217
|
- lib/index_shotgun/analyzer.rb
|
@@ -210,10 +221,7 @@ files:
|
|
210
221
|
- lib/index_shotgun/tasks.rb
|
211
222
|
- lib/index_shotgun/tasks/index_shotgun.rake
|
212
223
|
- lib/index_shotgun/version.rb
|
213
|
-
-
|
214
|
-
- travis_ci/database.yml.mysql
|
215
|
-
- travis_ci/database.yml.postgresql
|
216
|
-
- travis_ci/database.yml.sqlite3
|
224
|
+
- wercker.yml
|
217
225
|
homepage: https://github.com/sue445/index_shotgun
|
218
226
|
licenses:
|
219
227
|
- MIT
|
@@ -226,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
234
|
requirements:
|
227
235
|
- - ">="
|
228
236
|
- !ruby/object:Gem::Version
|
229
|
-
version: 2.1
|
237
|
+
version: '2.1'
|
230
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
239
|
requirements:
|
232
240
|
- - ">="
|