yodaism 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,18 @@
1
1
  module Yodaism
2
2
  class Config
3
- FILE = "lib/yodaism/quotes/quotes.txt"
3
+ file_path = File.expand_path(File.dirname(__FILE__))
4
+ FILE = "#{file_path}/quotes/quotes.txt"
5
+
4
6
  attr_reader :quotes
5
7
 
6
8
  def initialize
7
9
  @quotes = {}
8
- File.exists?(file) ? load_quotes_from_file : exit(1)
10
+ File.exists?(file) ? load_quotes_from_file : file_not_found
11
+ end
12
+
13
+ def file_not_found
14
+ puts "could not find file in path #{FILE}"
15
+ exit(1)
9
16
  end
10
17
 
11
18
  def load_quotes_from_file
@@ -1,7 +1,7 @@
1
1
  Fear is the path to the dark side. Fear leads to anger, anger leads to hate, hate leads to suffering.
2
- Confer on you, the level of Jedi Knight, the Council does. But, agree with your taking this boy as your Padawan Learner I do not
2
+ Confer on you, the level of Jedi Knight, the Council does. But, agree with your taking this boy as your Padawan Learner... I do not
3
3
  Qui-Gon's defiance I sense in you. Need that you do not. Agree with you, the Council does. Your apprentice young Skywalker will be.
4
- Lost a planet, Master Obi-Wan has. How embarrassing how embarrassing.
4
+ Lost a planet, Master Obi-Wan has. How embarrassing... how embarrassing.
5
5
  Go to the center of the gravity's pull, and find your planet you will.
6
6
  Meditate on this, I will.
7
7
  Clear, your mind must be if you are to discover the real villains behind the plot.
@@ -22,14 +22,14 @@ To fight this Lord Sidious, strong enough, you are not.
22
22
  Twisted by the dark side, young Skywalker has become.
23
23
  The boy you trained, gone he is, consumed by Darth Vader.
24
24
  I hear a new apprentice you have, Emperor. Or should I call you Darth Sidious?
25
- At an end your rule is and not short enough it was.
25
+ At an end your rule is... and not short enough it was.
26
26
  Not if anything to say about it, I have!
27
27
  Into exile I must go. Failed, I have.
28
28
  If so powerful you are, why leave?
29
29
  Faith in your new apprentice, misplaced may be. As is your faith in the dark side of the Force.
30
30
  Looking? Found someone you have I would say, mm?
31
31
  Help you I can! Yes! Mm!
32
- Awww, cannot get your ship outeh-heheheh!
32
+ Awww, cannot get your ship out...eh-heheheh!
33
33
  How you get so big, eating food of this kind?
34
34
  Mine! Or I will help you not!
35
35
  Mudhole? Slimy? My home this is!
@@ -37,23 +37,23 @@ I cannot teach him. The boy has no patience.
37
37
  Hmm. Much anger in him, like his father.
38
38
  You will be. You will be.
39
39
  Yes. A Jedi's strength flows from the Force. But beware the dark side. Anger, fear, aggression. The dark side of the Force are they. Easily they flow, quick to join you in a fight. If once you start down the dark path, forever will it dominate your destiny. Consume you it will, as it did Obi-Wan's apprentice.
40
- You will know when you are calm, at peace, passive. A Jedi uses the Force for knowledge and defense, never for attack.
40
+ You will know... when you are calm, at peace, passive. A Jedi uses the Force for knowledge and defense, never for attack.
41
41
  So certain are you. Always with you it cannot be done. Hear you nothing that I say?
42
42
  No! No different! Only different in your mind. You must unlearn what you have learned.
43
43
  That is why you fail.
44
44
  No! Try not. Do. Or do not. There is no try.
45
45
  Size matters not. Look at me. Judge me by my size do you?
46
- And well you should not! For my ally is the Force. And a powerful ally it is. Life creates it, makes it grow. Its energy surrounds us and binds us. Luminous beings are we, not this crude matter! You must feel the Force around you. Here, between you, me, the tree, the rock everywhere! Even between the land and the ship.
47
- Through the Force, things you will see. Other places. The futurethe pastold friends long gone.
46
+ And well you should not! For my ally is the Force. And a powerful ally it is. Life creates it, makes it grow. Its energy surrounds us... and binds us. Luminous beings are we, not this... crude matter! You must feel the Force around you. Here, between you, me, the tree, the rock... everywhere! Even between the land and the ship.
47
+ Through the Force, things you will see. Other places. The future...the past...old friends long gone.
48
48
  Hmm. Control, control. You must learn control.
49
49
  Difficult to see. Always in motion is the future.
50
50
  Decide you must how to serve them best. If you leave now, help them you could. But you would destroy all for which they have fought and suffered.
51
51
  Mind what you have learned. Save you it can!
52
52
  No. There is another.
53
53
  When nine hundred years old you reach, look as good, you will not, hm?
54
- Strong am I with the Force, but not that strong. Twilight is upon me, and soon night must fall. That is the way of things the way of the Force.
54
+ Strong am I with the Force, but not that strong. Twilight is upon me, and soon night must fall. That is the way of things... the way of the Force.
55
55
  No more training do you require. Already know you that which you need.
56
- No. Unfortunate that you rushed to face him that incomplete was your training. Not ready for the burden were you.
56
+ No. Unfortunate that you rushed to face him... that incomplete was your training. Not ready for the burden were you.
57
57
  Remember, a Jedi's strength flows from the Force. But beware. Anger, fear, aggression. The dark side are they. Once you start down the dark path, forever will it dominate your destiny.
58
58
  Your father he is.
59
59
  Do not underestimate the powers of the Emperor, or suffer your father's fate, you will.
@@ -64,14 +64,14 @@ Proud I am, to stand by Wookiees in their hour of need.
64
64
  Yoda I am, fight I will.
65
65
  Tired I am, rest I must.
66
66
  When all choices seem wrong, choose restraint.
67
- If no mistake have you made, yet losing you are a different game you should play.
67
+ If no mistake have you made, yet losing you are ... a different game you should play.
68
68
  A trial of being old is this: remembering which thing one has said into which young ears.
69
69
  Think you I have never felt the touch of the dark? Know you what a soul so great as Yoda can make, in eight hundred years?
70
70
  Think you the relationship between Master and Padawan is only to help them? Oh, this is what we let them believe, yes! But when the day comes that even old Yoda does not learn something from his students-then truly, he shall be a teacher no more.
71
71
  On many long journeys have I gone. And waited, too, for others to return from journeys of their own. Some return; some are broken; some come back so different only their names remain.
72
72
  Honor life by living, Padawan. Killing honors only death: only the dark side.
73
73
  To be Jedi is to face the truth, and choose. Give off light, or darkness, Padawan. Be a candle, or the night, Padawan: but choose!
74
- When you look at the dark side, careful you must be for the dark side looks back.
74
+ When you look at the dark side, careful you must be ... for the dark side looks back.
75
75
  You think Yoda stops teaching, just because his student does not want to hear? Yoda a teacher is. Yoda teaches like drunkards drink. Like killers kill.
76
76
  A labyrinth of evil, this war has become.
77
77
  To the Force, look for guidance. Accept what fate has placed before us.
@@ -1,3 +1,3 @@
1
1
  module Yodaism
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - willywos
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-01-13 00:00:00 -06:00
17
+ date: 2012-01-14 00:00:00 -06:00
18
18
  default_executable: yodaism
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency