lib/docman/info.rb in docman-0.0.4 vs lib/docman/info.rb in docman-0.0.5

- old
+ new

@@ -24,10 +24,10 @@ to_save['version'] = self.version unless self.version.nil? # to_save['ref'] = result to_save['type'] = self['type'] to_save['build_type'] = self['build_type'] - File.open("#{self['full_build_path']}/info.yaml", 'w') {|f| f.write to_save.to_yaml} + File.open(File.join(self['full_build_path'], 'info.yaml'), 'w') {|f| f.write to_save.to_yaml} end def need_rebuild? return TRUE if Docman::Application.instance.options[:force] return TRUE unless File.directory? self['full_build_path'] \ No newline at end of file