lib/dev/Environment.rb in dev-1.0.79 vs lib/dev/Environment.rb in dev-1.0.80

- old
+ new

@@ -61,19 +61,21 @@ end def self.user return ENV['USER'] if !ENV['USER'].nil? #on Unix return ENV['USERNAME'] if !ENV['USERNAME'].nil? #on Windows + return "unknown" end def self.machine if !ENV['COMPUTERNAME'].nil? return ENV['COMPUTERNAME'] end machine = nil machine = `hostname` if machine.nil? machine = machine.split('.')[0] if machine.include?('.') + return "unknown" end end end # module Dev