chucksay 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/bin/chucksay +4 -0
  3. data/lib/chuck.rb +9 -0
  4. data/resources/quotes +110 -0
  5. metadata +61 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d062e25569f09717d72a2462ac8c799ba3e93046
4
+ data.tar.gz: a7b928d0645f1835fa9eff41e48d2e27b73eaa1f
5
+ SHA512:
6
+ metadata.gz: 604b60492d392b4805afd17c7d4f2ace6e6530c4932355595fea565c9205d6eab556fe938d45f7fe79d9e1b8f13e6eb1a72714749f78beb36437853f71266b40
7
+ data.tar.gz: 682e64026e6792af39fe49fdec833f9b4fd8f4f713dcf8468258a62d0758651f93d568918d36bbd026206ade532fc2bb1ef4a82e9456b08edd4190d449b81b8b
data/bin/chucksay ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'chuck'
4
+ puts Chuck.say
data/lib/chuck.rb ADDED
@@ -0,0 +1,9 @@
1
+ class Chuck
2
+ def self.say
3
+ chosen_line = nil
4
+ File.foreach("resources/quotes").each_with_index do |line,number|
5
+ chosen_line = line if rand < 1.0 / (number + 1)
6
+ end
7
+ return chosen_line.delete("\n")
8
+ end
9
+ end
data/resources/quotes ADDED
@@ -0,0 +1,110 @@
1
+ Chuck Norris multiplied by zero still equals Chuck Norris.
2
+ There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
3
+ Chuck Norris does not sleep. He waits.
4
+ Aldexander Graham Bell had three missed calls from Chuck Norris when he invented the telephone.
5
+ Chuck Norris is the reason why Waldo is hiding.
6
+ Chuck Norris can slam a revolving door.
7
+ Chuck Norris isn't lifting himself up when doing a pushup; he's pushing the earth down.
8
+ Chuck Norris' hand is the only hand that can beat a Royal Flush.
9
+ Chuck Norris made a Happy Meal cry.
10
+ Chuck Norris doesn't need Twitter; he's already following you.
11
+ Chuck Norris once won an underwater breathing contest with a fish.While urinating, Chuck Norris is easily capable of welding titanium.
12
+ In an act of great philanthropy, Chuck made a generous donation to the American Cancer Society. He donated 6,000 dead bodies for scientific research.
13
+ Chuck Norris once one a game of connect four in 3 moves.
14
+ Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you.
15
+ Chuck Norris? favourite cut of meat is the roundhouse.
16
+ It is scientifically impossible for Chuck Norris to have had a mortal father. The most popular theory is that he went back in time and fathered himself.
17
+ Chuck Norris had to stop washing his clothes in the ocean. The tsunamis were killing people.
18
+ Pluto is actually an orbiting group of British soldiers from the American Revolution who entered space after the Chuck gave them a roundhouse kick to the face.
19
+ In the Words of Julius Caesar, Veni, Vidi, Vici, Chuck Norris. Translation: I came, I saw, and I was roundhouse-kicked inthe face by Chuck Norris.
20
+ Chuck Norris doesn't look both ways before he crosses the street... he just roundhouses any cars that get too close.
21
+ Human cloning is outlawed because of Chuck Norris, because then it would be possible for a Chuck Norris roundhouse kick to meet another Chuck Norris roundhouse kick. Physicists theorize that this contact would end the universe.
22
+ Using his trademark roundhouse kick, Chuck Norris once made a fieldgoal in RJ Stadium in Tampa Bay from the 50 yard line of Qualcomm stadium in San Diego.
23
+ Chuck Norris played Russian Roulette with a fully loaded gun and won.
24
+ 70% of a human's weight is water. 70% of Chuck Norris' weight is his dick.
25
+ Chuck Norris roundhouse kicks don't really kill people. They wipe out their entire existence from the space-time continuum.
26
+ Chuck Norris' testicles do not produce sperm. They produce tiny white ninjas that recognize only one mission: seek and destroy.
27
+ MacGyver immediately tried to make a bomb out of some Q-Tips and Gatorade, but Chuck Norris roundhouse-kicked him in the solar plexus. MacGyver promptly threw up his own heart.
28
+ Not everyone that Chuck Norris is mad at gets killed. Some get away. They are called astronauts.
29
+ Chuck Norris can drink an entire gallon of milk in thirty-seven seconds.
30
+ If you spell Chuck Norris in Scrabble, you win. Forever.
31
+ When you say no one's perfect, Chuck Norris takes this as a personal insult.
32
+ Chuck Norris invented Kentucky Fried Chicken's famous secret recipe with eleven herbs and spices. Nobody ever mentions the twelfth ingredient: Fear.
33
+ Chuck Norris can skeletize a cow in two minutes.
34
+ Chuck Norris eats lightning and shits out thunder.
35
+ In a fight between Batman and Darth Vader, the winner would be Chuck Norris.
36
+ The phrase 'dead ringer' refers to someone who sits behind Chuck Norris in a movie theater and forgets to turn their cell phone off.
37
+ It is said that looking into Chuck Norris' eyes will reveal your future. Unfortunately, everybody's future is always the same: death by a roundhouse-kick to the face.
38
+ Wo hu cang long. The translation from Mandarin Chinese reads: Crouching Chuck, Hidden Norris
39
+ Chuck Norris's log statements are always at the FATAL level.
40
+ Chuck Norris can win in a game of Russian roulette with a fully loaded gun.
41
+ Nothing can escape the gravity of a black hole, except for Chuck Norris. Chuck Norris eats black holes. They taste like chicken.
42
+ There is no theory of evolution, just a list of creatures Chuck Norris allows to live.
43
+ Chuck Norris invented the bolt-action rifle, liquor, sexual intercourse, and football-- in that order.
44
+ A study showed the leading causes of death in the United States are: 1. Heart disease, 2. Chuck Norris, 3. Cancer
45
+ Everybody loves Raymond. Except Chuck Norris.
46
+ Noah was the only man notified before Chuck Norris relieved himself in the Atlantic Ocean.
47
+ In a tagteam match, Chuck Norris was teamed with Hulk Hogan against King Kong Bundy and Andre The Giant. He pinned all 3 at the same time.
48
+ Nobody doesn't like Sara Lee. Except Chuck Norris.
49
+ Chuck Norris never has to wax his skis because they're always slick with blood.
50
+ Chuck Norris ordered a Big Mac at Burger King, and got one.
51
+ Chuck Norris owns a chain of fast-food restaurants throughout the southwest. They serve nothing but barbecue-flavored ice cream and Hot Pockets.
52
+ Chuck Norris's database has only one table, 'Kick', which he DROPs frequently.
53
+ Chuck Norris built a time machine and went back in time to stop the JFK assassination. As Oswald shot, Chuck met all three bullets with his beard, deflecting them. JFK's head exploded out of sheer amazement.
54
+ Chuck Norris can write infinite recursion functions, and have them return.
55
+ When Chuck Norris does division, there are no remainders.
56
+ We live in an expanding universe. All of it is trying to get away from Chuck Norris.
57
+ Chuck Norris cannot love, he can only not kill.
58
+ Chuck Norris knows the value of NULL, and he can sort by it too.
59
+ There is no such thing as global warming. Chuck Norris was cold, so he turned the sun up.
60
+ The best-laid plans of mice and men often go awry. Even the worst-laid plans of Chuck Norris come off without a hitch.
61
+ When Chuck Norris goes to donate blood, he declines the syringe, and instead requests a hand gun and a bucket.
62
+ Chuck Norris can solve the Towers of Hanoi in one move.
63
+ All roads lead to Chuck Norris. And by the transitive property, a roundhouse kick to the face.
64
+ If you were somehow able to land a punch on Chuck Norris your entire arm would shatter upon impact. This is only in theory, since, come on, who in their right mind would try this?
65
+ One time, at band camp, Chuck Norris ate a percussionist.
66
+ Product Owners never argue with Chuck Norris after he demonstrates the DropKick feature.
67
+ Chuck Norris can read from an input stream.
68
+ The original draft of The Lord of the Rings featured Chuck Norris instead of Frodo Baggins. It was only 5 pages long, as Chuck roundhouse-kicked Sauron?s ass halfway through the first chapter.
69
+ If, by some incredible space-time paradox, Chuck Norris would ever fight himself, he'd win. Period.
70
+ When taking the SAT, write Chuck Norris for every answer. You will score over 8000.
71
+ When in a bar, you can order a drink called a Chuck Norris. It is also known as a Bloody Mary, if your name happens to be Mary.
72
+ Chuck Norris causes the Windows Blue Screen of Death.
73
+ Chuck Norris went out of an infinite loop.
74
+ When Bruce Banner gets mad, he turns into the Hulk. When the Hulk gets mad, he turns into Chuck Norris.
75
+ Chuck Norris insists on strongly-typed programming languages.
76
+ Chuck Norris can blow bubbles with beef jerky.
77
+ Chuck Norris is widely predicted to be first black president. If you're thinking to yourself, But Chuck Norris isn't black, then you are dead wrong. And stop being a racist.
78
+ Chuck Norris once went skydiving, but promised never to do it again. One Grand Canyon is enough.
79
+ Godzilla is a Japanese rendition of Chuck Norris' first visit to Tokyo.
80
+ Chuck Norris has the greatest Poker-Face of all time. He won the 1983 World Series of Poker, despite holding only a Joker, a Get out of Jail Free Monopoloy card, a 2 of clubs, 7 of spades and a green #4 card from the game UNO.
81
+ Teenage Mutant Ninja Turtles is based on a true story: Chuck Norris once swallowed a turtle whole, and when he crapped it out, the turtle was six feet tall and had learned karate.
82
+ If you try to kill -9 Chuck Norris's programs, it backfires.
83
+ Chuck Norris' Penis is a third degree blackbelt, and an honorable 32nd-degree mason.
84
+ In ancient China there is a legend that one day a child will be born from a dragon, grow to be a man, and vanquish evil from the land. That man is not Chuck Norris, because Chuck Norris killed that man.
85
+ Chuck Norris can dereference NULL.
86
+ When Chuck Norris was born, he immediately had sex with the first nurse he saw. He was her first. She was his third. That afternoon.
87
+ All arrays Chuck Norris declares are of infinite size, because Chuck Norris knows no bounds.
88
+ The pen is mighter than the sword, but only if the pen is held by Chuck Norris.
89
+ Chuck Norris doesn't step on toes. Chuck Norris steps on necks.
90
+ The truth will set you free. Unless Chuck Norris has you, in which case, forget it buddy!
91
+ Simply by pulling on both ends, Chuck Norris can stretch diamonds back into coal.
92
+ Chuck Norris does not style his hair. It lays perfectly in place out of sheer terror.
93
+ Chuck Norris once participated in the running of the bulls. He walked.
94
+ Never look a gift Chuck Norris in the mouth, because he will bite your damn eyes off.
95
+ If you Google search Chuck Norris getting his ass kicked you will generate zero results. It just doesn't happen.
96
+ Chuck Norris can unit test entire applications with a single assert.
97
+ On his birthday, Chuck Norris randomly selects one lucky child to be thrown into the sun.
98
+ Little known medical fact: Chuck Norris invented the Caesarean section when he roundhouse-kicked his way out of his monther's womb.
99
+ No one has ever spoken during review of Chuck Norris' code and lived to tell about it.
100
+ The First rule of Chuck Norris is: you do not talk about Chuck Norris.
101
+ Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse kick you in the face.
102
+ Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
103
+ When Chuck Norris has sex with a man, it won't be because he is gay. It will be because he has run out of women.
104
+ The phrase 'balls to the wall' was originally conceived to describe Chuck Norris entering any building smaller than an aircraft hangar.
105
+ Someone once tried to tell Chuck Norris that roundhouse kicks aren't the best way to kick someone. This has been recorded by historians as the worst mistake anyone has ever made.
106
+ Along with his black belt, Chuck Norris often chooses to wear brown shoes. No one has DARED call him on it. Ever.
107
+ Whiteboards are white because Chuck Norris scared them that way.
108
+ Chuck Norris drives an ice cream truck covered in human skulls.
109
+ There is in fact an 'I' in Norris, but there is no 'team'. Not even close.
110
+ Every time Chuck Norris smiles, someone dies. Unless he smiles while he's roundhouse kicking someone in the face. Then two people die.
metadata ADDED
@@ -0,0 +1,61 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: chucksay
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Kel Cecil
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 2.14.1
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 2.14.1
27
+ description: Ever needed a Chuck Norris joke to lighten up that dashboard?
28
+ email: kelcecil@praisechaos.com
29
+ executables:
30
+ - chucksay
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - lib/chuck.rb
35
+ - resources/quotes
36
+ - bin/chucksay
37
+ homepage: https://github.com/kelcecil/chucksay
38
+ licenses:
39
+ - GPL v2
40
+ metadata: {}
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - '>='
48
+ - !ruby/object:Gem::Version
49
+ version: '0'
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubyforge_project:
57
+ rubygems_version: 2.0.7
58
+ signing_key:
59
+ specification_version: 4
60
+ summary: A gem to randomly provide Chuck Norris jokes.
61
+ test_files: []