TYLER 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tyler.rb +188 -0
  2. metadata +46 -0
data/lib/tyler.rb ADDED
@@ -0,0 +1,188 @@
1
+ class Exception
2
+ def to_s
3
+ responses = ["I've got nothing.", "Good job, genius."]
4
+ return responses[rand(responses.length-1)]
5
+ end
6
+ end
7
+
8
+ class NoMemoryError
9
+ def to_s
10
+ responses = ["I've got nothing.", "Fuggedaboudit.", "Amnesia, or are you just an idiot?"]
11
+ return responses[rand(responses.length-1)]
12
+ end
13
+ end
14
+
15
+ class ScriptError
16
+ def to_s
17
+ responses = ["I've got nothing."]
18
+ return responses[rand(responses.length-1)]
19
+ end
20
+ end
21
+
22
+ class LoadError
23
+ def to_s
24
+ responses = ["What did the module say to the class? We'll never know because you can't type.", "Barking up the wrong tree, dumbass."]
25
+ return responses[rand(responses.length-1)]
26
+ end
27
+ end
28
+
29
+ class NotImplementedError
30
+ def to_s
31
+ responses = ["Are you using Windows? You're using Windows, aren't you?"]
32
+ return responses[rand(responses.length-1)]
33
+ end
34
+ end
35
+
36
+ class SyntaxError
37
+ def to_s
38
+ responses = ["I've got nothing.", "Lololololololwut", "Aw, how cute, you broke Ruby.", "Wow. I knew you were special, but wow."]
39
+ return responses[rand(responses.length-1)]
40
+ end
41
+ end
42
+
43
+ class SignalException
44
+ def to_s
45
+ responses = ["I've got nothing."]
46
+ return responses[rand(responses.length-1)]
47
+ end
48
+ end
49
+
50
+ class Interrupt
51
+ def to_s
52
+ responses = ["I've got nothing."]
53
+ return responses[rand(responses.length-1)]
54
+ end
55
+ end
56
+
57
+ class StandardError
58
+ def to_s
59
+ responses = ["I've got nothing."]
60
+ return responses[rand(responses.length-1)]
61
+ end
62
+ end
63
+
64
+ class ArgumentError
65
+ def to_s
66
+ responses = ["I've got nothing.", "Wrong number of arguments. Can you even count?"]
67
+ return responses[rand(responses.length-1)]
68
+ end
69
+ end
70
+
71
+ class IOError
72
+ def to_s
73
+ responses = ["I've got nothing."]
74
+ return responses[rand(responses.length-1)]
75
+ end
76
+ end
77
+
78
+ class EOFError
79
+ def to_s
80
+ responses = ["I've got nothing."]
81
+ return responses[rand(responses.length-1)]
82
+ end
83
+ end
84
+
85
+ class IndexError
86
+ def to_s
87
+ responses = ["Index error. Talk to me again when you've graduated kindergarten."]
88
+ return responses[rand(responses.length-1)]
89
+ end
90
+ end
91
+
92
+ class LocalJumpError
93
+ def to_s
94
+ responses = ["I've got nothing."]
95
+ return responses[rand(responses.length-1)]
96
+ end
97
+ end
98
+
99
+ class NameError
100
+ def to_s
101
+ responses = ["Wrong! Ha. Ha ha. I'm not laughing at you, I mean, well, yes I am."]
102
+ return responses[rand(responses.length-1)]
103
+ end
104
+ end
105
+
106
+ class NoMethodError
107
+ def to_s
108
+ responses = ["Undefined method. That thing you're trying to do... No."]
109
+ return responses[rand(responses.length-1)]
110
+ end
111
+ end
112
+
113
+ class RangeError
114
+ def to_s
115
+ responses = ["I've got nothing.", "Counting. You're doing it wrong."]
116
+ return responses[rand(responses.length-1)]
117
+ end
118
+ end
119
+
120
+ class FloatDomainError
121
+ def to_s
122
+ responses = ["I've got nothing."]
123
+ return responses[rand(responses.length-1)]
124
+ end
125
+ end
126
+
127
+ class RegexpError
128
+ def to_s
129
+ responses = ["I've got nothing."]
130
+ return responses[rand(responses.length-1)]
131
+ end
132
+ end
133
+
134
+ class RuntimeError
135
+ def to_s
136
+ responses = ["I've got nothing."]
137
+ return responses[rand(responses.length-1)]
138
+ end
139
+ end
140
+
141
+ class SecurityError
142
+ def to_s
143
+ responses = ["I've got nothing."]
144
+ return responses[rand(responses.length-1)]
145
+ end
146
+ end
147
+
148
+ class SystemCallError
149
+ def to_s
150
+ responses = ["I've got nothing."]
151
+ return responses[rand(responses.length-1)]
152
+ end
153
+ end
154
+
155
+ class SystemStackError
156
+ def to_s
157
+ responses = ["I've got nothing."]
158
+ return responses[rand(responses.length-1)]
159
+ end
160
+ end
161
+
162
+ class ThreadError
163
+ def to_s
164
+ responses = ["I've got nothing."]
165
+ return responses[rand(responses.length-1)]
166
+ end
167
+ end
168
+
169
+ class TypeError
170
+ def to_s
171
+ responses = ["Wrong. Just wrong.", "Are you touched in the head or what?"]
172
+ return responses[rand(responses.length-1)]
173
+ end
174
+ end
175
+
176
+ class ZeroDivisionError
177
+ def to_s
178
+ responses = ["Dividing by zero. Who the fuck do you think you are?"]
179
+ return responses[rand(responses.length-1)]
180
+ end
181
+ end
182
+
183
+ class SystemExit
184
+ def to_s
185
+ responses = ["I've got nothing."]
186
+ return responses[rand(responses.length-1)]
187
+ end
188
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: TYLER
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Tyler Davis
9
+ - Ana Becker
10
+ autorequire:
11
+ bindir: bin
12
+ cert_chain: []
13
+ date: 2013-02-20 00:00:00.000000000 Z
14
+ dependencies: []
15
+ description: Exceptions, done right.
16
+ email: tyebud@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/tyler.rb
22
+ homepage: http://www.github.com/tylerdavis/tyler
23
+ licenses: []
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 1.8.25
43
+ signing_key:
44
+ specification_version: 3
45
+ summary: Haha!
46
+ test_files: []