access_lint 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/access_lint/version.rb +1 -1
- data/vendor/access-lint/bin/auditor.js +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6888daa724299ad8681eb1c902ab0c38b3286094
|
4
|
+
data.tar.gz: fa5edfcfbd39d1e5f66fdec961610c6e23599e40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d5b4368da29009d9705a0c721278ec8f9bf4fc98f59e26d684ca462c709445b6c557c310c4b00506716f39657844d5e58f32ba0c22e1eea0d804b9a28e700ae
|
7
|
+
data.tar.gz: d2811c4a2fa89d60ba646e776c831d440901ef67636c7f2aed788819c8f4911d7ebe4f99b01c46cfbb58414b481cc74499996d3fafc19f2a8662e38e55d6136c
|
data/lib/access_lint/version.rb
CHANGED
@@ -2,6 +2,14 @@ var page = require('webpage').create(),
|
|
2
2
|
system = require('system'),
|
3
3
|
url;
|
4
4
|
|
5
|
+
page.settings.resourceTimeout = 10000;
|
6
|
+
page.onResourceTimeout = function(e) {
|
7
|
+
console.log(e.errorCode); // it'll probably be 408
|
8
|
+
console.log(e.errorString); // it'll probably be 'Network timeout on resource'
|
9
|
+
console.log(e.url); // the url whose request timed out
|
10
|
+
phantom.exit(1);
|
11
|
+
};
|
12
|
+
|
5
13
|
if (system.args.length !== 2) {
|
6
14
|
console.log('Usage: phantomjs auditor.js URL');
|
7
15
|
phantom.exit();
|