lib/exercism.rb in exercism-0.0.14 vs lib/exercism.rb in exercism-0.0.15

- old
+ new

@@ -10,10 +10,14 @@ require 'exercism/api' class Exercism def self.home - Dir.home(Etc.getlogin) + if ENV["OS"] == 'Windows_NT' then + ENV["HOMEDRIVE"]+ENV["HOMEPATH"] + else + Dir.home(Etc.getlogin) + end end def self.login(github_username, key, dir) data = { 'github_username' => github_username,