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

fixed 280 character from 140 #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
3 changes: 1 addition & 2 deletions 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 Expand Up @@ -527,4 +527,3 @@ _t_stream() {
":argument:__t_stream_arguments" \
$t_general_options && ret=0
}

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
Loading