t 0.8.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/t/cli.rb +1 -1
- data/lib/t/printable.rb +8 -4
- data/lib/t/version.rb +1 -1
- data/spec/cli_spec.rb +128 -188
- data/spec/list_spec.rb +32 -47
- data/spec/search_spec.rb +20 -95
- metadata +2 -2
data/lib/t/cli.rb
CHANGED
|
@@ -47,7 +47,7 @@ module T
|
|
|
47
47
|
check_unknown_options!
|
|
48
48
|
|
|
49
49
|
option "host", :aliases => "-H", :type => :string, :default => DEFAULT_HOST, :desc => "Twitter API server"
|
|
50
|
-
option "no-color", :
|
|
50
|
+
option "no-color", :aliases => "-N", :type => :boolean, :banner => "Disable colorization in output"
|
|
51
51
|
option "no-ssl", :aliases => "-U", :type => :boolean, :default => false, :desc => "Disable SSL"
|
|
52
52
|
option "profile", :aliases => "-P", :type => :string, :default => File.join(File.expand_path("~"), RCFile::FILE_NAME), :desc => "Path to RC file", :banner => "FILE"
|
|
53
53
|
|
data/lib/t/printable.rb
CHANGED
|
@@ -80,16 +80,20 @@ module T
|
|
|
80
80
|
end
|
|
81
81
|
print_table(array)
|
|
82
82
|
else
|
|
83
|
+
ENV['THOR_COLUMNS'] = "80"
|
|
83
84
|
if STDOUT.tty? && !options['no-color']
|
|
84
85
|
statuses.each do |status|
|
|
85
|
-
say("
|
|
86
|
-
Thor::Shell::Basic.new.print_wrapped(status.text, :indent =>
|
|
87
|
-
say("
|
|
86
|
+
say(" #{Thor::Shell::Color::BOLD}@#{status.user.screen_name}", :yellow)
|
|
87
|
+
Thor::Shell::Basic.new.print_wrapped(status.text, :indent => 3)
|
|
88
|
+
say(" #{Thor::Shell::Color::BOLD}#{time_ago_in_words(status.created_at)} ago", :black)
|
|
88
89
|
say
|
|
89
90
|
end
|
|
90
91
|
else
|
|
91
92
|
statuses.each do |status|
|
|
92
|
-
say
|
|
93
|
+
say(" @#{status.user.screen_name}")
|
|
94
|
+
Thor::Shell::Basic.new.print_wrapped(status.text, :indent => 3)
|
|
95
|
+
say(" #{time_ago_in_words(status.created_at)} ago")
|
|
96
|
+
say
|
|
93
97
|
end
|
|
94
98
|
end
|
|
95
99
|
end
|
data/lib/t/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
|
@@ -707,7 +707,6 @@ ID Since Tweets Favorites Listed Following Followers Screen
|
|
|
707
707
|
|
|
708
708
|
describe "#favorites" do
|
|
709
709
|
before do
|
|
710
|
-
@cli.options = @cli.options.merge("no-color" => true)
|
|
711
710
|
stub_get("/1/favorites.json").
|
|
712
711
|
with(:query => {:count => "20", :include_entities => "false"}).
|
|
713
712
|
to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
@@ -720,25 +719,10 @@ ID Since Tweets Favorites Listed Following Followers Screen
|
|
|
720
719
|
end
|
|
721
720
|
it "should have the correct output" do
|
|
722
721
|
@cli.favorites
|
|
723
|
-
$stdout.string.should
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
728
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
729
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
730
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
731
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
732
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
733
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
734
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
735
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
736
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
737
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
738
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
739
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
740
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
741
|
-
eos
|
|
722
|
+
$stdout.string.should =~ /@natevillegas/
|
|
723
|
+
$stdout.string.should =~ /RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history\. Tomorrow is a /
|
|
724
|
+
$stdout.string.should =~ /mystery\. Today is a gift\. That's why it's called the present\./
|
|
725
|
+
$stdout.string.should =~ /7 months ago/
|
|
742
726
|
end
|
|
743
727
|
context "--csv" do
|
|
744
728
|
before do
|
|
@@ -795,6 +779,34 @@ ID Posted at Screen name Text
|
|
|
795
779
|
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
796
780
|
eos
|
|
797
781
|
end
|
|
782
|
+
context "--reverse" do
|
|
783
|
+
before do
|
|
784
|
+
@cli.options = @cli.options.merge("reverse" => true)
|
|
785
|
+
end
|
|
786
|
+
it "should reverse the order of the sort" do
|
|
787
|
+
@cli.favorites
|
|
788
|
+
$stdout.string.should == <<-eos
|
|
789
|
+
ID Posted at Screen name Text
|
|
790
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
791
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all suck a "duck blur" sometimes.
|
|
792
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. Was great to have you.
|
|
793
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all.
|
|
794
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come.
|
|
795
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain.
|
|
796
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date that I'll get a 27" retina display?
|
|
797
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hoverbird
|
|
798
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverbird invented it
|
|
799
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want to take you seriously don't say daemontools!
|
|
800
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird
|
|
801
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, you can even order specific items?
|
|
802
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t.co/bwVdtAPe
|
|
803
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to picket when i get back.
|
|
804
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena together we're going to cover all core 28 languages!
|
|
805
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will you be in town?
|
|
806
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present.
|
|
807
|
+
eos
|
|
808
|
+
end
|
|
809
|
+
end
|
|
798
810
|
end
|
|
799
811
|
context "--number" do
|
|
800
812
|
before do
|
|
@@ -810,33 +822,6 @@ ID Posted at Screen name Text
|
|
|
810
822
|
should have_been_made
|
|
811
823
|
end
|
|
812
824
|
end
|
|
813
|
-
context "--reverse" do
|
|
814
|
-
before do
|
|
815
|
-
@cli.options = @cli.options.merge("reverse" => true)
|
|
816
|
-
end
|
|
817
|
-
it "should reverse the order of the sort" do
|
|
818
|
-
@cli.favorites
|
|
819
|
-
$stdout.string.should == <<-eos
|
|
820
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
821
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
822
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
823
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
824
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
825
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
826
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
827
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
828
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
829
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
830
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
831
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
832
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
833
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
834
|
-
rusashka: @maciej hahaha :) @gpena together we're going to cover all core 28 languages! (7 months ago)
|
|
835
|
-
TD: @kelseysilver how long will you be in town? (7 months ago)
|
|
836
|
-
natevillegas: RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present. (7 months ago)
|
|
837
|
-
eos
|
|
838
|
-
end
|
|
839
|
-
end
|
|
840
825
|
context "with a user passed" do
|
|
841
826
|
before do
|
|
842
827
|
stub_get("/1/favorites/sferik.json").
|
|
@@ -1703,7 +1688,6 @@ ID Created at Slug Members Subscribers Mode
|
|
|
1703
1688
|
|
|
1704
1689
|
describe "#mentions" do
|
|
1705
1690
|
before do
|
|
1706
|
-
@cli.options = @cli.options.merge("no-color" => true)
|
|
1707
1691
|
stub_get("/1/statuses/mentions.json").
|
|
1708
1692
|
with(:query => {:count => "20", :include_entities => "false"}).
|
|
1709
1693
|
to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
@@ -1716,25 +1700,10 @@ ID Created at Slug Members Subscribers Mode
|
|
|
1716
1700
|
end
|
|
1717
1701
|
it "should have the correct output" do
|
|
1718
1702
|
@cli.mentions
|
|
1719
|
-
$stdout.string.should
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
1724
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
1725
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
1726
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
1727
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
1728
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
1729
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
1730
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
1731
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
1732
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
1733
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
1734
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
1735
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
1736
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
1737
|
-
eos
|
|
1703
|
+
$stdout.string.should =~ /@natevillegas/
|
|
1704
|
+
$stdout.string.should =~ /RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history\. Tomorrow is a /
|
|
1705
|
+
$stdout.string.should =~ /mystery\. Today is a gift\. That's why it's called the present\./
|
|
1706
|
+
$stdout.string.should =~ /7 months ago/
|
|
1738
1707
|
end
|
|
1739
1708
|
context "--csv" do
|
|
1740
1709
|
before do
|
|
@@ -1791,6 +1760,34 @@ ID Posted at Screen name Text
|
|
|
1791
1760
|
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
1792
1761
|
eos
|
|
1793
1762
|
end
|
|
1763
|
+
context "--reverse" do
|
|
1764
|
+
before do
|
|
1765
|
+
@cli.options = @cli.options.merge("reverse" => true)
|
|
1766
|
+
end
|
|
1767
|
+
it "should reverse the order of the sort" do
|
|
1768
|
+
@cli.mentions
|
|
1769
|
+
$stdout.string.should == <<-eos
|
|
1770
|
+
ID Posted at Screen name Text
|
|
1771
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
1772
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all suck a "duck blur" sometimes.
|
|
1773
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. Was great to have you.
|
|
1774
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all.
|
|
1775
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come.
|
|
1776
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain.
|
|
1777
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date that I'll get a 27" retina display?
|
|
1778
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hoverbird
|
|
1779
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverbird invented it
|
|
1780
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want to take you seriously don't say daemontools!
|
|
1781
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird
|
|
1782
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, you can even order specific items?
|
|
1783
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t.co/bwVdtAPe
|
|
1784
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to picket when i get back.
|
|
1785
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena together we're going to cover all core 28 languages!
|
|
1786
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will you be in town?
|
|
1787
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present.
|
|
1788
|
+
eos
|
|
1789
|
+
end
|
|
1790
|
+
end
|
|
1794
1791
|
end
|
|
1795
1792
|
context "--number" do
|
|
1796
1793
|
before do
|
|
@@ -1806,33 +1803,6 @@ ID Posted at Screen name Text
|
|
|
1806
1803
|
should have_been_made
|
|
1807
1804
|
end
|
|
1808
1805
|
end
|
|
1809
|
-
context "--reverse" do
|
|
1810
|
-
before do
|
|
1811
|
-
@cli.options = @cli.options.merge("reverse" => true)
|
|
1812
|
-
end
|
|
1813
|
-
it "should reverse the order of the sort" do
|
|
1814
|
-
@cli.mentions
|
|
1815
|
-
$stdout.string.should == <<-eos
|
|
1816
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
1817
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
1818
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
1819
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
1820
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
1821
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
1822
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
1823
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
1824
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
1825
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
1826
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
1827
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
1828
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
1829
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
1830
|
-
rusashka: @maciej hahaha :) @gpena together we're going to cover all core 28 languages! (7 months ago)
|
|
1831
|
-
TD: @kelseysilver how long will you be in town? (7 months ago)
|
|
1832
|
-
natevillegas: RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present. (7 months ago)
|
|
1833
|
-
eos
|
|
1834
|
-
end
|
|
1835
|
-
end
|
|
1836
1806
|
end
|
|
1837
1807
|
|
|
1838
1808
|
describe "#open" do
|
|
@@ -1986,7 +1956,6 @@ ID Posted at Screen name Text
|
|
|
1986
1956
|
|
|
1987
1957
|
describe "#retweets" do
|
|
1988
1958
|
before do
|
|
1989
|
-
@cli.options = @cli.options.merge("no-color" => true)
|
|
1990
1959
|
stub_get("/1/statuses/retweeted_by_me.json").
|
|
1991
1960
|
with(:query => {:count => "20", :include_entities => "false"}).
|
|
1992
1961
|
to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
@@ -2000,25 +1969,10 @@ ID Posted at Screen name Text
|
|
|
2000
1969
|
end
|
|
2001
1970
|
it "should have the correct output" do
|
|
2002
1971
|
@cli.retweets
|
|
2003
|
-
$stdout.string.should
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
2008
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
2009
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
2010
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
2011
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
2012
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
2013
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
2014
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
2015
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
2016
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
2017
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
2018
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
2019
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
2020
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
2021
|
-
eos
|
|
1972
|
+
$stdout.string.should =~ /@natevillegas/
|
|
1973
|
+
$stdout.string.should =~ /RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history\. Tomorrow is a /
|
|
1974
|
+
$stdout.string.should =~ /mystery\. Today is a gift\. That's why it's called the present\./
|
|
1975
|
+
$stdout.string.should =~ /7 months ago/
|
|
2022
1976
|
end
|
|
2023
1977
|
end
|
|
2024
1978
|
context "--csv" do
|
|
@@ -2076,6 +2030,34 @@ ID Posted at Screen name Text
|
|
|
2076
2030
|
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
2077
2031
|
eos
|
|
2078
2032
|
end
|
|
2033
|
+
context "--reverse" do
|
|
2034
|
+
before do
|
|
2035
|
+
@cli.options = @cli.options.merge("reverse" => true)
|
|
2036
|
+
end
|
|
2037
|
+
it "should reverse the order of the sort" do
|
|
2038
|
+
@cli.retweets
|
|
2039
|
+
$stdout.string.should == <<-eos
|
|
2040
|
+
ID Posted at Screen name Text
|
|
2041
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
2042
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all suck a "duck blur" sometimes.
|
|
2043
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. Was great to have you.
|
|
2044
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all.
|
|
2045
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come.
|
|
2046
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain.
|
|
2047
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date that I'll get a 27" retina display?
|
|
2048
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hoverbird
|
|
2049
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverbird invented it
|
|
2050
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want to take you seriously don't say daemontools!
|
|
2051
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird
|
|
2052
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, you can even order specific items?
|
|
2053
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t.co/bwVdtAPe
|
|
2054
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to picket when i get back.
|
|
2055
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena together we're going to cover all core 28 languages!
|
|
2056
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will you be in town?
|
|
2057
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present.
|
|
2058
|
+
eos
|
|
2059
|
+
end
|
|
2060
|
+
end
|
|
2079
2061
|
end
|
|
2080
2062
|
context "--number" do
|
|
2081
2063
|
before do
|
|
@@ -2091,33 +2073,6 @@ ID Posted at Screen name Text
|
|
|
2091
2073
|
should have_been_made
|
|
2092
2074
|
end
|
|
2093
2075
|
end
|
|
2094
|
-
context "--reverse" do
|
|
2095
|
-
before do
|
|
2096
|
-
@cli.options = @cli.options.merge("reverse" => true)
|
|
2097
|
-
end
|
|
2098
|
-
it "should reverse the order of the sort" do
|
|
2099
|
-
@cli.retweets
|
|
2100
|
-
$stdout.string.should == <<-eos
|
|
2101
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
2102
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
2103
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
2104
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
2105
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
2106
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
2107
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
2108
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
2109
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
2110
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
2111
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
2112
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
2113
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
2114
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
2115
|
-
rusashka: @maciej hahaha :) @gpena together we're going to cover all core 28 languages! (7 months ago)
|
|
2116
|
-
TD: @kelseysilver how long will you be in town? (7 months ago)
|
|
2117
|
-
natevillegas: RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present. (7 months ago)
|
|
2118
|
-
eos
|
|
2119
|
-
end
|
|
2120
|
-
end
|
|
2121
2076
|
context "with a user passed" do
|
|
2122
2077
|
before do
|
|
2123
2078
|
stub_get("/1/statuses/retweeted_by_user.json").
|
|
@@ -2361,7 +2316,6 @@ ID Since Tweets Favorites Listed Following Followers Screen
|
|
|
2361
2316
|
|
|
2362
2317
|
describe "#timeline" do
|
|
2363
2318
|
before do
|
|
2364
|
-
@cli.options = @cli.options.merge("no-color" => true)
|
|
2365
2319
|
stub_get("/1/statuses/home_timeline.json").
|
|
2366
2320
|
with(:query => {:count => "20", :include_entities => "false"}).
|
|
2367
2321
|
to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
@@ -2375,25 +2329,10 @@ ID Since Tweets Favorites Listed Following Followers Screen
|
|
|
2375
2329
|
end
|
|
2376
2330
|
it "should have the correct output" do
|
|
2377
2331
|
@cli.timeline
|
|
2378
|
-
$stdout.string.should
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
2383
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
2384
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
2385
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
2386
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
2387
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
2388
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
2389
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
2390
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
2391
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
2392
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
2393
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
2394
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
2395
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
2396
|
-
eos
|
|
2332
|
+
$stdout.string.should =~ /@natevillegas/
|
|
2333
|
+
$stdout.string.should =~ /RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history\. Tomorrow is a /
|
|
2334
|
+
$stdout.string.should =~ /mystery\. Today is a gift\. That's why it's called the present\./
|
|
2335
|
+
$stdout.string.should =~ /7 months ago/
|
|
2397
2336
|
end
|
|
2398
2337
|
end
|
|
2399
2338
|
context "--csv" do
|
|
@@ -2451,6 +2390,34 @@ ID Posted at Screen name Text
|
|
|
2451
2390
|
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
2452
2391
|
eos
|
|
2453
2392
|
end
|
|
2393
|
+
context "--reverse" do
|
|
2394
|
+
before do
|
|
2395
|
+
@cli.options = @cli.options.merge("reverse" => true)
|
|
2396
|
+
end
|
|
2397
|
+
it "should reverse the order of the sort" do
|
|
2398
|
+
@cli.timeline
|
|
2399
|
+
$stdout.string.should == <<-eos
|
|
2400
|
+
ID Posted at Screen name Text
|
|
2401
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
2402
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all suck a "duck blur" sometimes.
|
|
2403
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. Was great to have you.
|
|
2404
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all.
|
|
2405
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come.
|
|
2406
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain.
|
|
2407
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date that I'll get a 27" retina display?
|
|
2408
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hoverbird
|
|
2409
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverbird invented it
|
|
2410
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want to take you seriously don't say daemontools!
|
|
2411
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird
|
|
2412
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, you can even order specific items?
|
|
2413
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t.co/bwVdtAPe
|
|
2414
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to picket when i get back.
|
|
2415
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena together we're going to cover all core 28 languages!
|
|
2416
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will you be in town?
|
|
2417
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present.
|
|
2418
|
+
eos
|
|
2419
|
+
end
|
|
2420
|
+
end
|
|
2454
2421
|
end
|
|
2455
2422
|
context "--number" do
|
|
2456
2423
|
before do
|
|
@@ -2466,33 +2433,6 @@ ID Posted at Screen name Text
|
|
|
2466
2433
|
should have_been_made
|
|
2467
2434
|
end
|
|
2468
2435
|
end
|
|
2469
|
-
context "--reverse" do
|
|
2470
|
-
before do
|
|
2471
|
-
@cli.options = @cli.options.merge("reverse" => true)
|
|
2472
|
-
end
|
|
2473
|
-
it "should reverse the order of the sort" do
|
|
2474
|
-
@cli.timeline
|
|
2475
|
-
$stdout.string.should == <<-eos
|
|
2476
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
2477
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
2478
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
2479
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
2480
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
2481
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
2482
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
2483
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
2484
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
2485
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
2486
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
2487
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
2488
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
2489
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
2490
|
-
rusashka: @maciej hahaha :) @gpena together we're going to cover all core 28 languages! (7 months ago)
|
|
2491
|
-
TD: @kelseysilver how long will you be in town? (7 months ago)
|
|
2492
|
-
natevillegas: RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present. (7 months ago)
|
|
2493
|
-
eos
|
|
2494
|
-
end
|
|
2495
|
-
end
|
|
2496
2436
|
context "with a user passed" do
|
|
2497
2437
|
before do
|
|
2498
2438
|
stub_get("/1/statuses/user_timeline.json").
|
data/spec/list_spec.rb
CHANGED
|
@@ -350,7 +350,6 @@ ID Since Tweets Favorites Listed Following Followers Screen
|
|
|
350
350
|
|
|
351
351
|
describe "#timeline" do
|
|
352
352
|
before do
|
|
353
|
-
@list.options = @list.options.merge("no-color" => true)
|
|
354
353
|
stub_get("/1/lists/statuses.json").
|
|
355
354
|
with(:query => {:owner_screen_name => "testcli", :per_page => "20", :slug => "presidents", :include_entities => "false"}).
|
|
356
355
|
to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
|
|
@@ -363,25 +362,10 @@ ID Since Tweets Favorites Listed Following Followers Screen
|
|
|
363
362
|
end
|
|
364
363
|
it "should have the correct output" do
|
|
365
364
|
@list.timeline("presidents")
|
|
366
|
-
$stdout.string.should
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
371
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
372
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
373
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
374
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
375
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
376
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
377
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
378
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
379
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
380
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
381
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
382
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
383
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
384
|
-
eos
|
|
365
|
+
$stdout.string.should =~ /@natevillegas/
|
|
366
|
+
$stdout.string.should =~ /RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history\. Tomorrow is a /
|
|
367
|
+
$stdout.string.should =~ /mystery\. Today is a gift\. That's why it's called the present\./
|
|
368
|
+
$stdout.string.should =~ /7 months ago/
|
|
385
369
|
end
|
|
386
370
|
context "--csv" do
|
|
387
371
|
before do
|
|
@@ -438,6 +422,34 @@ ID Posted at Screen name Text
|
|
|
438
422
|
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
439
423
|
eos
|
|
440
424
|
end
|
|
425
|
+
context "--reverse" do
|
|
426
|
+
before do
|
|
427
|
+
@list.options = @list.options.merge("reverse" => true)
|
|
428
|
+
end
|
|
429
|
+
it "should reverse the order of the sort" do
|
|
430
|
+
@list.timeline("presidents")
|
|
431
|
+
$stdout.string.should == <<-eos
|
|
432
|
+
ID Posted at Screen name Text
|
|
433
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw
|
|
434
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all suck a "duck blur" sometimes.
|
|
435
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. Was great to have you.
|
|
436
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all.
|
|
437
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come.
|
|
438
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain.
|
|
439
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date that I'll get a 27" retina display?
|
|
440
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hoverbird
|
|
441
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverbird invented it
|
|
442
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want to take you seriously don't say daemontools!
|
|
443
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird
|
|
444
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, you can even order specific items?
|
|
445
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t.co/bwVdtAPe
|
|
446
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to picket when i get back.
|
|
447
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena together we're going to cover all core 28 languages!
|
|
448
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will you be in town?
|
|
449
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present.
|
|
450
|
+
eos
|
|
451
|
+
end
|
|
452
|
+
end
|
|
441
453
|
end
|
|
442
454
|
context "--number" do
|
|
443
455
|
before do
|
|
@@ -453,33 +465,6 @@ ID Posted at Screen name Text
|
|
|
453
465
|
should have_been_made
|
|
454
466
|
end
|
|
455
467
|
end
|
|
456
|
-
context "--reverse" do
|
|
457
|
-
before do
|
|
458
|
-
@list.options = @list.options.merge("reverse" => true)
|
|
459
|
-
end
|
|
460
|
-
it "should reverse the order of the sort" do
|
|
461
|
-
@list.timeline("presidents")
|
|
462
|
-
$stdout.string.should == <<-eos
|
|
463
|
-
kelseysilver: San Francisco here I come! (@ Newark Liberty International Airport (EWR) w/ 92 others) http://t.co/eoLANJZw (7 months ago)
|
|
464
|
-
hoverbird: @shinypb @trammell it's all suck a "duck blur" sometimes. (7 months ago)
|
|
465
|
-
sean: @mep Thanks for coming by. Was great to have you. (7 months ago)
|
|
466
|
-
skilldrick: @hoverbird @shinypb You guys must be soooo old, I don't remember the words to the duck tales intro at all. (7 months ago)
|
|
467
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
468
|
-
shinypb: @skilldrick @hoverbird Wow, I didn't even know they *had* TV in Britain. (7 months ago)
|
|
469
|
-
sam: Can someone project the date that I'll get a 27" retina display? (7 months ago)
|
|
470
|
-
skilldrick: @shinypb Well played :) @hoverbird (7 months ago)
|
|
471
|
-
kpk: @shinypb @skilldrick @hoverbird invented it (7 months ago)
|
|
472
|
-
0x9900: @wil @paulnivin if you want to take you seriously don't say daemontools! (7 months ago)
|
|
473
|
-
shinypb: @kpk Pfft, I think you're forgetting mechanical television, which depended on a clever German. http://t.co/JvLNQCDm @skilldrick @hoverbird (7 months ago)
|
|
474
|
-
wangtian: @tianhonghe @xiangxin72 oh, you can even order specific items? (7 months ago)
|
|
475
|
-
wil: @0x9900 @paulnivin http://t.co/bwVdtAPe (7 months ago)
|
|
476
|
-
fat: @stevej @xc i'm going to picket when i get back. (7 months ago)
|
|
477
|
-
rusashka: @maciej hahaha :) @gpena together we're going to cover all core 28 languages! (7 months ago)
|
|
478
|
-
TD: @kelseysilver how long will you be in town? (7 months ago)
|
|
479
|
-
natevillegas: RT @gelobautista #riordan RT @WilI_Smith: Yesterday is history. Tomorrow is a mystery. Today is a gift. That's why it's called the present. (7 months ago)
|
|
480
|
-
eos
|
|
481
|
-
end
|
|
482
|
-
end
|
|
483
468
|
context "with a user passed" do
|
|
484
469
|
it "should request the correct resource" do
|
|
485
470
|
@list.timeline("testcli/presidents")
|
data/spec/search_spec.rb
CHANGED
|
@@ -126,7 +126,6 @@ ID Posted at Screen name Text
|
|
|
126
126
|
|
|
127
127
|
describe "#favorites" do
|
|
128
128
|
before do
|
|
129
|
-
@search.options = @search.options.merge("no-color" => true)
|
|
130
129
|
1.upto(16).each do |page|
|
|
131
130
|
stub_get("/1/favorites.json").
|
|
132
131
|
with(:query => {:count => "200", :page => "#{page}"}).
|
|
@@ -143,24 +142,10 @@ ID Posted at Screen name Text
|
|
|
143
142
|
end
|
|
144
143
|
it "should have the correct output" do
|
|
145
144
|
@search.favorites("twitter")
|
|
146
|
-
$stdout.string.should
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
151
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
152
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
153
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
154
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
155
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
156
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
157
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
158
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
159
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
160
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
161
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
162
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
163
|
-
eos
|
|
145
|
+
$stdout.string.should =~ /@bartt/
|
|
146
|
+
$stdout.string.should =~ /@noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons\. Lot’s of /
|
|
147
|
+
$stdout.string.should =~ /fun\. Expect improvements in the weeks to come\./
|
|
148
|
+
$stdout.string.should =~ /7 months ago/
|
|
164
149
|
end
|
|
165
150
|
context "--csv" do
|
|
166
151
|
before do
|
|
@@ -233,7 +218,6 @@ ID Posted at Screen name Text
|
|
|
233
218
|
|
|
234
219
|
describe "#mentions" do
|
|
235
220
|
before do
|
|
236
|
-
@search.options = @search.options.merge("no-color" => true)
|
|
237
221
|
1.upto(16).each do |page|
|
|
238
222
|
stub_get("/1/statuses/mentions.json").
|
|
239
223
|
with(:query => {:count => "200", :page => "#{page}"}).
|
|
@@ -250,24 +234,10 @@ ID Posted at Screen name Text
|
|
|
250
234
|
end
|
|
251
235
|
it "should have the correct output" do
|
|
252
236
|
@search.mentions("twitter")
|
|
253
|
-
$stdout.string.should
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
258
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
259
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
260
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
261
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
262
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
263
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
264
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
265
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
266
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
267
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
268
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
269
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
270
|
-
eos
|
|
237
|
+
$stdout.string.should =~ /@bartt/
|
|
238
|
+
$stdout.string.should =~ /@noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons\. Lot’s of /
|
|
239
|
+
$stdout.string.should =~ /fun\. Expect improvements in the weeks to come\./
|
|
240
|
+
$stdout.string.should =~ /7 months ago/
|
|
271
241
|
end
|
|
272
242
|
context "--csv" do
|
|
273
243
|
before do
|
|
@@ -340,7 +310,6 @@ ID Posted at Screen name Text
|
|
|
340
310
|
|
|
341
311
|
describe "#retweets" do
|
|
342
312
|
before do
|
|
343
|
-
@search.options = @search.options.merge("no-color" => true)
|
|
344
313
|
1.upto(16).each do |page|
|
|
345
314
|
stub_get("/1/statuses/retweeted_by_me.json").
|
|
346
315
|
with(:query => {:count => "200", :page => "#{page}"}).
|
|
@@ -357,24 +326,10 @@ ID Posted at Screen name Text
|
|
|
357
326
|
end
|
|
358
327
|
it "should have the correct output" do
|
|
359
328
|
@search.retweets("twitter")
|
|
360
|
-
$stdout.string.should
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
365
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
366
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
367
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
368
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
369
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
370
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
371
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
372
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
373
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
374
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
375
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
376
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
377
|
-
eos
|
|
329
|
+
$stdout.string.should =~ /@bartt/
|
|
330
|
+
$stdout.string.should =~ /@noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons\. Lot’s of /
|
|
331
|
+
$stdout.string.should =~ /fun\. Expect improvements in the weeks to come\./
|
|
332
|
+
$stdout.string.should =~ /7 months ago/
|
|
378
333
|
end
|
|
379
334
|
context "--csv" do
|
|
380
335
|
before do
|
|
@@ -447,7 +402,6 @@ ID Posted at Screen name Text
|
|
|
447
402
|
|
|
448
403
|
describe "#timeline" do
|
|
449
404
|
before do
|
|
450
|
-
@search.options = @search.options.merge("no-color" => true)
|
|
451
405
|
1.upto(16).each do |page|
|
|
452
406
|
stub_get("/1/statuses/home_timeline.json").
|
|
453
407
|
with(:query => {:count => "200", :page => "#{page}"}).
|
|
@@ -464,24 +418,10 @@ ID Posted at Screen name Text
|
|
|
464
418
|
end
|
|
465
419
|
it "should have the correct output" do
|
|
466
420
|
@search.timeline("twitter")
|
|
467
|
-
$stdout.string.should
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
472
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
473
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
474
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
475
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
476
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
477
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
478
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
479
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
480
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
481
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
482
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
483
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
484
|
-
eos
|
|
421
|
+
$stdout.string.should =~ /@bartt/
|
|
422
|
+
$stdout.string.should =~ /@noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons\. Lot’s of /
|
|
423
|
+
$stdout.string.should =~ /fun\. Expect improvements in the weeks to come\./
|
|
424
|
+
$stdout.string.should =~ /7 months ago/
|
|
485
425
|
end
|
|
486
426
|
context "--csv" do
|
|
487
427
|
before do
|
|
@@ -554,7 +494,6 @@ ID Posted at Screen name Text
|
|
|
554
494
|
|
|
555
495
|
describe "#user" do
|
|
556
496
|
before do
|
|
557
|
-
@search.options = @search.options.merge("no-color" => true)
|
|
558
497
|
1.upto(16).each do |page|
|
|
559
498
|
stub_get("/1/statuses/user_timeline.json").
|
|
560
499
|
with(:query => {:screen_name => "sferik", :count => "200", :page => "#{page}"}).
|
|
@@ -571,24 +510,10 @@ ID Posted at Screen name Text
|
|
|
571
510
|
end
|
|
572
511
|
it "should have the correct output" do
|
|
573
512
|
@search.user("sferik", "twitter")
|
|
574
|
-
$stdout.string.should
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
579
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
580
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
581
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
582
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
583
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
584
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
585
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
586
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
587
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
588
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
589
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
590
|
-
bartt: @noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons. Lot’s of fun. Expect improvements in the weeks to come. (7 months ago)
|
|
591
|
-
eos
|
|
513
|
+
$stdout.string.should =~ /@bartt/
|
|
514
|
+
$stdout.string.should =~ /@noahlt @gaarf Yup, now owning @twitter -> FB from FE to daemons\. Lot’s of /
|
|
515
|
+
$stdout.string.should =~ /fun\. Expect improvements in the weeks to come\./
|
|
516
|
+
$stdout.string.should =~ /7 months ago/
|
|
592
517
|
end
|
|
593
518
|
context "--csv" do
|
|
594
519
|
before do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: t
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -398,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
398
398
|
version: 1.3.6
|
|
399
399
|
requirements: []
|
|
400
400
|
rubyforge_project:
|
|
401
|
-
rubygems_version: 1.8.
|
|
401
|
+
rubygems_version: 1.8.24
|
|
402
402
|
signing_key:
|
|
403
403
|
specification_version: 3
|
|
404
404
|
summary: CLI for Twitter
|