farva 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,14 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ farva (0.5.2)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ farva!
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Dan DeMeyere"]
10
10
  s.email = ["dan@thredup.com"]
11
11
  s.homepage = ""
12
- s.summary = %q{Generate Office Farva Quotes}
12
+ s.summary = %q{Generate Super Trooper Quotes}
13
13
  s.description = %q{Just about everything.}
14
14
 
15
15
  s.rubyforge_project = "farva"
@@ -1,42 +1,27 @@
1
- module Farva
1
+ class Farva
2
+ require 'farva/string'
3
+ require 'farva/trooper_farva'
4
+ require 'farva/trooper_mac'
5
+ require 'farva/trooper_foster'
6
+ TROOPERS = ["Trooper Farva", "Trooper Mac"]
7
+
8
+ def self.roll_call
9
+ trooper = String.constantize(TROOPERS.shuffle.first.gsub(/ /, ""))
10
+ return trooper.new
11
+ end
12
+
2
13
  def self.generate_quote
3
- quotes = FARVA_QUOTE_LIBRARY.shuffle!
4
- quotes.first
14
+ trooper = roll_call
15
+ return trooper.quotes.shuffle.first
5
16
  end
6
17
 
7
- FARVA_QUOTE_LIBRARY = []
8
- FARVA_QUOTE_LIBRARY << "Want me to punch-a-size your face, for free?"
9
- FARVA_QUOTE_LIBRARY << "Farva: Gimme a litre o' cola. \r" +
10
- "Burger Guy: What? \r" +
11
- "Farva: A litre o' cola.\r" +
12
- "Burger Guy: Litrecola? Do we sell litrecola? \r" +
13
- "Thorny: Will you just order a large, Farva? \r" +
14
- "Farva: I don't want a large farva. I want a goddamn litre o' cola!"
15
- FARVA_QUOTE_LIBRARY << "Say car Ram-Rod."
16
- FARVA_QUOTE_LIBRARY << "Just cleaning out the old locker, she stinks like ass but I'll sure" +
17
- "miss her... I guess you could say that about all my girls."
18
- FARVA_QUOTE_LIBRARY << "Hey, let's pop some Viagras and issue tickets with raging, mega-huge boners."
19
- FARVA_QUOTE_LIBRARY << "Police Chief Grady: I'm sorry about that delousing. Just standard procedure.\r" +
20
- "Farva: It's powdered sugar. \r" +
21
- "Police Chief Grady: The lice hate the sugar. \r" +
22
- "Farva: It's delicious."
23
- FARVA_QUOTE_LIBRARY << "You mean Shenanigans?"
24
- FARVA_QUOTE_LIBRARY << "Don't call me radio, unit 91."
25
- FARVA_QUOTE_LIBRARY << "Farva: What's this? \r" +
26
- "Rabbit: A chamois cloth. \r" +
27
- "Farva: Ha. Lucky guess. I just lost a buck. To myself."
28
- FARVA_QUOTE_LIBRARY << "Rabbit: Oh, look, a bar of soap.\r" +
29
- "Farva: Oohoohoh shit. I got you good, you f*****! \r" +
30
- "Mac: Awesome prank, Farva. \r" +
31
- "Farva: Better'n the crap you pull, Mac."
32
- FARVA_QUOTE_LIBRARY << "Who can say \"meow\" the most? You guys are real crazy, hey look out for these guys."
33
- FARVA_QUOTE_LIBRARY << "Farva: MacAttack, wanna go punch for punch? \r" +
34
- "[Mac punches Farva in the stomach] \r" +
35
- "Farva: Oooh good one, I did not specify. Never shit a shitter."
36
- FARVA_QUOTE_LIBRARY << "Who wants cream? Nobody? Okay, no cream."
37
- FARVA_QUOTE_LIBRARY << "Unit 91, unit 91? C'mon Unit 91, quit counting your pubes we have a pursuit out here"
38
- FARVA_QUOTE_LIBRARY << "Captain O'Hagan: There was a time when we'd take a guy like you in the back and beat" +
39
- "you with a hose. Now you've got your God-damned unions. \r" +
40
- "Farva: Cap'n... you know I'm not a pro-union guy."
41
- FARVA_QUOTE_LIBRARY << "Sing it again, rookie biatch!"
18
+ def self.generate_email
19
+ trooper = roll_call
20
+
21
+ email = {}
22
+ email[:subject] = "Team Ramrod"
23
+ email[:from] = trooper.email
24
+ email[:body] = trooper.quotes.shuffle.first
25
+ email
26
+ end
42
27
  end
@@ -0,0 +1,12 @@
1
+ class String
2
+ def self.constantize(camel_cased_word)
3
+ names = camel_cased_word.split('::')
4
+ names.shift if names.empty? || names.first.empty?
5
+
6
+ constant = Object
7
+ names.each do |name|
8
+ constant = constant.const_defined?(name) ? constant.const_get(name) : constant.const_missing(name)
9
+ end
10
+ constant
11
+ end
12
+ end
@@ -0,0 +1,44 @@
1
+ class TrooperFarva
2
+ def initialize
3
+ @name = "Trooper Rod Farva"
4
+ @email = "farva@thredup.com"
5
+ @quotes = QUOTE_LIBRARY
6
+ end
7
+ attr_accessor :name, :email, :quotes
8
+
9
+ QUOTE_LIBRARY = []
10
+ QUOTE_LIBRARY << "Want me to punch-a-size your face, for free?"
11
+ QUOTE_LIBRARY << "Farva: Gimme a litre o' cola. \r" +
12
+ "Burger Guy: What? \r" +
13
+ "Farva: A litre o' cola. \r" +
14
+ "Burger Guy: Litrecola? Do we sell litrecola? \r" +
15
+ "Thorny: Will you just order a large, Farva? \r" +
16
+ "Farva: I don't want a large farva. I want a goddamn litre o' cola!"
17
+ QUOTE_LIBRARY << "Say car Ram-Rod."
18
+ QUOTE_LIBRARY << "Just cleaning out the old locker, she stinks like ass but I'll sure " +
19
+ "miss her... I guess you could say that about all my girls."
20
+ QUOTE_LIBRARY << "Hey, let's pop some Viagras and issue tickets with raging, mega-huge boners."
21
+ QUOTE_LIBRARY << "Police Chief Grady: I'm sorry about that delousing. Just standard procedure. \r" +
22
+ "Farva: It's powdered sugar. \r" +
23
+ "Police Chief Grady: The lice hate the sugar. \r" +
24
+ "Farva: It's delicious."
25
+ QUOTE_LIBRARY << "You mean Shenanigans?"
26
+ QUOTE_LIBRARY << "Don't call me radio, unit 91."
27
+ QUOTE_LIBRARY << "Farva: What's this? \r" +
28
+ "Rabbit: A chamois cloth. \r" +
29
+ "Farva: Ha. Lucky guess. I just lost a buck. To myself."
30
+ QUOTE_LIBRARY << "Rabbit: Oh, look, a bar of soap.\r" +
31
+ "Farva: Oohoohoh shit. I got you good, you f*****! \r" +
32
+ "Mac: Awesome prank, Farva. \r" +
33
+ "Farva: Better'n the crap you pull, Mac."
34
+ QUOTE_LIBRARY << "Who can say \"meow\" the most? You guys are real crazy, hey look out for these guys."
35
+ QUOTE_LIBRARY << "Farva: MacAttack, wanna go punch for punch? \r" +
36
+ "[Mac punches Farva in the stomach] \r" +
37
+ "Farva: Oooh good one, I did not specify. Never shit a shitter."
38
+ QUOTE_LIBRARY << "Who wants cream? Nobody? Okay, no cream."
39
+ QUOTE_LIBRARY << "Unit 91, unit 91? C'mon Unit 91, quit counting your pubes we have a pursuit out here "
40
+ QUOTE_LIBRARY << "Captain O'Hagan: There was a time when we'd take a guy like you in the back and beat" +
41
+ "you with a hose. Now you've got your God-damned unions. \r" +
42
+ "Farva: Cap'n... you know I'm not a pro-union guy."
43
+ QUOTE_LIBRARY << "Sing it again, rookie biatch!"
44
+ end
@@ -0,0 +1,42 @@
1
+ class TrooperFoster
2
+ def initialize
3
+ @name = "Trooper Jeff Foster"
4
+ @email = "foster@thredup.com"
5
+ @quotes = QUOTE_LIBRARY
6
+ end
7
+ attr_accessor :name, :email, :quotes
8
+
9
+ QUOTE_LIBRARY = []
10
+ QUOTE_LIBRARY << "Mac: All right, how about 'Cat Game?' \r" +
11
+ "Foster: Cat Game? What's the record? \r" +
12
+ "Mac: Thorny did six, but I think you can do ten. \r" +
13
+ "Foster: Ten? Starting right 'meow?' \r" +
14
+ "Larry Johnson: Sorry about the... \r" +
15
+ "Foster: All right meow. (1) Hand over your license and registration. \r" +
16
+ "Foster: Your registration? Hurry up meow. (2) \r" +
17
+ "Larry Johnson: Sorry. \r" +
18
+ "[the man laughs a little] \r" +
19
+ "Foster: Is there something funny here boy? \r" +
20
+ "Larry Johnson: Oh, no. \r" +
21
+ "Foster: Then why you laughing, Mister... Larry Johnson? \r" +
22
+ "[pause] \r" +
23
+ "Foster: All right meow, (3) where were we? \r" +
24
+ "Larry Johnson: Excuse me, are you saying meow? \r" +
25
+ "Foster: Am I saying meow? \r" +
26
+ "[Mac puts his hands up for the fourth one, but makes an 'eehhh' facial expression, as he is considering the last one] \r" +
27
+ "Larry Johnson: I thought... \r" +
28
+ "Foster: Don't think boy. Meow, (4) do you know how fast you were going? \r" +
29
+ "[man laughs] \r" +
30
+ "Foster: Meow. (5) What is so damn funny? \r" +
31
+ "Larry Johnson: I could have sworn you said meow. \r" +
32
+ "Foster: Do I look like a cat to you, boy? Am I jumpin' around all nimbly bimbly from tree to tree? \r" +
33
+ "[Mac is gut-busting laughing] \r" +
34
+ "Foster: Am I drinking milk from a saucer? \r" +
35
+ "Foster: Do you see me eating mice? \r" +
36
+ "Foster: [Mac and the man are laughing their heads off now] You stop laughing right meow! (6) \r" +
37
+ "Larry Johnson: [the man stops and swallows hard] Yes sir. \r" +
38
+ "Foster: Meow, (7) I'm gonna have to give you a ticket on this one. No buts meow. (8) It's the law. \r" +
39
+ "Foster: Not so funny meow, (9) is it? \r " +
40
+ "Foster: [Foster gets up to leave, but Mac shakes his hands at him, indicating only nine meows] Meow! (10)"
41
+
42
+ end
@@ -0,0 +1,49 @@
1
+ class TrooperMac
2
+ def initialize
3
+ @name = "Trooper Mac Womack"
4
+ @email = "mac@thredup.com"
5
+ @quotes = QUOTE_LIBRARY
6
+ end
7
+ attr_accessor :name, :email, :quotes
8
+
9
+ QUOTE_LIBRARY = []
10
+ QUOTE_LIBRARY << "Mac: Oh, c'mon, we're like the sons you never had. \r" +
11
+ "Captain O'Hagan: If you were my son, Mac, I would've smothered you by now. \r" +
12
+ "Mac: Smothered me in gravy you big dirty man. "
13
+ QUOTE_LIBRARY << "Foster: Okie silly dilly dokie-o. I'm an idiot. \r" +
14
+ "Mac: That's true."
15
+ QUOTE_LIBRARY << "Captain O'Hagan: I swear to God I'm going to pistol whip the next guy who says, 'Shenanigans.' \r" +
16
+ "Mac: Hey Farva what's the name of that restaurant you like with all the goofy shit on the walls and the mozzarella sticks? \r" +
17
+ "Farva: You mean Shenanigans? \r " +
18
+ "Mac: OOOOOOOOOOOOOO. \r " +
19
+ "Thorny: OOOOOOOOOOOOOO. "
20
+ QUOTE_LIBRARY << "Captain O'Hagan: Bulletproof cup, huh? I invented this gag, Rabbit. Only in my day, the rookie got naked. \r" +
21
+ "[fires through the window, accidentally shooting out the glass] \r" +
22
+ "Captain O'Hagan: And we also used blanks. You're a sick motherfucker, Mac. \r" +
23
+ "Mac: Thanks, Chief!"
24
+ QUOTE_LIBRARY << "[Mac gets shot in the crotch while wearing the steel cup ] \r" +
25
+ "Foster: How you feelin' there, Mac? \r" +
26
+ "Mac: Good enough... to fuck... your mother. "
27
+ QUOTE_LIBRARY << "Mac: ...And that was the second time I got crabs. "
28
+ QUOTE_LIBRARY << "Mac: No, Farva, you are under arrest for being a complete and total f***head. "
29
+ QUOTE_LIBRARY << "Mac: How's your shooting, Thorny? \r" +
30
+ "Thorny: Good. I've been dead on all morning. \r" +
31
+ "Mac: What about that little guy? \r " +
32
+ "[points to a bullet hole in the shooting target's neck] \r " +
33
+ "Thorny: Who, that little guy? I wouldn't worry about that little guy. "
34
+ QUOTE_LIBRARY << "Mac: Your mother should've swallowed you, Rando! "
35
+ QUOTE_LIBRARY << "Mac: But our shenanigans are cheeky and fun! \r" +
36
+ "Thorny: [referring to Farva] Yeah, and his shenanigans are cruel and tragic. \r" +
37
+ "Foster: [after a pause] Which... makes them not really shenanigans at all. \r" +
38
+ "Mac: [in a silly voice] Evil shenanigans! "
39
+ QUOTE_LIBRARY << "Captain O'Hagan: What did you find out at the weigh station? \r" +
40
+ "Mac: My cruiser weighs 16,000 kilograms!"
41
+ QUOTE_LIBRARY << "Captain O'Hagan: Did you guys put in for any transfers yet? \r" +
42
+ "Mac: I applied for a guard job - at the post office. \r" +
43
+ "[collective groan] \r" +
44
+ "Thorny: Hey, you'll finally be able to shoot someone."
45
+ QUOTE_LIBRARY << "[In a silly voice with his eyes crossed] \r" +
46
+ "Mac: Do we look like the two dumbest guys in the world to you?"
47
+ QUOTE_LIBRARY << "Mac: [Chugging maple syrup] Three... two... one... DO EET. Oh go girlfriend."
48
+
49
+ end
@@ -1,3 +1,3 @@
1
1
  module Farva
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Dan DeMeyere
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-21 00:00:00 -07:00
17
+ date: 2011-07-20 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -30,9 +30,14 @@ extra_rdoc_files: []
30
30
  files:
31
31
  - .gitignore
32
32
  - Gemfile
33
+ - Gemfile.lock
33
34
  - Rakefile
34
35
  - farva.gemspec
35
36
  - lib/farva.rb
37
+ - lib/farva/string.rb
38
+ - lib/farva/trooper_farva.rb
39
+ - lib/farva/trooper_foster.rb
40
+ - lib/farva/trooper_mac.rb
36
41
  - lib/farva/version.rb
37
42
  has_rdoc: true
38
43
  homepage: ""
@@ -65,6 +70,6 @@ rubyforge_project: farva
65
70
  rubygems_version: 1.3.7
66
71
  signing_key:
67
72
  specification_version: 3
68
- summary: Generate Office Farva Quotes
73
+ summary: Generate Super Trooper Quotes
69
74
  test_files: []
70
75