poopypants 0.0.1

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/poopypants.rb +34 -0
  2. metadata +46 -0
data/lib/poopypants.rb ADDED
@@ -0,0 +1,34 @@
1
+ ### PROFESSOR POOPYPANTS NAME CHANGE-O-GEM 2000 ###
2
+ class Poopypants
3
+
4
+ def self.run
5
+
6
+ first_firsts = [["A", "Stinky"], ["B", "Lumpy"], ["C", "Buttercup"], ["D", "Gidget"], ["E", "Crusty"], ["F", "Greasy"], ["G", "Fluffy"], ["H", "Cheeseball"], ["I", "Chim-Chim"], ["J", "Poopsie"], ["K", "Flunky"], ["L", "Booger"], ["M", "Pinky"], ["N", "Zippy"], ["O", "Goober"], ["P", "Doofus"], ["Q", "Slimy"], ["R", "Loopy"], ["S", "Snotty"], ["T", "Falafel"], ["U", "Dorky"], ["V", "Squeezit"], ["W", "Oprah"], ["X", "Skipper"], ["Y", "Dinky"], ["Z", "Zsa-Zsa"]]
7
+ first_lasts = [["A", "Diaper"], ["B", "Toilet"], ["C", "Giggle"], ["D", "Bubble"], ["E", "Girdle"], ["F", "Barf"], ["G", "Lizard"], ["H", "Waffle"], ["I", "Cootie"], ["J", "Monkey"], ["K", "Potty"], ["L", "Liver"], ["M", "Banana"], ["N", "Rhino"], ["O", "Burger"], ["P", "Hamster"], ["Q", "Toad"], ["R", "Gizzard"], ["S", "Pizza"], ["T", "Gerbil"], ["U", "Chicken"], ["V", "Pickle"], ["W", "Chuckle"], ["X", "Tofu"], ["Y", "Gorilla"], ["Z", "Stinker"]]
8
+ last_lasts = [["A", "Head"], ["B", "Mouth"], ["C", "Face"], ["D", "Nose"], ["E", "Tush"], ["F", "Breath"], ["G", "Pants"], ["H", "Shorts"], ["I", "Lips"], ["J", "Honker"], ["K", "Butt"], ["L", "Brain"], ["M", "Tushie"], ["N", "Chunks"], ["O", "Hiney"], ["P", "Biscuits"], ["Q", "Toes"], ["R", "Buns"], ["S", "Fanny"], ["T", "Sniffer"], ["U", "Sprinkles"], ["V", "Kisser"], ["W", "Squirt"], ["X", "Humperdinck"], ["Y", "Brains"], ["Z", "Juice"]]
9
+
10
+ first_name = ""
11
+ while first_name == ""
12
+ print "What is your FIRST name? "
13
+ first_name = gets.chomp
14
+ end
15
+
16
+ last_name = ""
17
+ while last_name == ""
18
+ print "What is your LAST name? "
19
+ last_name = gets.chomp
20
+ end
21
+
22
+ first_first = first_name.gsub(/\W+|\d+/, '')[0].chr.capitalize
23
+ first_last = last_name.gsub(/\W+|\d+/, '')[0].chr.capitalize
24
+ last_last = last_name.gsub(/\W+|\d+/, '')[-1].chr.capitalize
25
+
26
+ new_first_first = first_firsts.select{|f| f[0] == first_first}
27
+ new_first_last = first_lasts.select{|f| f[0] == first_last}
28
+ new_last_last = last_lasts.select{|f| f[0] == last_last}
29
+
30
+ puts "According to Professor Poopypants, your new name is #{new_first_first[0][1]} #{new_first_last[0][1]} #{new_last_last[0][1]}."
31
+
32
+ end
33
+
34
+ end
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: poopypants
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Eli Duke
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-31 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: You know you love wacky names, so give it a try! irb> require 'poopypants';
15
+ Poopypants.run
16
+ email: elimduke@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - lib/poopypants.rb
22
+ homepage: http://rubygems.org/gems/poopypants
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.15
43
+ signing_key:
44
+ specification_version: 3
45
+ summary: Professor Poopypants's Name Change-O-Gem 2000
46
+ test_files: []