lib/galileo.rb in galileo-0.1.0 vs lib/galileo.rb in galileo-0.1.1

- old
+ new

@@ -5,19 +5,20 @@ require "colorize" require "netrc" require "api_cache" require "moneta" require "tmpdir" +require "io/console" class Galileo def initialize(query) repos = [] config = Netrc.read unless config["api.github.com"] puts "" # \n - login = [(print 'GitHub Username: '), $stdin.gets.rstrip][1] - password = [(print 'GitHub Password: '), $stdin.gets.rstrip][1] + login = [(print 'GitHub Username: '), STDIN.gets.rstrip][1] + password = [(print 'GitHub Password: '), STDIN.noecho(&:gets).rstrip][1] config["api.github.com"] = login, password config.save end Octokit.configure do |client|