lib/gamefic/source/file.rb in gamefic-0.6.1 vs lib/gamefic/source/file.rb in gamefic-1.0.0

- old
+ new

@@ -8,10 +8,10 @@ @directories = directories || [] end def export path @directories.each { |directory| @@extensions.each { |ext| - abs_file = directory + '/' + path + ext + abs_file = File.join(directory, path + ext) if File.file?(abs_file) return Script::File.new(abs_file, path) end } }