t 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/bin/t +1 -1
  4. data/lib/t/cli.rb +26 -2
  5. data/lib/t/list.rb +0 -2
  6. data/lib/t/printable.rb +6 -5
  7. data/lib/t/stream.rb +0 -20
  8. data/lib/t/version.rb +1 -1
  9. data/t.gemspec +4 -8
  10. metadata +6 -131
  11. data/Rakefile +0 -21
  12. data/spec/cli_spec.rb +0 -4141
  13. data/spec/delete_spec.rb +0 -250
  14. data/spec/editor_spec.rb +0 -102
  15. data/spec/fixtures/200_direct_messages.json +0 -1
  16. data/spec/fixtures/200_statuses.json +0 -1
  17. data/spec/fixtures/501_ids.json +0 -1
  18. data/spec/fixtures/501_users_list.json +0 -1
  19. data/spec/fixtures/access_token +0 -1
  20. data/spec/fixtures/bearer_token.json +0 -1
  21. data/spec/fixtures/checkip.html +0 -1
  22. data/spec/fixtures/direct_message.json +0 -1
  23. data/spec/fixtures/direct_messages.json +0 -1
  24. data/spec/fixtures/empty_array.json +0 -1
  25. data/spec/fixtures/empty_cursor.json +0 -1
  26. data/spec/fixtures/favorites.json +0 -1
  27. data/spec/fixtures/followers_ids.json +0 -1
  28. data/spec/fixtures/following.json +0 -1
  29. data/spec/fixtures/friends_ids.json +0 -1
  30. data/spec/fixtures/gem.json +0 -1
  31. data/spec/fixtures/geo.json +0 -414
  32. data/spec/fixtures/geo_no_city.json +0 -344
  33. data/spec/fixtures/geo_no_state.json +0 -299
  34. data/spec/fixtures/geoplugin.xml +0 -17
  35. data/spec/fixtures/ids_list.json +0 -1
  36. data/spec/fixtures/ids_list2.json +0 -1
  37. data/spec/fixtures/list.json +0 -1
  38. data/spec/fixtures/lists.json +0 -1
  39. data/spec/fixtures/locations.json +0 -1
  40. data/spec/fixtures/long.png +0 -0
  41. data/spec/fixtures/matrix.json +0 -1
  42. data/spec/fixtures/me.jpg +0 -0
  43. data/spec/fixtures/not_following.json +0 -1
  44. data/spec/fixtures/not_found.json +0 -1
  45. data/spec/fixtures/rate_limit_status.json +0 -1
  46. data/spec/fixtures/recommendations.json +0 -1
  47. data/spec/fixtures/request_token +0 -1
  48. data/spec/fixtures/retweet.json +0 -1
  49. data/spec/fixtures/search.json +0 -1
  50. data/spec/fixtures/search2.json +0 -1
  51. data/spec/fixtures/search_with_entities.json +0 -1
  52. data/spec/fixtures/settings.json +0 -1
  53. data/spec/fixtures/sferik.json +0 -1
  54. data/spec/fixtures/status.json +0 -1
  55. data/spec/fixtures/status_no_attributes.json +0 -1
  56. data/spec/fixtures/status_no_country.json +0 -1
  57. data/spec/fixtures/status_no_full_name.json +0 -1
  58. data/spec/fixtures/status_no_locality.json +0 -1
  59. data/spec/fixtures/status_no_place.json +0 -1
  60. data/spec/fixtures/status_no_street_address.json +0 -1
  61. data/spec/fixtures/status_with_mention.json +0 -1
  62. data/spec/fixtures/statuses.json +0 -1
  63. data/spec/fixtures/trends.json +0 -1
  64. data/spec/fixtures/users.json +0 -1
  65. data/spec/fixtures/users_list.json +0 -1
  66. data/spec/fixtures/we_concept_bg2.png +0 -0
  67. data/spec/helper.rb +0 -78
  68. data/spec/list_spec.rb +0 -812
  69. data/spec/rcfile_spec.rb +0 -221
  70. data/spec/search_spec.rb +0 -944
  71. data/spec/set_spec.rb +0 -154
  72. data/spec/stream_spec.rb +0 -286
  73. data/spec/utils_spec.rb +0 -96
@@ -1,344 +0,0 @@
1
- {
2
- "results" : [
3
- {
4
- "address_components" : [
5
- {
6
- "long_name" : "California",
7
- "short_name" : "CA",
8
- "types" : [ "administrative_area_level_1", "political" ]
9
- },
10
- {
11
- "long_name" : "United States",
12
- "short_name" : "US",
13
- "types" : [ "country", "political" ]
14
- },
15
- {
16
- "long_name" : "94110",
17
- "short_name" : "94110",
18
- "types" : [ "postal_code" ]
19
- }
20
- ],
21
- "formatted_address" : "CA, USA",
22
- "geometry" : {
23
- "location" : {
24
- "lat" : 37.759658,
25
- "lng" : -122.410229
26
- },
27
- "location_type" : "ROOFTOP",
28
- "viewport" : {
29
- "northeast" : {
30
- "lat" : 37.7610069802915,
31
- "lng" : -122.4088800197085
32
- },
33
- "southwest" : {
34
- "lat" : 37.75830901970851,
35
- "lng" : -122.4115779802915
36
- }
37
- }
38
- },
39
- "types" : [ "street_address" ]
40
- },
41
- {
42
- "address_components" : [
43
- {
44
- "long_name" : "California",
45
- "short_name" : "CA",
46
- "types" : [ "administrative_area_level_1", "political" ]
47
- },
48
- {
49
- "long_name" : "United States",
50
- "short_name" : "US",
51
- "types" : [ "country", "political" ]
52
- }
53
- ],
54
- "formatted_address" : "CA, USA",
55
- "geometry" : {
56
- "bounds" : {
57
- "northeast" : {
58
- "lat" : 37.7719876,
59
- "lng" : -122.4027825
60
- },
61
- "southwest" : {
62
- "lat" : 37.7478217,
63
- "lng" : -122.4309111
64
- }
65
- },
66
- "location" : {
67
- "lat" : 37.7598648,
68
- "lng" : -122.4147977
69
- },
70
- "location_type" : "APPROXIMATE",
71
- "viewport" : {
72
- "northeast" : {
73
- "lat" : 37.7719876,
74
- "lng" : -122.4027825
75
- },
76
- "southwest" : {
77
- "lat" : 37.7478217,
78
- "lng" : -122.4309111
79
- }
80
- }
81
- },
82
- "types" : [ "neighborhood", "political" ]
83
- },
84
- {
85
- "address_components" : [
86
- {
87
- "long_name" : "California",
88
- "short_name" : "CA",
89
- "types" : [ "administrative_area_level_1", "political" ]
90
- },
91
- {
92
- "long_name" : "United States",
93
- "short_name" : "US",
94
- "types" : [ "country", "political" ]
95
- }
96
- ],
97
- "formatted_address" : "CA 94110, USA",
98
- "geometry" : {
99
- "bounds" : {
100
- "northeast" : {
101
- "lat" : 37.76578300000001,
102
- "lng" : -122.402855
103
- },
104
- "southwest" : {
105
- "lat" : 37.731608,
106
- "lng" : -122.427269
107
- }
108
- },
109
- "location" : {
110
- "lat" : 37.7485824,
111
- "lng" : -122.4184108
112
- },
113
- "location_type" : "APPROXIMATE",
114
- "viewport" : {
115
- "northeast" : {
116
- "lat" : 37.76578300000001,
117
- "lng" : -122.402855
118
- },
119
- "southwest" : {
120
- "lat" : 37.731608,
121
- "lng" : -122.427269
122
- }
123
- }
124
- },
125
- "types" : [ "postal_code" ]
126
- },
127
- {
128
- "address_components" : [
129
- {
130
- "long_name" : "California",
131
- "short_name" : "CA",
132
- "types" : [ "administrative_area_level_1", "political" ]
133
- },
134
- {
135
- "long_name" : "United States",
136
- "short_name" : "US",
137
- "types" : [ "country", "political" ]
138
- }
139
- ],
140
- "formatted_address" : "CA, USA",
141
- "geometry" : {
142
- "bounds" : {
143
- "northeast" : {
144
- "lat" : 37.9297707,
145
- "lng" : -122.3279148
146
- },
147
- "southwest" : {
148
- "lat" : 37.6933354,
149
- "lng" : -123.1077733
150
- }
151
- },
152
- "location" : {
153
- "lat" : 37.7749295,
154
- "lng" : -122.4194155
155
- },
156
- "location_type" : "APPROXIMATE",
157
- "viewport" : {
158
- "northeast" : {
159
- "lat" : 37.812,
160
- "lng" : -122.3482
161
- },
162
- "southwest" : {
163
- "lat" : 37.70339999999999,
164
- "lng" : -122.527
165
- }
166
- }
167
- },
168
- "types" : [ "locality", "political" ]
169
- },
170
- {
171
- "address_components" : [
172
- {
173
- "long_name" : "California",
174
- "short_name" : "CA",
175
- "types" : [ "administrative_area_level_1", "political" ]
176
- },
177
- {
178
- "long_name" : "United States",
179
- "short_name" : "US",
180
- "types" : [ "country", "political" ]
181
- }
182
- ],
183
- "formatted_address" : "CA, USA",
184
- "geometry" : {
185
- "bounds" : {
186
- "northeast" : {
187
- "lat" : 37.9297707,
188
- "lng" : -122.3279148
189
- },
190
- "southwest" : {
191
- "lat" : 37.6933354,
192
- "lng" : -123.1077733
193
- }
194
- },
195
- "location" : {
196
- "lat" : 37.7749073,
197
- "lng" : -122.4193878
198
- },
199
- "location_type" : "APPROXIMATE",
200
- "viewport" : {
201
- "northeast" : {
202
- "lat" : 37.833827,
203
- "lng" : -122.3551997
204
- },
205
- "southwest" : {
206
- "lat" : 37.708086,
207
- "lng" : -122.5300999
208
- }
209
- }
210
- },
211
- "types" : [ "administrative_area_level_2", "political" ]
212
- },
213
- {
214
- "address_components" : [
215
- {
216
- "long_name" : "サン・フランシスコ=オークランド=フリモント",
217
- "short_name" : "サン・フランシスコ=オークランド=フリモント",
218
- "types" : [ "political" ]
219
- },
220
- {
221
- "long_name" : "California",
222
- "short_name" : "CA",
223
- "types" : [ "administrative_area_level_1", "political" ]
224
- },
225
- {
226
- "long_name" : "United States",
227
- "short_name" : "US",
228
- "types" : [ "country", "political" ]
229
- }
230
- ],
231
- "formatted_address" : "United States, California, サン・フランシスコ=オークランド=フリモント",
232
- "geometry" : {
233
- "bounds" : {
234
- "northeast" : {
235
- "lat" : 38.320945,
236
- "lng" : -121.469275
237
- },
238
- "southwest" : {
239
- "lat" : 37.1073458,
240
- "lng" : -123.024066
241
- }
242
- },
243
- "location" : {
244
- "lat" : 37.8043507,
245
- "lng" : -121.8107079
246
- },
247
- "location_type" : "APPROXIMATE",
248
- "viewport" : {
249
- "northeast" : {
250
- "lat" : 38.320945,
251
- "lng" : -121.469275
252
- },
253
- "southwest" : {
254
- "lat" : 37.1073458,
255
- "lng" : -123.024066
256
- }
257
- }
258
- },
259
- "types" : [ "political" ]
260
- },
261
- {
262
- "address_components" : [
263
- {
264
- "long_name" : "California",
265
- "short_name" : "CA",
266
- "types" : [ "administrative_area_level_1", "political" ]
267
- },
268
- {
269
- "long_name" : "United States",
270
- "short_name" : "US",
271
- "types" : [ "country", "political" ]
272
- }
273
- ],
274
- "formatted_address" : "California, USA",
275
- "geometry" : {
276
- "bounds" : {
277
- "northeast" : {
278
- "lat" : 42.0095169,
279
- "lng" : -114.131211
280
- },
281
- "southwest" : {
282
- "lat" : 32.5342321,
283
- "lng" : -124.4096195
284
- }
285
- },
286
- "location" : {
287
- "lat" : 36.778261,
288
- "lng" : -119.4179324
289
- },
290
- "location_type" : "APPROXIMATE",
291
- "viewport" : {
292
- "northeast" : {
293
- "lat" : 42.0095169,
294
- "lng" : -114.131211
295
- },
296
- "southwest" : {
297
- "lat" : 32.5342321,
298
- "lng" : -124.4096195
299
- }
300
- }
301
- },
302
- "types" : [ "administrative_area_level_1", "political" ]
303
- },
304
- {
305
- "address_components" : [
306
- {
307
- "long_name" : "United States",
308
- "short_name" : "US",
309
- "types" : [ "country", "political" ]
310
- }
311
- ],
312
- "formatted_address" : "United States",
313
- "geometry" : {
314
- "bounds" : {
315
- "northeast" : {
316
- "lat" : 90,
317
- "lng" : 180
318
- },
319
- "southwest" : {
320
- "lat" : -90,
321
- "lng" : -180
322
- }
323
- },
324
- "location" : {
325
- "lat" : 37.09024,
326
- "lng" : -95.712891
327
- },
328
- "location_type" : "APPROXIMATE",
329
- "viewport" : {
330
- "northeast" : {
331
- "lat" : 49.38,
332
- "lng" : -66.94
333
- },
334
- "southwest" : {
335
- "lat" : 25.82,
336
- "lng" : -124.39
337
- }
338
- }
339
- },
340
- "types" : [ "country", "political" ]
341
- }
342
- ],
343
- "status" : "OK"
344
- }
@@ -1,299 +0,0 @@
1
- {
2
- "results" : [
3
- {
4
- "address_components" : [
5
- {
6
- "long_name" : "United States",
7
- "short_name" : "US",
8
- "types" : [ "country", "political" ]
9
- }
10
- ],
11
- "formatted_address" : "USA",
12
- "geometry" : {
13
- "location" : {
14
- "lat" : 37.759658,
15
- "lng" : -122.410229
16
- },
17
- "location_type" : "ROOFTOP",
18
- "viewport" : {
19
- "northeast" : {
20
- "lat" : 37.7610069802915,
21
- "lng" : -122.4088800197085
22
- },
23
- "southwest" : {
24
- "lat" : 37.75830901970851,
25
- "lng" : -122.4115779802915
26
- }
27
- }
28
- },
29
- "types" : [ "street_address" ]
30
- },
31
- {
32
- "address_components" : [
33
- {
34
- "long_name" : "United States",
35
- "short_name" : "US",
36
- "types" : [ "country", "political" ]
37
- }
38
- ],
39
- "formatted_address" : "USA",
40
- "geometry" : {
41
- "bounds" : {
42
- "northeast" : {
43
- "lat" : 37.7719876,
44
- "lng" : -122.4027825
45
- },
46
- "southwest" : {
47
- "lat" : 37.7478217,
48
- "lng" : -122.4309111
49
- }
50
- },
51
- "location" : {
52
- "lat" : 37.7598648,
53
- "lng" : -122.4147977
54
- },
55
- "location_type" : "APPROXIMATE",
56
- "viewport" : {
57
- "northeast" : {
58
- "lat" : 37.7719876,
59
- "lng" : -122.4027825
60
- },
61
- "southwest" : {
62
- "lat" : 37.7478217,
63
- "lng" : -122.4309111
64
- }
65
- }
66
- },
67
- "types" : [ "neighborhood", "political" ]
68
- },
69
- {
70
- "address_components" : [
71
- {
72
- "long_name" : "United States",
73
- "short_name" : "US",
74
- "types" : [ "country", "political" ]
75
- }
76
- ],
77
- "formatted_address" : "USA",
78
- "geometry" : {
79
- "bounds" : {
80
- "northeast" : {
81
- "lat" : 37.76578300000001,
82
- "lng" : -122.402855
83
- },
84
- "southwest" : {
85
- "lat" : 37.731608,
86
- "lng" : -122.427269
87
- }
88
- },
89
- "location" : {
90
- "lat" : 37.7485824,
91
- "lng" : -122.4184108
92
- },
93
- "location_type" : "APPROXIMATE",
94
- "viewport" : {
95
- "northeast" : {
96
- "lat" : 37.76578300000001,
97
- "lng" : -122.402855
98
- },
99
- "southwest" : {
100
- "lat" : 37.731608,
101
- "lng" : -122.427269
102
- }
103
- }
104
- },
105
- "types" : [ "postal_code" ]
106
- },
107
- {
108
- "address_components" : [
109
- {
110
- "long_name" : "United States",
111
- "short_name" : "US",
112
- "types" : [ "country", "political" ]
113
- }
114
- ],
115
- "formatted_address" : "USA",
116
- "geometry" : {
117
- "bounds" : {
118
- "northeast" : {
119
- "lat" : 37.9297707,
120
- "lng" : -122.3279148
121
- },
122
- "southwest" : {
123
- "lat" : 37.6933354,
124
- "lng" : -123.1077733
125
- }
126
- },
127
- "location" : {
128
- "lat" : 37.7749295,
129
- "lng" : -122.4194155
130
- },
131
- "location_type" : "APPROXIMATE",
132
- "viewport" : {
133
- "northeast" : {
134
- "lat" : 37.812,
135
- "lng" : -122.3482
136
- },
137
- "southwest" : {
138
- "lat" : 37.70339999999999,
139
- "lng" : -122.527
140
- }
141
- }
142
- },
143
- "types" : [ "locality", "political" ]
144
- },
145
- {
146
- "address_components" : [
147
- {
148
- "long_name" : "United States",
149
- "short_name" : "US",
150
- "types" : [ "country", "political" ]
151
- }
152
- ],
153
- "formatted_address" : "USA",
154
- "geometry" : {
155
- "bounds" : {
156
- "northeast" : {
157
- "lat" : 37.9297707,
158
- "lng" : -122.3279148
159
- },
160
- "southwest" : {
161
- "lat" : 37.6933354,
162
- "lng" : -123.1077733
163
- }
164
- },
165
- "location" : {
166
- "lat" : 37.7749073,
167
- "lng" : -122.4193878
168
- },
169
- "location_type" : "APPROXIMATE",
170
- "viewport" : {
171
- "northeast" : {
172
- "lat" : 37.833827,
173
- "lng" : -122.3551997
174
- },
175
- "southwest" : {
176
- "lat" : 37.708086,
177
- "lng" : -122.5300999
178
- }
179
- }
180
- },
181
- "types" : [ "administrative_area_level_2", "political" ]
182
- },
183
- {
184
- "address_components" : [
185
- {
186
- "long_name" : "United States",
187
- "short_name" : "US",
188
- "types" : [ "country", "political" ]
189
- }
190
- ],
191
- "formatted_address" : "United States",
192
- "geometry" : {
193
- "bounds" : {
194
- "northeast" : {
195
- "lat" : 38.320945,
196
- "lng" : -121.469275
197
- },
198
- "southwest" : {
199
- "lat" : 37.1073458,
200
- "lng" : -123.024066
201
- }
202
- },
203
- "location" : {
204
- "lat" : 37.8043507,
205
- "lng" : -121.8107079
206
- },
207
- "location_type" : "APPROXIMATE",
208
- "viewport" : {
209
- "northeast" : {
210
- "lat" : 38.320945,
211
- "lng" : -121.469275
212
- },
213
- "southwest" : {
214
- "lat" : 37.1073458,
215
- "lng" : -123.024066
216
- }
217
- }
218
- },
219
- "types" : [ "political" ]
220
- },
221
- {
222
- "address_components" : [
223
- {
224
- "long_name" : "United States",
225
- "short_name" : "US",
226
- "types" : [ "country", "political" ]
227
- }
228
- ],
229
- "formatted_address" : "USA",
230
- "geometry" : {
231
- "bounds" : {
232
- "northeast" : {
233
- "lat" : 42.0095169,
234
- "lng" : -114.131211
235
- },
236
- "southwest" : {
237
- "lat" : 32.5342321,
238
- "lng" : -124.4096195
239
- }
240
- },
241
- "location" : {
242
- "lat" : 36.778261,
243
- "lng" : -119.4179324
244
- },
245
- "location_type" : "APPROXIMATE",
246
- "viewport" : {
247
- "northeast" : {
248
- "lat" : 42.0095169,
249
- "lng" : -114.131211
250
- },
251
- "southwest" : {
252
- "lat" : 32.5342321,
253
- "lng" : -124.4096195
254
- }
255
- }
256
- },
257
- "types" : [ "administrative_area_level_1", "political" ]
258
- },
259
- {
260
- "address_components" : [
261
- {
262
- "long_name" : "United States",
263
- "short_name" : "US",
264
- "types" : [ "country", "political" ]
265
- }
266
- ],
267
- "formatted_address" : "United States",
268
- "geometry" : {
269
- "bounds" : {
270
- "northeast" : {
271
- "lat" : 90,
272
- "lng" : 180
273
- },
274
- "southwest" : {
275
- "lat" : -90,
276
- "lng" : -180
277
- }
278
- },
279
- "location" : {
280
- "lat" : 37.09024,
281
- "lng" : -95.712891
282
- },
283
- "location_type" : "APPROXIMATE",
284
- "viewport" : {
285
- "northeast" : {
286
- "lat" : 49.38,
287
- "lng" : -66.94
288
- },
289
- "southwest" : {
290
- "lat" : 25.82,
291
- "lng" : -124.39
292
- }
293
- }
294
- },
295
- "types" : [ "country", "political" ]
296
- }
297
- ],
298
- "status" : "OK"
299
- }