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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd51837fa68f9996098bd0c4aae7163ee9292408
4
- data.tar.gz: 517c6dc2edb3ff9b4c79e5e9203b1bb1ea46f375
3
+ metadata.gz: 7b1b550385bd56ee140c860d77898d86b7f10c2c
4
+ data.tar.gz: 4c2e32a9ecf26020969d41aa83189be045c6d29d
5
5
  SHA512:
6
- metadata.gz: 86f1f451dcddf5104c6c131f5407f81517a9ed24681d2ea78836d65c4dada52923e8651872acb3a41ab8e9b80ca912d7157d1ae86311e4f87f57b75c77dd3865
7
- data.tar.gz: 86a9bfb5515f263c9a50b20f24c1b1bd6bedf0526e4e7f9f23cbab1aa6f6cb3fa38a08d569996cec5202cfc16ae1e65b45c68b754fc6007d079ae7ec0a00a2c3
6
+ metadata.gz: a1feecb048b47c3ae38674d59c9eb1fa4c969f6f81fe9666f264e359d638c88f28380eb6d654cc780bd067a4e100103cbcd3f3687b5ace7bf5b049fd97ba8c2d
7
+ data.tar.gz: c27249f303eb2db7b4cf3eafe637bd117a7821290522c23dcc1a4d4fac925381ebd43313d40899c20ecb8a3936efdd39dccee51746bfc92991e3a8ab9f48b5df
data/.gitignore CHANGED
@@ -13,4 +13,5 @@
13
13
  *.a
14
14
  *.iml
15
15
  mkmf.log
16
- /vendor/
16
+ /vendor/
17
+ .ruby-version
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 by only http header
7
+ * Get http status
8
8
  * A threaded (fast) per host name
9
- * Warnings for links that redirect to valid links
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
- $ http_status http://morizyun.github.io
29
+ $ http_status_checker http://morizyun.github.io
30
30
 
31
31
  ## Usage Ruby Program
32
32
 
@@ -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
- option :url, :type => :string, :aliases => :'-u', :desc => 'url for checking'
13
- def http_status_checker
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}"
@@ -1,3 +1,3 @@
1
1
  module HttpStatusChecker
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_status_checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - morizyun