lib/app/models/mod.rb in six-updater-web-0.13.3 vs lib/app/models/mod.rb in six-updater-web-0.13.4

- old
+ new

@@ -35,10 +35,10 @@ def read_version(path) return unless path && self.real_name cfg = File.join(path, self.real_name, '.rsync', '.repository.yml') if File.exists?(cfg) - conf = YAML::load(File.open(cfg)) + conf = YAML::load_file(cfg) if conf conf[:version] else nil end