consistency_fail 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/consistency_fail +9 -5
- data/lib/consistency_fail/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c507681aa9fdff8f28a5bb8d5c1b5b5e90224865
|
4
|
+
data.tar.gz: c3ca7f71bdb87dccd25411da929196fdb6d4f318
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d06468cad8ded7968fd766fb8acda9fcb8fee9e7c32a98ed54efe7696725fcf53d96a9463b59906f6ac37c0b08d8d76f6258e6940bf3fb236c3cc7622fbacf79
|
7
|
+
data.tar.gz: ef0b8fe78a001d6a82126dbe482e986a2092056be2399b4a3dd37e563438b7a06a3bf0f1353ec71d362c1120643b77b7b490ea33da161096935ff8ea07bf4394
|
data/bin/consistency_fail
CHANGED
@@ -1,17 +1,21 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
base_dir = File.join(Dir.pwd, ARGV.first.to_s)
|
4
|
+
puts "\nWarning! You are going out of current directory, ruby version may be wrong and some gems may be missing.\n" unless File.realpath(base_dir).start_with?(Dir.pwd)
|
5
|
+
|
3
6
|
begin
|
4
|
-
|
5
|
-
|
7
|
+
|
8
|
+
require File.join(base_dir, 'config', 'boot')
|
9
|
+
rescue LoadError
|
6
10
|
puts "\nUh-oh! You must be in the root directory of a Rails project.\n"
|
7
11
|
raise
|
8
12
|
end
|
9
13
|
|
10
14
|
require 'active_record'
|
11
|
-
require File.join(
|
15
|
+
require File.join(base_dir, 'config', 'environment')
|
12
16
|
|
13
|
-
$:<< File.join(File.dirname(__FILE__),
|
14
|
-
require
|
17
|
+
$:<< File.join(File.dirname(__FILE__), '..', 'lib')
|
18
|
+
require 'consistency_fail'
|
15
19
|
|
16
20
|
if ConsistencyFail.run
|
17
21
|
exit 0
|
data/spec/spec_helper.rb
CHANGED
@@ -2,7 +2,7 @@ require 'bundler/setup'
|
|
2
2
|
|
3
3
|
Bundler.require(:default, :test)
|
4
4
|
|
5
|
-
Dir['./spec/support/**/*.rb'].each { |file| require file }
|
5
|
+
Dir['./spec/support/**/*.rb'].sort.each { |file| require file }
|
6
6
|
|
7
7
|
RSpec.configure do |config|
|
8
8
|
config.around do |example|
|
@@ -11,4 +11,4 @@ RSpec.configure do |config|
|
|
11
11
|
raise ActiveRecord::Rollback
|
12
12
|
end
|
13
13
|
end
|
14
|
-
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: consistency_fail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Jones
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
138
|
rubyforge_project:
|
139
|
-
rubygems_version: 2.
|
139
|
+
rubygems_version: 2.5.1
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: A tool to detect missing unique indexes
|
@@ -168,3 +168,4 @@ test_files:
|
|
168
168
|
- spec/support/models/wrong_post.rb
|
169
169
|
- spec/support/models/wrong_user.rb
|
170
170
|
- spec/support/schema.rb
|
171
|
+
has_rdoc:
|