xdevplatform / Twitter-API-v2-sample-code

Sample code for the Twitter API v2 endpoints
https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api
Apache License 2.0
2.68k stars 987 forks source link

Update syntax in create_tweet.rb #137

Open icwizardmonke opened 1 year ago

icwizardmonke commented 1 year ago

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

github-actions[bot] commented 1 year ago

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.

icwizardmonke commented 1 year ago

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