rails_pending_migration_errors 0.0.2 → 0.0.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1e43de972c3ca34a2abc91423fc45106c03ef98
|
4
|
+
data.tar.gz: a74904e33f1cf68614c3828dbcaec9d802ac0125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aca3901e7e07c9bb9518cbca70272ca72241505c35860cd1b590393bd930ac53c724affded44168dedc68d1cd8528a4ce2afdb97936f73bd13efbb031ea6602f
|
7
|
+
data.tar.gz: 35176ee449c21b57f1b8a5238d1ca3006bee143c8f93e76fe871680f01cef416449bc757a689492ad43ba34679354c2c46cfb9f66900082ebf2e36a2b6b9af89
|
@@ -18,7 +18,7 @@ module RailsPendingMigrationErrors
|
|
18
18
|
status, headers, response = @app.call(env)
|
19
19
|
response_body = nil
|
20
20
|
|
21
|
-
return [status, headers, response]
|
21
|
+
return [status, headers, response] if status != 200 or !html_request?(headers, response)
|
22
22
|
|
23
23
|
if RailsPendingMigrationErrors.needs_migrations?
|
24
24
|
if RailsPendingMigrationErrors.page_load
|
@@ -47,7 +47,13 @@ module RailsPendingMigrationErrors
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def response_body(response)
|
50
|
-
Array === response
|
50
|
+
if Array === response
|
51
|
+
response.first
|
52
|
+
elsif Array === response.body
|
53
|
+
response.body.first
|
54
|
+
else
|
55
|
+
response.body
|
56
|
+
end
|
51
57
|
end
|
52
58
|
|
53
59
|
def footer_div_style
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_pending_migration_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Roy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|