isup 0.0.6 → 1.0

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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/isup.rb +10 -0
  3. metadata +5 -7
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWQzZDBmNThjMzc1YTZhMjE4Y2ZjYTg2MWVmYmJlZTQ0M2Q1NjgxMA==
4
+ M2U1N2E4ZDQ0NWMzZmJkYTNjODU1MmZiMmEzZTYxYzQ4MTQyNTQyMQ==
5
5
  data.tar.gz: !binary |-
6
- MWVkZDI5YzI5NjhhM2FkMDQ2YzVjZDIxZWMxMjE4ODJjZjQzZTUwNg==
6
+ M2UxYzFhMTU5YTZlZDEzNjJjODJmZjRhMmU1ZTZkYjk5MWVjYjQxMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzgwM2U3YzExMTg1NzlhYWI3NzU3ZjEwYzY5NjdlNmIyYTE0ZWM2ZWNhMDBj
10
- NWY3ZjQ2YjU5MGVhMDgwZDg0MGRiMGJhNTEwZjVjNjQ5N2IxNDg1MDNmZGIx
11
- ZWIzODJhNDE0MWQwZjQ2ZjI2Nzc4ZTVkNmMyZWI4N2Q2ZDJmNWM=
9
+ ODA4YjYwYmIwODUyZGU5Nzc4YzczMTA2NmY5N2NmN2I2NTcwYjUwZWIyZTZi
10
+ ZTJlNDNlNzJlZTIxZThiN2E2ZWY4YTMxN2E5ZWIwYmE4YjQ1MTM4YWRiNzNi
11
+ YTYwNDkwMGNiYWFhMmJjOTdhODZmYWVkZDQ4YTM3ZjNhYTU5MWE=
12
12
  data.tar.gz: !binary |-
13
- NTM4YmU0MTM5MjI4NjRhMGUxNWEzMGJlYzZhMmU2NWI2MGU1YWM2ZjgyYTNk
14
- Njk5ZjliMWNmNTNhMTUyYzA0ODkwZGMzNzQ3MDY0ZDIzODAxYTg1MTE2MGZm
15
- MzkyMGIyZjEyY2FlOWE4MjFiZGMwNjI4YWE5OTk5MTI5MDRjMTE=
13
+ ZjRmNmM1OWIyMzczNjFmNjk5MzE4Njc0MWJlMjcxYzVjZDlmMDIzNjYwNzBl
14
+ NTc4N2VjNGI0MjAyZTBmMTgzMDVkMTFiYjkzMzRmMTIwOTIzMzRkZDRmOGM5
15
+ ODQ3NTViZTI5OTMwY2M1ZDM4Y2NkYjE0YTIyNzZlM2I2ZjU5MmE=
@@ -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: 0.0.6
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-17 00:00:00.000000000 Z
11
+ date: 2013-04-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A very simple Ruby gem to check whether a site is currently up. It does
14
- not currently handle errors properly, and is more of a learning experience for me
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: Still a work in progress. Checks whether a site is up.
46
+ summary: The simple site status checker.
49
47
  test_files: []