From 79c82b895e4dfde3ba18472c7827cdd7de5195ea Mon Sep 17 00:00:00 2001 From: icwizardmonke <53415386+icwizardmonke@users.noreply.github.com> Date: Tue, 22 Aug 2023 07:29:59 -0700 Subject: [PATCH] Update create_tweet.rb Kernel#gets is not a method to read from stdin. Use $stdin.gets Signed-off-by: icwizardmonke <53415386+icwizardmonke@users.noreply.github.com> --- Manage-Tweets/create_tweet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Manage-Tweets/create_tweet.rb b/Manage-Tweets/create_tweet.rb index 4fdb071..74d073a 100644 --- a/Manage-Tweets/create_tweet.rb +++ b/Manage-Tweets/create_tweet.rb @@ -31,7 +31,7 @@ def get_request_token(consumer) def get_user_authorization(request_token) puts "Follow this URL to have a user authorize your app: #{request_token.authorize_url()}" puts "Enter PIN: " - pin = gets.strip + pin = $stdin.gets.strip return pin end