border-patrol 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/border-patrol.rb +5 -24
- data/lib/border_patrol/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/border-patrol.rb
CHANGED
@@ -5,21 +5,6 @@ require 'border_patrol/configuration'
|
|
5
5
|
module BorderPatrol
|
6
6
|
extend self
|
7
7
|
|
8
|
-
RAKE_COMMANDS_TO_IGNORE = %w[
|
9
|
-
db:create
|
10
|
-
db:drop
|
11
|
-
db:fixtures:load
|
12
|
-
db:migrate
|
13
|
-
db:migrate:status
|
14
|
-
db:rollback
|
15
|
-
db:schema:dump
|
16
|
-
db:schema:load
|
17
|
-
db:seed
|
18
|
-
db:setup
|
19
|
-
db:structure:dump
|
20
|
-
db:version
|
21
|
-
].freeze
|
22
|
-
|
23
8
|
attr_accessor :configuration
|
24
9
|
|
25
10
|
def configure
|
@@ -27,10 +12,10 @@ module BorderPatrol
|
|
27
12
|
yield configuration if block_given?
|
28
13
|
|
29
14
|
# Don't perform the tests in console mode, unless requested.
|
30
|
-
return if console? &&
|
15
|
+
return if console? && configuration.ignore_console
|
31
16
|
|
32
|
-
# Don't perform the tests during
|
33
|
-
return if
|
17
|
+
# Don't perform the tests during rake taskd.
|
18
|
+
return if rake?
|
34
19
|
|
35
20
|
# Perform initial test.
|
36
21
|
abort_if_pending
|
@@ -66,12 +51,8 @@ module BorderPatrol
|
|
66
51
|
defined?(Rails::Console)
|
67
52
|
end
|
68
53
|
|
69
|
-
def
|
70
|
-
|
71
|
-
end
|
72
|
-
|
73
|
-
def rake_command?(command)
|
74
|
-
File.basename($0) == 'rake' && ARGV.include?(command)
|
54
|
+
def rake?
|
55
|
+
$rails_rake_task
|
75
56
|
end
|
76
57
|
|
77
58
|
def start
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: border-patrol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-12-
|
12
|
+
date: 2013-12-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|