Commits

Seth Jackson committed d0968fd

Fix config file handling. YAML.load_file will give back a Ruby data structure while YAML.parse_file returns the document nodes. Closes #3.

Comments (0)

Files changed (2)

     begin
         path = File.expand_path(options["config_file"])
         
-        yaml = YAML.parse_file(path)
-        
-        if !yaml
-            puts "Error: invalid config file: #{path}"
+        config = YAML.load_file(path)
+
+        unless config
+            puts "Error: invalid config file: #{path}."
             exit
         end
-        
-        config ||= yaml
     rescue YAML::SyntaxError, StandardError
         puts "Error: invalid config file: #{path}."
         exit

lib/bitbucket-backup/version.rb

 module Bitbucket
     module Backup
-        VERSION = "0.3.0"
+        VERSION = "0.3.1"
     end
 end