excuse 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/excuse +5 -0
  2. data/lib/excuse.rb +13 -0
  3. metadata +47 -0
data/bin/excuse ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'excuse'
4
+
5
+ Excuse.excuse
data/lib/excuse.rb ADDED
@@ -0,0 +1,13 @@
1
+ require 'net/telnet'
2
+
3
+ class Excuse
4
+ def self.excuse
5
+ excuse_conn = Net::Telnet::new("Host" => "towel.blinkenlights.nl",
6
+ "Port" => 666)
7
+ excuse_conn.cmd("") do |c|
8
+ print c.gsub("\n=== The BOFH Excuse Server ===\n\e[H\n", "").strip unless c.eql? "\e[H\e[J"
9
+ end
10
+
11
+ print "\n"
12
+ end
13
+ end
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: excuse
3
+ version: !ruby/object:Gem::Version
4
+ version: '1.0'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Josh Kaplan
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-04-04 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Server down? Not sure why? Bide your time with Excuse!
15
+ email: joshbrentkaplan@gmail.com
16
+ executables:
17
+ - excuse
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/excuse.rb
22
+ - bin/excuse
23
+ homepage: http://github.com/jkap/excuse
24
+ licenses: []
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 1.8.10
44
+ signing_key:
45
+ specification_version: 3
46
+ summary: Excuse
47
+ test_files: []