This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new e64592c Better to use $stdin here
e64592c is described below
commit e64592c0d3489cd3ebbf8d7b3dce1d97964d8878
Author: Sebb <[email protected]>
AuthorDate: Wed Dec 13 13:56:50 2017 +0000
Better to use $stdin here
---
tools/ponyapi.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/ponyapi.rb b/tools/ponyapi.rb
index cfedf83..c21a3cc 100644
--- a/tools/ponyapi.rb
+++ b/tools/ponyapi.rb
@@ -120,12 +120,12 @@ module PonyAPI
private
def get_cookie()
- unless STDIN.isatty
+ unless $stdin.isatty
puts "WARN:Input is not a tty; cannot prompt for a cookie"
return nil
end
require 'io/console'
- STDIN.getpass('Please provide the login cookie: ')
+ $stdin.getpass('Please provide the login cookie: ')
end
# Fetch a Ponymail API, with optional logged-in cookie
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].