/[freeride]/freeride/freebase/readers.rb
ViewVC logotype

Diff of /freeride/freebase/readers.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by richkilmer, Thu Nov 21 07:15:10 2002 UTC revision 1.5 by richkilmer, Fri Dec 20 17:23:22 2002 UTC
# Line 116  module FreeBASE Line 116  module FreeBASE
116            if file!=".." and file!="." and File.stat("#{path}/#{file}").directory?            if file!=".." and file!="." and File.stat("#{path}/#{file}").directory?
117              filespec = "#{path}/#{file}/plugin.yaml"              filespec = "#{path}/#{file}/plugin.yaml"
118              next unless File.exist?(filespec)              next unless File.exist?(filespec)
119              @configuration.register YAML.load(File.open(filespec).read)              @configuration.register(YAML.load(File.open(filespec).read), File.dirname(filespec))
120            elsif file[-5..-1]==".yaml" and !File.stat("#{path}/#{file}").directory?            elsif file[-5..-1]==".yaml" and !File.stat("#{path}/#{file}").directory?
121              filespec = "#{path}/#{file}"              filespec = "#{path}/#{file}"
122              @configuration.register YAML.load(File.open(filespec).read)              @configuration.register(YAML.load(File.open(filespec).read), File.dirname(filespec))
123            end            end
124          end          end
125        end        end

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26