Skip to content
Browse files

house cleaning + tweaked the README

  • Loading branch information...
1 parent c88eca0 commit 5b35914a338fc7569e675ef565a3009326e7250a @benburkert committed
View
6 README.textile
@@ -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 lib/randexp.rb
@@ -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'
View
0 lib/core_ext.rb → lib/randexp/core_ext.rb
File renamed without changes.
View
0 lib/core_ext/array.rb → lib/randexp/core_ext/array.rb
File renamed without changes.
View
0 lib/core_ext/integer.rb → lib/randexp/core_ext/integer.rb
File renamed without changes.
View
0 lib/core_ext/range.rb → lib/randexp/core_ext/range.rb
File renamed without changes.
View
0 lib/core_ext/regexp.rb → lib/randexp/core_ext/regexp.rb
File renamed without changes.
View
0 lib/randgen.rb → lib/randexp/randgen.rb
File renamed without changes.
View
4 lib/wordlists/female_names.rb → lib/randexp/wordlists/female_names.rb
@@ -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
View
4 lib/wordlists/male_names.rb → lib/randexp/wordlists/male_names.rb
@@ -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
View
8 lib/wordlists/real_name.rb → lib/randexp/wordlists/real_name.rb
@@ -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.
Something went wrong with that request. Please try again.