Twitter-API-v2-sample-code icon indicating copy to clipboard operation
Twitter-API-v2-sample-code copied to clipboard

Update syntax in create_tweet.rb

Open icwizardmonke opened this issue 2 years ago • 2 comments

Kernel#gets is not a method to read from stdin.

Use $stdin.gets instead

gets reads from argument input

Screenshot shows the current code fails to run because gets tries to parse argument input ARGV

image

Change to $stdin.gets solves this problem

icwizardmonke avatar Aug 22 '23 14:08 icwizardmonke

CLA Assistant Lite bot All Contributors have signed the CLA. If the commit check is not passing, a maintainer must go the Checks tab of this PR and rerun the GitHub Action.

github-actions[bot] avatar Aug 22 '23 14:08 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

icwizardmonke avatar Aug 22 '23 14:08 icwizardmonke