Permalink
Browse files

house cleaning + tweaked the README

  • Loading branch information...
benburkert committed Oct 9, 2008
1 parent c88eca0 commit 5b35914a338fc7569e675ef565a3009326e7250a
View
@@ -171,6 +171,6 @@ Random name, with a specific gender:
h4. Contributors
-Matt Aimonetti (mattetti)
-Gerrit Kaiser (gerrit)
-Mike Vincent (shame)
+* Matt Aimonetti (mattetti)
+* Gerrit Kaiser (gerrit)
+* Mike Vincent (shame)
View
@@ -10,10 +10,12 @@ def reduce
end
end
-dir = File.dirname(__FILE__)
+dir = File.dirname(__FILE__) + '/randexp'
require dir + '/core_ext'
-require dir + '/randexp/parser'
-require dir + '/randexp/reducer'
-require dir + '/randexp/dictionary'
+require dir + '/dictionary'
+require dir + '/parser'
require dir + '/randgen'
+require dir + '/reducer'
+require dir + '/wordlists/female_names'
+require dir + '/wordlists/male_names'
require dir + '/wordlists/real_name'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -2,8 +2,8 @@ class RealName
def self.load_female_first_names
dir = File.dirname(__FILE__)
- if File.exists?("#{dir}/../../wordlists/female_names")
- File.read("#{dir}/../../wordlists/female_names").split
+ if File.exists?("#{dir}/../../../wordlists/female_names")
+ File.read("#{dir}/../../../wordlists/female_names").split
else
raise "words file not found"
end
@@ -2,8 +2,8 @@ class RealName
def self.load_male_first_names
dir = File.dirname(__FILE__)
- if File.exists?("#{dir}/../../wordlists/male_names")
- File.read("#{dir}/../../wordlists/male_names").split
+ if File.exists?("#{dir}/../../../wordlists/male_names")
+ File.read("#{dir}/../../../wordlists/male_names").split
else
raise "words file not found"
end
@@ -1,12 +1,8 @@
-dir = File.dirname(__FILE__)
-require dir + '/female_names'
-require dir + '/male_names'
-
class RealName
def self.load_surnames
dir = File.dirname(__FILE__)
- if File.exists?("#{dir}/../../wordlists/surnames")
- File.read("#{dir}/../../wordlists/surnames").split
+ if File.exists?("#{dir}/../../../wordlists/surnames")
+ File.read("#{dir}/../../../wordlists/surnames").split
else
raise "words file not found"
end

0 comments on commit 5b35914

Please sign in to comment.