url-status 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 464dd6bff417b902058f071064a0c16a15c9a537
4
- data.tar.gz: d3188a0b1a175ff6b78626434bef465adf8f282d
3
+ metadata.gz: ff659559d0b7430b3a3000c0159aec2e554a2d33
4
+ data.tar.gz: 919fea9eef1c6c398e7b80eee3b4a1beb14f7efb
5
5
  SHA512:
6
- metadata.gz: 15433535e360fe36159845fb9e4e2ff8d93d86b0862d6da589a25e92e891b54576f6190419c7a668f6a8e454cf7208c1cd241683762b00b9a84ddd2349a395d3
7
- data.tar.gz: 3c7b3ba72b743e95644c09a28bc718788af310fe2597d40276193a8ac1ed619004241494936d45cfc4c209f2c27b484da0c2c2f5487523037b6998aae2fe0d81
6
+ metadata.gz: 46c9ff467f262e5fb7de36d5b8ac8fff59eb025816e43e0ce8f6e18487f709252c5b1dd26790ea07df834a0bd876dbf1dfbe3816d51ac63b7be88d3cc2e76d79
7
+ data.tar.gz: f7496bbdd88f63638843a9f11a1d442ace86ca3df15755ff2a7c86e1783864a75323fe588ebca79a9eb9e99a02bb3a47c946164fd0b39ab8903bed9077c31910
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- url-status (1.0.2)
4
+ url-status (1.0.5)
5
5
  colorize
6
6
  rest-client (~> 1.8)
7
7
  trollop
data/README.md CHANGED
@@ -1,40 +1,36 @@
1
- # UrlStatus
1
+ # url-status
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/url_status`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ `url-status` is a gem to check the http status of a list of urls.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ ![check a list of urls](./url-status.png)
6
6
 
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'url_status'
13
- ```
14
-
15
- And then execute:
7
+ The urls can be provided as command line options, or they can come from a config file.
16
8
 
17
- $ bundle
9
+ # list of urls to check simply given as command line options
10
+ # if no protocol is given, http is assumed
11
+ url-status google.com https://facebook.com
18
12
 
19
- Or install it yourself as:
13
+ # pull the urls from the config file instead
14
+ url-status --config ./site-list.yaml
20
15
 
21
- $ gem install url_status
16
+ The YAML file should be a simple array of the urls to check:
22
17
 
23
- ## Usage
18
+ ---
19
+ - ssrs.reednj.com
20
+ - paint.reednj.com
21
+ - popacular.com/home
22
+ - gigatweeter.com
24
23
 
25
- TODO: Write usage instructions here
24
+ If any of the urls fail, then the gem will return a status code of 1, allowing other action to be taken.
26
25
 
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake true` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
26
+ ## Installation
30
27
 
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
28
+ $ gem install url-status
32
29
 
33
30
  ## Contributing
34
31
 
35
32
  Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/url_status.
36
33
 
37
-
38
34
  ## License
39
35
 
40
36
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -45,7 +45,7 @@ module UrlStatus
45
45
 
46
46
  def url_list
47
47
  opts = Trollop::options do
48
- version "url-status (c) 2016 @reednj (reednj@gmail.com)"
48
+ version "url-status #{UrlStatus::VERSION} (c) 2016 @reednj (reednj@gmail.com)"
49
49
  opt :config, "YAML config file containing array of urls", :type => :string
50
50
  end
51
51
 
@@ -1,3 +1,3 @@
1
1
  module UrlStatus
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url-status
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Reed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-11-02 00:00:00.000000000 Z
11
+ date: 2016-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -100,6 +100,7 @@ files:
100
100
  - lib/url_status.rb
101
101
  - lib/url_status/version.rb
102
102
  - sites.test.yaml
103
+ - url-status.png
103
104
  - url_status.gemspec
104
105
  homepage: http://github.com/reednj/url-status
105
106
  licenses: