Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ruler length to 280 characters per twitter change #1

Merged
merged 1 commit into from
Apr 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion etc/t-completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ _t (){
"retweet[Sends Tweets to your followers.]" \
"retweets[Returns the 20 most recent Retweets by a user.]" \
"retweets_of_me[Returns the 20 most recent Tweets of the authenticated user that have been retweeted by others.]" \
"ruler[Prints a 140-character ruler]" \
"ruler[Prints a 280-character ruler]" \
"status[Retrieves detailed information about a Tweet.]" \
"timeline[Returns the 20 most recent Tweets posted by a user.]" \
"trends[Returns the top 50 trending topics.]" \
Expand Down
4 changes: 2 additions & 2 deletions lib/t/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@ def retweets_of_me
end
map %w(retweetsofme) => :retweets_of_me

desc 'ruler', 'Prints a 140-character ruler'
desc 'ruler', 'Prints a 280-character ruler'
method_option 'indent', aliases: '-i', type: :numeric, default: 0, desc: 'The number of spaces to print before the ruler.'
def ruler
markings = '----|'.chars.cycle.take(140).join
markings = '----|'.chars.cycle.take(280).join
say "#{' ' * options['indent'].to_i}#{markings}"
end

Expand Down