lib/daemon-ogre.rb in daemon-ogre-1.4.1 vs lib/daemon-ogre.rb in daemon-ogre-1.4.2

- old
+ new

@@ -13,13 +13,13 @@ if !arg[:delayed].nil? raise ArgumentError, "Delayed items must be in an "+\ "Array! Example:\n:delayed => ['abc']" if arg[:delayed].class != Array end - if !arg[:exclude].nil? + if !arg[:excluded].nil? raise ArgumentError, "Exclude items must be in an "+\ - "Array! Example:\n:exclude => ['abc']" if arg[:exclude].class != Array + "Array! Example:\n:exclude => ['abc']" if arg[:excluded].class != Array end arg[:type]= "rb" if arg[:type].nil? #================================================================================================================= @@ -28,12 +28,12 @@ delayed_loads = Array.new Dir["#{directory}/**/*.#{arg[:type]}"].each do |file| arg[:delayed]= [nil] if arg[:delayed].nil? - arg[:exclude]= [nil] if arg[:exclude].nil? + arg[:excluded]= [nil] if arg[:excluded].nil? - arg[:exclude].each do |except| + arg[:excluded].each do |except| if file.split('/').last.split('.').first == except.to_s.split('.').first puts file.to_s + " cant be loaded because it's an exception" if $DEBUG else arg[:delayed].each do |delay| if file.split('/').last.split('.').first == delay.to_s.split('.').first \ No newline at end of file