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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7ae823b09a9888e551139aa7b9601c3e4a57dc0
4
- data.tar.gz: 18648a27bf348a584f520c7adeefea99097b6dda
3
+ metadata.gz: 6888daa724299ad8681eb1c902ab0c38b3286094
4
+ data.tar.gz: fa5edfcfbd39d1e5f66fdec961610c6e23599e40
5
5
  SHA512:
6
- metadata.gz: 5da54a7b154e263273922ff4ce69e1e328b9a5b59a1e8f21eee1d004b4d082b82ea548e6b9b487c26af82fb014533252b66f5473898d4e4aa58dc44b755d68d8
7
- data.tar.gz: 77dbf7dd4963f49683fdd5ca18c4124787adf57464ebd978c4eab3044d4107321301fd54293f6c4ba0ba0ab92b09af205d7a10521f5370097d1534c0205c593d
6
+ metadata.gz: 9d5b4368da29009d9705a0c721278ec8f9bf4fc98f59e26d684ca462c709445b6c557c310c4b00506716f39657844d5e58f32ba0c22e1eea0d804b9a28e700ae
7
+ data.tar.gz: d2811c4a2fa89d60ba646e776c831d440901ef67636c7f2aed788819c8f4911d7ebe4f99b01c46cfbb58414b481cc74499996d3fafc19f2a8662e38e55d6136c
@@ -1,3 +1,3 @@
1
1
  module AccessLint
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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();
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: access_lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Cundiff