fortune_cookie 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/fortune +0 -0
- data/lib/fortune_cookie.rb +78 -0
- metadata +47 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 87650d6f0eb1f3e1a485b569d2d146f34d376b1d
|
4
|
+
data.tar.gz: ddf2ccc70375189a608569a9cd577de5259a1064
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6b16be3f6e1fde045c07e59be12218b159d5c67e489a0ef50de26f4dd3d05d50d22733f052a3791f1b52e345307fda003071acf9d2a2d494ba8c933e7cde9775
|
7
|
+
data.tar.gz: 2016054615d5317f72c955109c7e968d27929b12f7f37cc20df4796f47d1d81a3a8150ab5613031ff3a9382959f67b527ef71259670d0a182f28b66b70b441b9
|
data/bin/fortune
ADDED
File without changes
|
@@ -0,0 +1,78 @@
|
|
1
|
+
class FortuneCookie
|
2
|
+
FORTUNES = [
|
3
|
+
"Go to bed with itchy bum, wake up with smelly finger.",
|
4
|
+
"A good way to keep healthy is to eat more Chinese food.",
|
5
|
+
"You learn fomr your mistakes... You will learn a lot today",
|
6
|
+
"Ignore all previous fortunes.",
|
7
|
+
"Your fortune resides in another cookie.",
|
8
|
+
"Do not mistake temptation for opportunity.",
|
9
|
+
"Some men dream of fortunes, others dream of cookies.",
|
10
|
+
"You will be hungry again in one hour.",
|
11
|
+
"I cannot help you, for I am just a cookie.",
|
12
|
+
"A tub and a rub will change your day",
|
13
|
+
"If you can read this, you are literate, congrats.",
|
14
|
+
"Oops, wrong cookie.",
|
15
|
+
"That wasn't chicken.",
|
16
|
+
"Never wear your best pants when you go to fight for freedom.",
|
17
|
+
"It's about time I got out of that cookie.",
|
18
|
+
"Help, I am being held prisoner in a Chinese bakery.",
|
19
|
+
"You love Chinese food.",
|
20
|
+
"You will regret your decision for dinner tonight.",
|
21
|
+
"Your friends secretly agree that your head is too small for your body.",
|
22
|
+
"Accept that some days you're the pigeon and some days you're the statue.",
|
23
|
+
"Don't fry bacon in the nude.",
|
24
|
+
"When everything's coming your way, you're probably in the wrong lane.",
|
25
|
+
"Meh.",
|
26
|
+
"Hearty laughter is a good way to jog internally without having to go outdoors.",
|
27
|
+
"Wouldn't it be ironic to die in a living room.",
|
28
|
+
"You have rice in your teeth.",
|
29
|
+
"Some fortune cookies contain no fortune.",
|
30
|
+
"Marriage lets you annoy one special person for the rest of your life.",
|
31
|
+
"Some fortune cookies contain no fortune.",
|
32
|
+
"Your mind is filled with nothing.",
|
33
|
+
"Never tease an armed midget with a high five.",
|
34
|
+
"Life will be happy, until the end when you'll pee yourself a lot.",
|
35
|
+
"A thrilling time is in your immediate future.",
|
36
|
+
"He who laughs lasts is laughing at you.",
|
37
|
+
"Someone has Googled you recently.",
|
38
|
+
"Don't eat any Chinese food today or you'll be sick.",
|
39
|
+
"A man with brown eyes has a surprise for you.",
|
40
|
+
"You are not illiterate.",
|
41
|
+
"An alien of some sort will be appearing to you shortly!",
|
42
|
+
"Don't panic.",
|
43
|
+
"It could be better, but it's good enough.",
|
44
|
+
"You will find a thing and it will be important.",
|
45
|
+
"Two days from now, tomorrow will be yesterday.",
|
46
|
+
"When chosen for jury duty, tell the judge about this fortune.",
|
47
|
+
"You are cleverly disguised as a responsible adult.",
|
48
|
+
"Drive like hell and you will get there.",
|
49
|
+
"Person who eat fortune cookie gets lousy dessert.",
|
50
|
+
"You will soon have an out of money exprience.",
|
51
|
+
"He who dies with most money, still dies.",
|
52
|
+
"Two can live as cheaply as one, for half as long.",
|
53
|
+
"Life is a sexually transmitted condition.",
|
54
|
+
"Give person fish, he eat for a day. Teach person to fish, he smell funny always.",
|
55
|
+
"Person who argues with idiot is taken for fool.",
|
56
|
+
"Look before you leap. Or wear a parachute.",
|
57
|
+
"The end is near, mine as well have dessert.",
|
58
|
+
"This fortune is no good. Try another.",
|
59
|
+
"Run.",
|
60
|
+
"I cannot help you, for I'm just a cookie.",
|
61
|
+
"Made in the USA.",
|
62
|
+
"Stop procrastinating...starting tomorrow",
|
63
|
+
"You pet is planning to eat you.",
|
64
|
+
"Don't trust your cat.",
|
65
|
+
"Don't be a dick.",
|
66
|
+
"Ask your mom.",
|
67
|
+
"A lucrative career change awaits. Have you considered gangsta rap?",
|
68
|
+
"Ignore previous cookie."
|
69
|
+
]
|
70
|
+
|
71
|
+
def self.random_fortune
|
72
|
+
random = Random.new
|
73
|
+
random_fortune = random.rand(FORTUNES.length - 1)
|
74
|
+
FORTUNES[random_fortune]
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
puts FortuneCookie.random_fortune
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: fortune_cookie
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Julie Graceffa
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Chinese fortune cookies
|
14
|
+
email:
|
15
|
+
- julie.graceffa@gmail.com
|
16
|
+
executables:
|
17
|
+
- fortune
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- bin/fortune
|
22
|
+
- lib/fortune_cookie.rb
|
23
|
+
homepage:
|
24
|
+
licenses:
|
25
|
+
- MIT
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.6.6
|
44
|
+
signing_key:
|
45
|
+
specification_version: 4
|
46
|
+
summary: Daily Fortune.
|
47
|
+
test_files: []
|