t 0.9.6 → 0.9.7
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 +29 -10
- data/bin/t +4 -25
- data/lib/t/cli.rb +24 -23
- data/lib/t/core_ext/kernel.rb +15 -0
- data/lib/t/core_ext/string.rb +4 -2
- data/lib/t/delete.rb +13 -13
- data/lib/t/format_helpers.rb +62 -0
- data/lib/t/list.rb +4 -4
- data/lib/t/printable.rb +27 -24
- data/lib/t/rcfile.rb +1 -1
- data/lib/t/requestable.rb +0 -4
- data/lib/t/search.rb +10 -11
- data/lib/t/stream.rb +57 -21
- data/lib/t/version.rb +1 -1
- data/lib/t.rb +22 -3
- data/spec/cli_spec.rb +53 -45
- data/spec/fixtures/501_ids.json +509 -1
- data/spec/fixtures/501_users_list.json +17543 -1
- data/spec/fixtures/direct_message.json +80 -1
- data/spec/fixtures/direct_messages.json +802 -1
- data/spec/fixtures/empty_cursor.json +7 -1
- data/spec/fixtures/favorites.json +1099 -1
- data/spec/fixtures/followers_ids.json +10 -1
- data/spec/fixtures/friends_ids.json +9 -1
- data/spec/fixtures/gem.json +61 -1
- data/spec/fixtures/list.json +54 -1
- data/spec/fixtures/lists.json +116 -1
- data/spec/fixtures/locations.json +57 -1
- data/spec/fixtures/not_found.json +4 -1
- data/spec/fixtures/rate_limit_status.json +6 -1
- data/spec/fixtures/recommendations.json +364 -1
- data/spec/fixtures/retweet.json +112 -1
- data/spec/fixtures/search.json +346 -1
- data/spec/fixtures/settings.json +30 -1
- data/spec/fixtures/sferik.json +76 -1
- data/spec/fixtures/status.json +109 -1
- data/spec/fixtures/status_no_attributes.json +104 -1
- data/spec/fixtures/status_no_country.json +102 -1
- data/spec/fixtures/status_no_full_name.json +101 -1
- data/spec/fixtures/status_no_locality.json +107 -1
- data/spec/fixtures/status_no_street_address.json +108 -1
- data/spec/fixtures/statuses.json +1105 -1
- data/spec/fixtures/trends.json +35 -1
- data/spec/fixtures/users.json +92 -1
- data/spec/fixtures/users_list.json +98 -1
- data/spec/list_spec.rb +13 -5
- data/spec/search_spec.rb +110 -102
- data/t.gemspec +1 -2
- metadata +6 -32
data/spec/fixtures/search.json
CHANGED
@@ -1 +1,346 @@
|
|
1
|
-
{"completed_in":0.036,"max_id":194521262415032320,"max_id_str":"194521262415032320","next_page":"?page=2&max_id=194521262415032320&q=twitter","page":1,"query":"twitter","refresh_url":"?since_id=194521262415032320&q=twitter","results":[{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"JessRoveel","from_user_id":99818387,"from_user_id_str":"99818387","from_user_name":"Jess de Platypus\u2665","geo":null,"id":194521262415032320,"id_str":"194521262415032320","iso_language_code":"es","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2014656522\/Foto0309_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2014656522\/Foto0309_normal.jpg","source":"<a href="http:\/\/twitter.com\/">web<\/a>","text":"Pondre lo mas importante de Hamlet en Twitter para recordarlo mejor :D","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"lauravgeest","from_user_id":370207980,"from_user_id_str":"370207980","from_user_name":"Lauraa\u2665","geo":null,"id":194521262326951936,"id_str":"194521262326951936","iso_language_code":"nl","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2147508883\/IMG-20120404-WA003_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2147508883\/IMG-20120404-WA003_normal.jpg","source":"<a href="http:\/\/blackberry.com\/twitter" rel="nofollow">Twitter for BlackBerry\u00ae<\/a>","text":"Twitter doet het al 7 uur niet meer","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"Jenny_Bearx333","from_user_id":393818165,"from_user_id_str":"393818165","from_user_name":"Jenitza Qui\u00f1ones","geo":null,"id":194521262234669056,"id_str":"194521262234669056","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2156571407\/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2156571407\/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg","source":"<a href="http:\/\/mobile.twitter.com" rel="nofollow">Mobile Web<\/a>","text":"I keep thinking that twitter is @instagram , and therefore double tap all the pics I like... #NotWorking","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"misspoxtonX","from_user_id":259342250,"from_user_id_str":"259342250","from_user_name":"potatooooo king \u265b","geo":null,"id":194521262138204160,"id_str":"194521262138204160","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2159952653\/P2191655_normal.JPG","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2159952653\/P2191655_normal.JPG","source":"<a href="http:\/\/twitter.com\/#!\/download\/iphone" rel="nofollow">Twitter for iPhone<\/a>","text":"RT @jordantaylorhi: twitter friends > twats at school","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"PatrickBrickman","from_user_id":102555146,"from_user_id_str":"102555146","from_user_name":"Patrick Brickman","geo":null,"id":194521262134001665,"id_str":"194521262134001665","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1663790229\/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1663790229\/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg","source":"<a href="http:\/\/twitter.com\/#!\/download\/iphone" rel="nofollow">Twitter for iPhone<\/a>","text":"RT @zeus30hightower: Too all Bama fans and followers my cousin mark Barron doesn't have a twitter so please disregard any tweets from that user","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"KolonelX","from_user_id":60933843,"from_user_id_str":"60933843","from_user_name":"Baas X","geo":null,"id":194521262129811456,"id_str":"194521262129811456","iso_language_code":"nl","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1778062152\/Aj7p2XJCQAA75m1_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1778062152\/Aj7p2XJCQAA75m1_normal.jpg","source":"<a href="http:\/\/www.tweetdeck.com" rel="nofollow">TweetDeck<\/a>","text":"Ik refresh twitter op me telefoon terwijl ik tweetdeck voor me open heb staan","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"VLGPRLG5","from_user_id":360029026,"from_user_id_str":"360029026","from_user_name":"Patricia N.","geo":null,"id":194521261852995586,"id_str":"194521261852995586","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2087947707\/tonino_marylin_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2087947707\/tonino_marylin_normal.jpg","source":"<a href="http:\/\/blackberry.com\/twitter" rel="nofollow">Twitter for BlackBerry\u00ae<\/a>","text":"@mikeyway and you too RT @NimcyGD: @gerardway Get your ass back to twitter, okay? :3","to_user":"mikeyway","to_user_id":17471459,"to_user_id_str":"17471459","to_user_name":"Mikey Way"},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"xRhiBabyx","from_user_id":45532308,"from_user_id_str":"45532308","from_user_name":"Rhian Cummings","geo":null,"id":194521261756530689,"id_str":"194521261756530689","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1916248305\/image_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1916248305\/image_normal.jpg","source":"<a href="http:\/\/twitter.com\/">web<\/a>","text":"Trying to persuade the boyf to get on twitter and failing. Help? @holly_haime @Ckwarburton @samwarburton_ @chrishaime @rowloboy","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"juliotrv","from_user_id":418570237,"from_user_id_str":"418570237","from_user_name":"J\u00falio Trevisan","geo":null,"id":194521261630697473,"id_str":"194521261630697473","iso_language_code":"pt","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1651783865\/Julio3_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1651783865\/Julio3_normal.jpg","source":"<a href="http:\/\/twitter.com\/">web<\/a>","text":"RT @lookinglassbr: Lan\u00e7amentos outono-inverno 2012...CONFIRA em http:\/\/t.co\/YAk8OXp7 http:\/\/t.co\/fmmrVrbG","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"shanleyaustin27","from_user_id":415094986,"from_user_id_str":"415094986","from_user_name":"shanley austin","geo":null,"id":194521261571964928,"id_str":"194521261571964928","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1870193522\/securedownload__3__normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1870193522\/securedownload__3__normal.jpg","source":"<a href="http:\/\/twitter.com\/download\/android" rel="nofollow">Twitter for Android<\/a>","text":"RT @caaammmmi: @shanleyaustin27 .....and this hahahahaa http:\/\/t.co\/wzCMx6ZU","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"Dame_Valuta","from_user_id":507639925,"from_user_id_str":"507639925","from_user_name":"Vickie Aluta","geo":null,"id":194521261563580416,"id_str":"194521261563580416","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2081431605\/30-2011-20_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2081431605\/30-2011-20_normal.jpg","source":"<a href="http:\/\/twitter.com\/#!\/download\/iphone" rel="nofollow">Twitter for iPhone<\/a>","text":"RT @Paiser10: Great @chelseafc training at Nou Camp! #cfc http:\/\/t.co\/k00TnRyR","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"miss_indyiah","from_user_id":25199338,"from_user_id_str":"25199338","from_user_name":"Indyiah","geo":null,"id":194521261488095232,"id_str":"194521261488095232","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2147854311\/458978_10150938007793858_742758857_13175458_650464464_o_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2147854311\/458978_10150938007793858_742758857_13175458_650464464_o_normal.jpg","source":"<a href="http:\/\/twitter.com\/">web<\/a>","text":"smh, @IndianaHustle done turned into a twitter addict..fuck goin on lol ?","to_user":"IndianaHustle","to_user_id":59990139,"to_user_id_str":"59990139","to_user_name":"Hustle Mane HRT","in_reply_to_status_id":194521038304976896,"in_reply_to_status_id_str":"194521038304976896"},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"CAROLINEWOLLER","from_user_id":136029095,"from_user_id_str":"136029095","from_user_name":"Caroline Woller","geo":null,"id":194521261370650625,"id_str":"194521261370650625","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1987131486\/dw_normal.jpg","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1987131486\/dw_normal.jpg","source":"<a href="http:\/\/twitter.com\/#!\/download\/iphone" rel="nofollow">Twitter for iPhone<\/a>","text":"RT @Mark_Ingram28: To all Bama fans and followers, please unfollow and pay no attention to any user posing to be Mark Barron. My bro doesn't have a twitter!","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"shelbytrenchdww","from_user_id":60678594,"from_user_id_str":"60678594","from_user_name":"Shelby Burnside","geo":null,"id":194521261370642432,"id_str":"194521261370642432","iso_language_code":"en","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/1721956218\/maybe1_normal.PNG","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/1721956218\/maybe1_normal.PNG","source":"<a href="http:\/\/twitter.com\/">web<\/a>","text":"RT @The90sLife: Admit it, we all have a cabinet that looks like this. http:\/\/t.co\/gQEkQw5G","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null},{"created_at":"Mon, 23 Apr 2011 20:20:57 +0000","from_user":"kabos84","from_user_id":265266954,"from_user_id_str":"265266954","from_user_name":"\u060f\u0640\u0644\u064a \u0671\u0644\u0640\u060f\u0640\u0628\u0671\u0695 a\u0338l\u0338i\u0338","geo":null,"id":194521261307727872,"id_str":"194521261307727872","iso_language_code":"ar","metadata":{"result_type":"recent"},"profile_image_url":"http:\/\/a0.twimg.com\/profile_images\/2155190680\/B6210467-F1AC-41E8-9374-4B50ABB3C6EA_normal","profile_image_url_https":"https:\/\/si0.twimg.com\/profile_images\/2155190680\/B6210467-F1AC-41E8-9374-4B50ABB3C6EA_normal","source":"<a href="http:\/\/twitter.com\/#!\/download\/iphone" rel="nofollow">Twitter for iPhone<\/a>","text":"RT @JF_q8: \u0628\u0627\u0644\u0644\u0647 \u0639\u0644\u064a\u0643\u0645 \u060c\u060c \u0645\u0648 \u0639\u064a\u0628 !!!\n\n\n\n.. http:\/\/t.co\/e29GV7Ow","to_user":null,"to_user_id":null,"to_user_id_str":null,"to_user_name":null}],"results_per_page":15,"since_id":0,"since_id_str":"0"}
|
1
|
+
{
|
2
|
+
"completed_in": 0.036,
|
3
|
+
"max_id": 194521262415032320,
|
4
|
+
"max_id_str": "194521262415032320",
|
5
|
+
"next_page": "?page=2&max_id=194521262415032320&q=twitter",
|
6
|
+
"page": 1,
|
7
|
+
"query": "twitter",
|
8
|
+
"refresh_url": "?since_id=194521262415032320&q=twitter",
|
9
|
+
"results": [
|
10
|
+
{
|
11
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
12
|
+
"from_user": "JessRoveel",
|
13
|
+
"from_user_id": 99818387,
|
14
|
+
"from_user_id_str": "99818387",
|
15
|
+
"from_user_name": "Jess de Platypus♥",
|
16
|
+
"geo": null,
|
17
|
+
"id": 194521262415032320,
|
18
|
+
"id_str": "194521262415032320",
|
19
|
+
"iso_language_code": "es",
|
20
|
+
"metadata": {
|
21
|
+
"result_type": "recent"
|
22
|
+
},
|
23
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2014656522/Foto0309_normal.jpg",
|
24
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2014656522/Foto0309_normal.jpg",
|
25
|
+
"source": "<a href="http://twitter.com/">web</a>",
|
26
|
+
"text": "Pondre lo mas importante de Hamlet en Twitter para recordarlo mejor :D",
|
27
|
+
"to_user": null,
|
28
|
+
"to_user_id": null,
|
29
|
+
"to_user_id_str": null,
|
30
|
+
"to_user_name": null
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
34
|
+
"from_user": "lauravgeest",
|
35
|
+
"from_user_id": 370207980,
|
36
|
+
"from_user_id_str": "370207980",
|
37
|
+
"from_user_name": "Lauraa♥",
|
38
|
+
"geo": null,
|
39
|
+
"id": 194521262326951936,
|
40
|
+
"id_str": "194521262326951936",
|
41
|
+
"iso_language_code": "nl",
|
42
|
+
"metadata": {
|
43
|
+
"result_type": "recent"
|
44
|
+
},
|
45
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2147508883/IMG-20120404-WA003_normal.jpg",
|
46
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2147508883/IMG-20120404-WA003_normal.jpg",
|
47
|
+
"source": "<a href="http://blackberry.com/twitter" rel="nofollow">Twitter for BlackBerry®</a>",
|
48
|
+
"text": "Twitter doet het al 7 uur niet meer",
|
49
|
+
"to_user": null,
|
50
|
+
"to_user_id": null,
|
51
|
+
"to_user_id_str": null,
|
52
|
+
"to_user_name": null
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
56
|
+
"from_user": "Jenny_Bearx333",
|
57
|
+
"from_user_id": 393818165,
|
58
|
+
"from_user_id_str": "393818165",
|
59
|
+
"from_user_name": "Jenitza Quiñones",
|
60
|
+
"geo": null,
|
61
|
+
"id": 194521262234669056,
|
62
|
+
"id_str": "194521262234669056",
|
63
|
+
"iso_language_code": "en",
|
64
|
+
"metadata": {
|
65
|
+
"result_type": "recent"
|
66
|
+
},
|
67
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2156571407/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg",
|
68
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2156571407/543631_337343819653633_100001340549098_850013_1999940127_n_normal.jpg",
|
69
|
+
"source": "<a href="http://mobile.twitter.com" rel="nofollow">Mobile Web</a>",
|
70
|
+
"text": "I keep thinking that twitter is @instagram , and therefore double tap all the pics I like... #NotWorking",
|
71
|
+
"to_user": null,
|
72
|
+
"to_user_id": null,
|
73
|
+
"to_user_id_str": null,
|
74
|
+
"to_user_name": null
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
78
|
+
"from_user": "misspoxtonX",
|
79
|
+
"from_user_id": 259342250,
|
80
|
+
"from_user_id_str": "259342250",
|
81
|
+
"from_user_name": "potatooooo king ♛",
|
82
|
+
"geo": null,
|
83
|
+
"id": 194521262138204160,
|
84
|
+
"id_str": "194521262138204160",
|
85
|
+
"iso_language_code": "en",
|
86
|
+
"metadata": {
|
87
|
+
"result_type": "recent"
|
88
|
+
},
|
89
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2159952653/P2191655_normal.JPG",
|
90
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2159952653/P2191655_normal.JPG",
|
91
|
+
"source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
|
92
|
+
"text": "RT @jordantaylorhi: twitter friends > twats at school",
|
93
|
+
"to_user": null,
|
94
|
+
"to_user_id": null,
|
95
|
+
"to_user_id_str": null,
|
96
|
+
"to_user_name": null
|
97
|
+
},
|
98
|
+
{
|
99
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
100
|
+
"from_user": "PatrickBrickman",
|
101
|
+
"from_user_id": 102555146,
|
102
|
+
"from_user_id_str": "102555146",
|
103
|
+
"from_user_name": "Patrick Brickman",
|
104
|
+
"geo": null,
|
105
|
+
"id": 194521262134001665,
|
106
|
+
"id_str": "194521262134001665",
|
107
|
+
"iso_language_code": "en",
|
108
|
+
"metadata": {
|
109
|
+
"result_type": "recent"
|
110
|
+
},
|
111
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1663790229/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg",
|
112
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1663790229/390753_10150394068222898_738242897_8656853_1501249832_n_1__normal.jpg",
|
113
|
+
"source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
|
114
|
+
"text": "RT @zeus30hightower: Too all Bama fans and followers my cousin mark Barron doesn't have a twitter so please disregard any tweets from that user",
|
115
|
+
"to_user": null,
|
116
|
+
"to_user_id": null,
|
117
|
+
"to_user_id_str": null,
|
118
|
+
"to_user_name": null
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
122
|
+
"from_user": "KolonelX",
|
123
|
+
"from_user_id": 60933843,
|
124
|
+
"from_user_id_str": "60933843",
|
125
|
+
"from_user_name": "Baas X",
|
126
|
+
"geo": null,
|
127
|
+
"id": 194521262129811456,
|
128
|
+
"id_str": "194521262129811456",
|
129
|
+
"iso_language_code": "nl",
|
130
|
+
"metadata": {
|
131
|
+
"result_type": "recent"
|
132
|
+
},
|
133
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1778062152/Aj7p2XJCQAA75m1_normal.jpg",
|
134
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1778062152/Aj7p2XJCQAA75m1_normal.jpg",
|
135
|
+
"source": "<a href="http://www.tweetdeck.com" rel="nofollow">TweetDeck</a>",
|
136
|
+
"text": "Ik refresh twitter op me telefoon terwijl ik tweetdeck voor me open heb staan",
|
137
|
+
"to_user": null,
|
138
|
+
"to_user_id": null,
|
139
|
+
"to_user_id_str": null,
|
140
|
+
"to_user_name": null
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
144
|
+
"from_user": "VLGPRLG5",
|
145
|
+
"from_user_id": 360029026,
|
146
|
+
"from_user_id_str": "360029026",
|
147
|
+
"from_user_name": "Patricia N.",
|
148
|
+
"geo": null,
|
149
|
+
"id": 194521261852995586,
|
150
|
+
"id_str": "194521261852995586",
|
151
|
+
"iso_language_code": "en",
|
152
|
+
"metadata": {
|
153
|
+
"result_type": "recent"
|
154
|
+
},
|
155
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2087947707/tonino_marylin_normal.jpg",
|
156
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2087947707/tonino_marylin_normal.jpg",
|
157
|
+
"source": "<a href="http://blackberry.com/twitter" rel="nofollow">Twitter for BlackBerry®</a>",
|
158
|
+
"text": "@mikeyway and you too RT @NimcyGD: @gerardway Get your ass back to twitter, okay? :3",
|
159
|
+
"to_user": "mikeyway",
|
160
|
+
"to_user_id": 17471459,
|
161
|
+
"to_user_id_str": "17471459",
|
162
|
+
"to_user_name": "Mikey Way"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
166
|
+
"from_user": "xRhiBabyx",
|
167
|
+
"from_user_id": 45532308,
|
168
|
+
"from_user_id_str": "45532308",
|
169
|
+
"from_user_name": "Rhian Cummings",
|
170
|
+
"geo": null,
|
171
|
+
"id": 194521261756530689,
|
172
|
+
"id_str": "194521261756530689",
|
173
|
+
"iso_language_code": "en",
|
174
|
+
"metadata": {
|
175
|
+
"result_type": "recent"
|
176
|
+
},
|
177
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1916248305/image_normal.jpg",
|
178
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1916248305/image_normal.jpg",
|
179
|
+
"source": "<a href="http://twitter.com/">web</a>",
|
180
|
+
"text": "Trying to persuade the boyf to get on twitter and failing. Help? @holly_haime @Ckwarburton @samwarburton_ @chrishaime @rowloboy",
|
181
|
+
"to_user": null,
|
182
|
+
"to_user_id": null,
|
183
|
+
"to_user_id_str": null,
|
184
|
+
"to_user_name": null
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
188
|
+
"from_user": "juliotrv",
|
189
|
+
"from_user_id": 418570237,
|
190
|
+
"from_user_id_str": "418570237",
|
191
|
+
"from_user_name": "Júlio Trevisan",
|
192
|
+
"geo": null,
|
193
|
+
"id": 194521261630697473,
|
194
|
+
"id_str": "194521261630697473",
|
195
|
+
"iso_language_code": "pt",
|
196
|
+
"metadata": {
|
197
|
+
"result_type": "recent"
|
198
|
+
},
|
199
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1651783865/Julio3_normal.jpg",
|
200
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1651783865/Julio3_normal.jpg",
|
201
|
+
"source": "<a href="http://twitter.com/">web</a>",
|
202
|
+
"text": "RT @lookinglassbr: Lançamentos outono-inverno 2012...CONFIRA em http://t.co/YAk8OXp7 http://t.co/fmmrVrbG",
|
203
|
+
"to_user": null,
|
204
|
+
"to_user_id": null,
|
205
|
+
"to_user_id_str": null,
|
206
|
+
"to_user_name": null
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
210
|
+
"from_user": "shanleyaustin27",
|
211
|
+
"from_user_id": 415094986,
|
212
|
+
"from_user_id_str": "415094986",
|
213
|
+
"from_user_name": "shanley austin",
|
214
|
+
"geo": null,
|
215
|
+
"id": 194521261571964928,
|
216
|
+
"id_str": "194521261571964928",
|
217
|
+
"iso_language_code": "en",
|
218
|
+
"metadata": {
|
219
|
+
"result_type": "recent"
|
220
|
+
},
|
221
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1870193522/securedownload__3__normal.jpg",
|
222
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1870193522/securedownload__3__normal.jpg",
|
223
|
+
"source": "<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>",
|
224
|
+
"text": "RT @caaammmmi: @shanleyaustin27 .....and this hahahahaa http://t.co/wzCMx6ZU",
|
225
|
+
"to_user": null,
|
226
|
+
"to_user_id": null,
|
227
|
+
"to_user_id_str": null,
|
228
|
+
"to_user_name": null
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
232
|
+
"from_user": "Dame_Valuta",
|
233
|
+
"from_user_id": 507639925,
|
234
|
+
"from_user_id_str": "507639925",
|
235
|
+
"from_user_name": "Vickie Aluta",
|
236
|
+
"geo": null,
|
237
|
+
"id": 194521261563580416,
|
238
|
+
"id_str": "194521261563580416",
|
239
|
+
"iso_language_code": "en",
|
240
|
+
"metadata": {
|
241
|
+
"result_type": "recent"
|
242
|
+
},
|
243
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2081431605/30-2011-20_normal.jpg",
|
244
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2081431605/30-2011-20_normal.jpg",
|
245
|
+
"source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
|
246
|
+
"text": "RT @Paiser10: Great @chelseafc training at Nou Camp! #cfc http://t.co/k00TnRyR",
|
247
|
+
"to_user": null,
|
248
|
+
"to_user_id": null,
|
249
|
+
"to_user_id_str": null,
|
250
|
+
"to_user_name": null
|
251
|
+
},
|
252
|
+
{
|
253
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
254
|
+
"from_user": "miss_indyiah",
|
255
|
+
"from_user_id": 25199338,
|
256
|
+
"from_user_id_str": "25199338",
|
257
|
+
"from_user_name": "Indyiah",
|
258
|
+
"geo": null,
|
259
|
+
"id": 194521261488095232,
|
260
|
+
"id_str": "194521261488095232",
|
261
|
+
"iso_language_code": "en",
|
262
|
+
"metadata": {
|
263
|
+
"result_type": "recent"
|
264
|
+
},
|
265
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2147854311/458978_10150938007793858_742758857_13175458_650464464_o_normal.jpg",
|
266
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2147854311/458978_10150938007793858_742758857_13175458_650464464_o_normal.jpg",
|
267
|
+
"source": "<a href="http://twitter.com/">web</a>",
|
268
|
+
"text": "smh, @IndianaHustle done turned into a twitter addict..fuck goin on lol ?",
|
269
|
+
"to_user": "IndianaHustle",
|
270
|
+
"to_user_id": 59990139,
|
271
|
+
"to_user_id_str": "59990139",
|
272
|
+
"to_user_name": "Hustle Mane HRT",
|
273
|
+
"in_reply_to_status_id": 194521038304976896,
|
274
|
+
"in_reply_to_status_id_str": "194521038304976896"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
278
|
+
"from_user": "CAROLINEWOLLER",
|
279
|
+
"from_user_id": 136029095,
|
280
|
+
"from_user_id_str": "136029095",
|
281
|
+
"from_user_name": "Caroline Woller",
|
282
|
+
"geo": null,
|
283
|
+
"id": 194521261370650625,
|
284
|
+
"id_str": "194521261370650625",
|
285
|
+
"iso_language_code": "en",
|
286
|
+
"metadata": {
|
287
|
+
"result_type": "recent"
|
288
|
+
},
|
289
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1987131486/dw_normal.jpg",
|
290
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1987131486/dw_normal.jpg",
|
291
|
+
"source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
|
292
|
+
"text": "RT @Mark_Ingram28: To all Bama fans and followers, please unfollow and pay no attention to any user posing to be Mark Barron. My bro doesn't have a twitter!",
|
293
|
+
"to_user": null,
|
294
|
+
"to_user_id": null,
|
295
|
+
"to_user_id_str": null,
|
296
|
+
"to_user_name": null
|
297
|
+
},
|
298
|
+
{
|
299
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
300
|
+
"from_user": "shelbytrenchdww",
|
301
|
+
"from_user_id": 60678594,
|
302
|
+
"from_user_id_str": "60678594",
|
303
|
+
"from_user_name": "Shelby Burnside",
|
304
|
+
"geo": null,
|
305
|
+
"id": 194521261370642432,
|
306
|
+
"id_str": "194521261370642432",
|
307
|
+
"iso_language_code": "en",
|
308
|
+
"metadata": {
|
309
|
+
"result_type": "recent"
|
310
|
+
},
|
311
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1721956218/maybe1_normal.PNG",
|
312
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1721956218/maybe1_normal.PNG",
|
313
|
+
"source": "<a href="http://twitter.com/">web</a>",
|
314
|
+
"text": "RT @The90sLife: Admit it, we all have a cabinet that looks like this. http://t.co/gQEkQw5G",
|
315
|
+
"to_user": null,
|
316
|
+
"to_user_id": null,
|
317
|
+
"to_user_id_str": null,
|
318
|
+
"to_user_name": null
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"created_at": "Mon, 23 Apr 2011 20:20:57 +0000",
|
322
|
+
"from_user": "kabos84",
|
323
|
+
"from_user_id": 265266954,
|
324
|
+
"from_user_id_str": "265266954",
|
325
|
+
"from_user_name": "؏ـلي ٱلـ؏ـبٱڕ a̸l̸i̸",
|
326
|
+
"geo": null,
|
327
|
+
"id": 194521261307727872,
|
328
|
+
"id_str": "194521261307727872",
|
329
|
+
"iso_language_code": "ar",
|
330
|
+
"metadata": {
|
331
|
+
"result_type": "recent"
|
332
|
+
},
|
333
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/2155190680/B6210467-F1AC-41E8-9374-4B50ABB3C6EA_normal",
|
334
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/2155190680/B6210467-F1AC-41E8-9374-4B50ABB3C6EA_normal",
|
335
|
+
"source": "<a href="http://twitter.com/#!/download/iphone" rel="nofollow">Twitter for iPhone</a>",
|
336
|
+
"text": "RT @JF_q8: بالله عليكم ،، مو عيب !!!\n\n\n\n.. http://t.co/e29GV7Ow",
|
337
|
+
"to_user": null,
|
338
|
+
"to_user_id": null,
|
339
|
+
"to_user_id_str": null,
|
340
|
+
"to_user_name": null
|
341
|
+
}
|
342
|
+
],
|
343
|
+
"results_per_page": 15,
|
344
|
+
"since_id": 0,
|
345
|
+
"since_id_str": "0"
|
346
|
+
}
|
data/spec/fixtures/settings.json
CHANGED
@@ -1 +1,30 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"language": "en",
|
3
|
+
"discoverable_by_email": true,
|
4
|
+
"trend_location": [
|
5
|
+
{
|
6
|
+
"url": "http://where.yahooapis.com/v1/place/23424803",
|
7
|
+
"parentid": 1,
|
8
|
+
"name": "Ireland",
|
9
|
+
"countryCode": "IE",
|
10
|
+
"placeType": {
|
11
|
+
"name": "Country",
|
12
|
+
"code": 12
|
13
|
+
},
|
14
|
+
"woeid": 23424803,
|
15
|
+
"country": "Ireland"
|
16
|
+
}
|
17
|
+
],
|
18
|
+
"sleep_time": {
|
19
|
+
"enabled": false,
|
20
|
+
"start_time": 0,
|
21
|
+
"end_time": 0
|
22
|
+
},
|
23
|
+
"geo_enabled": true,
|
24
|
+
"time_zone": {
|
25
|
+
"name": "Eastern Time (US & Canada)",
|
26
|
+
"utc_offset": -18000,
|
27
|
+
"tzinfo_name": "America/New_York"
|
28
|
+
},
|
29
|
+
"always_use_https": true
|
30
|
+
}
|
data/spec/fixtures/sferik.json
CHANGED
@@ -1 +1,76 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"show_all_inline_media": true,
|
3
|
+
"lang": "en",
|
4
|
+
"geo_enabled": true,
|
5
|
+
"profile_background_image_url": "http://a2.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
|
6
|
+
"created_at": "Mon Jul 16 12:59:01 +0000 2007",
|
7
|
+
"description": "A mind forever voyaging through strange seas of thought, alone.",
|
8
|
+
"screen_name": "sferik",
|
9
|
+
"url": "https://github.com/sferik",
|
10
|
+
"status": {
|
11
|
+
"retweeted_status": {
|
12
|
+
"coordinates": null,
|
13
|
+
"retweeted": false,
|
14
|
+
"retweet_count": 8,
|
15
|
+
"created_at": "Sun Jan 16 20:57:21 +0000 2011",
|
16
|
+
"in_reply_to_user_id": null,
|
17
|
+
"place": null,
|
18
|
+
"source": "<a href=\"http://www.echofon.com/\" rel=\"nofollow\">Echofon</a>",
|
19
|
+
"in_reply_to_status_id": null,
|
20
|
+
"truncated": false,
|
21
|
+
"favorited": false,
|
22
|
+
"in_reply_to_status_id_str": null,
|
23
|
+
"id_str": "26744838716133376",
|
24
|
+
"geo": null,
|
25
|
+
"contributors": null,
|
26
|
+
"in_reply_to_screen_name": null,
|
27
|
+
"id": 26744838716133376,
|
28
|
+
"in_reply_to_user_id_str": null,
|
29
|
+
"text": "[ANN] sqlite3-ruby => sqlite3"
|
30
|
+
},
|
31
|
+
"coordinates": null,
|
32
|
+
"retweeted": false,
|
33
|
+
"retweet_count": 8,
|
34
|
+
"created_at": "Sun Jan 16 21:38:25 +0000 2011",
|
35
|
+
"in_reply_to_user_id": null,
|
36
|
+
"place": null,
|
37
|
+
"source": "<a href=\"http://itunes.apple.com/us/app/twitter/id409789998?mt=12\" rel=\"nofollow\">Twitter for Mac</a>",
|
38
|
+
"in_reply_to_status_id": null,
|
39
|
+
"truncated": false,
|
40
|
+
"favorited": false,
|
41
|
+
"in_reply_to_status_id_str": null,
|
42
|
+
"id_str": "26755176471724032",
|
43
|
+
"geo": null,
|
44
|
+
"contributors": null,
|
45
|
+
"in_reply_to_screen_name": null,
|
46
|
+
"id": 26755176471724032,
|
47
|
+
"in_reply_to_user_id_str": null,
|
48
|
+
"text": "RT @tenderlove: [ANN] sqlite3-ruby => sqlite3"
|
49
|
+
},
|
50
|
+
"profile_text_color": "333333",
|
51
|
+
"followers_count": 1048,
|
52
|
+
"listed_count": 41,
|
53
|
+
"following": false,
|
54
|
+
"favourites_count": 1040,
|
55
|
+
"profile_sidebar_fill_color": "DDEEF6",
|
56
|
+
"location": "San Francisco",
|
57
|
+
"profile_background_tile": false,
|
58
|
+
"time_zone": "Pacific Time (US & Canada)",
|
59
|
+
"contributors_enabled": false,
|
60
|
+
"statuses_count": 3479,
|
61
|
+
"profile_link_color": "0084B4",
|
62
|
+
"is_translator": false,
|
63
|
+
"profile_sidebar_border_color": "C0DEED",
|
64
|
+
"protected": false,
|
65
|
+
"id_str": "7505382",
|
66
|
+
"name": "Erik Michaels-Ober",
|
67
|
+
"verified": false,
|
68
|
+
"notifications": false,
|
69
|
+
"profile_use_background_image": true,
|
70
|
+
"friends_count": 197,
|
71
|
+
"profile_image_url": "http://a1.twimg.com/profile_images/1186912733/Github_Square_normal.jpg",
|
72
|
+
"id": 7505382,
|
73
|
+
"follow_request_sent": false,
|
74
|
+
"utc_offset": -28800,
|
75
|
+
"profile_background_color": "000000"
|
76
|
+
}
|
data/spec/fixtures/status.json
CHANGED
@@ -1 +1,109 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"created_at": "Wed Apr 06 19:13:37 +0000 2011",
|
3
|
+
"id": 55709764298092545,
|
4
|
+
"id_str": "55709764298092545",
|
5
|
+
"text": "The problem with your code is that it's doing exactly what you told it to do.",
|
6
|
+
"source": "<a href=\"http://twitter.com/#!/download/iphone\" rel=\"nofollow\">Twitter for iPhone</a>",
|
7
|
+
"truncated": false,
|
8
|
+
"in_reply_to_status_id": null,
|
9
|
+
"in_reply_to_status_id_str": null,
|
10
|
+
"in_reply_to_user_id": null,
|
11
|
+
"in_reply_to_user_id_str": null,
|
12
|
+
"in_reply_to_screen_name": null,
|
13
|
+
"user": {
|
14
|
+
"id": 7505382,
|
15
|
+
"id_str": "7505382",
|
16
|
+
"name": "Erik Michaels-Ober",
|
17
|
+
"screen_name": "sferik",
|
18
|
+
"location": "San Francisco",
|
19
|
+
"description": "My heart is in the work.",
|
20
|
+
"url": "https://github.com/sferik",
|
21
|
+
"protected": false,
|
22
|
+
"followers_count": 2094,
|
23
|
+
"friends_count": 203,
|
24
|
+
"listed_count": 114,
|
25
|
+
"created_at": "Mon Jul 16 12:59:01 +0000 2007",
|
26
|
+
"favourites_count": 3073,
|
27
|
+
"utc_offset": -28800,
|
28
|
+
"time_zone": "Pacific Time (US & Canada)",
|
29
|
+
"geo_enabled": true,
|
30
|
+
"verified": false,
|
31
|
+
"statuses_count": 6890,
|
32
|
+
"lang": "en",
|
33
|
+
"contributors_enabled": false,
|
34
|
+
"is_translator": false,
|
35
|
+
"profile_background_color": "000000",
|
36
|
+
"profile_background_image_url": "http://a0.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
|
37
|
+
"profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/162641967/we_concept_bg2.png",
|
38
|
+
"profile_background_tile": false,
|
39
|
+
"profile_image_url": "http://a0.twimg.com/profile_images/1759857427/image1326743606_normal.png",
|
40
|
+
"profile_image_url_https": "https://si0.twimg.com/profile_images/1759857427/image1326743606_normal.png",
|
41
|
+
"profile_link_color": "0084B4",
|
42
|
+
"profile_sidebar_border_color": "C0DEED",
|
43
|
+
"profile_sidebar_fill_color": "DDEEF6",
|
44
|
+
"profile_text_color": "333333",
|
45
|
+
"profile_use_background_image": true,
|
46
|
+
"show_all_inline_media": true,
|
47
|
+
"default_profile": false,
|
48
|
+
"default_profile_image": false,
|
49
|
+
"following": false,
|
50
|
+
"follow_request_sent": false,
|
51
|
+
"notifications": false
|
52
|
+
},
|
53
|
+
"geo": {
|
54
|
+
"type": "Point",
|
55
|
+
"coordinates": [
|
56
|
+
37.75963095,
|
57
|
+
-122.410067
|
58
|
+
]
|
59
|
+
},
|
60
|
+
"coordinates": {
|
61
|
+
"type": "Point",
|
62
|
+
"coordinates": [
|
63
|
+
-122.410067,
|
64
|
+
37.75963095
|
65
|
+
]
|
66
|
+
},
|
67
|
+
"place": {
|
68
|
+
"id": "f29bbd03562e37d1",
|
69
|
+
"url": "http://api.twitter.com/1/geo/id/f29bbd03562e37d1.json",
|
70
|
+
"place_type": "poi",
|
71
|
+
"name": "Blowfish Sushi To Die For",
|
72
|
+
"full_name": "Blowfish Sushi To Die For, San Francisco",
|
73
|
+
"country_code": "US",
|
74
|
+
"country": "United States",
|
75
|
+
"bounding_box": {
|
76
|
+
"type": "Polygon",
|
77
|
+
"coordinates": [
|
78
|
+
[
|
79
|
+
[
|
80
|
+
-122.409954,
|
81
|
+
37.759597
|
82
|
+
],
|
83
|
+
[
|
84
|
+
-122.409954,
|
85
|
+
37.759597
|
86
|
+
],
|
87
|
+
[
|
88
|
+
-122.409954,
|
89
|
+
37.759597
|
90
|
+
],
|
91
|
+
[
|
92
|
+
-122.409954,
|
93
|
+
37.759597
|
94
|
+
]
|
95
|
+
]
|
96
|
+
]
|
97
|
+
},
|
98
|
+
"attributes": {
|
99
|
+
"region": "California",
|
100
|
+
"locality": "San Francisco",
|
101
|
+
"street_address": "2170 Bryant St"
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"contributors": null,
|
105
|
+
"retweet_count": 320,
|
106
|
+
"favorited": false,
|
107
|
+
"retweeted": false,
|
108
|
+
"possibly_sensitive": false
|
109
|
+
}
|