From a19d8802c7a3ff17886f8b414b0a5533d00dcd80 Mon Sep 17 00:00:00 2001 From: Aaron Toponce Date: Fri, 29 Dec 2017 11:19:19 -0700 Subject: [PATCH] update ruler length to 280 characters per twitter change update etc/t-completion.zsh for 140->280 character change --- etc/t-completion.zsh | 2 +- lib/t/cli.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/t-completion.zsh b/etc/t-completion.zsh index 08c96f47..a2509503 100644 --- a/etc/t-completion.zsh +++ b/etc/t-completion.zsh @@ -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.]" \ diff --git a/lib/t/cli.rb b/lib/t/cli.rb index 5ae10471..46cd57e4 100644 --- a/lib/t/cli.rb +++ b/lib/t/cli.rb @@ -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