gita 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/Rakefile +8 -0
  2. data/bin/gita +3 -0
  3. data/lib/gita.rb +8 -0
  4. data/lib/quotes +72 -0
  5. data/test/test_gita.rb +8 -0
  6. metadata +51 -0
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
data/bin/gita ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require 'gita'
3
+ puts Gita.get
data/lib/gita.rb ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ class Gita
3
+ def self.get
4
+ @quotes = []
5
+ @quotes = File.readlines(File.dirname(__FILE__) + "/quotes")
6
+ @quotes[rand(@quotes.length)].chomp
7
+ end
8
+ end
data/lib/quotes ADDED
@@ -0,0 +1,72 @@
1
+ s covered by smoke and a mirror is obscured by dust, just as the embryo rests deep within the womb, wisdom is hidden by selfish desire.
2
+ The serenity of mind, gentleness, silence, self-restraint, and the purity of mind are called the austerity of thought.
3
+ No one attains perfection by merely giving up work.
4
+ All works are being done by the energy and power of nature, but due to delusion of ego people assume themselves to be the doer.
5
+ Man is made by his belief. As he believes, so he is.
6
+ The disunited mind is far from wise; how can it meditate? How be at peace? When you know no peace, how can you know joy?
7
+ The mind is restless and difficult to restrain, but it is subdued by practice.
8
+ There is nothing lost or wasted in this life.
9
+ People will talk about your disgrace forever. To the honored, dishonor is worse than death.
10
+ To the illumined man or woman, a clod of dirt, a stone, and gold are the same.
11
+ Creation is only the projection into form of that which already exists.
12
+ Knowledge, the object of knowledge and the knower are the three factors which motivate action; the senses, the work and the doer comprise the threefold basis of action.
13
+ Better indeed is knowledge than mechanical practice. Better than knowledge is meditation. But better still is surrender of attachment to results, because there follows immediate peace.
14
+ Fear not what is not real, never was and never will be. What is real, always was and cannot be destroyed.
15
+ Whatever I am offered in devotion with a pure heart - a leaf, a flower, fruit, or water - I accept with joy.
16
+ A man's own self is his friend. A man's own self is his foe.
17
+ Consciousness is eternal it is not vanquished with the destruction of the temporary body
18
+ The wise should not unsettle the mind of the ignorant who is attached to the fruits of work.
19
+ Unnatural work produces too much stress.
20
+ Much better to do one's own work even if you have to do it imperfectly than it is to do somebody elses work perfectly.
21
+ A Self-realized person does not depend on anybody [except God] for anything.
22
+ Even as a tortoise draws in its limbs, the wise can draw in their senses at will.
23
+ For he who has no tranquility there is no concentration.
24
+ The foods that promote longevity, virtue, strength, health, happiness, and joy; are juicy, smooth, substantial, and agreeable to the stomach.
25
+ When meditation is mastered, the mind is unwavering like the flame of a lamp in a windless place.
26
+ There is neither Self-knowledge nor Self-perception to those whose senses are not under control. Without Self-perception there is no peace; and without peace there can be no happiness.
27
+ Living in solitude, eating lightly, controlling the thought, word, and deed; ever absorbed in yoga of meditation, and taking refuge in detachment.
28
+ He who, before he leaves his body, learns to surmount the promptings of desire and anger is a saint and is happy.
29
+ The serenity of mind, gentleness, silence, self-restraint, and the purity of mind are called the austerity of thought.
30
+ Acquire this transcendental knowledge by humble reverence, by sincere inquiry, and by service.
31
+ For certain is death for the born And certain is birth for the dead; Therefore over the Thou shouldst not grieve.
32
+ If due to ego you think: I shall not fight; this resolve of yours is vain. Your own nature will compel you.
33
+ Action is the product of the Qualities inherent in Nature.
34
+ You alone know Yourself by Yourself.
35
+ I am silence among the secrets, and the Self-knowledge of the knowledgeable.
36
+ Filled with insatiable desires, hypocrisy, pride, and arrogance; holding wrong views due to delusion; they act with impure motives.
37
+ The sage awakes to light in the night of all creatures. That which the world calls day is the night of ignorance to the wise.
38
+ The body is mortal, but the person dwelling in the body is immortal and immeasurable.
39
+ When you move amidst the world of sense, free from attachment and aversion alike, there comes the peace in which all sorrows end, and you life in the wisdom of the Self.
40
+ The body is mortal, but the person dwelling in the body is immortal and immeasurable.
41
+ On this path effort never goes to waste, and there is no failure. Even a little effort toward spiritual awareness will protect you from the greatest fear.
42
+ They all attain perfection When they find joy in their work.
43
+ When the senses contact sense objects, a person experiences cold or heat, pleasure or pain. These experiences are fleeting they come and go. Bear them patiently.
44
+ Alas! We are ready to commit a great sin by striving to slay our kinsmen because of greed for the pleasures of the kingdom.
45
+ I am the sweet fragrance in the earth. I am the heat in the fire, the life in all living beings, and the austerity in the ascetics.
46
+ You grieve for those who are not worthy of grief, and yet speak the words of wisdom. The wise grieve neither for the living nor for the dead.
47
+ There was never a time when I, you, or these kings did not exist; nor shall we ever cease to exist in the future.
48
+ Renunciation of the fruit of work is better than meditation.
49
+ Even without your participation all the warriors standing arrayed in the opposing armies shall cease to exist.
50
+ I am rich and born in a noble family. I am the greatest. I shall perform sacrifice, I shall give charity, and I shall rejoice. Thus deluded by ignorance
51
+ One attains the highest perfection by devotion to one's natural work. Listen to Me how one attains perfection while engaged in natural work.
52
+ The enlightened one should inspire others by performing all works efficiently without attachment.
53
+ Those who are devoid of attachment, whose mind is fixed in knowledge, all deeds of such liberated persons dissolves away.
54
+ Even the wise are confused about what is action and what is inaction.
55
+ The true nature of action is very difficult to understand. Therefore, one should know the nature of attached action, the nature of detached action, and also the nature of forbidden action.
56
+ Detached action is unselfish work.
57
+ Everything has been accomplished in this very life by those whose mind is set in equality.
58
+ The wise do not rejoice in sensual pleasures.
59
+ The deluded ones, who restrain their organs of action but mentally dwell upon the sense enjoyment, are called hypocrites.
60
+ You should perform your duty [with apathetic frame of mind] with a view to guide people and for the universal welfare.
61
+ Because, whatever noble persons do, others follow. Whatever standard they set up, the world follows.
62
+ Scarcely one out of thousands of persons strives for perfection of Self-realization.
63
+ Hold the waist, spine, chest, neck, and head erect, motionless and steady, fix the eyes and the mind steadily between the eye brows, and do not look around.
64
+ Treating pleasure and pain, gain and loss, victory and defeat alike, engage yourself in your duty. By doing your duty this way you will not incur sin.
65
+ Adhering to this view these lost souls, with small intellect and cruel deeds, are born as enemies for the destruction of the world.
66
+ Bound by hundreds of ties of desire and enslaved by lust and anger; they strive to obtain wealth by unlawful means for the fulfillment of desires.
67
+ Knowledge is better than mere ritualistic practice.
68
+ I believe You are the imperishable, the Supreme to be realized. You are the ultimate resort of the universe.
69
+ The light of all lights, He is said to be beyond darkness.
70
+ Some perceive God in the heart by the intellect through meditation.
71
+ The Self is present equally in all beings.
72
+ Hypocrisy, arrogance, pride, anger, harshness, and ignorance; these are the marks of those who are born with demonic qualities, O Arjuna.
data/test/test_gita.rb ADDED
@@ -0,0 +1,8 @@
1
+ require 'test/unit'
2
+ require 'xkcd'
3
+
4
+ class GitaTest < Test::Unit::TestCase
5
+ def test_GET_get
6
+ assert_not_nil Gita.get
7
+ end
8
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gita
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Hemanth.HM
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-05-20 00:00:00.000000000Z
13
+ dependencies: []
14
+ description: A simple gem to get random Bhagavad Gita quotes
15
+ email: hemanth.hm@gmail.com
16
+ executables:
17
+ - gita
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - Rakefile
22
+ - lib/gita.rb
23
+ - bin/gita
24
+ - lib/quotes
25
+ - test/test_gita.rb
26
+ homepage: http://rubygems.org/gems/gita
27
+ licenses: []
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ requirements: []
45
+ rubyforge_project:
46
+ rubygems_version: 1.8.10
47
+ signing_key:
48
+ specification_version: 3
49
+ summary: XCKD random img urls!
50
+ test_files:
51
+ - test/test_gita.rb