http_status_cheker - easily check status [RubyGems]


I created a new RubyGem morizyun/http_status_cheker.

🐠 Features

  • Easily checking http status of multi URIs
  • A threaded (fast) per host name
  • Return redirect url and errors when get http access
  • a waiting time interval can be set, because not to access too much to one host.

🎳 Installation

Add this line to your application’s Gemfile:

gem 'http_status_checker'

And then execute:

$ bundle

Or install it yourself as:

$ gem install http_status_checker

🐰 Usage on Command Line

$ http_status_checker -u http://morizyun.github.io
#=> url: http://morizyun.github.io
#=> response: {:code=>"200", :is_alive=>true, :redirect_url=>nil}

🚕 Usage on Ruby Program

require 'http_status_checker'

urls = ['http://morizyun.github.io', 'http://www.yahoo.co.jp']
interval_sec = 1

HttpStatusChecker.check urls, interval_sec
#=> [{"http://morizyun.github.io"=>{:code=>"200", :is_alive=>true, :redirect_url=>nil}},
#=> {"http://www.yahoo.co.jp"=>{:code=>"200", :is_alive=>true, :redirect_url=>nil}}]

🖥 Recommended VPS Service

VULTR provides high performance cloud compute environment for you. Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour). In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!