border-patrol 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- border-patrol (0.0.6)
4
+ border-patrol (0.0.7)
5
5
  rails (>= 3)
6
6
  timers
7
7
 
data/lib/border-patrol.rb CHANGED
@@ -14,6 +14,9 @@ module BorderPatrol
14
14
  # Don't perform the tests in console mode, unless requested.
15
15
  return if console? && configuration.ignore_console
16
16
 
17
+ # Don't perform the tests during `rake db:migrate`.
18
+ return if during_db_migrate?
19
+
17
20
  # Perform initial test.
18
21
  abort_if_pending
19
22
 
@@ -48,6 +51,10 @@ module BorderPatrol
48
51
  defined?(Rails::Console)
49
52
  end
50
53
 
54
+ def during_db_migrate?
55
+ File.basename($0) == 'rake' && ARGV.include?('db:migrate')
56
+ end
57
+
51
58
  def start
52
59
  @thread = Thread.new do
53
60
  @timers = Timers.new
@@ -1,3 +1,3 @@
1
1
  module BorderPatrol
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
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.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: