From 9851bbcafba1112c8875e8c0292b601c190c3aeb Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Mon, 23 Apr 2012 21:40:01 -0700 Subject: [PATCH] Update flag descriptions --- lib/t/cli.rb | 48 +++++++++++++++---------------- spec/cli_spec.rb | 72 +++++++++++++++++++++++------------------------ spec/list_spec.rb | 12 ++++---- 3 files changed, 66 insertions(+), 66 deletions(-) diff --git a/lib/t/cli.rb b/lib/t/cli.rb index c8a9d439..3b9fd3bf 100644 --- a/lib/t/cli.rb +++ b/lib/t/cli.rb @@ -209,13 +209,13 @@ def follow(screen_name, *screen_names) desc "followings", "Returns a list of the people you follow on Twitter." method_option :created, :aliases => "-c", :type => :boolean, :default => false, :desc => "Sort by the time when Twitter acount was created." - method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by total number of favorites." - method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by total number of followers." - method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by total number of friends." + method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by number of favorites." + method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by number of followers." + method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by number of friends." method_option :listed, :aliases => "-i", :type => :boolean, :default => false, :desc => "Sort by number of list memberships." method_option :long, :aliases => "-l", :type => :boolean, :default => false, :desc => "List in long format." method_option :reverse, :aliases => "-r", :type => :boolean, :default => false, :desc => "Reverse the order of the sort." - method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by total number of Tweets." + method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by number of Tweets." method_option :unsorted, :aliases => "-u", :type => :boolean, :default => false, :desc => "Output is not sorted." def followings following_ids = collect_with_cursor do |cursor| @@ -231,13 +231,13 @@ def followings desc "followers", "Returns a list of the people who follow you on Twitter." method_option :created, :aliases => "-c", :type => :boolean, :default => false, :desc => "Sort by the time when Twitter acount was created." - method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by total number of favorites." - method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by total number of followers." - method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by total number of friends." + method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by number of favorites." + method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by number of followers." + method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by number of friends." method_option :listed, :aliases => "-i", :type => :boolean, :default => false, :desc => "Sort by number of list memberships." method_option :long, :aliases => "-l", :type => :boolean, :default => false, :desc => "List in long format." method_option :reverse, :aliases => "-r", :type => :boolean, :default => false, :desc => "Reverse the order of the sort." - method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by total number of Tweets." + method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by number of Tweets." method_option :unsorted, :aliases => "-u", :type => :boolean, :default => false, :desc => "Output is not sorted." def followers follower_ids = collect_with_cursor do |cursor| @@ -253,13 +253,13 @@ def followers desc "friends", "Returns the list of people who you follow and follow you back." method_option :created, :aliases => "-c", :type => :boolean, :default => false, :desc => "Sort by the time when Twitter acount was created." - method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by total number of favorites." - method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by total number of followers." - method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by total number of friends." + method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by number of favorites." + method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by number of followers." + method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by number of friends." method_option :listed, :aliases => "-i", :type => :boolean, :default => false, :desc => "Sort by number of list memberships." method_option :long, :aliases => "-l", :type => :boolean, :default => false, :desc => "List in long format." method_option :reverse, :aliases => "-r", :type => :boolean, :default => false, :desc => "Reverse the order of the sort." - method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by total number of Tweets." + method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by number of Tweets." method_option :unsorted, :aliases => "-u", :type => :boolean, :default => false, :desc => "Output is not sorted." def friends following_ids = collect_with_cursor do |cursor| @@ -279,13 +279,13 @@ def friends desc "leaders", "Returns the list of people who you follow but don't follow you back." method_option :created, :aliases => "-c", :type => :boolean, :default => false, :desc => "Sort by the time when Twitter acount was created." - method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by total number of favorites." - method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by total number of followers." - method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by total number of friends." + method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by number of favorites." + method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by number of followers." + method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by number of friends." method_option :listed, :aliases => "-i", :type => :boolean, :default => false, :desc => "Sort by number of list memberships." method_option :long, :aliases => "-l", :type => :boolean, :default => false, :desc => "List in long format." method_option :reverse, :aliases => "-r", :type => :boolean, :default => false, :desc => "Reverse the order of the sort." - method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by total number of Tweets." + method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by number of Tweets." method_option :unsorted, :aliases => "-u", :type => :boolean, :default => false, :desc => "Output is not sorted." def leaders following_ids = collect_with_cursor do |cursor| @@ -376,14 +376,14 @@ def retweets(screen_name=nil) desc "suggest", "This command returns a listing of Twitter users' accounts we think you might enjoy following." method_option :created, :aliases => "-c", :type => :boolean, :default => false, :desc => "Sort by the time when Twitter acount was created." - method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by total number of favorites." - method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by total number of followers." - method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by total number of friends." + method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by number of favorites." + method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by number of followers." + method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by number of friends." method_option :listed, :aliases => "-i", :type => :boolean, :default => false, :desc => "Sort by number of list memberships." method_option :long, :aliases => "-l", :type => :boolean, :default => false, :desc => "List in long format." method_option :number, :aliases => "-n", :type => :numeric, :default => DEFAULT_NUM_RESULTS, :desc => "Limit the number of results." method_option :reverse, :aliases => "-r", :type => :boolean, :default => false, :desc => "Reverse the order of the sort." - method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by total number of Tweets." + method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by number of Tweets." method_option :unsorted, :aliases => "-u", :type => :boolean, :default => false, :desc => "Output is not sorted." def suggest limit = options['number'] || DEFAULT_NUM_RESULTS @@ -435,13 +435,13 @@ def update(message) desc "users SCREEN_NAME [SCREEN_NAME...]", "Returns a list of users you specify." method_option :created, :aliases => "-c", :type => :boolean, :default => false, :desc => "Sort by the time when Twitter acount was created." - method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by total number of favorites." - method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by total number of followers." - method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by total number of friends." + method_option :favorites, :aliases => "-v", :type => :boolean, :default => false, :desc => "Sort by number of favorites." + method_option :followers, :aliases => "-f", :type => :boolean, :default => false, :desc => "Sort by number of followers." + method_option :friends, :aliases => "-d", :type => :boolean, :default => false, :desc => "Sort by number of friends." method_option :listed, :aliases => "-i", :type => :boolean, :default => false, :desc => "Sort by number of list memberships." method_option :long, :aliases => "-l", :type => :boolean, :default => false, :desc => "List in long format." method_option :reverse, :aliases => "-r", :type => :boolean, :default => false, :desc => "Reverse the order of the sort." - method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by total number of Tweets." + method_option :tweets, :aliases => "-t", :type => :boolean, :default => false, :desc => "Sort by number of Tweets." method_option :unsorted, :aliases => "-u", :type => :boolean, :default => false, :desc => "Output is not sorted." def users(screen_name, *screen_names) screen_names.unshift(screen_name) diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index d2ed3b7b..f121de45 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -465,7 +465,7 @@ before do @cli.options = @cli.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @cli.followings $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -474,7 +474,7 @@ before do @cli.options = @cli.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @cli.followings $stdout.string.chomp.rstrip.should == "pengwynn sferik" end @@ -483,7 +483,7 @@ before do @cli.options = @cli.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @cli.followings $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -492,7 +492,7 @@ before do @cli.options = @cli.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @cli.followings $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -501,7 +501,7 @@ before do @cli.options = @cli.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @cli.followings $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -532,7 +532,7 @@ before do @cli.options = @cli.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @cli.followings $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -565,7 +565,7 @@ before do @cli.options = @cli.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @cli.followers $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -574,7 +574,7 @@ before do @cli.options = @cli.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @cli.followers $stdout.string.chomp.rstrip.should == "pengwynn sferik" end @@ -583,7 +583,7 @@ before do @cli.options = @cli.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @cli.followers $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -592,7 +592,7 @@ before do @cli.options = @cli.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @cli.followers $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -601,7 +601,7 @@ before do @cli.options = @cli.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @cli.followers $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -632,7 +632,7 @@ before do @cli.options = @cli.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @cli.followers $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -671,7 +671,7 @@ before do @cli.options = @cli.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @cli.friends $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -680,7 +680,7 @@ before do @cli.options = @cli.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @cli.friends $stdout.string.chomp.rstrip.should == "pengwynn sferik" end @@ -689,7 +689,7 @@ before do @cli.options = @cli.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @cli.friends $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -698,7 +698,7 @@ before do @cli.options = @cli.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @cli.friends $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -707,7 +707,7 @@ before do @cli.options = @cli.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @cli.friends $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -738,7 +738,7 @@ before do @cli.options = @cli.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @cli.friends $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -777,7 +777,7 @@ before do @cli.options = @cli.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @cli.leaders $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -786,7 +786,7 @@ before do @cli.options = @cli.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @cli.leaders $stdout.string.chomp.rstrip.should == "pengwynn sferik" end @@ -795,7 +795,7 @@ before do @cli.options = @cli.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @cli.leaders $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -804,7 +804,7 @@ before do @cli.options = @cli.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @cli.leaders $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -813,7 +813,7 @@ before do @cli.options = @cli.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @cli.leaders $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -844,7 +844,7 @@ before do @cli.options = @cli.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @cli.leaders $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -1198,7 +1198,7 @@ before do @cli.options = @cli.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @cli.suggest $stdout.string.chomp.rstrip.should == "maccman mlroach jtrupiano stuntmann82 antpires" end @@ -1207,7 +1207,7 @@ before do @cli.options = @cli.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @cli.suggest $stdout.string.chomp.rstrip.should == "stuntmann82 antpires maccman mlroach jtrupiano" end @@ -1216,7 +1216,7 @@ before do @cli.options = @cli.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @cli.suggest $stdout.string.chomp.rstrip.should == "stuntmann82 antpires mlroach jtrupiano maccman" end @@ -1225,7 +1225,7 @@ before do @cli.options = @cli.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @cli.suggest $stdout.string.chomp.rstrip.should == "stuntmann82 antpires mlroach jtrupiano maccman" end @@ -1234,7 +1234,7 @@ before do @cli.options = @cli.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @cli.suggest $stdout.string.chomp.rstrip.should == "stuntmann82 antpires mlroach jtrupiano maccman" end @@ -1282,7 +1282,7 @@ before do @cli.options = @cli.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @cli.suggest $stdout.string.chomp.rstrip.should == "stuntmann82 antpires jtrupiano maccman mlroach" end @@ -1522,7 +1522,7 @@ before do @cli.options = @cli.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @cli.users("sferik", "pengwynn") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -1531,7 +1531,7 @@ before do @cli.options = @cli.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @cli.users("sferik", "pengwynn") $stdout.string.chomp.rstrip.should == "pengwynn sferik" end @@ -1540,7 +1540,7 @@ before do @cli.options = @cli.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @cli.users("sferik", "pengwynn") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -1549,7 +1549,7 @@ before do @cli.options = @cli.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @cli.users("sferik", "pengwynn") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -1558,7 +1558,7 @@ before do @cli.options = @cli.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @cli.users("sferik", "pengwynn") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -1589,7 +1589,7 @@ before do @cli.options = @cli.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @cli.users("sferik", "pengwynn") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end diff --git a/spec/list_spec.rb b/spec/list_spec.rb index c0354ccf..112581f1 100644 --- a/spec/list_spec.rb +++ b/spec/list_spec.rb @@ -95,7 +95,7 @@ before do @list.options = @list.options.merge(:created => true) end - it "should list in long format" do + it "should sort by the time when Twitter acount was created" do @list.members("presidents") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -104,7 +104,7 @@ before do @list.options = @list.options.merge(:favorites => true) end - it "should list in long format" do + it "should sort by number of favorites" do @list.members("presidents") $stdout.string.chomp.rstrip.should == "pengwynn sferik" end @@ -113,7 +113,7 @@ before do @list.options = @list.options.merge(:followers => true) end - it "should list in long format" do + it "should sort by number of followers" do @list.members("presidents") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -122,7 +122,7 @@ before do @list.options = @list.options.merge(:friends => true) end - it "should list in long format" do + it "should sort by number of friends" do @list.members("presidents") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -131,7 +131,7 @@ before do @list.options = @list.options.merge(:listed => true) end - it "should list in long format" do + it "should sort by number of list memberships" do @list.members("presidents") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end @@ -162,7 +162,7 @@ before do @list.options = @list.options.merge(:tweets => true) end - it "should list in long format" do + it "should sort by number of Tweets" do @list.members("presidents") $stdout.string.chomp.rstrip.should == "sferik pengwynn" end