t 0.8.1 → 0.8.2
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/README.md +121 -103
- data/lib/t/cli.rb +12 -6
- data/lib/t/core_ext/enumerable.rb +5 -8
- data/lib/t/printable.rb +16 -9
- data/lib/t/search.rb +4 -2
- data/lib/t/version.rb +1 -1
- data/spec/cli_spec.rb +181 -181
- data/spec/helper.rb +2 -0
- data/spec/list_spec.rb +37 -37
- data/spec/search_spec.rb +100 -100
- data/t.gemspec +1 -1
- metadata +10 -4
data/lib/t/search.rb
CHANGED
@@ -42,13 +42,15 @@ module T
|
|
42
42
|
elsif options['long']
|
43
43
|
array = statuses.map do |status|
|
44
44
|
created_at = status.created_at > 6.months.ago ? status.created_at.strftime("%b %e %H:%M") : status.created_at.strftime("%b %e %Y")
|
45
|
-
[status.id
|
45
|
+
[status.id, created_at, "@#{status.from_user}", status.text.gsub(/\n+/, ' ')]
|
46
46
|
end
|
47
47
|
if STDOUT.tty?
|
48
48
|
headings = ["ID", "Posted at", "Screen name", "Text"]
|
49
49
|
array.unshift(headings) unless statuses.empty?
|
50
|
+
print_table(array, :truncate => true)
|
51
|
+
else
|
52
|
+
print_table(array)
|
50
53
|
end
|
51
|
-
print_table(array)
|
52
54
|
else
|
53
55
|
statuses.each do |status|
|
54
56
|
say "#{status.from_user.rjust(MAX_SCREEN_NAME_SIZE)}: #{status.text.gsub(/\n+/, ' ')} (#{time_ago_in_words(status.created_at)} ago)"
|
data/lib/t/version.rb
CHANGED
data/spec/cli_spec.rb
CHANGED
@@ -157,15 +157,15 @@ ID,Posted at,Screen name,Text
|
|
157
157
|
$stdout.string.should == <<-eos
|
158
158
|
ID Posted at Screen name Text
|
159
159
|
1773478249 Oct 17 2010 @sferik Sounds good. Meeting Tuesday is fine.
|
160
|
-
1762960771 Oct 14 2010 @sferik That's great news! Let's plan to chat
|
161
|
-
1711812216 Oct 1 2010 @sferik I asked Yehuda about the stipend. I
|
160
|
+
1762960771 Oct 14 2010 @sferik That's great news! Let's plan to chat ...
|
161
|
+
1711812216 Oct 1 2010 @sferik I asked Yehuda about the stipend. I be...
|
162
162
|
1711417617 Oct 1 2010 @sferik Just checking in. How's everything going?
|
163
|
-
1653301471 Sep 16 2010 @sferik Not sure about the payment. Feel free
|
163
|
+
1653301471 Sep 16 2010 @sferik Not sure about the payment. Feel free ...
|
164
164
|
1645324992 Sep 14 2010 @sferik How are the graph enhancements coming?
|
165
|
-
1632933616 Sep 11 2010 @sferik How are the graphs coming? I'm really
|
166
|
-
1629239903 Sep 10 2010 @sferik Awesome! Any luck duplicating the
|
167
|
-
1629166212 Sep 10 2010 @sferik I just committed a bunch of cleanup
|
168
|
-
1624782206 Sep 9 2010 @sferik I'm trying to debug the issue you were
|
165
|
+
1632933616 Sep 11 2010 @sferik How are the graphs coming? I'm really ...
|
166
|
+
1629239903 Sep 10 2010 @sferik Awesome! Any luck duplicating the Gemf...
|
167
|
+
1629166212 Sep 10 2010 @sferik I just committed a bunch of cleanup an...
|
168
|
+
1624782206 Sep 9 2010 @sferik I'm trying to debug the issue you were...
|
169
169
|
eos
|
170
170
|
end
|
171
171
|
end
|
@@ -262,15 +262,15 @@ ID,Posted at,Screen name,Text
|
|
262
262
|
$stdout.string.should == <<-eos
|
263
263
|
ID Posted at Screen name Text
|
264
264
|
1773478249 Oct 17 2010 @hurrycane Sounds good. Meeting Tuesday is fine.
|
265
|
-
1762960771 Oct 14 2010 @hurrycane That's great news! Let's plan to chat
|
266
|
-
1711812216 Oct 1 2010 @hurrycane I asked Yehuda about the stipend. I
|
265
|
+
1762960771 Oct 14 2010 @hurrycane That's great news! Let's plan to chat ...
|
266
|
+
1711812216 Oct 1 2010 @hurrycane I asked Yehuda about the stipend. I be...
|
267
267
|
1711417617 Oct 1 2010 @hurrycane Just checking in. How's everything going?
|
268
|
-
1653301471 Sep 16 2010 @hurrycane Not sure about the payment. Feel free
|
268
|
+
1653301471 Sep 16 2010 @hurrycane Not sure about the payment. Feel free ...
|
269
269
|
1645324992 Sep 14 2010 @hurrycane How are the graph enhancements coming?
|
270
|
-
1632933616 Sep 11 2010 @hurrycane How are the graphs coming? I'm really
|
271
|
-
1629239903 Sep 10 2010 @hurrycane Awesome! Any luck duplicating the
|
272
|
-
1629166212 Sep 10 2010 @hurrycane I just committed a bunch of cleanup
|
273
|
-
1624782206 Sep 9 2010 @hurrycane I'm trying to debug the issue you were
|
270
|
+
1632933616 Sep 11 2010 @hurrycane How are the graphs coming? I'm really ...
|
271
|
+
1629239903 Sep 10 2010 @hurrycane Awesome! Any luck duplicating the Gemf...
|
272
|
+
1629166212 Sep 10 2010 @hurrycane I just committed a bunch of cleanup an...
|
273
|
+
1624782206 Sep 9 2010 @hurrycane I'm trying to debug the issue you were...
|
274
274
|
eos
|
275
275
|
end
|
276
276
|
end
|
@@ -394,9 +394,9 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
394
394
|
it "should output in long format" do
|
395
395
|
@cli.disciples
|
396
396
|
$stdout.string.should == <<-eos
|
397
|
-
ID Since Tweets Favorites Listed Following Followers
|
398
|
-
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @
|
399
|
-
7505382
|
397
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
398
|
+
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @pen...
|
399
|
+
7505382 Jul 16 2007 2,962 727 29 88 898 @sfe...
|
400
400
|
eos
|
401
401
|
end
|
402
402
|
end
|
@@ -760,23 +760,23 @@ ID,Posted at,Screen name,Text
|
|
760
760
|
@cli.favorites
|
761
761
|
$stdout.string.should == <<-eos
|
762
762
|
ID Posted at Screen name Text
|
763
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
764
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
765
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
766
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
767
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
768
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
769
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
770
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
771
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
772
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
773
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
774
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
775
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
776
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
777
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
778
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
779
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
763
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
764
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
765
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
766
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
767
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
768
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
769
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
770
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
771
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
772
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
773
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
774
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
775
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
776
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
777
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
778
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
779
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
780
780
|
eos
|
781
781
|
end
|
782
782
|
context "--reverse" do
|
@@ -787,23 +787,23 @@ ID Posted at Screen name Text
|
|
787
787
|
@cli.favorites
|
788
788
|
$stdout.string.should == <<-eos
|
789
789
|
ID Posted at Screen name Text
|
790
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
791
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
792
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
793
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
794
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
795
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
796
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
797
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
798
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
799
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
800
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
801
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
802
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
803
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
804
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
805
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
806
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
790
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
791
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
792
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
793
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
794
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
795
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
796
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
797
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
798
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
799
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
800
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
801
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
802
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
803
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
804
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
805
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
806
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
807
807
|
eos
|
808
808
|
end
|
809
809
|
end
|
@@ -980,9 +980,9 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
980
980
|
it "should output in long format" do
|
981
981
|
@cli.followings
|
982
982
|
$stdout.string.should == <<-eos
|
983
|
-
ID Since Tweets Favorites Listed Following Followers
|
984
|
-
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @
|
985
|
-
7505382
|
983
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
984
|
+
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @pen...
|
985
|
+
7505382 Jul 16 2007 2,962 727 29 88 898 @sfe...
|
986
986
|
eos
|
987
987
|
end
|
988
988
|
end
|
@@ -1135,9 +1135,9 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
1135
1135
|
it "should output in long format" do
|
1136
1136
|
@cli.followers
|
1137
1137
|
$stdout.string.should == <<-eos
|
1138
|
-
ID Since Tweets Favorites Listed Following Followers
|
1139
|
-
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @
|
1140
|
-
7505382
|
1138
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
1139
|
+
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @pen...
|
1140
|
+
7505382 Jul 16 2007 2,962 727 29 88 898 @sfe...
|
1141
1141
|
eos
|
1142
1142
|
end
|
1143
1143
|
end
|
@@ -1299,9 +1299,9 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
1299
1299
|
it "should output in long format" do
|
1300
1300
|
@cli.friends
|
1301
1301
|
$stdout.string.should == <<-eos
|
1302
|
-
ID Since Tweets Favorites Listed Following Followers
|
1303
|
-
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @
|
1304
|
-
7505382
|
1302
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
1303
|
+
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @pen...
|
1304
|
+
7505382 Jul 16 2007 2,962 727 29 88 898 @sfe...
|
1305
1305
|
eos
|
1306
1306
|
end
|
1307
1307
|
end
|
@@ -1472,9 +1472,9 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
1472
1472
|
it "should output in long format" do
|
1473
1473
|
@cli.leaders
|
1474
1474
|
$stdout.string.should == <<-eos
|
1475
|
-
ID Since Tweets Favorites Listed Following Followers
|
1476
|
-
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @
|
1477
|
-
7505382
|
1475
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
1476
|
+
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @pen...
|
1477
|
+
7505382 Jul 16 2007 2,962 727 29 88 898 @sfe...
|
1478
1478
|
eos
|
1479
1479
|
end
|
1480
1480
|
end
|
@@ -1597,9 +1597,9 @@ ID,Created at,Screen name,Slug,Members,Subscribers,Mode,Description
|
|
1597
1597
|
it "should output in long format" do
|
1598
1598
|
@cli.lists
|
1599
1599
|
$stdout.string.should == <<-eos
|
1600
|
-
ID Created at Slug Members Subscribers Mode
|
1601
|
-
21718825 Sep 14 2010 @sferik/code-for-america 26 5
|
1602
|
-
8863586
|
1600
|
+
ID Created at Slug Members Subscribers Mode ...
|
1601
|
+
21718825 Sep 14 2010 @sferik/code-for-america 26 5 publi...
|
1602
|
+
8863586 Mar 15 2010 @sferik/presidents 2 1 publi...
|
1603
1603
|
eos
|
1604
1604
|
end
|
1605
1605
|
end
|
@@ -1741,23 +1741,23 @@ ID,Posted at,Screen name,Text
|
|
1741
1741
|
@cli.mentions
|
1742
1742
|
$stdout.string.should == <<-eos
|
1743
1743
|
ID Posted at Screen name Text
|
1744
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
1745
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
1746
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
1747
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
1748
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
1749
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
1750
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
1751
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
1752
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
1753
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
1754
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
1755
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
1756
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
1757
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
1758
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
1759
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
1760
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
1744
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
1745
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
1746
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
1747
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
1748
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
1749
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
1750
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
1751
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
1752
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
1753
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
1754
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
1755
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
1756
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
1757
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
1758
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
1759
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
1760
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
1761
1761
|
eos
|
1762
1762
|
end
|
1763
1763
|
context "--reverse" do
|
@@ -1768,23 +1768,23 @@ ID Posted at Screen name Text
|
|
1768
1768
|
@cli.mentions
|
1769
1769
|
$stdout.string.should == <<-eos
|
1770
1770
|
ID Posted at Screen name Text
|
1771
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
1772
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
1773
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
1774
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
1775
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
1776
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
1777
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
1778
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
1779
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
1780
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
1781
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
1782
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
1783
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
1784
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
1785
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
1786
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
1787
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
1771
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
1772
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
1773
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
1774
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
1775
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
1776
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
1777
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
1778
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
1779
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
1780
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
1781
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
1782
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
1783
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
1784
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
1785
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
1786
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
1787
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
1788
1788
|
eos
|
1789
1789
|
end
|
1790
1790
|
end
|
@@ -2011,23 +2011,23 @@ ID,Posted at,Screen name,Text
|
|
2011
2011
|
@cli.retweets
|
2012
2012
|
$stdout.string.should == <<-eos
|
2013
2013
|
ID Posted at Screen name Text
|
2014
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
2015
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
2016
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
2017
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
2018
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
2019
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
2020
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
2021
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
2022
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
2023
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
2024
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
2025
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
2026
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
2027
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
2028
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
2029
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
2030
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
2014
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
2015
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
2016
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
2017
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
2018
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
2019
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
2020
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
2021
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
2022
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
2023
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
2024
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
2025
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
2026
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
2027
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
2028
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
2029
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
2030
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
2031
2031
|
eos
|
2032
2032
|
end
|
2033
2033
|
context "--reverse" do
|
@@ -2038,23 +2038,23 @@ ID Posted at Screen name Text
|
|
2038
2038
|
@cli.retweets
|
2039
2039
|
$stdout.string.should == <<-eos
|
2040
2040
|
ID Posted at Screen name Text
|
2041
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
2042
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
2043
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
2044
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
2045
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
2046
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
2047
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
2048
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
2049
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
2050
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
2051
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
2052
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
2053
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
2054
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
2055
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
2056
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
2057
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
2041
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
2042
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
2043
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
2044
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
2045
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
2046
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
2047
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
2048
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
2049
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
2050
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
2051
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
2052
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
2053
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
2054
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
2055
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
2056
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
2057
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
2058
2058
|
eos
|
2059
2059
|
end
|
2060
2060
|
end
|
@@ -2227,12 +2227,12 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
2227
2227
|
it "should output in long format" do
|
2228
2228
|
@cli.suggest
|
2229
2229
|
$stdout.string.should == <<-eos
|
2230
|
-
ID Since Tweets Favorites Listed Following Followers
|
2231
|
-
40514587 May 16 2009 183 2 2 198 158 @
|
2232
|
-
14736332 May 11 2008 3,850 117 99 545 802 @
|
2233
|
-
2006261
|
2234
|
-
14451152 Apr 20 2008 6,251 10 20 403 299 @
|
2235
|
-
16052754 Aug 30 2008 24 0 1 5 42 @
|
2230
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
2231
|
+
40514587 May 16 2009 183 2 2 198 158 @ant...
|
2232
|
+
14736332 May 11 2008 3,850 117 99 545 802 @jtr...
|
2233
|
+
2006261 Mar 23 2007 4,497 9 171 967 2,028 @mac...
|
2234
|
+
14451152 Apr 20 2008 6,251 10 20 403 299 @mlr...
|
2235
|
+
16052754 Aug 30 2008 24 0 1 5 42 @stu...
|
2236
2236
|
eos
|
2237
2237
|
end
|
2238
2238
|
end
|
@@ -2371,23 +2371,23 @@ ID,Posted at,Screen name,Text
|
|
2371
2371
|
@cli.timeline
|
2372
2372
|
$stdout.string.should == <<-eos
|
2373
2373
|
ID Posted at Screen name Text
|
2374
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
2375
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
2376
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
2377
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
2378
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
2379
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
2380
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
2381
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
2382
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
2383
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
2384
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
2385
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
2386
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
2387
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
2388
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
2389
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
2390
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
2374
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
2375
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
2376
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
2377
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
2378
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
2379
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
2380
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
2381
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
2382
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
2383
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
2384
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
2385
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
2386
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
2387
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
2388
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
2389
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
2390
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
2391
2391
|
eos
|
2392
2392
|
end
|
2393
2393
|
context "--reverse" do
|
@@ -2398,23 +2398,23 @@ ID Posted at Screen name Text
|
|
2398
2398
|
@cli.timeline
|
2399
2399
|
$stdout.string.should == <<-eos
|
2400
2400
|
ID Posted at Screen name Text
|
2401
|
-
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (
|
2402
|
-
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all
|
2403
|
-
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by.
|
2404
|
-
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys
|
2405
|
-
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now
|
2406
|
-
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow,
|
2407
|
-
194546811480969217 Apr 23 2011 @sam Can someone project the date
|
2408
|
-
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @
|
2409
|
-
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @
|
2410
|
-
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want
|
2411
|
-
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're
|
2412
|
-
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh,
|
2413
|
-
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t
|
2414
|
-
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to
|
2415
|
-
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena
|
2416
|
-
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will
|
2417
|
-
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT
|
2401
|
+
194546264212385793 Apr 23 2011 @kelseysilver San Francisco here I come! (...
|
2402
|
+
194546388707717120 Apr 23 2011 @hoverbird @shinypb @trammell it's all ...
|
2403
|
+
194546583608639488 Apr 23 2011 @sean @mep Thanks for coming by. W...
|
2404
|
+
194546649203347456 Apr 23 2011 @skilldrick @hoverbird @shinypb You guys...
|
2405
|
+
194546727670390784 Apr 23 2011 @bartt @noahlt @gaarf Yup, now owni...
|
2406
|
+
194546738810458112 Apr 23 2011 @shinypb @skilldrick @hoverbird Wow, ...
|
2407
|
+
194546811480969217 Apr 23 2011 @sam Can someone project the date...
|
2408
|
+
194546876782092291 Apr 23 2011 @skilldrick @shinypb Well played :) @hov...
|
2409
|
+
194547084349804544 Apr 23 2011 @kpk @shinypb @skilldrick @hoverb...
|
2410
|
+
194547260233760768 Apr 23 2011 @0x9900 @wil @paulnivin if you want ...
|
2411
|
+
194547402550689793 Apr 23 2011 @shinypb @kpk Pfft, I think you're fo...
|
2412
|
+
194547528430137344 Apr 23 2011 @wangtian @tianhonghe @xiangxin72 oh, ...
|
2413
|
+
194547658562605057 Apr 23 2011 @wil @0x9900 @paulnivin http://t....
|
2414
|
+
194547824690597888 Apr 23 2011 @fat @stevej @xc i'm going to pic...
|
2415
|
+
194547987593183233 Apr 23 2011 @rusashka @maciej hahaha :) @gpena tog...
|
2416
|
+
194547993607806976 Apr 23 2011 @TD @kelseysilver how long will ...
|
2417
|
+
194548121416630272 Apr 23 2011 @natevillegas RT @gelobautista #riordan RT...
|
2418
2418
|
eos
|
2419
2419
|
end
|
2420
2420
|
end
|
@@ -2549,11 +2549,11 @@ WOEID,Parent ID,Type,Name,Country
|
|
2549
2549
|
@cli.trend_locations
|
2550
2550
|
$stdout.string.rstrip.should == <<-eos.rstrip
|
2551
2551
|
WOEID Parent ID Type Name Country
|
2552
|
-
2367105
|
2553
|
-
2459115
|
2554
|
-
2487956
|
2552
|
+
2367105 Town Boston United States
|
2553
|
+
2459115 Town New York United States
|
2554
|
+
2487956 Town San Francisco United States
|
2555
2555
|
23424977 Country United States United States
|
2556
|
-
1
|
2556
|
+
1 Supername Worldwide
|
2557
2557
|
eos
|
2558
2558
|
end
|
2559
2559
|
end
|
@@ -2741,9 +2741,9 @@ ID,Since,Tweets,Favorites,Listed,Following,Followers,Screen name,Name
|
|
2741
2741
|
it "should output in long format" do
|
2742
2742
|
@cli.users("sferik", "pengwynn")
|
2743
2743
|
$stdout.string.should == <<-eos
|
2744
|
-
ID Since Tweets Favorites Listed Following Followers
|
2745
|
-
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @
|
2746
|
-
7505382
|
2744
|
+
ID Since Tweets Favorites Listed Following Followers Scre...
|
2745
|
+
14100886 Mar 8 2008 3,913 32 185 1,871 2,767 @pen...
|
2746
|
+
7505382 Jul 16 2007 2,962 727 29 88 898 @sfe...
|
2747
2747
|
eos
|
2748
2748
|
end
|
2749
2749
|
end
|