url-status 1.0.5 → 1.0.6
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/Gemfile.lock +1 -1
- data/README.md +18 -22
- data/lib/url_status.rb +1 -1
- data/lib/url_status/version.rb +1 -1
- data/url-status.png +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff659559d0b7430b3a3000c0159aec2e554a2d33
|
4
|
+
data.tar.gz: 919fea9eef1c6c398e7b80eee3b4a1beb14f7efb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46c9ff467f262e5fb7de36d5b8ac8fff59eb025816e43e0ce8f6e18487f709252c5b1dd26790ea07df834a0bd876dbf1dfbe3816d51ac63b7be88d3cc2e76d79
|
7
|
+
data.tar.gz: f7496bbdd88f63638843a9f11a1d442ace86ca3df15755ff2a7c86e1783864a75323fe588ebca79a9eb9e99a02bb3a47c946164fd0b39ab8903bed9077c31910
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,40 +1,36 @@
|
|
1
|
-
#
|
1
|
+
# url-status
|
2
2
|
|
3
|
-
|
3
|
+
`url-status` is a gem to check the http status of a list of urls.
|
4
4
|
|
5
|
-
|
5
|
+

|
6
6
|
|
7
|
-
|
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
|
-
|
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
|
-
|
13
|
+
# pull the urls from the config file instead
|
14
|
+
url-status --config ./site-list.yaml
|
20
15
|
|
21
|
-
|
16
|
+
The YAML file should be a simple array of the urls to check:
|
22
17
|
|
23
|
-
|
18
|
+
---
|
19
|
+
- ssrs.reednj.com
|
20
|
+
- paint.reednj.com
|
21
|
+
- popacular.com/home
|
22
|
+
- gigatweeter.com
|
24
23
|
|
25
|
-
|
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
|
-
##
|
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
|
-
|
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).
|
data/lib/url_status.rb
CHANGED
@@ -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
|
|
data/lib/url_status/version.rb
CHANGED
data/url-status.png
ADDED
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.
|
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-
|
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:
|