lib/randomizer.rb in randomizer-0.0.1 vs lib/randomizer.rb in randomizer-0.0.2
- old
+ new
@@ -1,19 +1,13 @@
-$:.unshift(File.dirname(__FILE__)) unless
- $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
-
-module Randomizer
- VERSION = '0.0.1'
-end
-
class Array
def random
self[Kernel.rand(size)]
end
end
DB_DIR = File.join(File.dirname(__FILE__), '..', 'data')
-require 'randomizer/all_avatars_site'
-require 'randomizer/random_user'
-require 'randomizer/name_generator'
-require 'randomizer/markov_text_generator'
+
+%w(all_avatars_site random_user name_generator markov_text_generator).each do |file|
+ require File.join(File.dirname(__FILE__), 'randomizer', file)
+end
+