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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5966bec0ff480d0329bfce8d20ba9a81349206fe
4
- data.tar.gz: 8629c5415a6cf8de0a0d45ec8de889ddd4560089
3
+ metadata.gz: d360d2d6d9d6b44687e1d50f93715f69b2c3cfba
4
+ data.tar.gz: 1a67d0e7506447bf4a536401d3baece0c71fcfc2
5
5
  SHA512:
6
- metadata.gz: 30b5578205cb6dee6bed61383e14517facd9e7a33c474ff684bd79d5d7630ab5b7da04e4f63f81da915265fb3544c5990c77f18b4e27aa6456f9e63eeb06f942
7
- data.tar.gz: 8f0585dcd78e96e828393f5093c535d1f98a8a7ba6a6d096f959ed6ddf2e722d0c8eee20da53983f83b4ef5fe6ef7fe2a87adce7fe91f3c046600cc285052419
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 BBC Radio & Music sites.**
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.bbc.co.uk/radi04`
12
- * **Base URL** is used with the relative URL from the regex to create a full URL, e.g `www.bbc.co.uk`
13
- * **Regex** is the point of the URL that you want to keep from the regex, e.g `bbc.co.uk/radio/new`, specifying `/radio` would create `/radio/new`.
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.bbc.co.uk/radio http://www.bbc.co.uk/radio radio.md
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.live.bbc.co.uk/radio'
47
- base = 'http://www.live.bbc.co.uk'
48
- reg = '/radio'
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.bbc.co.uk'
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
- - /radio
81
- - /radio/new
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
@@ -1,3 +1,3 @@
1
1
  module Linksta
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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: 2017-12-01 00:00:00.000000000 Z
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.6.12
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
@@ -1,17 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- *.xml
14
-
15
- *.iml
16
-
17
- .idea/.name
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.3.0
5
- before_install: gem install bundler -v 1.16.0