linksta 0.1.3 → 0.1.4
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 +4 -4
- data/CODE_OF_CONDUCT.md +0 -0
- data/Gemfile +0 -0
- data/Gemfile.lock +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +11 -14
- data/Rakefile +0 -0
- data/lib/linksta.rb +0 -0
- data/lib/linksta/version.rb +1 -1
- data/spec/linksta_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +3 -6
- data/.gitignore +0 -17
- data/.rspec +0 -3
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d360d2d6d9d6b44687e1d50f93715f69b2c3cfba
|
4
|
+
data.tar.gz: 1a67d0e7506447bf4a536401d3baece0c71fcfc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0417ff0e46871c3c598781cd62aa805024034eb76702e1d50028912d482a3c6a5efa3dddba46686b2bf9569445b0e725be04a85945ade98f8914424b02a48e4
|
7
|
+
data.tar.gz: 3f16ef2b4520c9058f4909f620f622f04bcb12644ddfaf4fbca9076253aedb14ebffcfa3571d032dcc4ecad78cae91c3b5d74a3df50e913f59830c08199fb6c6
|
data/CODE_OF_CONDUCT.md
CHANGED
File without changes
|
data/Gemfile
CHANGED
File without changes
|
data/Gemfile.lock
CHANGED
File without changes
|
data/LICENSE.txt
CHANGED
File without changes
|
data/README.md
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
# Linksta
|
4
4
|
|
5
|
-
**Link checker for
|
5
|
+
**Link checker for your website.**
|
6
6
|
|
7
7
|
The idea is to quickly check a page for broken links by doing a status check on all the relative URL's on the page.
|
8
8
|
|
9
9
|
There are 4 parts to this tool, the URL, the base URL, the regex and the filename.
|
10
10
|
|
11
|
-
* **URL** is the page that you want to check for broken links, e.g `www.
|
12
|
-
* **Base URL** is used with the relative URL from the regex to create a full URL, e.g `www.
|
13
|
-
* **Regex** is the point of the URL that you want to keep from the regex, e.g `
|
11
|
+
* **URL** is the page that you want to check for broken links, e.g `www.foo.co.uk/foo`
|
12
|
+
* **Base URL** is used with the relative URL from the regex to create a full URL, e.g `www.foo.co.uk`
|
13
|
+
* **Regex** is the point of the URL that you want to keep from the regex, e.g `foo.co.uk/radio/new`, specifying `/foo` would create `/foo/new`.
|
14
14
|
* **Filename** is markdown (.md) file where all the page links are stored, this can be useful for manual checks, e.g `file.md`
|
15
15
|
|
16
16
|
## Installation
|
@@ -28,12 +28,9 @@ linksta check <url> <base_url> <regex> <filename>
|
|
28
28
|
**Examples**
|
29
29
|
|
30
30
|
```
|
31
|
-
linksta check http://www.
|
31
|
+
linksta check http://www.foo.co.uk/foo http://www.foo.co.uk/foo radio.md
|
32
32
|
```
|
33
33
|
|
34
|
-
```
|
35
|
-
linksta check http://www.theguardian.com/technology/2014/feb/15/year-of-code-needs-reboot-teachers http://theguardian.com /technology news.md
|
36
|
-
```
|
37
34
|
**Output**
|
38
35
|
|
39
36
|
Once running, you'll see either a 200 with `Status is 200 for <URL>` or `Status is NOT GOOD for <URL>`.
|
@@ -43,9 +40,9 @@ Once running, you'll see either a 200 with `Status is 200 for <URL>` or `Status
|
|
43
40
|
```ruby
|
44
41
|
require 'linksta'
|
45
42
|
|
46
|
-
url = 'http://www.
|
47
|
-
base = 'http://www.
|
48
|
-
reg = '/
|
43
|
+
url = 'http://www.foo.co.uk/foo'
|
44
|
+
base = 'http://www.foo.co.uk'
|
45
|
+
reg = '/foo'
|
49
46
|
filename = 'radio.md'
|
50
47
|
|
51
48
|
page = Linksta::SaveLinks.new(url, filename)
|
@@ -66,7 +63,7 @@ linksta smoke test.yaml
|
|
66
63
|
Example YAML Config:
|
67
64
|
|
68
65
|
```yaml
|
69
|
-
base: 'http://www.
|
66
|
+
base: 'http://www.foo.co.uk'
|
70
67
|
|
71
68
|
concurrency: 100
|
72
69
|
|
@@ -77,8 +74,8 @@ headers:
|
|
77
74
|
status_code: 200
|
78
75
|
|
79
76
|
paths:
|
80
|
-
- /
|
81
|
-
- /
|
77
|
+
- /foo
|
78
|
+
- /foo/new
|
82
79
|
```
|
83
80
|
|
84
81
|
Via a Ruby script:
|
data/Rakefile
CHANGED
File without changes
|
data/lib/linksta.rb
CHANGED
File without changes
|
data/lib/linksta/version.rb
CHANGED
data/spec/linksta_spec.rb
CHANGED
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linksta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CAP Testers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -90,9 +90,6 @@ executables:
|
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
|
-
- ".gitignore"
|
94
|
-
- ".rspec"
|
95
|
-
- ".travis.yml"
|
96
93
|
- CODE_OF_CONDUCT.md
|
97
94
|
- Gemfile
|
98
95
|
- Gemfile.lock
|
@@ -129,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
126
|
version: '0'
|
130
127
|
requirements: []
|
131
128
|
rubyforge_project:
|
132
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.5.2.3
|
133
130
|
signing_key:
|
134
131
|
specification_version: 4
|
135
132
|
summary: linksta - The ultimate URL status checker for your website!!
|
data/.gitignore
DELETED
data/.rspec
DELETED