border-patrol 0.0.8 → 0.0.9

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.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- border-patrol (0.0.8)
4
+ border-patrol (0.0.9)
5
5
  rails (>= 3)
6
6
  timers
7
7
 
@@ -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
- rake_command?('db:migrate') || rake_command?('db:rollback')
70
+ RAKE_COMMANDS_TO_IGNORE.any? { |command| rake_command?(command) }
56
71
  end
57
72
 
58
73
  def rake_command?(command)
@@ -1,3 +1,3 @@
1
1
  module BorderPatrol
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
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.8
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-11-18 00:00:00.000000000 Z
12
+ date: 2013-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails