lib/you_track.rb in you_track-0.2.1 vs lib/you_track.rb in you_track-0.2.2
- old
+ new
@@ -7,10 +7,20 @@
require "faraday"
require "faraday-cookie_jar"
require "faraday_middleware"
require "multi_xml"
-module YouTrack; end
+module YouTrack
+ def self.defaults
+ @defaults ||= begin
+ YAML.load_file(File.expand_path("~/.youtrack"))
+ rescue ArgumentError, Errno::ENOENT
+ # handle missing home directories or missing file
+ {}
+ end
+ end
+end
+
require_relative "you_track/client"
require_relative "you_track/parser"