features/support/settings.rb in github_api-0.10.1 vs features/support/settings.rb in github_api-0.10.2
- old
+ new
@@ -2,6 +2,10 @@
def settings_file
Pathname.new(File.expand_path("../../settings.yml", __FILE__))
end
-SETTINGS = (File.exists?(settings_file) && yaml= YAML.load_file(settings_file)) ? yaml : {'basic_auth' => 'login:password', 'oauth_token' => 'as79asfd79ads', 'user'=> 'octokat', 'repo' => 'dummy', 'email' => 'email@example.com'}
+def live_credentials?
+ true
+end
+
+SETTINGS = (live_credentials? && File.exists?(settings_file) && yaml= YAML.load_file(settings_file)) ? yaml : {'basic_auth' => 'login:password', 'oauth_token' => 'as79asfd79ads', 'user'=> 'murek', 'repo' => 'dummy', 'email' => 'email@example.com'}