sla 0.3.0 → 0.3.1

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -24
  3. data/lib/sla/version.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 408ec43b2728bd5d2a1461b747b487506976e020894684d8270154a5e9b807a1
4
- data.tar.gz: 8620e841cde6cc02ba87e2c35a32d278c197f65363e85fad6fd4adec3adcbf1e
3
+ metadata.gz: 4300cbfe34164dede71e71bfba0ebc58bf993c82c57e8a383befaae8ef5d7921
4
+ data.tar.gz: 487200b6297cf7a11e4ef8c653727ecd7af71bc8bd2415dc8510e5dc815d864d
5
5
  SHA512:
6
- metadata.gz: d7b55730a4502b09df9c59ca8a3f0b49aa2986a2b6b548f8f26e8a8e5650075497acaef75f020e93354eb2f33d0538c6176ad3d3d070e11b0600e8ca6eddab34
7
- data.tar.gz: 94eeaa6c32a22a8f894bf6c65b0b74084120a071897028d4888952ac7d7dd28d10dcfe289a5230bd053c06b2a307ee32ddcf96e50f8bfc900c94eaa03b60a4ca
6
+ metadata.gz: 23909ff36d29bad1ac113a968f5ae640495c1acc68f1da2b53b9605e04080f62d29575f34e70233327883eec5a67f131bd372f064823378e8ff083f391cb6831
7
+ data.tar.gz: 98800a5468cd9db6035cf2297e82c52135cbdb287ca3e12db7c0c45b0e85b721d606935f13c2fe2511c2e3c59e5dfaed091c907ca3e636ebd482bb23ff9cfa44
data/README.md CHANGED
@@ -33,23 +33,31 @@ Usage
33
33
 
34
34
  ```
35
35
  $ sla --help
36
- SLA
36
+ Site Link Analyzer
37
37
 
38
38
  Usage:
39
- sla check DOMAIN [options]
40
- sla (-h|--help|--version)
39
+ sla URL [options]
40
+ sla --help | -h | --version
41
41
 
42
- Commands:
43
- check
44
- Start checking for broken links on a given domain.
45
-
46
42
  Options:
43
+ --verbose, -v
44
+ Show detailed output
45
+
46
+ --simple, -s
47
+ Show simple output of errors only
48
+
47
49
  --depth, -d DEPTH
48
- Set crawling depth [default: 5].
50
+ Set crawling depth [default: 5]
51
+
52
+ --external, -x
53
+ Also check external links
54
+
55
+ --ignore, -i URLS
56
+ Specify a list of space delimited patterns to skip
57
+ URLs that contain any of the strings in this list will be skipped
49
58
 
50
59
  --cache, -c LIFE
51
- Set cache life [default: 1d]. LIFE can be in any of the
52
- following formats:
60
+ Set cache life [default: 1d]. LIFE can be in any of the following formats:
53
61
  10 = 10 seconds
54
62
  20s = 20 seconds
55
63
  10m = 10 minutes
@@ -57,24 +65,29 @@ Options:
57
65
  10d = 10 days
58
66
 
59
67
  --cache-dir DIR
60
- Set the cache directory.
68
+ Set the cache directory
61
69
 
62
- --external, -x
63
- Also check external links.
70
+ -h --help
71
+ Show this help
64
72
 
65
- --log, -l LOGFILE
66
- Save errors to log file.
73
+ --version
74
+ Show version number
67
75
 
68
- --ignore, -i URLS
69
- Specify a list of space delimited URLs to skip.
70
- URLs that start with the strings in this list will be skipped.
76
+ Parameters:
77
+ URL
78
+ URL to scan
79
+
80
+ Environment Variables:
81
+ SLA_SLEEP
82
+ Set number of seconds to sleep between calls (for debugging purposes)
71
83
 
72
84
  Examples:
73
- sla check example.com
74
- sla check example.com -c10m -d10
75
- sla check example.com --cache-dir my_cache
76
- sla check example.com --depth 10 --log my_log.log
77
- sla check example.com --cache 30d
78
- sla check example.com --ignore "/admin /customer/login"
85
+ sla example.com
86
+ sla example.com -c10m -d10
87
+ sla example.com --cache-dir my_cache
88
+ sla example.com --depth 10
89
+ sla example.com --cache 30d --external
90
+ sla example.com --simple > out.log
91
+ sla example.com --ignore "/admin /customer/login"
79
92
 
80
93
  ```
data/lib/sla/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SLA
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Ben Shitrit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-28 00:00:00.000000000 Z
11
+ date: 2019-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colsole
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.6'
53
+ version: '0.7'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.6'
60
+ version: '0.7'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: nokogiri
63
63
  requirement: !ruby/object:Gem::Requirement