index_shotgun 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +8 -0
- data/Gemfile +1 -1
- data/README.md +2 -2
- data/index_shotgun.gemspec +1 -9
- data/lib/index_shotgun.rb +11 -0
- data/lib/index_shotgun/version.rb +1 -1
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 662e620b25f3327cabcab6b61c62b79dc6ca9571
|
4
|
+
data.tar.gz: 76f90786a49a0a8719865dd84b2ebfcb8afd85dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa1964960e794bbd22f76b8456cdfc1bffb78af6bdda20c3f7e55d1aee266db10c13dae422c7e4953c35f34ff4b3a41ff3a806d64c38a03ef7b85919a61d5770
|
7
|
+
data.tar.gz: 69b3efbed9a00668c93ca9926bc4b4b2089de17943799d197bbf328909c399184a1da572a8ac34e56ebefeb2d14a9235619702c74dfd8567c3ff8cc1281d7d25
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.2.0](https://github.com/sue445/index_shotgun/tree/v0.2.0) (2015/11/09)
|
4
|
+
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0...v0.2.0)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Support Oracle Database [\#17](https://github.com/sue445/index_shotgun/pull/17) ([koic](https://github.com/koic))
|
9
|
+
- Add group to database gem dependency [\#16](https://github.com/sue445/index_shotgun/pull/16) ([sue445](https://github.com/sue445))
|
10
|
+
|
3
11
|
## [v0.1.0](https://github.com/sue445/index_shotgun/tree/v0.1.0) (2015/09/30)
|
4
12
|
[Full Changelog](https://github.com/sue445/index_shotgun/compare/v0.1.0.beta3...v0.1.0)
|
5
13
|
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -85,7 +85,7 @@ If you want to use as commandline tool, you need to install these gems.
|
|
85
85
|
|
86
86
|
```sh
|
87
87
|
# MySQL
|
88
|
-
$ gem install mysql2
|
88
|
+
$ gem install mysql2
|
89
89
|
|
90
90
|
# Oracle
|
91
91
|
$ gem install activerecord-oracle_enhanced-adapter ruby-oci8
|
@@ -97,7 +97,7 @@ $ gem install pg
|
|
97
97
|
$ gem install sqlite3
|
98
98
|
```
|
99
99
|
|
100
|
-
**Details:** `
|
100
|
+
**Details:** requirements `activerecord` gem v4.2.5+ when using `mysql2` gem v0.4.0+
|
101
101
|
|
102
102
|
## Usage
|
103
103
|
### Ruby app
|
data/index_shotgun.gemspec
CHANGED
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/sue445/index_shotgun"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
19
|
-
if spec.respond_to?(:metadata)
|
20
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
21
|
-
else
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
-
end
|
24
|
-
|
25
17
|
spec.required_ruby_version = ">= 2.1.0"
|
26
18
|
|
27
19
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -32,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
32
24
|
spec.add_dependency "activerecord"
|
33
25
|
spec.add_dependency "thor"
|
34
26
|
|
35
|
-
spec.add_development_dependency "bundler"
|
27
|
+
spec.add_development_dependency "bundler"
|
36
28
|
spec.add_development_dependency "codeclimate-test-reporter"
|
37
29
|
spec.add_development_dependency "coveralls"
|
38
30
|
spec.add_development_dependency "pry-byebug"
|
data/lib/index_shotgun.rb
CHANGED
@@ -7,3 +7,14 @@ module IndexShotgun
|
|
7
7
|
end
|
8
8
|
|
9
9
|
require "index_shotgun/railtie" if defined?(Rails)
|
10
|
+
|
11
|
+
begin
|
12
|
+
require "mysql2/version"
|
13
|
+
|
14
|
+
if Gem::Version.create(Mysql2::VERSION) >= Gem::Version.create("0.4.0") &&
|
15
|
+
ActiveRecord.version < Gem::Version.create("4.2.5")
|
16
|
+
raise "Requirements activerecord gem v4.2.5+ when using mysql2 gem v0.4.0+"
|
17
|
+
end
|
18
|
+
|
19
|
+
rescue LoadError
|
20
|
+
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sue445
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: codeclimate-test-reporter
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -217,8 +217,7 @@ files:
|
|
217
217
|
homepage: https://github.com/sue445/index_shotgun
|
218
218
|
licenses:
|
219
219
|
- MIT
|
220
|
-
metadata:
|
221
|
-
allowed_push_host: https://rubygems.org
|
220
|
+
metadata: {}
|
222
221
|
post_install_message:
|
223
222
|
rdoc_options: []
|
224
223
|
require_paths:
|
@@ -235,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
234
|
version: '0'
|
236
235
|
requirements: []
|
237
236
|
rubyforge_project:
|
238
|
-
rubygems_version: 2.
|
237
|
+
rubygems_version: 2.5.1
|
239
238
|
signing_key:
|
240
239
|
specification_version: 4
|
241
240
|
summary: duplicate index checker
|