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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2043c72ce87f166a2d65f675bb689cf0bec596c
4
- data.tar.gz: 3da561e2f10099e6ffa55c686b0a1d7b76982d39
3
+ metadata.gz: 0099cffcd0b76fd5f58778d501b285dd38e6b201
4
+ data.tar.gz: e1414ea1e6ebb89f674615635a680885338fdd5b
5
5
  SHA512:
6
- metadata.gz: 815be0c9ab9c39b4aea0d63473c309bcc4411be657e5863bad45bb5cf85cdf854c88392dfb313cc7b163afa0c902f6b48162553c7dae8f637b733c1acc5f39fd
7
- data.tar.gz: b0765ecc460e0c15a456093f08e29bca963480c06eff64b8479f77fe08474459ff806677887ab6546de5da0ad2689a57d6cd3feaffd7d99f01ce8d6599d103f4
6
+ metadata.gz: 526b60a8edbdb04abed170c27924c39a06622c4a744987d233899d73849305c8967e81b7c6ec09278d29be0d49cf314700e63ab487915eca4bf843309fdd2f13
7
+ data.tar.gz: a116a8e528e042486dbaf85e7493fa62163e9e8d8f58c40648ebc87e471b90fb3ece3574e9bafce4fdc73fb5183e90054f583bda6cc0a5cd819cfd0b50753339
data/lib/peep-show.rb CHANGED
@@ -1,5 +1,3 @@
1
1
  class PeepShow
2
- def self.hi
3
- puts 'Men with Ven'
4
- end
2
+ require 'peep-show/exceptions'
5
3
  end
@@ -0,0 +1,8 @@
1
+ module PeepShow::Exceptions
2
+ def self.included(base)
3
+ require_relative 'exceptions/base'
4
+ require_relative 'exceptions/standard_error'
5
+
6
+ ::StandardError.include(PeepShow::Exceptions::StandardError)
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ class PeepShow::Exceptions::Base
2
+ def self.phrases
3
+ phrase_path = File.join(File.dirname(__FILE__), '..', 'inc', 'mark.txt')
4
+ File.readlines(phrase_path).map(&:rstrip)
5
+ end
6
+
7
+ def self.phrase
8
+ self.phrases.sample
9
+ end
10
+ end
@@ -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.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: A modern retelling of the Odd Couple
14
- email: danhbelling@gmail.com
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
- homepage: http://rubygems.org/gems/peep-show
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: {}