random_quotes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c913ac960f4a8905498482840571b39a4e9c24e1
4
+ data.tar.gz: 449e657c9d0ed0aba47daec8a466262642f864bd
5
+ SHA512:
6
+ metadata.gz: 8d96849f693b12989d50de24606fff28adc5f63c676df55fd1cf2158cb465cae1cfbdacdd30f55c74767ae8c068b4d60aa97fa4d26a23c1f572796996e234cfe
7
+ data.tar.gz: c41b189daab0eacdbb45adb42268be5ea662c43b16a55c26c121b432db795741eb7f721bc753a1436215510e92a36dc296b923170139ec8ae3fb2df11ef92f88
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.0
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at navinspm@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in random_quotes.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 NavinKumar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # Random Quotes
2
+
3
+ A gem to show random quotes on your rails view files
4
+
5
+ ## Installation
6
+
7
+ Add to your Gemfile:
8
+
9
+ ```gem 'random_quotes'```
10
+
11
+ Or install:
12
+
13
+ $ gem install random_quotes
14
+
15
+ ## Usage
16
+
17
+ In your view pages simply call
18
+
19
+ ```<%= sample_quotes %>```
20
+
21
+ Now Quotes will be changed automatically,each time you refresh the page
22
+
23
+ And that's it!
24
+
25
+ ## Configuration
26
+
27
+ I have added more than 250 quotes with this gem, If you want to add your own quotes
28
+
29
+ create file
30
+
31
+ ```config/initializers/random_quotes.rb```
32
+
33
+ and add your quotes
34
+
35
+ ```RandomQuotes.configure.quotes = "my quote 1 ,my quote 2,my quote 3"```
36
+
37
+ Now
38
+ ```<%= sample_quotes %>``` - will display quotes in gem
39
+ ```<%= my_quotes %>``` - will display quotes from initializer
40
+ ```<%= random_quotes %>```- will display quotes in gem
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it!
45
+ 2. Create your feature branch: `git checkout -b my-new-feature`
46
+ 3. Commit your changes: `git commit -am 'Add some feature'`
47
+ 4. Push to the branch: `git push origin my-new-feature`
48
+ 5. Submit a pull request :D
49
+
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "random_quotes"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,41 @@
1
+
2
+ require 'random_quotes/version'
3
+ require 'random_quotes/quotes'
4
+
5
+ module RandomQuotes
6
+
7
+ class << self
8
+ attr_accessor :configuration
9
+ end
10
+
11
+ def self.configure
12
+ self.configuration ||= Configuration.new
13
+ end
14
+
15
+ class Configuration
16
+ attr_accessor :quotes
17
+
18
+ def initialize
19
+ @quotes = quotes
20
+ end
21
+ end
22
+
23
+ # Generate three ideas!
24
+ def sample_quotes
25
+ PRE_QUOTES.sample
26
+ end
27
+
28
+ def my_quotes
29
+ RandomQuotes.configuration.quotes.split(',').sample if RandomQuotes.configuration && RandomQuotes.configuration.quotes
30
+ end
31
+
32
+ def random_quotes
33
+ if RandomQuotes.configuration && RandomQuotes.configuration.quotes
34
+ (RandomQuotes.configuration.quotes.split(',') + PRE_QUOTES).sample
35
+ else
36
+ PRE_QUOTES.sample
37
+ end
38
+ end
39
+ end
40
+
41
+ ActionView::Base.send(:include, RandomQuotes) if defined?(ActionView::Base)
@@ -0,0 +1,269 @@
1
+ module RandomQuotes
2
+ PRE_QUOTES = ["'Hard work pays off in the future. Laziness pays off now.'",
3
+ "'3 out of 4 people make up 75% of the population.'",
4
+ "'24 hours in a day, 24 beers in a case. Coincidence? You decide.'",
5
+ "'A banker is a fellow who lends you his umbrella when the sun is shining and wants it back the minute it begins to rain.' - Mark Twain",
6
+ "'Accomplishing the impossible means only that the boss will add it to your regular duties.' -Doug Larson",
7
+ "'A chicken is an egg's way of making another egg'",
8
+ "'A closed mouth gathers no foot.'",
9
+ "'A conscience is what hurts when all your other parts feel so good.'",
10
+ "'A day for firm decisions! Or is it?'",
11
+ "'A device that will cut your fuel bills in half - scissors'",
12
+ "'A dog is a dog unless he is facing you. Then he is Mr. Dog.'",
13
+ "'A government that robs Peter to pay Paul can always depend on the support of Paul.' -George Bernard Shaw",
14
+ "'Always try to make other people happy, even if you have to leave them alone to do it'",
15
+ "'A neat desk is a sign of a cluttered desk drawer.'",
16
+ "'A neat desk is the sign of a sick mind.'",
17
+ "'A sentence is something you should never put a preposition at the end of.'",
18
+ "'A signature always reveals a man's character - and sometimes even his name.'",
19
+ "'A sine curve goes off to infinity, or at least to the end of the blackboard.'",
20
+ "'A sure cure for seasickness is to sit under a tree.' -Spike Milligan.",
21
+ "'All men can fly, but sadly, only in one direction - down.'",
22
+ "'All my life I wanted to be someone. I guess I should have been more specific.'",
23
+ "'Anyone who isn't confused really doesn't understand the situation.' -Edward R. Murrow",
24
+ "'Always remember you're unique, just like everyone else.'",
25
+ "'Anything worth taking seriously is worth making fun of.'",
26
+ "'Artificial intelligence is no match for natural stupidity.'",
27
+ "'Beauty is only skin deep, but ugly goes right to the bone'",
28
+ "'Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away, and you have their shoes'",
29
+ "'Be nice to your kids. They'll choose your nursing home.'",
30
+ "'Boomerangs are coming back, Ski slopes are going downhill, but Exit signs are on the way out.'",
31
+ "'Breaking the law of gravity isn't painful it's getting caught that hurts.'",
32
+ "'Caution: do not look into laser with remaining eye.'",
33
+ "'Change is inevitable, except from a vending machine.'",
34
+ "'Democracy is four wolves and a lamb voting on what to have for lunch.'",
35
+ "'Did you know the word gullible is not in the dictionary?'",
36
+ "'Diplomacy is the art of saying 'good doggie' while looking for a bigger stick.'",
37
+ "'Don't personify computers - we don't like it.'",
38
+ "'Don't use a big word where a diminutive one will suffice.'",
39
+ "'Don't worry about avoiding temptation - as you grow older, it starts avoiding you.'",
40
+ "'Don't worry about the world ending today, it's already tomorrow in Australia'",
41
+ "'Eagles may soar, but weasels don't get sucked into jet engines.'",
42
+ "'Entertainment is just talking louder than the audience.'",
43
+ "'Everyone has a photographic memory, some just don't have film.'",
44
+ "'Everyone is someone else's weirdo.'",
45
+ "'Experience is something you get just after you need it.'",
46
+ "'Free jazz is so called because no-one would ever buy it.'",
47
+ "'Frisbeetarianism: The belief that when you die, your soul goes up on the roof and gets stuck.'",
48
+ "'Give a man a fish and you feed him for a day. Teach a man to fish, and you can sell him some tackle'",
49
+ "Grandma used to say…'Money is not the key to happiness. If you have money you can always have a key made.'",
50
+ "'Hangover: The wrath of grapes.'",
51
+ "'Happiness makes up in height what it lacks in length.'",
52
+ "'As a computer, I find your faith in technology amusing.'",
53
+ "'Ask me about my vow of silence.'",
54
+ "'Atheism is a non-prophet organisation.'",
55
+ "'He who laughs last didn't understand the joke'",
56
+ "'He's supposed to sound like he's in pain, he's a folk singer.'",
57
+ "'How do you tell when you run out of invisible ink?'",
58
+ "'I am not young enough to know everything.' - Oscar Wilde",
59
+ "'I didn't say it was your fault. I said I was going to blame you.'",
60
+ "'I refuse to have a battle of wits with an unarmed opponent.'",
61
+ "'I used to be indecisive, now I'm not so sure.'",
62
+ "'I wonder how much deeper the ocean would be without sponges'",
63
+ "'If you tell the truth, you don't have to remember anything.'",
64
+ "'If you think nobody cares about you, try missing a couple of mortgage payments.'",
65
+ "'I'm feeling argumentative. Please contradict me.'",
66
+ "'I'm having a deja vu experience, just like last time.'",
67
+ "'If it weren't for the last minute, nothing would get done.'",
68
+ "'If life was fair, Elvis would be alive and all the impersonators would be dead.' Johnny Carson",
69
+ "'If one synchronized swimmer drowns, do the rest have to drown too?'",
70
+ "'If today is the first day of the rest of your life, what was yesterday?'",
71
+ "'If you ate pasta and antipasta, would you still be hungry?'",
72
+ "'If you strangle a smurf, what color does it turn?'",
73
+ "'If you lend someone £20, and never see that person again, it was probably worth it.'",
74
+ "'If you want someone to catch something, throw it at their nose.'",
75
+ "'It doesn't matter how you get there if you don't know where you're going.'",
76
+ "'It is dangerous to be right in matters on which the established authorities are wrong.' -Voltaire",
77
+ "'It's a small world, but I'd hate to have to paint it.'",
78
+ "'It's not the heights that bother me it's falling on the bottoms of them.'",
79
+ "'I've got a mind like a.. a.. what's that thing called?'",
80
+ "'I've had amnesia for as long as I can remember'",
81
+ "'Life is what happens to you while you're busy making other plans.' - John Lennon",
82
+ "'Millions yearn for immortality who don't know what to do with themselves on a rainy Sunday afternoon.' - Susan Ertz",
83
+ "'My favourite scientific theory is that the rings of Saturn are made of lost airline luggage.'",
84
+ "'My supply of brain cells is finally down to a manageable size'",
85
+ "'Never ask a barber if he thinks you need a haircut.'",
86
+ "'Never attribute to malice what can be adequately explained by stupidity.'",
87
+ "'Never test the depth of the water with both feet.'",
88
+ "'No issue is so small that it can't be blown out of proportion.' -Stuart Hughes",
89
+ "'No one is listening until you make a mistake.'",
90
+ "'No problem is so big that you can't run away from it.'",
91
+ "'Of course, you may smoke - but please don't exhale.'",
92
+ "'On the other hand, I have some fingers.'",
93
+ "'Personifiers of the world! Unite! You have nothing to lose but Mr. Dignity!'",
94
+ "'Pound for pound, the amoeba is the most vicious animal on earth.'",
95
+ "'Rome wasn't built in a day, it just looks like that.'",
96
+ "'Smash forehead on keyboard to continue.'",
97
+ "'Some days you are the fly, other days you are the windscreen.'",
98
+ "'That's OK. I don't remember my name either.'",
99
+ "'The amount of sleep needed by the average person is ten minutes more.'",
100
+ "'The early bird gets the worm, but the early worm gets eaten.'",
101
+ "'The face of a child can say it all, especially the mouth part of the face.'",
102
+ "'The lion and the calf shall lie down together but the calf won't get much sleep.' -Woody Allen",
103
+ "'The race is not always to the swift, nor the battle to the strong - but that's the way to bet.' - Damon Runyon",
104
+ "'The trouble with being punctual is that nobody's there to appreciate it.' -Franklin P. Jones",
105
+ "'There are two kinds of people, those who do the work and those who take the credit. Try to be in the first group; there is less competition there.' - Indira Gandhi",
106
+ "'There are three kinds of people - those who can count, and those who can't.'",
107
+ "'There's no future in time travel.'",
108
+ "'Time flies like an arrow, fruit flies like a banana'",
109
+ "'To steal ideas from one person is plagiarism; to steal from many is research.'",
110
+ "''Veni, Vidi, Velcro' - I came, I saw, I stuck around.'",
111
+ "''Veni, Vidi, Visa'. I came. I Saw. I did a little shopping.'",
112
+ "'What sets us apart from animals is that we're not afraid of vacuum cleaners.'",
113
+ "'When a stupid man is doing something he is ashamed of, he always declares that it is his duty.' -George Bernard Shaw",
114
+ "'You don't need an engine to go downhill.'",
115
+ "'It's important to have an open mind, but not so open that your brains fall out.'",
116
+ "'The DOPELER Effect is the tendency of stupid ideas to seem smarter when they come at you rapidly'",
117
+ "'25% of the general population believe in statistics. The other 80% don't trust them at all.'",
118
+ "'95% of statistics are just made up anyway.'",
119
+ "'A new study shows that licking the sweat off a frog can cure depression. The down side is, the minute you stop licking, the frog gets depressed again.'",
120
+ "'Anything not nailed down is mine. Anything I can pry loose is not nailed down.'",
121
+ "'I always win. Except when I lose, but then I just don't count it.'",
122
+ "'I went to a restaurant that was so expensive that they didn't have prices on the menu - just little faces with varying expressions of horror.'",
123
+ "'The person who knows how to laugh at himself will never cease to be amused'",
124
+ "'Where in the nursery rhyme does it say Humpty Dumpty is an egg?'",
125
+ "'It is impossible to make anything foolproof because fools are so ingenious. '",
126
+ "'The trouble with doing something right the first time, is nobody appreciates how difficult it was.'",
127
+ "'Everybody lies, but it doesn't matter since nobody listens.'",
128
+ "'When I was born, I was so surprised, I couldn't talk for a year and a half!'",
129
+ "'To err is human, to blame the next guy even more so. '",
130
+ "'There are two rules for success... 1) Never tell everything you know. '",
131
+ "'Be nice to other people; they outnumber you 5.5 billion to one. '",
132
+ "'Courage is the art of being the only one that knows you're scared to death.' -Earl Wilson",
133
+ "'Even if you're on the right track, you'll get run over if you just sit there.' -Will Rogers",
134
+ "'I have given up anarchy. Too many rules - hating the government and all that stuff.' -G.H. Hill",
135
+ "'The only reason some people get lost in thought because it is unfamiliar territory.'",
136
+ "'Talk is cheap because supply exceeds demand'",
137
+ "'Start every day off with a smile and get it over with. '",
138
+ "'Just because something doesn't do what you planned it to do doesn't mean it's useless.'",
139
+ "'There are two kinds of people, those who finish what they start and so on. '",
140
+ "'It is the dull man who is always sure, and the sure man who is always dull.' - H. L. Mencken",
141
+ "'A great many people think they are thinking when they are merely rearranging their prejudices.' - William James",
142
+ "'Half of the people in the world are below average. '",
143
+ "'Male zebras have white stripes, female zebras have black stripes.'",
144
+ "'Computers are useless. They can only give answers.'",
145
+ "'There has been an alarming increase in the number of things you know absolutely nothing about.'",
146
+ "'Never keep up with the Joneses. Drag them down to your level. It's cheaper.' -Quentin Crisp",
147
+ "'There are only two industries that refer to their customers as 'users'.' -Edward Tufte",
148
+ "'I loathe people who keep dogs. They are cowards who haven't got the guts to bite people themselves.' -August Strindberg",
149
+ "'Even if you win the rat race, you're still a rat. '",
150
+ "'For every problem there is a solution which is simple, neat and wrong. '",
151
+ "'Natives who beat drums to drive off evil spirits are objects of scorn to smart people who blow horns to break up traffic jams.'",
152
+ "'All sweeping generalisations are wrong.'",
153
+ "'I avoid clichés like the plague.'",
154
+ "'My sources are unreliable, but their information is fascinating.'",
155
+ "'Believe those who seek the truth; doubt those that find it.' -Andre Gide",
156
+ "'When you find yourself in a hole, the first thing to do is stop digging.'",
157
+ "'Democracy is the worst possible form of government, except for all the others.'",
158
+ "'We have the finest politicians that money can buy.'",
159
+ "'Never explain -- your Friends do not need it and your enemies will not believe you anyway.'",
160
+ "'If it's stupid but works, it isn't stupid.'",
161
+ "'It is a miracle that curiosity survives formal education.' - Albert Einstein",
162
+ "'I used to know everything, till everything changed.' -Sgt Phil Girvan",
163
+ "'You can have peace, or you can have freedom. Don't ever count on having both at once.'",
164
+ "'Anything free is worth the price.'",
165
+ "'Always listen to experts. They'll tell you what can't be done, and why. Then go and do it anyway.'",
166
+ "'All that is necessary for the forces of evil to take root in the world is for enough good men to do nothing.' - Edmund Burke",
167
+ "'I find television very educational. Every time someone switches it on I go into another room and read a good book.' -Groucho Marx",
168
+ "'Wisdom has two parts: 1) Having a lot to say, and 2) not saying it.'",
169
+ "'I'm not stupid. I just have a command of thoroughly useless information.'",
170
+ "'People will accept your ideas much more readily if you tell them Benjamin Franklin said it first.'",
171
+ "'The two most common elements in the universe are hydrogen and stupidity.' -Isaac Asimov",
172
+ "'Compromise is the art of dividing a cake so everyone believes he got the biggest piece.' -Ludwig Erhard",
173
+ "'It is the nature of emergencies to be inconvenient.' -Terri Weiner",
174
+ "'It's extremely unlucky to be superstitious, for no other reason than it is always unlucky to be colossally stupid.' -Stephen Fry",
175
+ "'Opportunity is missed by most people because it is dressed in overalls and looks like work.' -Thomas Edison",
176
+ "'Don't go around saying the world owes you a living. The world owes you nothing; it was here first.' -Mark Twain",
177
+ "'It's better to be boldly decisive and risk being wrong than to agonize at length and be right too late.' -Marilyn Kennedy",
178
+ "'A good plan today is better than a perfect plan tomorrow. -Gen.' George Patton",
179
+ "'Man will occassionally stumble over the truth, but most of the time he will pick himself up and continue on.' -Winston Churchill",
180
+ "'It is better to have enough ideas for some of them to be wrong than to always be right by having no ideas at all.' -Edward de Bono",
181
+ "'The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it.' -Elbert Hubbard",
182
+ "'It's a small world, but I wouldn't like to paint it.'",
183
+ "'I don't suffer from insanity, I enjoy every minute of it.'",
184
+ "'It's lonely at the top, but the food is better.'",
185
+ "'Pride is what we have. Vanity is what others have.'",
186
+ "'Give me ambiguity or give me something else.'",
187
+ "'Consciousness: that annoying time between naps.'",
188
+ "'Why is abbreviation such a long word?'",
189
+ "'We have enough youth, how about a fountain of Smart?'",
190
+ "'Time is what keeps everything from happening all at once.'",
191
+ "'Computers in the future may weigh no more than 1.5 tons.' -Popular Mechanics, 1949",
192
+ "'I think there is a world market for maybe five computers.' -Thomas Watson, chairman of IBM, 1943",
193
+ "'If you don't find what you want in the Index, look very carefully through the entire catalogue.'",
194
+ "'Computers make very fast, very accurate mistakes.'",
195
+ "'Computers are not intelligent. They only think they are.'",
196
+ "'Imagine if every thursday your shoes exploded if you tied them in the usual way. This happens to us all the time with computers, and nobody thinks of complaining!'",
197
+ "'Tell a man there are 300 billion stars in the universe and he'll believe you. Tell him a seat has wet paint on it and he'll have to touch it to be sure.'",
198
+ "'If you need anything please don't hesitate to ask someone else first.'",
199
+ "'Some mornings, it's just not worth chewing through the leather straps.'",
200
+ "'The statistics on sanity are that one out of every four people is suffering from some form of mental illness. Think of your three best friends. If they're okay, then it's you.'",
201
+ "'If it weren't for electricity we'd all be watching television by candlelight.'",
202
+ "'You cannot have everything. I mean, where would you put it?'",
203
+ "'I will not eat oysters. I want my food dead. Not sick, not wounded, dead.' -Woody Allen",
204
+ "'If toast always lands butter-side down, and cats always land on their feet, what happens if you drop a buttered cat?'",
205
+ "'Nouvelle Cuisine, roughly translated, means: I can't believe I paid ninety-six pounds and I'm still hungry.'",
206
+ "'I went to a restaurant that serves 'breakfast at any time'. So I ordered French Toast during the Renaissance.'",
207
+ "'I went to a General Store, but they wouldn't sell me anything specific.'",
208
+ "'A positive attitude will not solve all your problems, but it will annoy enough people to make it worth the effort.'",
209
+ "'This year's Psychic Fair will be held on June 23rd. In the event of rain, it will be held the previous Saturday.'",
210
+ "''Of course,' said my grandfather, pulling a gun from his belt as he stepped from the Time Machine, 'There's no paradox if I shoot YOU'.'",
211
+ "'In theory, there is no difference between theory and practice. But, in practice, there is.'",
212
+ "'The only difference between me and a madman is that I'm not mad.' - Salvador Dali",
213
+ "'Never interrupt your enemy when he is making a mistake.' - Napoleon Bonaparte",
214
+ "'I have not failed. I've just found 10,000 ways that won't work.' - Thomas Alva Edison",
215
+ "'A witty saying proves nothing.' - Voltaire",
216
+ "'Some drink at the fountain of knowledge...others just gargle.'",
217
+ "'It's not an optical illusion, it just looks that way.'",
218
+ "'When all else fails, read the instructions.'",
219
+ "'Smile, it makes people wonder what you're thinking.'",
220
+ "'Practice makes perfeckt.'",
221
+ "'If you can remember the '60s, then you weren't there.'",
222
+ "'There is no surer way to ruin a good discussion than to contaminate it with facts.'",
223
+ "'I can't make predictions and I never will'",
224
+ "'The second best policy is dishonesty'",
225
+ "'If it boils and is watched, it can't be a pot.'",
226
+ "'I argue very well. Ask any of my remaining friends. I can win an argument on any topic, against any opponent. People know this, and steer clear of me at parties.'",
227
+ "'If at first you don't succeed, then skydiving definitely isn't for you.'",
228
+ "'If a vegetarian eats vegetables, what does a humanitarian eat?'",
229
+ "'How can a slim chance and a fat chance be the same?'",
230
+ "'For business reasons, I must maintain the outward signs of sanity.' -Mark Twain",
231
+ "'The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.' - Bertrand Russell",
232
+ "'Only newspaper editors and people with tapeworms should ever refer to themselves as, 'we'' - Mark Twain",
233
+ "'It is better to remain silent and be thought a fool than to open one's mouth and remove all doubt' - Mark Twain",
234
+ "Never preceed anything more complex than a Frisbee throw with, 'Hey boss, watch this!'",
235
+ "'It is best to mince one's words very finely, it makes them much easier to eat afterwards.'- Oscar Wilde",
236
+ "'Never give up, never give up, never, never, never give up!' - Winston Churchill",
237
+ "'Underneath the skin, all humanity are brothers and I would gladly skin humanity alive to prove it.' - Ellsworth Toohey",
238
+ "'There is nothing either good or bad, but thinking makes it so.' - Shakespeare",
239
+ "'I guess when you turn off the main road, you have to be prepared to see some funny houses.' - Stephen King",
240
+ "'Never let your sense of morals prevent you from doing what is right.'",
241
+ "'When I was a kid my favorite relative was Uncle Caveman. After school we'd all go play in his cave, and every once in a while he would eat one of us. It wasn't until later that I found out that Uncle Caveman was a bear.'",
242
+ "'Take my advice: If the recipe calls for ""3 handfuls of lava,"" it's really not worth the effort.'",
243
+ "'Those are my principles. If you don't like them I have others.' - Groucho Marx.",
244
+ "'Beer is proof that God loves us and wants us to be happy' - Benjamin Franklin",
245
+ "'There are 10 types of people in this world; those who understand the binary number system and those who do not'",
246
+ "'He was a great patriot, a humanitarian, a loyal friend; provided, of course, he really is dead.' - Voltaire.",
247
+ "'Outside of the killings, Washington has one of the lowest crime rates in the country' - Mayor Marion Barry, Washington DC",
248
+ "'Every time I close the door on reality it comes in through the windows.'",
249
+ "'Thirty-five is when you finally get your head together and your body starts falling apart.'",
250
+ "'The tragedy of life doesn't lie in not reaching your goal. The tragedy lies in having no goal to reach.'",
251
+ "'No great man ever complains of want of opportunity.'",
252
+ "'It isn't pollution that's harming the environment, it's the impurities in our air and water that are doing it' - Dan Quayle, Former US Vice President",
253
+ "'What if, at this very moment, you are living up to your full potential?'",
254
+ "'Sanity calms, but madness is more interesting.'",
255
+ "'Don't talk about yourself so much... we'll do that when you leave.'",
256
+ "'If you try and don't succeed, cheat. Repeat until caught. Then lie.'",
257
+ "'Never say ""OOPS!"" always say ""Ah, Interesting!""'",
258
+ "'This isn't burger king, you can't have it your way.'",
259
+ "'If you must choose between two evils, pick the one you've never tried before.'",
260
+ "'Everything that can be invented has been invented.' -Charles H. Duell, Commissioner, U.S. Office of Patents, 1899.",
261
+ "'The abdomen, the chest, and the brain will forever be shut from the intrusion of the wise and humane surgeon. -Sir John Eric Ericksen, British surgeon, appointed Surgeon-Extraordinary to Queen Victoria 1873.",
262
+ "'Louis Pasteur's theory of germs is ridiculous fiction.'-Pierre Pachet, Professor of Physiology at Toulouse, 1872",
263
+ "'Who the hell wants to hear actors talk?' -H.M. Warner, Warner Brothers, 1927.",
264
+ "'We don't like their sound, and guitar music is on the way out.' -Decca Recording Co. rejecting the Beatles, 1962.",
265
+ "'Heavier-than-air flying machines are impossible.' -Lord Kelvin, president, Royal Society, 1895.",
266
+ "'Two times a week, we go to a nice restaurant, a little wine, good food and companionship. She goes Mondays, I go Fridays. '",
267
+ "'Women will never be equal to men until they can walk down the street with a bald head and a beer gut, and still think they are beautiful '",
268
+ ]
269
+ end
@@ -0,0 +1,3 @@
1
+ module RandomQuotes
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'random_quotes/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "random_quotes"
8
+ spec.version = RandomQuotes::VERSION
9
+ spec.authors = ["NavinKumar"]
10
+ spec.email = ["navinspm@gmail.com"]
11
+
12
+ spec.summary = "A gem to display random quotes and show them on your web page"
13
+ spec.description = "This gem will display random quotes , and show them on your view pages. You can also add your quotes, random_quotes wll display them"
14
+ spec.homepage = "https://github.com/navinspm/random_quotes"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ # end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.11"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec", "~> 3.0"
33
+ end
metadata ADDED
@@ -0,0 +1,101 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: random_quotes
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - NavinKumar
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-10-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ description: This gem will display random quotes , and show them on your view pages.
56
+ You can also add your quotes, random_quotes wll display them
57
+ email:
58
+ - navinspm@gmail.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".rspec"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - LICENSE.txt
69
+ - README.md
70
+ - Rakefile
71
+ - bin/console
72
+ - bin/setup
73
+ - lib/random_quotes.rb
74
+ - lib/random_quotes/quotes.rb
75
+ - lib/random_quotes/version.rb
76
+ - random_quotes.gemspec
77
+ homepage: https://github.com/navinspm/random_quotes
78
+ licenses:
79
+ - MIT
80
+ metadata: {}
81
+ post_install_message:
82
+ rdoc_options: []
83
+ require_paths:
84
+ - lib
85
+ required_ruby_version: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ required_rubygems_version: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ requirements: []
96
+ rubyforge_project:
97
+ rubygems_version: 2.5.1
98
+ signing_key:
99
+ specification_version: 4
100
+ summary: A gem to display random quotes and show them on your web page
101
+ test_files: []