rack-chuck 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 71a99f2f4249e7b0ac70726d905ac733505db1c1
4
+ data.tar.gz: 4e0ff76edbf17fe10bdae920d19adc0f8e82f3f8
5
+ SHA512:
6
+ metadata.gz: 00629d2d3802844a0a4a28888d84fe24a788109dbc15252d014f0a68845860f0fddedcb2f9ef9bd1641c23fd2c586d224f2b469c873ef185c9ee4048900f6f02
7
+ data.tar.gz: f81bd74105d2ea26a2b8cccf647d8fcdcdd95669cda6287e8508bbcf3f2974e7b53edd8199da85696634be7dc5de2ddbf484ae1b2516fc35d86b9a9638b185a3
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ --format documentation
@@ -0,0 +1,4 @@
1
+ rvm:
2
+ - 1.9.3
3
+ script:
4
+ - rspec
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Henrik Paulini, Ben Rexin, Matthias Bauer, Waldemar Gribele, Stefan Rohde
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # Rack::Chuck [![Build Status](https://secure.travis-ci.org/delicious-development/rack-chuck.png?branch=master)](http://travis-ci.org/delicious-development/rack-chuck) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/delicious-development/rack-chuck)
2
+
3
+
4
+ The Rack Chuck middleware adds chuck norris facts in the headers of your rack-based web application.
5
+
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'rack-chuck', github: 'delicious-development/rack-chuck'
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ ## Usage
18
+
19
+ In config/application.rb add:
20
+
21
+ config.middleware.use Rack::Chuck
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1,3 @@
1
+ require 'rack'
2
+ require "rack/chuck"
3
+
@@ -0,0 +1,25 @@
1
+ require 'rack'
2
+
3
+ class Rack::Chuck
4
+ attr_reader :app
5
+
6
+ def initialize(app)
7
+ @app = app
8
+ end
9
+
10
+ def facts
11
+ @@chuck ||= IO.read(File.expand_path('../chuck/facts.txt',__FILE__)).split(/\s*\n%\n\s*/)
12
+ end
13
+
14
+ def fact
15
+ facts[rand(facts.length)].split(/\n/).join(' -- ')
16
+ rescue
17
+ end
18
+
19
+ def call(env)
20
+ status, headers, response = app.call(env)
21
+ headers["X-Chuck-Norris"] = fact unless facts.empty?
22
+
23
+ [status, headers, response]
24
+ end
25
+ end
@@ -0,0 +1,598 @@
1
+ Chuck Norris' tears cure cancer. Too bad he has never cried. Ever.
2
+ %
3
+ Chuck Norris does not sleep. He waits.
4
+ %
5
+ Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
6
+ %
7
+ The chief export of Chuck Norris is pain.
8
+ %
9
+ If you can see Chuck Norris, he can see you. If you can't see Chuck Norris, you may be only seconds away from death.
10
+ %
11
+ Chuck Norris has counted to infinity. Twice.
12
+ %
13
+ Chuck Norris does not hunt because the word hunting implies the probability of failure. Chuck Norris goes killing.
14
+ %
15
+ Chuck Norris' blood type is AK+. Ass-Kicking Positive. It is compatible only with heavy construction equipment, tanks, and fighter jets.
16
+ %
17
+ In fine print on the last page of the Guinness Book of World Records it notes that all world records are held by Chuck Norris, and those listed in the book are simply the closest anyone else has ever gotten.
18
+ %
19
+ There is no chin behind Chuck Norris' beard. There is only another fist.
20
+ %
21
+ 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.
22
+ %
23
+ When Chuck Norris goes to donate blood, he declines the syringe, and instead requests a hand gun and a bucket.
24
+ %
25
+ There are no steroids in baseball. Just players Chuck Norris has breathed on.
26
+ %
27
+ Chuck Norris once challenged Lance Armstrong in a "Who has more testicles?" contest. Chuck Norris won by 5.
28
+ %
29
+ Chuck Norris sheds his skin twice a year.
30
+ %
31
+ When Chuck Norris calls 1-900 numbers, he doesnt get charged. He holds up the phone and money falls out.
32
+ %
33
+ When Chuck Norris falls in water, Chuck Norris doesn't get wet. Water gets Chuck Norris.
34
+ %
35
+ Scientists have estimated that the energy given off during the Big Bang is roughly equal to 1CNRhK (Chuck Norris Roundhouse Kick)
36
+ %
37
+ Chuck Norris' house has no doors, only walls that he walks through.
38
+ %
39
+ How much wood would a woodchuck chuck if a woodchuck could Chuck Norris? - All of it.
40
+ %
41
+ Chuck Norris doesn't actually write books, the words assemble themselves out of fear.
42
+ %
43
+ In honor of Chuck Norris, all McDonald's in Texas have an even larger size than the super-size. When ordering, just ask to be "Norrisized".
44
+ %
45
+ Chuck Norris CAN believe it's not butter.
46
+ %
47
+ If tapped, a Chuck Norris roundhouse kick could power the country of Australia for 44 minutes.
48
+ %
49
+ Chuck Norris can divide by zero.
50
+ %
51
+ Newton's Third Law is wrong: Although it states that for each action, there is an equal and opposite reaction, there is no force equal in reaction to a Chuck Norris roundhouse kick.
52
+ %
53
+ Chuck Norris invented his own type of karate. It's called Chuck-Will-Kill.
54
+ %
55
+ When an episode of Walker Texas Ranger was aired in France, the French surrendered to Chuck Norris just to be on the safe side.
56
+ %
57
+ Chuck Norris once sued the Houghton-Mifflin textbook company when it became apparent that their account of the war of 1812 was plagiarized from his autobiography.
58
+ %
59
+ When Chuck Norris talks, everybody listens. And dies.
60
+ %
61
+ When Steven Seagal kills a ninja, he only takes its hide. When Chuck Norris kills a ninja, he uses every part.
62
+ %
63
+ Wilt Chamberlain claims to have slept with more than 20,000 women in his lifetime. Chuck Norris calls this "a slow Tuesday."
64
+ %
65
+ Contrary to popular belief, there is indeed enough Chuck Norris to go around.
66
+ %
67
+ Chuck Norris doesnt shave; he kicks himself in the face. The only thing that can cut Chuck Norris is Chuck Norris.
68
+ %
69
+ Chuck Norris always knows the EXACT location of Carmen SanDiego.
70
+ %
71
+ When taking the SAT, write "Chuck Norris" for every answer. You will score over 9000.
72
+ %
73
+ When you're Chuck Norris, anything + anything is equal to 1. One roundhouse kick to the face.
74
+ %
75
+ 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.
76
+ %
77
+ On his birthday, Chuck Norris randomly selects one lucky child to be thrown into the sun.
78
+ %
79
+ Chuck Norris doesn't throw up if he drinks too much. Chuck Norris throws down!
80
+ %
81
+ In the beginning there was nothing...then Chuck Norris Roundhouse kicked that nothing in the face and said "Get a job". That is the story of the universe.
82
+ %
83
+ Chuck Norris has 12 moons. One of those moons is the Earth.
84
+ %
85
+ Chuck Norris grinds his coffee with his teeth and boils the water with his own rage.
86
+ %
87
+ Archeologists unearthed an old english dictionary dating back to the year 1236. It defined "victim" as "one who has encountered Chuck Norris"
88
+ %
89
+ Chuck Norris ordered a Big Mac at Burger King, and got one.
90
+ %
91
+ Chuck Norris doesn't bowl strikes, he just knocks down one pin and the other nine faint.
92
+ %
93
+ The show Survivor had the original premise of putting people on an island with Chuck Norris. There were no survivors, and nobody is brave enough to go to the island to retrieve the footage.
94
+ %
95
+ It takes Chuck Norris 20 minutes to watch 60 Minutes.
96
+ %
97
+ Chuck Norris has a deep and abiding respect for human life... unless it gets in his way.
98
+ %
99
+ The Bermuda Triangle used to be the Bermuda Square, until Chuck Norris Roundhouse kicked one of the corners off.
100
+ %
101
+ There are no weapons of mass destruction in Iraq, Chuck Norris lives in Oklahoma.
102
+ %
103
+ When Chuck Norris is in a crowded area, he doesn't walk around people. He walks through them.
104
+ %
105
+ Chuck Norris once ate an entire bottle of sleeping pills. They made him blink.
106
+ %
107
+ James Cameron wanted Chuck Norris to play the Terminator. However, upon reflection, he realized that would have turned his movie into a documentary, so he went with Arnold Schwarzenegger.
108
+ %
109
+ Chuck Norris can touch MC Hammer.
110
+ %
111
+ Thousands of years ago Chuck Norris came across a bear. It was so terrified that it fled north into the arctic. It was also so terrified that all of its decendents now have white hair.
112
+ %
113
+ Chuck Norris played Russian Roulette with a fully loaded gun and won.
114
+ %
115
+ It takes 14 puppeteers to make Chuck Norris smile, but only 2 to make him destroy an orphanage.
116
+ %
117
+ Some people wear Superman pajamas. Superman wears Chuck Norris pajamas.
118
+ %
119
+ Chuck Norris once worked as a weatherman for the San Diego evening news. Every night he would make the same forecast: Partly cloudy with a 75% chance of Pain.
120
+ %
121
+ Simply by pulling on both ends, Chuck Norris can stretch diamonds back into coal.
122
+ %
123
+ When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
124
+ %
125
+ Chuck Norris keeps his friends close and his enemies closer. Close enough to drop them with one round house kick to the face.
126
+ %
127
+ There is in fact an "I" in Norris, but there is no "team" -- not even close.
128
+ %
129
+ Scotty in Star Trek often says "Ye cannae change the laws of physics." This is untrue. Chuck Norris can change the laws of physics. With his fists.
130
+ %
131
+ An anagram for Walker Texas Ranger is KARATE WRANGLER SEX. I don't know what that is, but it sounds AWESOME.
132
+ %
133
+ Chuck Norris doesn't stub his toes. He accidentally destroys chairs, bedframes, and sidewalks.
134
+ %
135
+ Chuck Norris roundhouse kicks don't really kill people. They wipe out their entire existence from the space-time continuum.
136
+ %
137
+ Chuck Norris does not own a stove, oven, or microwave, because revenge is a dish best served cold.
138
+ %
139
+ Tom Clancy has to pay royalties to Chuck Norris because "The Sum of All Fears" is the name of Chuck Norris' autobiography.
140
+ %
141
+ Chuck Norris can slam a revolving door.
142
+ %
143
+ Chuck Norris built a better mousetrap, but the world was too frightened to beat a path to his door.
144
+ %
145
+ 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.
146
+ %
147
+ Hellen Keller's favorite color is Chuck Norris.
148
+ %
149
+ If, by some incredible space-time paradox, Chuck Norris would ever fight himself, he'd win. Period.
150
+ %
151
+ Chuck Norris is currently suing myspace for taking the name of what he calls everything around you.
152
+ %
153
+ The crossing lights in Chuck Norris's home town say "die slowly" and "die quickly". They each have a picture of Chuck Norris punching or kicking a pedestrian.
154
+ %
155
+ The Sherman tank was originaly called the Norris tank until Chuck Norris decided it wasn't tough enough to be associated with him. The Army, for fear of Chuck Norris, renamed the tank and promised to develop a weapon more fitting of his name. To date, no weapon created has been badass enough to be named after Chuck Norris.
156
+ %
157
+ Chuck Norris proved that we are alone in the universe. We weren't before his first space expedition.
158
+ %
159
+ Superman once watched an episode of Walker, Texas Ranger. He then cried himself to sleep.
160
+ %
161
+ Chuck Norris doesn't step on toes. Chuck Norris steps on necks.
162
+ %
163
+ The movie "Delta Force" was extremely hard to make because Chuck had to downplay his abilities. The first few cuts were completely unbelievable.
164
+ %
165
+ Movie trivia: The movie "Invasion U.S.A." is, in fact, a documentary.
166
+ %
167
+ Chuck Norris does not "style" his hair. It lays perfectly in place out of sheer terror.
168
+ %
169
+ There is no such thing as global warming. Chuck Norris was cold, so he turned the sun up.
170
+ %
171
+ Chuck Norris did in fact, build Rome in a day.
172
+ %
173
+ Along with his black belt, Chuck Norris often chooses to wear brown shoes. No one has DARED call him on it. Ever.
174
+ %
175
+ Once you go Norris, you are physically unable to go back.
176
+ %
177
+ Chuck Norris once sued Burger King after they refused to put razor wire in his Whopper Jr, insisting that that actually is "his" way.
178
+ %
179
+ The last thing you hear before Chuck Norris gives you a roundhouse kick? No one knows because dead men tell no tales.
180
+ %
181
+ Chuck Norris is the only person in the world that can actually email a roundhouse kick.
182
+ %
183
+ Chuck Norris won super bowls VII and VIII singlehandedly before unexpectedly retiring to pursue a career in ass-kicking.
184
+ %
185
+ Chuck Norris can set ants on fire with a magnifying glass. At night.
186
+ %
187
+ Some kids play Kick the can. Chuck Norris played Kick the keg.
188
+ %
189
+ 'Icy-Hot' is too weak for Chuck Norris. After a workout, Chuck Norris rubs his muscles down with liquid-hot MAGMA.
190
+ %
191
+ Chuck Norris cannot love, he can only not kill.
192
+ %
193
+ According to Einstein's theory of relativity, Chuck Norris can actually roundhouse kick you yesterday.
194
+ %
195
+ Chuck Norris once pulled out a single hair from his beard and skewered three men through the heart with it.
196
+ %
197
+ Chuck Norris' favourite cut of meat is the roundhouse.
198
+ %
199
+ Chuck Norris recently had the idea to sell his urine as a canned beverage. We know this beverage as Red Bull.
200
+ %
201
+ Chuck Norris invented a language that incorporates karate and roundhouse kicks. So next time Chuck Norris is kicking your ass, don't be offended or hurt, he may be just trying to tell you he likes your hat.
202
+ %
203
+ If at first you don't succeed, you're not Chuck Norris.
204
+ %
205
+ If Chuck Norris were a calendar, every month would be named Chucktober, and every day he'd kick your ass.
206
+ %
207
+ Chuck Norris's show is called Walker: Texas Ranger, because Chuck Norris doesn't run.
208
+ %
209
+ MacGyver can build an airplane out of gum and paper clips, but Chuck Norris can roundhouse-kick his head through a wall and take it.
210
+ %
211
+ Behind every successful man, there is a woman. Behind every dead man, there is Chuck Norris.
212
+ %
213
+ What's known as the UFC, or Ultimate Fighting Championship, doesn't use its full name, which happens to be "Ultimate Fighting Championship, Non-Chuck-Norris-Division".
214
+ %
215
+ Chuck Norris brushes his teeth with a mixture of iron shavings, industrial paint remover, and wood-grain alcohol.
216
+ %
217
+ Most boots are made for walkin'. Chuck Norris' boots ain't that merciful.
218
+ %
219
+ When the movie Pulp Fiction was filmed they had to borrow Chuck Norris's wallet... It's the one that says "Bad Mother Fucker" on it
220
+ %
221
+ Chuck Norris began selling the Total Gym as an ill-fated attempt to make his day-to-day opponents less laughably pathetic.
222
+ %
223
+ Do you know why Baskin Robbins only has 31 flavors? Because Chuck Norris doesn't like Fudge Ripple.
224
+ %
225
+ When Chuck Norris says "More cowbell", he fucking MEANS it.
226
+ %
227
+ Chuck Norris was what Willis was talkin' about.
228
+ %
229
+ Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you.
230
+ %
231
+ Chuck Norris can lead a horse to water AND make it drink.
232
+ %
233
+ 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.
234
+ %
235
+ Chuck Norris destroyed the periodic table, because Chuck Norris only recognizes the element of surprise.
236
+ %
237
+ It is believed dinosaurs are extinct due to a giant meteor. That's true if you want to call Chuck Norris a giant meteor.
238
+ %
239
+ Chuck Norris shot the sheriff, but he round house kicked the deputy.
240
+ %
241
+ That's not Chuck Norris doing push-ups -- that's Chuck Norris moving the Earth away from the path of a deadly asteroid.
242
+ %
243
+ Chuck Norris can judge a book by its cover.
244
+ %
245
+ Chuck Norris does not play the lottery. It doesn't have nearly enough balls.
246
+ %
247
+ Q: How many Chuck Norris' does it take to change a light bulb?
248
+ A: None, Chuck Norris prefers to kill in the dark.
249
+ %
250
+ As President Roosevelt said: "We have nothing to fear but fear itself. And Chuck Norris."
251
+ %
252
+ Chuck Norris just says "no" to drugs. If he said "yes", it would collapse Colombia's infrastructure.
253
+ %
254
+ Chuck Norris does not own a house. He walks into random houses and people move.
255
+ %
256
+ It is better to give than to receive. This is especially true of a Chuck Norris roundhouse kick.
257
+ %
258
+ Chuck Norris is the only person to ever win a staring contest against Ray Charles and Stevie Wonder at the same time.
259
+ %
260
+ Industrial logging isn't the cause of deforestation. Chuck Norris needs toothpicks.
261
+ %
262
+ Chuck Norris smells what the Rock is cooking... because the Rock is Chuck Norris' personal chef.
263
+ %
264
+ Chuck Norris is the reason why Waldo is hiding.
265
+ %
266
+ Chuck Norris does not eat. Food understands that the only safe haven from Chuck Norris' fists is inside his own body.
267
+ %
268
+ 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.
269
+ %
270
+ Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
271
+ %
272
+ Chuck Norris uses a night light. Not because Chuck Norris is afraid of the dark, but the dark is afraid of Chuck Norris.
273
+ %
274
+ Chuck Norris is not capable of hitting a target on the broad side of a barn. Every time he tries, the whole damn barn falls down.
275
+ %
276
+ Before each filming of Walker: Texas Ranger, Chuck Norris is injected with fourteen times the lethal dose of elephant tranquilzer. This is, of course, to limit his strength and mobility, in an attempt to lower the fatality rate of the actors he fights.
277
+ %
278
+ When Bruce Banner gets mad, he turns into the Hulk. When the Hulk gets mad, he turns into Chuck Norris.
279
+ %
280
+ Chuck Norris once kicked a horse in the chin. Its decendants are known today as Giraffes.
281
+ %
282
+ Sticks and stones may break your bones, but a Chuck Norris glare will liquefy your kidneys.
283
+ %
284
+ Chuck Norris once went skydiving, but promised never to do it again. One Grand Canyon is enough.
285
+ %
286
+ Chuck Norris's version of a "chocolate milkshake" is a raw porterhouse wrapped around ten Hershey bars, and doused in diesel fuel.
287
+ %
288
+ If Chuck Norris round-house kicks you, you will die. If Chuck Norris' misses you with the round-house kick, the wind behind the kick will tear out your pancreas.
289
+ %
290
+ In a fight between Batman and Darth Vader, the winner would be Chuck Norris.
291
+ %
292
+ Everybody loves Raymond. Except Chuck Norris.
293
+ %
294
+ Contrary to popular belief, the Titanic didn't hit an iceberg. The ship was off course and accidentally ran into Chuck Norris while he was doing the backstroke across the Atlantic.
295
+ %
296
+ Chuck Norris got his drivers license at the age of 16. Seconds.
297
+ %
298
+ The original title for Alien vs. Predator was Alien and Predator vs Chuck Norris. The film was cancelled shortly after going into preproduction. No one would pay nine dollars to see a movie fourteen seconds long.
299
+ %
300
+ Chuck Norris can win at solitaire with only 18 cards.
301
+ %
302
+ The truth will set you free. Unless Chuck Norris has you, in which case, forget it buddy!
303
+ %
304
+ Kryptonite has been found to contain trace elements of Chuck Norris roundhouse kicks to the face. This is why it is so deadly to Superman.
305
+ %
306
+ Saddam Hussein was not found hiding in a "hole." Saddam was roundhouse-kicked in the head by Chuck Norris in Kansas, which sent him through the earth, stopping just short of the surface of Iraq.
307
+ %
308
+ Chuck Norris doesn't look both ways before he crosses the street... he just roundhouses any cars that get too close.
309
+ %
310
+ Chuck Norris does not have to answer the phone. His beard picks up the incoming electrical impulses and translates them into audible sound.
311
+ %
312
+ How many roundhouse kicks does it take to get to the center of a tootsie pop? Just one. From Chuck Norris.
313
+ %
314
+ Chuck Norris doesnt wear a watch, HE decides what time it is.
315
+ %
316
+ The phrase 'break a leg' was originally coined by Chuck Norris's co-stars in Walker, Texas Ranger as a good luck charm, indicating that a broken leg might be the worst extent of their injuries. This never proved to be the case.
317
+ %
318
+ When chuck Norris does division, there are no remainders.
319
+ %
320
+ If you rearrange the letters in "Chuck Norris", they also spell "Crush Rock In". The words "with his fists" are understood.
321
+ %
322
+ Never look a gift Chuck Norris in the mouth, because he will bite your damn eyes off.
323
+ %
324
+ The original title for Star Wars was "Skywalker: Texas Ranger". Starring Chuck Norris.
325
+ %
326
+ Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye.
327
+ %
328
+ Ozzy Osbourne bites the heads off of bats. Chuck Norris bites the heads off of Siberian Tigers.
329
+ %
330
+ He who lives by the sword, dies by the sword. He who lives by Chuck Norris, dies by the roundhouse kick.
331
+ %
332
+ The best-laid plans of mice and men often go awry. Even the worst-laid plans of Chuck Norris come off without a hitch.
333
+ %
334
+ The phrase 'dead ringer' refers to someone who sits behind Chuck Norris in a movie theater and forgets to turn their cell phone off.
335
+ %
336
+ Chuck Norris' Roundhouse kick is so powerful, that on the set of Sidekicks he single-footedly destroyed Jonathan Brandis' Career.
337
+ %
338
+ Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindess, and possibly foot sized bruises on the face.
339
+ %
340
+ Chuck Norris can taste lies.
341
+ %
342
+ Chuck Norris does not kick ass and take names. In fact, Chuck Norris kicks ass and assigns the corpse a number. It is currently recorded to be in the billions.
343
+ %
344
+ One time, Chuck Norris accidentally stubbed his toe. It destroyed the entire state of Ohio.
345
+ %
346
+ Chuck Norris can blow bubbles with beef jerky.
347
+ %
348
+ Chuck Norris does, in fact, live in a round house.
349
+ %
350
+ Chuck Norris was once on Jeopardy. This show is notable in that it was the first occasion in Jeopardy history that Alex Trebek had appeared without a mustache. And a head.
351
+ %
352
+ Chuck Norris can skeletize a cow in two minutes.
353
+ %
354
+ Chuck Norris' first job was as a paperboy. There were no survivors.
355
+ %
356
+ With the rising cost of gasoline, Chuck Norris is beginning to worry about his drinking habit.
357
+ %
358
+ The square root of Chuck Norris is pain. Do not try to square Chuck Norris, the result is death.
359
+ %
360
+ To be or not to be? That is the question. The answer? Chuck Norris.
361
+ %
362
+ Chuck Norris has never been in a fight, ever. Do you call one roundhouse kick to the face a fight?
363
+ %
364
+ Jean-Claude Van Damme once kicked Chuck Norris' ass. He was then awakened from his dream by a roundhouse kick to the face.
365
+ %
366
+ Chuck Norris uses 8'x10' sheets of plywood as toilet paper.
367
+ %
368
+ Noah was the only man notified before Chuck Norris relieved himself in the Atlantic Ocean.
369
+ %
370
+ Chuck Norris eats steak for every single meal. Most times he forgets to kill the cow.
371
+ %
372
+ The First Law of Thermodynamics states that energy can neither be created nor destroyed... unless it meets Chuck Norris.
373
+ %
374
+ Chuck Norris doesn't go on the internet, he has every internet site stored in his memory. He refreshes webpages by blinking.
375
+ %
376
+ Chuck Norris knows everything there is to know - Except for the definition of mercy.
377
+ %
378
+ Scientifically speaking, it is impossible to charge Chuck Norris with "obstruction of justice." This is because even Chuck Norris cannot be in two places at the same time.
379
+ %
380
+ When you say "no one's perfect", Chuck Norris takes this as a personal insult.
381
+ %
382
+ Chuck Norris can win a game of Trivial Pursuit with one roll of the dice, and without answering a single question... just a nod of the head, and a stroke of the beard.
383
+ %
384
+ 182,000 Americans die from Chuck Norris-related accidents every year.
385
+ %
386
+ Paper beats rock, rock beats scissors, and scissors beats paper, but Chuck Norris beats all 3 at the same time.
387
+ %
388
+ All roads lead to Chuck Norris. And by the transitive property, a roundhouse kick to the face.
389
+ %
390
+ If you're driving down the road and you think Chuck Norris just cut you off, you better thank your lucky stars it wasn't the other way around.
391
+ %
392
+ July 4th is Independence day. And the day Chuck Norris was born. Coincidence? i think not.
393
+ %
394
+ Chuck Norris never goes to the dentist because his teeth are unbreakable. His enemies never go to the dentist because they have no teeth.
395
+ %
396
+ In the medical community, death is referred to as "Chuck Norris Disease"
397
+ %
398
+ Chuck Norris was once in a knife fight, and the knife lost.
399
+ %
400
+ If you work in an office with Chuck Norris, don't ask him for his three-hole-punch.
401
+ %
402
+ The First rule of Chuck Norris is: you do not talk about Chuck Norris.
403
+ %
404
+ When Chuck Norris plays Monopoly, it affects the actual world economy.
405
+ %
406
+ Chuck Norris drinks napalm to quell his heartburn.
407
+ %
408
+ As an infant, Chuck Norris' parents gave him a toy hammer. He gave the world Stonehenge.
409
+ %
410
+ Chuck Norris once ordered a steak in a restaurant. The steak did what it was told.
411
+ %
412
+ Most people fear the Reaper. Chuck Norris considers him "a promising Rookie".
413
+ %
414
+ There are only two things that can cut diamonds: other diamonds, and Chuck Norris.
415
+ %
416
+ President Roosevelt once rode his horse 100 miles. Chuck Norris carried his the same distance in half the time.
417
+ %
418
+ Chuck Norris once ate four 30lb bowling balls without chewing.
419
+ %
420
+ Chuck Norris was banned from competitive bullriding after a 1992 exhibition in San Antonio, when he rode the bull 1,346 miles from Texas to Milwaukee Wisconsin to pick up his dry cleaning.
421
+ %
422
+ Chuck Norris qualified with a top speed of 324 mph at the Daytona 500, without a car.
423
+ %
424
+ Chuck Norris likes his coffee half and half: half coffee grounds, half wood-grain alcohol.
425
+ %
426
+ Chuck Norris uses tabasco sauce instead of visine.
427
+ %
428
+ The chemical formula for the highly toxic cyanide ion is CN-. These are also Chuck Norris' initials. This is not a coincidence.
429
+ %
430
+ Chuck Norris' credit cards have no limit. Last weekend, he maxed them out.
431
+ %
432
+ Chuck Norris sleeps with a pillow under his gun.
433
+ %
434
+ Chuck Norris owns a chain of fast-food restaurants throughout the southwest. They serve nothing but barbecue-flavored ice cream and Hot Pockets.
435
+ %
436
+ Chuck Norris doesn't chew gum. Chuck Norris chews tin foil.
437
+ %
438
+ Aliens DO indeed exist. They just know better than to visit a planet that Chuck Norris is on.
439
+ %
440
+ There's an order to the universe: space, time, Chuck Norris.... Just kidding, Chuck Norris is first.
441
+ %
442
+ 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.
443
+ %
444
+ Chuck Norris is the only person who can simultaneously hold and fire FIVE Uzis: One in each hand, one in each foot -- and the 5th one he roundhouse-kicks into the air, so that it sprays bullets.
445
+ %
446
+ For undercover police work, Chuck Norris pins his badge underneath his shirt, directly into his chest.
447
+ %
448
+ In the X-Men movies, none of the X-Men super-powers are done with special effects. Chuck Norris is the stuntman for every character.
449
+ %
450
+ We live in an expanding universe. All of it is trying to get away from Chuck Norris.
451
+ %
452
+ The word 'Kill' was invented by Chuck Norris. Other words were 'Die', 'Beer', and 'What'.
453
+ %
454
+ Chuck Norris is a vegetarian. Meaning, he does not eat animals until first he puts them into vegetative state with his fists.
455
+ %
456
+ Who let the dogs out? Chuck Norris let the dogs out... and then roundhouse kicked them through an Oldsmobile.
457
+ %
458
+ Chuck Norris can do a roundhouse kick faster than the speed of light. This means that if you turn on a light switch, you will be dead before the lightbulb turns on.
459
+ %
460
+ When Chuck Norris goes to out to eat, he orders a whole chicken, but he only eats its soul.
461
+ %
462
+ Chuck Norris has never won an Academy Award for acting... because he's not acting.
463
+ %
464
+ If Chuck Norris wants your opinion, he'll beat it into you.
465
+ %
466
+ Chuck Norris has to register every part of his body as a separate lethal weapon. His spleen is considered a concealed weapon in over 50 states.
467
+ %
468
+ Godzilla is a Japanese rendition of Chuck Norris' first visit to Tokyo.
469
+ %
470
+ Chuck Norris once rode a nine foot grizzly bear through an automatic car wash, instead of taking a shower.
471
+ %
472
+ "Sweating bullets" is literally what happens when Chuck Norris gets too hot.
473
+ %
474
+ Chuck Norris doesn't daydream. He's too busy giving other people nightmares.
475
+ %
476
+ There are no such things as tornados. Chuck Norris just hates trailer parks.
477
+ %
478
+ Chuck Norris does not follow fashion trends, they follow him. But then he turns around and kicks their ass. Nobody follows Chuck Norris.
479
+ %
480
+ Chuck Norris once participated in the running of the bulls. He walked.
481
+ %
482
+ Chuck Norris was the orginal sculptor of Mount Rushmore. He completed the entire project using only a bottle opener and a drywall trowel.
483
+ %
484
+ Chuck Norris once rode a bull, and nine months later it had a calf.
485
+ %
486
+ For Spring Break '05, Chuck Norris drove to Madagascar, riding a chariot pulled by two electric eels.
487
+ %
488
+ The Manhattan Project was not intended to create nuclear weapons, it was meant to recreate the destructive power in a Chuck Norris Roundhouse Kick. They didn't even come close.
489
+ %
490
+ Chuck Norris has banned rainbows from the state of North Dakota.
491
+ %
492
+ TNT was originally developed by Chuck Norris to cure indigestion.
493
+ %
494
+ Chuck Norris runs on batteries. Specifically, Die Hards.
495
+ %
496
+ Chuck Norris will never have a heart attack. His heart isn't nearly foolish enough to attack him.
497
+ %
498
+ Only Chuck Norris can prevent forest fires.
499
+ %
500
+ When Chuck Norris makes a burrito, its main ingredient is real toes.
501
+ %
502
+ In the movie "The Matrix", Chuck Norris is the Matrix. If you pay close attention in the green "falling code" scenes, you can make out the faint texture of his beard.
503
+ %
504
+ Chuck Norris crossed the road. No one has ever dared question his motives.
505
+ %
506
+ One time, at band camp, Chuck Norris ate a percussionist.
507
+ %
508
+ Chuck Norris doesn't say "who's your daddy", because he knows the answer.
509
+ %
510
+ Love does not hurt. Chuck Norris does.
511
+ %
512
+ Chuck Norris once round-house kicked a salesman. Over the phone.
513
+ %
514
+ The pen is mighter than the sword, but only if the pen is held by Chuck Norris.
515
+ %
516
+ Chuck Norris knows the last digit of pi.
517
+ %
518
+ Those aren't credits that roll after Walker Texas Ranger. It is actually a list of fatalities that occurred during the making of the episode.
519
+ %
520
+ The air around Chuck Norris is always a balmy 78 degrees.
521
+ %
522
+ When Chuck Norris wants an egg, he cracks open a chicken.
523
+ %
524
+ Chuck Norris plays racquetball with a waffle iron and a bowling ball.
525
+ %
526
+ Chuck Norris is not Politically Correct. He is just Correct. Always.
527
+ %
528
+ Chuck Norris had to stop washing his clothes in the ocean. The tsunamis were killing people.
529
+ %
530
+ They were going to release a Chuck Norris edition of Clue, but the answer always turns out to be "Chuck Norris. In The Library. With a Roundhouse Kick."
531
+ %
532
+ A man once taunted Chuck Norris with a bag of Lay's potato chips, saying "Betcha can't eat just one!" Chuck Norris proceeded to eat the chips, the bag, and the man in one deft move.
533
+ %
534
+ Chuck Norris' favorite cereal is Kellogg's Nails 'N' Gravel.
535
+ %
536
+ In the first Jurassic Park movie, the Tyrannosaurus Rex wasn't chasing the jeep. Chuck Norris was chasing the Tyrannosaurus AND the jeep.
537
+ %
538
+ Rules of fighting: 1) Don't bring a knife to a gun fight. 2) Don't bring a gun to a Chuck Norris fight.
539
+ %
540
+ Chuck Norris is the only man who has, literally, beaten the odds. With his fists.
541
+ %
542
+ When you play Monopoly with Chuck Norris, you do not pass go, and you do not collect two hundred dollars. You will be lucky if you make it out alive.
543
+ %
544
+ Chuck Norris describes human beings as "a sociable holder for blood and guts".
545
+ %
546
+ Chuck Norris likes his ice like he likes his skulls: crushed.
547
+ %
548
+ Chuck Norris can kick through all 6 degrees of separation, hitting anyone, anywhere, in the face, at any time.
549
+ %
550
+ Most tough men eat nails for breakfast. Chuck Norris does all of his grocery shopping at Home Depot.
551
+ %
552
+ Chuck Norris did not "lose" his virginity, he stalked it and then destroyed it with extreme prejudice.
553
+ %
554
+ Chuck Norris' pulse is measured on the richter scale.
555
+ %
556
+ Most people know that Descarte said, "I think, therefore I am." What most people don't know is that that quote continues, "...afraid of Chuck Norris."
557
+ %
558
+ Chuck Norris once roundhouse-kicked a ten dollar bill into 200 nickels.
559
+ %
560
+ For every movie about Vietnam starring Chuck Norris, the historical duration of the war decreases. Just 3 more "Missing in Action" sequels, and that war will have never actually existed.
561
+ %
562
+ Chuck Norris CAN in fact 'raise the roof'. And he can do it with one hand.
563
+ %
564
+ Life is not, in fact, like a box of chocolates. It is more like a box of Chuck Norris, roundhouse kicking you in the face. And if you receive a box of Chuck Norris, you ALWAYS know what you are going to get.
565
+ %
566
+ For Chuck Norris, every street is "one way". HIS WAY.
567
+ %
568
+ There are now five cup sizes at Starbucks: Short, Tall, Grande, Venti, and Chuck Norris.
569
+ %
570
+ Chuck Norris actually built the stairway to heaven.
571
+ %
572
+ Whoever said "only the good die young" was probably in Chuck Norris's kindergarten class.
573
+ %
574
+ Chuck Norris once skewered a man with the Eiffel tower.
575
+ %
576
+ The best part of waking up, is not Folgers in your cup, but knowing that Chuck Norris didn't kill you in your sleep.
577
+ %
578
+ Chuck Norris doesn't own a can opener, he just chews through the can.
579
+ %
580
+ Occam's Razor says that the simplest answer tends to be the correct one. Norris' Razor involves a flick of the wrist and a Columbian Necktie.
581
+ %
582
+ Proponents of higher-order theories of consciousness argue that consciousness is explained by the relation between two levels of mental states in which a higher-order mental state takes another mental state. If you mention this to Chuck Norris, expect an explosive roundhouse kick to the face for spouting too much fancy-talk.
583
+ %
584
+ Chuck Norris invented all 32 letters of the alphabet.
585
+ %
586
+ Remember The Ultimate Warrior? He quit wrestling because Chuck Norris wanted his nickname back.
587
+ %
588
+ If a tree falls in the forest, does anybody hear? Yes. Chuck Norris hears it. Chuck Norris can hear everything. Chuck Norris can hear the shrieking terror in your soul.
589
+ %
590
+ Chuck Norris actually owns IBM. It was an extremely hostile takeover.
591
+ %
592
+ He, who laughs last, laughs best. He who laughs at Chuck Norris dies.
593
+ %
594
+ Chuck Norris can jump-start a car using jumper cables attached to his nipples.
595
+ %
596
+ Chuck Norris neither melts in your mouth nor in your hand. He shreds your trachea before ravaging your soul with a combination of chocolate, whickey, roundhouse kicks and death. Oh, and pain. Lots of pain.
597
+ %
598
+ Chuck Norris doesn't have blood. He is filled with magma.
@@ -0,0 +1,5 @@
1
+ module Rack
2
+ class Chuck
3
+ VERSION = "1.0.0"
4
+ end
5
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.unshift File.expand_path("../lib", __FILE__)
3
+ require 'rack/chuck/version'
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.authors = ["Henrik Paulini", "Ben Rexin", "Matthias Bauer", "Waldemar Gribele", "Stefan Rohde"]
7
+ gem.email = ["contact@delicious-development.com"]
8
+ gem.description = %q{Rack middleware to add chuck norris fact headers}
9
+ gem.summary = %q{Chuck Norris facts middleware}
10
+ gem.homepage = "https://github.com/delicious-development/rack-chuck"
11
+ gem.licenses = ['MIT']
12
+
13
+ gem.files = `git ls-files`.split($\)
14
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.name = "rack-chuck"
17
+ gem.require_paths = ["lib"]
18
+ gem.version = Rack::Chuck::VERSION
19
+
20
+ gem.add_dependency "rack", "~> 1.0"
21
+
22
+ gem.add_development_dependency "rspec", '< 3.0.0'
23
+ end
@@ -0,0 +1,25 @@
1
+ require 'spec_helper'
2
+
3
+ describe Rack::Chuck do
4
+ let(:dummy_app) { mock("application").tap {|o| o.stub!(:call) } }
5
+ let(:rack_env) { {} }
6
+ let(:response) { [418, { "Content-Type" => "text/plain" }, ['418 No coffee here.']] }
7
+ let(:chuck) { Rack::Chuck.new(dummy_app) }
8
+ subject { chuck }
9
+
10
+ its(:fact) { should be_an_instance_of(String) }
11
+
12
+ context "calling" do
13
+ before { dummy_app.should_receive(:call).with(rack_env).and_return(response) }
14
+
15
+ it "should pass request through" do
16
+ subject.call(rack_env)
17
+ end
18
+
19
+ context "response" do
20
+ subject { chuck.call(rack_env)[1] }
21
+
22
+ it { should have_key("X-Chuck-Norris") }
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,8 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'rack-chuck'
4
+
5
+ RSpec.configure do |config|
6
+ #
7
+ end
8
+
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rack-chuck
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Henrik Paulini
8
+ - Ben Rexin
9
+ - Matthias Bauer
10
+ - Waldemar Gribele
11
+ - Stefan Rohde
12
+ autorequire:
13
+ bindir: bin
14
+ cert_chain: []
15
+ date: 2016-06-07 00:00:00.000000000 Z
16
+ dependencies:
17
+ - !ruby/object:Gem::Dependency
18
+ name: rack
19
+ requirement: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - "~>"
22
+ - !ruby/object:Gem::Version
23
+ version: '1.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - "~>"
29
+ - !ruby/object:Gem::Version
30
+ version: '1.0'
31
+ - !ruby/object:Gem::Dependency
32
+ name: rspec
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - "<"
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - "<"
43
+ - !ruby/object:Gem::Version
44
+ version: 3.0.0
45
+ description: Rack middleware to add chuck norris fact headers
46
+ email:
47
+ - contact@delicious-development.com
48
+ executables: []
49
+ extensions: []
50
+ extra_rdoc_files: []
51
+ files:
52
+ - ".gitignore"
53
+ - ".rspec"
54
+ - ".travis.yml"
55
+ - Gemfile
56
+ - LICENSE
57
+ - README.md
58
+ - lib/rack-chuck.rb
59
+ - lib/rack/chuck.rb
60
+ - lib/rack/chuck/facts.txt
61
+ - lib/rack/chuck/version.rb
62
+ - rack-chuck.gemspec
63
+ - spec/rack_chuck_spec.rb
64
+ - spec/spec_helper.rb
65
+ homepage: https://github.com/delicious-development/rack-chuck
66
+ licenses:
67
+ - MIT
68
+ metadata: {}
69
+ post_install_message:
70
+ rdoc_options: []
71
+ require_paths:
72
+ - lib
73
+ required_ruby_version: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - ">="
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ requirements: []
84
+ rubyforge_project:
85
+ rubygems_version: 2.6.2
86
+ signing_key:
87
+ specification_version: 4
88
+ summary: Chuck Norris facts middleware
89
+ test_files:
90
+ - spec/rack_chuck_spec.rb
91
+ - spec/spec_helper.rb