isup 0.0.6 → 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/isup.rb +10 -0
- metadata +5 -7
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2U1N2E4ZDQ0NWMzZmJkYTNjODU1MmZiMmEzZTYxYzQ4MTQyNTQyMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2UxYzFhMTU5YTZlZDEzNjJjODJmZjRhMmU1ZTZkYjk5MWVjYjQxMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODA4YjYwYmIwODUyZGU5Nzc4YzczMTA2NmY5N2NmN2I2NTcwYjUwZWIyZTZi
|
10
|
+
ZTJlNDNlNzJlZTIxZThiN2E2ZWY4YTMxN2E5ZWIwYmE4YjQ1MTM4YWRiNzNi
|
11
|
+
YTYwNDkwMGNiYWFhMmJjOTdhODZmYWVkZDQ4YTM3ZjNhYTU5MWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjRmNmM1OWIyMzczNjFmNjk5MzE4Njc0MWJlMjcxYzVjZDlmMDIzNjYwNzBl
|
14
|
+
NTc4N2VjNGI0MjAyZTBmMTgzMDVkMTFiYjkzMzRmMTIwOTIzMzRkZDRmOGM5
|
15
|
+
ODQ3NTViZTI5OTMwY2M1ZDM4Y2NkYjE0YTIyNzZlM2I2ZjU5MmE=
|
data/lib/isup.rb
CHANGED
@@ -9,6 +9,8 @@ class Isup
|
|
9
9
|
@input_good = true
|
10
10
|
if (x == "-v") || (x == "--verbose")
|
11
11
|
@verbose = true
|
12
|
+
elsif (x == "-h") || (x == "--help")
|
13
|
+
puts @@help_string
|
12
14
|
elsif valid?
|
13
15
|
up?
|
14
16
|
else
|
@@ -18,6 +20,14 @@ class Isup
|
|
18
20
|
puts "Please input a valid URL." if !@input_good
|
19
21
|
end
|
20
22
|
|
23
|
+
@@help_string = "
|
24
|
+
isup a simple status checker written in Ruby.
|
25
|
+
\n Usage:
|
26
|
+
isup [url] Check the status of [url]
|
27
|
+
isup -v/--verbose [url] Display redirects
|
28
|
+
isup -h/--help Print the help page
|
29
|
+
\n"
|
30
|
+
|
21
31
|
private
|
22
32
|
|
23
33
|
# Checks whether the url that's been inputed is valid.
|
metadata
CHANGED
@@ -1,19 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: '1.0'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Brinker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
15
|
-
than anything else. It can be used via the command line with the 'isup' command,
|
16
|
-
taking a url as the only parameter.
|
13
|
+
description: isup is a command line utility to check if a site is up or down. Type
|
14
|
+
'isup -h' to see the help page.
|
17
15
|
email: me@andrewbrinker.com
|
18
16
|
executables:
|
19
17
|
- isup
|
@@ -45,5 +43,5 @@ rubyforge_project:
|
|
45
43
|
rubygems_version: 2.0.3
|
46
44
|
signing_key:
|
47
45
|
specification_version: 4
|
48
|
-
summary:
|
46
|
+
summary: The simple site status checker.
|
49
47
|
test_files: []
|