peep-show 0.0.0 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/peep-show.rb +1 -3
- data/lib/peep-show/exceptions.rb +8 -0
- data/lib/peep-show/exceptions/base.rb +10 -0
- data/lib/peep-show/exceptions/standard_error.rb +13 -0
- data/lib/peep-show/inc/mark.txt +10 -0
- metadata +8 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0099cffcd0b76fd5f58778d501b285dd38e6b201
|
4
|
+
data.tar.gz: e1414ea1e6ebb89f674615635a680885338fdd5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 526b60a8edbdb04abed170c27924c39a06622c4a744987d233899d73849305c8967e81b7c6ec09278d29be0d49cf314700e63ab487915eca4bf843309fdd2f13
|
7
|
+
data.tar.gz: a116a8e528e042486dbaf85e7493fa62163e9e8d8f58c40648ebc87e471b90fb3ece3574e9bafce4fdc73fb5183e90054f583bda6cc0a5cd819cfd0b50753339
|
data/lib/peep-show.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
module PeepShow::Exceptions::StandardError
|
2
|
+
class ::StandardError
|
3
|
+
def to_s(*args)
|
4
|
+
peeps_exception = "#{PeepShow::Exceptions::Base.phrase}"
|
5
|
+
|
6
|
+
# Don't print an empty message
|
7
|
+
if(!super.empty? && super != self.class.to_s)
|
8
|
+
peeps_exception << "\n#{super}"
|
9
|
+
end
|
10
|
+
peeps_exception
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
If you ask me, Skywalker was bloody lucky to get away with turning off his guidance system.
|
2
|
+
Hmm. Is this the worst thing I've ever done? It might be.
|
3
|
+
Frosties are just Cornflakes for people who can't face reality.
|
4
|
+
I hardly have to modify my behavior at all in her company. I really think she might be "The One."
|
5
|
+
I am experiencing humiliation. Blood boiling, anger rising up, ready to explode...then falling back in on myself in the familiar shower of self-loathing.
|
6
|
+
Note to Self: You are not the Fonz.
|
7
|
+
Ah, soup. Lovely hug in a mug.
|
8
|
+
Oh my God, my heart's racing. It's like when I bought my first 20-sided die.
|
9
|
+
Ugh, more data entry tonight. I guess the only good thing is that my life is so boring it feels like it might go on forever.
|
10
|
+
I'm just a normal, functioning member of the human race, and there's no way anyone can prove otherwise.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: peep-show
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Belling
|
@@ -10,14 +10,18 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2016-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
email:
|
13
|
+
description: Exception messages from Mark Corrigan
|
14
|
+
email: dan@belling.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/peep-show.rb
|
20
|
-
|
20
|
+
- lib/peep-show/exceptions.rb
|
21
|
+
- lib/peep-show/exceptions/base.rb
|
22
|
+
- lib/peep-show/exceptions/standard_error.rb
|
23
|
+
- lib/peep-show/inc/mark.txt
|
24
|
+
homepage: https://github.com/dbelling/peep-show
|
21
25
|
licenses:
|
22
26
|
- MIT
|
23
27
|
metadata: {}
|