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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15bee0b6900c45e35a398f520eb0c83939c17bfe
4
- data.tar.gz: b85e938abf213f4c914a256aac404bfbc37ba3e8
3
+ metadata.gz: 662e620b25f3327cabcab6b61c62b79dc6ca9571
4
+ data.tar.gz: 76f90786a49a0a8719865dd84b2ebfcb8afd85dc
5
5
  SHA512:
6
- metadata.gz: 4ee1c4417f1800d03c6dac57605bb9d5e4e3b6cd685a6e51ee1eff8e0e403dd57bed092ab31f4dccf77c137f33aedb882c7dd76ea52d923e08fbaf42c409e641
7
- data.tar.gz: b1839ef7c6311960a3e6dbf1d2fd6e547a7ce86ce90449ac57e936a0cb6a383e155153961d95b85256da845c59e76d9a18b31c2ce482cde37e72abc30ec0f61b
6
+ metadata.gz: fa1964960e794bbd22f76b8456cdfc1bffb78af6bdda20c3f7e55d1aee266db10c13dae422c7e4953c35f34ff4b3a41ff3a806d64c38a03ef7b85919a61d5770
7
+ data.tar.gz: 69b3efbed9a00668c93ca9926bc4b4b2089de17943799d197bbf328909c399184a1da572a8ac34e56ebefeb2d14a9235619702c74dfd8567c3ff8cc1281d7d25
@@ -2,6 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 2.1
4
4
  - 2.2
5
+ - 2.3.0
5
6
  - ruby-head
6
7
  env:
7
8
  - DATABASE=mysql
@@ -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
@@ -4,7 +4,7 @@ source "https://rubygems.org"
4
4
  gemspec
5
5
 
6
6
  group :mysql do
7
- gem "mysql2", "< 0.4.0"
7
+ gem "mysql2"
8
8
  end
9
9
 
10
10
  group :oracle do
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 -v 0.3.20
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:** `index_shotgun` does not yet support `mysql2` v0.4+
100
+ **Details:** requirements `activerecord` gem v4.2.5+ when using `mysql2` gem v0.4.0+
101
101
 
102
102
  ## Usage
103
103
  ### Ruby app
@@ -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", "~> 1.10"
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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  module IndexShotgun
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
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: 2015-11-09 00:00:00.000000000 Z
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: '1.10'
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: '1.10'
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.4.5.1
237
+ rubygems_version: 2.5.1
239
238
  signing_key:
240
239
  specification_version: 4
241
240
  summary: duplicate index checker