lib/exercism/env.rb in exercism-0.0.20 vs lib/exercism/env.rb in exercism-0.0.21

- old
+ new

@@ -1,11 +1,11 @@ class Exercism class Env def self.home if windows_nt? ENV["HOMEDRIVE"] + ENV["HOMEPATH"] - elsif ruby18? + elsif ruby18? || ruby191? File.expand_path('~') else Dir.home(Etc.getlogin) end end @@ -14,8 +14,12 @@ ENV["OS"] == 'Windows_NT' end def self.ruby18? RUBY_VERSION == '1.8.7' + end + + def self.ruby191? + RUBY_VERSION == '1.9.1' end end end