http_status_checker 0.0.7 → 0.0.8
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/.gitignore +2 -1
- data/README.md +3 -3
- data/bin/http_status_checker +2 -4
- data/lib/http_status_checker/version.rb +1 -1
- 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: 7b1b550385bd56ee140c860d77898d86b7f10c2c
|
|
4
|
+
data.tar.gz: 4c2e32a9ecf26020969d41aa83189be045c6d29d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1feecb048b47c3ae38674d59c9eb1fa4c969f6f81fe9666f264e359d638c88f28380eb6d654cc780bd067a4e100103cbcd3f3687b5ace7bf5b049fd97ba8c2d
|
|
7
|
+
data.tar.gz: c27249f303eb2db7b4cf3eafe637bd117a7821290522c23dcc1a4d4fac925381ebd43313d40899c20ecb8a3936efdd39dccee51746bfc92991e3a8ab9f48b5df
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -4,9 +4,9 @@ Easily Checking http status by http header with Multi-threaded
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
* Get http status
|
|
7
|
+
* Get http status
|
|
8
8
|
* A threaded (fast) per host name
|
|
9
|
-
*
|
|
9
|
+
* Return redirect url and errors when get http access
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ Or install it yourself as:
|
|
|
26
26
|
|
|
27
27
|
## Usage Command Line
|
|
28
28
|
|
|
29
|
-
$
|
|
29
|
+
$ http_status_checker http://morizyun.github.io
|
|
30
30
|
|
|
31
31
|
## Usage Ruby Program
|
|
32
32
|
|
data/bin/http_status_checker
CHANGED
|
@@ -7,11 +7,9 @@ require 'http_status_checker'
|
|
|
7
7
|
class Command < Thor
|
|
8
8
|
default_command :http_status_checker
|
|
9
9
|
|
|
10
|
-
# コマンドラインがちゃんとうごくようにする
|
|
11
10
|
desc 'http_status_checker', 'Checking whether can access url'
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
results = HttpStatusChecker.check(options[:url])
|
|
11
|
+
def http_status_checker(url)
|
|
12
|
+
results = HttpStatusChecker.check(url)
|
|
15
13
|
results.each do |result|
|
|
16
14
|
result.each do |url, res|
|
|
17
15
|
puts "url: #{url}"
|