lib/exercism.rb in exercism-0.0.16 vs lib/exercism.rb in exercism-0.0.17
- old
+ new
@@ -13,9 +13,10 @@
def self.home
if ENV["OS"] == 'Windows_NT' then
ENV["HOMEDRIVE"]+ENV["HOMEPATH"]
else
+ return File.expand_path('~') if RUBY_VERSION <= "1.8.7"
Dir.home(Etc.getlogin)
end
end
def self.login(github_username, key, dir)