border-patrol 0.1.1 → 0.1.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c52c55d2899f320db74a66568d45a142b3e1731a
4
+ data.tar.gz: c924877709d0071194faad3a3e9e22c25b3dcb32
5
+ SHA512:
6
+ metadata.gz: 09552d7149ab19242c610951e884f613a6f4972ba233023ec7340a0cf4ed4a67e395ddcb3707c622e86db2b7602f2691614d014df5d52229ca2751c67bf1e635
7
+ data.tar.gz: db38665670efc91b12006ad88700a2f40fdd612aad9591e83de6cf2c745b57cf64941c18d2449f980d5a6b2cfc0663b21e8eceb333df8f20659f5c49836ba4b1
data/Gemfile.lock CHANGED
@@ -1,43 +1,44 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- border-patrol (0.1.1)
4
+ border-patrol (0.1.2)
5
5
  rails (>= 3)
6
6
  timers
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
- actionmailer (4.0.2)
12
- actionpack (= 4.0.2)
11
+ actionmailer (4.0.3)
12
+ actionpack (= 4.0.3)
13
13
  mail (~> 2.5.4)
14
- actionpack (4.0.2)
15
- activesupport (= 4.0.2)
14
+ actionpack (4.0.3)
15
+ activesupport (= 4.0.3)
16
16
  builder (~> 3.1.0)
17
17
  erubis (~> 2.7.0)
18
18
  rack (~> 1.5.2)
19
19
  rack-test (~> 0.6.2)
20
- activemodel (4.0.2)
21
- activesupport (= 4.0.2)
20
+ activemodel (4.0.3)
21
+ activesupport (= 4.0.3)
22
22
  builder (~> 3.1.0)
23
- activerecord (4.0.2)
24
- activemodel (= 4.0.2)
23
+ activerecord (4.0.3)
24
+ activemodel (= 4.0.3)
25
25
  activerecord-deprecated_finders (~> 1.0.2)
26
- activesupport (= 4.0.2)
26
+ activesupport (= 4.0.3)
27
27
  arel (~> 4.0.0)
28
28
  activerecord-deprecated_finders (1.0.3)
29
- activesupport (4.0.2)
29
+ activesupport (4.0.3)
30
30
  i18n (~> 0.6, >= 0.6.4)
31
31
  minitest (~> 4.2)
32
32
  multi_json (~> 1.3)
33
33
  thread_safe (~> 0.1)
34
34
  tzinfo (~> 0.3.37)
35
- arel (4.0.1)
36
- atomic (1.1.14)
35
+ arel (4.0.2)
36
+ atomic (1.1.15)
37
37
  builder (3.1.4)
38
38
  diff-lcs (1.2.5)
39
39
  erubis (2.7.0)
40
40
  hike (1.2.3)
41
+ hitimes (1.2.1)
41
42
  i18n (0.6.9)
42
43
  json (1.8.1)
43
44
  mail (2.5.4)
@@ -45,22 +46,22 @@ GEM
45
46
  treetop (~> 1.4.8)
46
47
  mime-types (1.25.1)
47
48
  minitest (4.7.5)
48
- multi_json (1.8.2)
49
- polyglot (0.3.3)
49
+ multi_json (1.9.0)
50
+ polyglot (0.3.4)
50
51
  rack (1.5.2)
51
52
  rack-test (0.6.2)
52
53
  rack (>= 1.0)
53
- rails (4.0.2)
54
- actionmailer (= 4.0.2)
55
- actionpack (= 4.0.2)
56
- activerecord (= 4.0.2)
57
- activesupport (= 4.0.2)
54
+ rails (4.0.3)
55
+ actionmailer (= 4.0.3)
56
+ actionpack (= 4.0.3)
57
+ activerecord (= 4.0.3)
58
+ activesupport (= 4.0.3)
58
59
  bundler (>= 1.3.0, < 2.0)
59
- railties (= 4.0.2)
60
+ railties (= 4.0.3)
60
61
  sprockets-rails (~> 2.0.0)
61
- railties (4.0.2)
62
- actionpack (= 4.0.2)
63
- activesupport (= 4.0.2)
62
+ railties (4.0.3)
63
+ actionpack (= 4.0.3)
64
+ activesupport (= 4.0.3)
64
65
  rake (>= 0.8.7)
65
66
  thor (>= 0.18.1, < 2.0)
66
67
  rake (10.1.1)
@@ -74,7 +75,7 @@ GEM
74
75
  rspec-expectations (2.14.4)
75
76
  diff-lcs (>= 1.1.3, < 2.0)
76
77
  rspec-mocks (2.14.4)
77
- sprockets (2.10.1)
78
+ sprockets (2.11.0)
78
79
  hike (~> 1.2)
79
80
  multi_json (~> 1.0)
80
81
  rack (~> 1.0)
@@ -84,10 +85,11 @@ GEM
84
85
  activesupport (>= 3.0)
85
86
  sprockets (~> 2.8)
86
87
  thor (0.18.1)
87
- thread_safe (0.1.3)
88
- atomic
88
+ thread_safe (0.2.0)
89
+ atomic (>= 1.1.7, < 2)
89
90
  tilt (1.4.1)
90
- timers (1.1.0)
91
+ timers (2.0.0)
92
+ hitimes
91
93
  treetop (1.4.15)
92
94
  polyglot
93
95
  polyglot (>= 0.3.1)
data/lib/border-patrol.rb CHANGED
@@ -31,7 +31,11 @@ module BorderPatrol
31
31
 
32
32
  private
33
33
  def pending_migrations
34
- ActiveRecord::Migrator.new(:up, ActiveRecord::Migrator.migrations_paths).pending_migrations
34
+ if ActiveRecord::Migrator.respond_to?(:open)
35
+ ActiveRecord::Migrator.open(ActiveRecord::Migrator.migrations_paths).pending_migrations
36
+ else
37
+ ActiveRecord::Migrator.new(:up, ActiveRecord::Migrator.migrations_paths).pending_migrations
38
+ end
35
39
  end
36
40
 
37
41
  def abort_if_pending
@@ -1,3 +1,3 @@
1
1
  module BorderPatrol
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,52 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: border-patrol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Leonid Beder
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-26 00:00:00.000000000 Z
11
+ date: 2014-03-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: timers
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -84,30 +77,28 @@ files:
84
77
  homepage: https://github.com/lbeder/border-patrol
85
78
  licenses:
86
79
  - MIT
80
+ metadata: {}
87
81
  post_install_message:
88
82
  rdoc_options: []
89
83
  require_paths:
90
84
  - lib
91
85
  required_ruby_version: !ruby/object:Gem::Requirement
92
- none: false
93
86
  requirements:
94
- - - ! '>='
87
+ - - '>='
95
88
  - !ruby/object:Gem::Version
96
89
  version: '0'
97
90
  required_rubygems_version: !ruby/object:Gem::Requirement
98
- none: false
99
91
  requirements:
100
- - - ! '>='
92
+ - - '>='
101
93
  - !ruby/object:Gem::Version
102
94
  version: '0'
103
95
  requirements: []
104
96
  rubyforge_project:
105
- rubygems_version: 1.8.25
97
+ rubygems_version: 2.2.2
106
98
  signing_key:
107
- specification_version: 3
99
+ specification_version: 4
108
100
  summary: Prevents your rails server from running and/or starting, while there are
109
101
  any pending DB migrations
110
102
  test_files:
111
103
  - spec/border_patrol_spec.rb
112
104
  - spec/spec_helper.rb
113
- has_rdoc: