border-patrol 0.0.8 → 0.0.9
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 +16 -1
- data/lib/border_patrol/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/border-patrol.rb
CHANGED
@@ -5,6 +5,21 @@ 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
|
+
|
8
23
|
attr_accessor :configuration
|
9
24
|
|
10
25
|
def configure
|
@@ -52,7 +67,7 @@ module BorderPatrol
|
|
52
67
|
end
|
53
68
|
|
54
69
|
def during_db?
|
55
|
-
|
70
|
+
RAKE_COMMANDS_TO_IGNORE.any? { |command| rake_command?(command) }
|
56
71
|
end
|
57
72
|
|
58
73
|
def rake_command?(command)
|
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.0.9
|
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
|
+
date: 2013-12-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|