dustin-twitter 0.3.2.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/History.txt +89 -0
- data/License.txt +19 -0
- data/Manifest.txt +66 -0
- data/README.txt +75 -0
- data/Rakefile +4 -0
- data/TODO.txt +2 -0
- data/bin/twitter +15 -0
- data/config/hoe.rb +74 -0
- data/config/requirements.rb +17 -0
- data/examples/blocks.rb +15 -0
- data/examples/direct_messages.rb +26 -0
- data/examples/favorites.rb +20 -0
- data/examples/friends_followers.rb +25 -0
- data/examples/friendships.rb +13 -0
- data/examples/location.rb +8 -0
- data/examples/replies.rb +26 -0
- data/examples/sent_messages.rb +26 -0
- data/examples/timeline.rb +33 -0
- data/examples/twitter.rb +27 -0
- data/examples/verify_credentials.rb +13 -0
- data/lib/twitter/base.rb +248 -0
- data/lib/twitter/cli/config.rb +9 -0
- data/lib/twitter/cli/helpers.rb +97 -0
- data/lib/twitter/cli/migrations/20080722194500_create_accounts.rb +13 -0
- data/lib/twitter/cli/migrations/20080722194508_create_tweets.rb +16 -0
- data/lib/twitter/cli/migrations/20080722214605_add_account_id_to_tweets.rb +9 -0
- data/lib/twitter/cli/migrations/20080722214606_create_configurations.rb +13 -0
- data/lib/twitter/cli/models/account.rb +33 -0
- data/lib/twitter/cli/models/configuration.rb +13 -0
- data/lib/twitter/cli/models/tweet.rb +20 -0
- data/lib/twitter/cli.rb +328 -0
- data/lib/twitter/direct_message.rb +22 -0
- data/lib/twitter/easy_class_maker.rb +43 -0
- data/lib/twitter/rate_limit_status.rb +19 -0
- data/lib/twitter/status.rb +22 -0
- data/lib/twitter/user.rb +37 -0
- data/lib/twitter/version.rb +9 -0
- data/lib/twitter.rb +20 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/script/txt2html +74 -0
- data/setup.rb +1585 -0
- data/spec/base_spec.rb +109 -0
- data/spec/cli/helper_spec.rb +35 -0
- data/spec/direct_message_spec.rb +35 -0
- data/spec/fixtures/followers.xml +706 -0
- data/spec/fixtures/friends.xml +609 -0
- data/spec/fixtures/friends_for.xml +584 -0
- data/spec/fixtures/friends_lite.xml +192 -0
- data/spec/fixtures/friends_timeline.xml +66 -0
- data/spec/fixtures/public_timeline.xml +148 -0
- data/spec/fixtures/rate_limit_status.xml +7 -0
- data/spec/fixtures/status.xml +25 -0
- data/spec/fixtures/user.xml +38 -0
- data/spec/fixtures/user_timeline.xml +465 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +8 -0
- data/spec/status_spec.rb +40 -0
- data/spec/user_spec.rb +42 -0
- data/tasks/deployment.rake +41 -0
- data/tasks/environment.rake +7 -0
- data/tasks/website.rake +17 -0
- data/twitter.gemspec +49 -0
- data/website/css/common.css +47 -0
- data/website/images/terminal_output.png +0 -0
- data/website/index.html +138 -0
- metadata +176 -0
@@ -0,0 +1,465 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<statuses type="array">
|
3
|
+
<status>
|
4
|
+
<created_at>Sun May 04 21:59:52 +0000 2008</created_at>
|
5
|
+
<id>803435310</id>
|
6
|
+
<text>Writing tests (rspec) for the twitter gem that all can run. Wish I would have done this when I wrote it years back.</text>
|
7
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
8
|
+
|
9
|
+
<truncated>false</truncated>
|
10
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
11
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
12
|
+
<favorited>false</favorited>
|
13
|
+
<user>
|
14
|
+
<id>4243</id>
|
15
|
+
<name>John Nunemaker</name>
|
16
|
+
|
17
|
+
<screen_name>jnunemaker</screen_name>
|
18
|
+
<location>Indiana</location>
|
19
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
20
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
21
|
+
<url>http://addictedtonew.com</url>
|
22
|
+
<protected>false</protected>
|
23
|
+
|
24
|
+
<followers_count>363</followers_count>
|
25
|
+
</user>
|
26
|
+
</status>
|
27
|
+
<status>
|
28
|
+
<created_at>Sun May 04 17:46:45 +0000 2008</created_at>
|
29
|
+
<id>803313859</id>
|
30
|
+
<text>recracking iphone cause i love me some mobilescrobbler, among other things.</text>
|
31
|
+
|
32
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
33
|
+
<truncated>false</truncated>
|
34
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
35
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
36
|
+
<favorited>false</favorited>
|
37
|
+
<user>
|
38
|
+
|
39
|
+
<id>4243</id>
|
40
|
+
<name>John Nunemaker</name>
|
41
|
+
<screen_name>jnunemaker</screen_name>
|
42
|
+
<location>Indiana</location>
|
43
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
44
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
45
|
+
|
46
|
+
<url>http://addictedtonew.com</url>
|
47
|
+
<protected>false</protected>
|
48
|
+
<followers_count>363</followers_count>
|
49
|
+
</user>
|
50
|
+
</status>
|
51
|
+
<status>
|
52
|
+
<created_at>Sun May 04 17:16:47 +0000 2008</created_at>
|
53
|
+
|
54
|
+
<id>803298454</id>
|
55
|
+
<text>Nervously restoring my iphone. First time. Need to try out @jnewland's fireeagle auto updates.</text>
|
56
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
57
|
+
<truncated>false</truncated>
|
58
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
59
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
60
|
+
|
61
|
+
<favorited>false</favorited>
|
62
|
+
<user>
|
63
|
+
<id>4243</id>
|
64
|
+
<name>John Nunemaker</name>
|
65
|
+
<screen_name>jnunemaker</screen_name>
|
66
|
+
<location>Indiana</location>
|
67
|
+
|
68
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
69
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
70
|
+
<url>http://addictedtonew.com</url>
|
71
|
+
<protected>false</protected>
|
72
|
+
<followers_count>363</followers_count>
|
73
|
+
</user>
|
74
|
+
|
75
|
+
</status>
|
76
|
+
<status>
|
77
|
+
<created_at>Sun May 04 04:48:47 +0000 2008</created_at>
|
78
|
+
<id>803010119</id>
|
79
|
+
<text>memcache is sweet. i'm amazed i haven't played with it for this long.</text>
|
80
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
81
|
+
|
82
|
+
<truncated>false</truncated>
|
83
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
84
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
85
|
+
<favorited>false</favorited>
|
86
|
+
<user>
|
87
|
+
<id>4243</id>
|
88
|
+
<name>John Nunemaker</name>
|
89
|
+
|
90
|
+
<screen_name>jnunemaker</screen_name>
|
91
|
+
<location>Indiana</location>
|
92
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
93
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
94
|
+
<url>http://addictedtonew.com</url>
|
95
|
+
<protected>false</protected>
|
96
|
+
|
97
|
+
<followers_count>363</followers_count>
|
98
|
+
</user>
|
99
|
+
</status>
|
100
|
+
<status>
|
101
|
+
<created_at>Sat May 03 21:45:41 +0000 2008</created_at>
|
102
|
+
<id>802827613</id>
|
103
|
+
<text>Headed to steak and ale with steph to meet college roommate and his wife for dinner.</text>
|
104
|
+
|
105
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
106
|
+
<truncated>false</truncated>
|
107
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
108
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
109
|
+
<favorited>false</favorited>
|
110
|
+
<user>
|
111
|
+
|
112
|
+
<id>4243</id>
|
113
|
+
<name>John Nunemaker</name>
|
114
|
+
<screen_name>jnunemaker</screen_name>
|
115
|
+
<location>Indiana</location>
|
116
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
117
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
118
|
+
|
119
|
+
<url>http://addictedtonew.com</url>
|
120
|
+
<protected>false</protected>
|
121
|
+
<followers_count>363</followers_count>
|
122
|
+
</user>
|
123
|
+
</status>
|
124
|
+
<status>
|
125
|
+
<created_at>Sat May 03 19:54:59 +0000 2008</created_at>
|
126
|
+
|
127
|
+
<id>802778602</id>
|
128
|
+
<text>Ruthlessly cleaning my desk. Zero clutter goal from here on out.</text>
|
129
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
130
|
+
<truncated>false</truncated>
|
131
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
132
|
+
|
133
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
134
|
+
<favorited>false</favorited>
|
135
|
+
<user>
|
136
|
+
<id>4243</id>
|
137
|
+
<name>John Nunemaker</name>
|
138
|
+
<screen_name>jnunemaker</screen_name>
|
139
|
+
<location>Indiana</location>
|
140
|
+
|
141
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
142
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
143
|
+
<url>http://addictedtonew.com</url>
|
144
|
+
<protected>false</protected>
|
145
|
+
<followers_count>363</followers_count>
|
146
|
+
</user>
|
147
|
+
|
148
|
+
</status>
|
149
|
+
<status>
|
150
|
+
<created_at>Sat May 03 18:20:17 +0000 2008</created_at>
|
151
|
+
<id>802734033</id>
|
152
|
+
<text>@mattklawitter i'm jealous. hit a 3 for me.</text>
|
153
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
154
|
+
|
155
|
+
<truncated>false</truncated>
|
156
|
+
<in_reply_to_status_id>802733703</in_reply_to_status_id>
|
157
|
+
<in_reply_to_user_id>13647</in_reply_to_user_id>
|
158
|
+
<favorited>false</favorited>
|
159
|
+
<user>
|
160
|
+
<id>4243</id>
|
161
|
+
|
162
|
+
<name>John Nunemaker</name>
|
163
|
+
<screen_name>jnunemaker</screen_name>
|
164
|
+
<location>Indiana</location>
|
165
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
166
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
167
|
+
<url>http://addictedtonew.com</url>
|
168
|
+
|
169
|
+
<protected>false</protected>
|
170
|
+
<followers_count>363</followers_count>
|
171
|
+
</user>
|
172
|
+
</status>
|
173
|
+
<status>
|
174
|
+
<created_at>Sat May 03 17:28:09 +0000 2008</created_at>
|
175
|
+
<id>802707224</id>
|
176
|
+
|
177
|
+
<text>Home. Doing a bit of freelance catch up.</text>
|
178
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
179
|
+
<truncated>false</truncated>
|
180
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
181
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
182
|
+
<favorited>false</favorited>
|
183
|
+
|
184
|
+
<user>
|
185
|
+
<id>4243</id>
|
186
|
+
<name>John Nunemaker</name>
|
187
|
+
<screen_name>jnunemaker</screen_name>
|
188
|
+
<location>Indiana</location>
|
189
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
190
|
+
|
191
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
192
|
+
<url>http://addictedtonew.com</url>
|
193
|
+
<protected>false</protected>
|
194
|
+
<followers_count>363</followers_count>
|
195
|
+
</user>
|
196
|
+
</status>
|
197
|
+
<status>
|
198
|
+
|
199
|
+
<created_at>Sat May 03 17:08:24 +0000 2008</created_at>
|
200
|
+
<id>802696808</id>
|
201
|
+
<text>Target with steph. No luck.</text>
|
202
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
203
|
+
<truncated>false</truncated>
|
204
|
+
|
205
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
206
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
207
|
+
<favorited>false</favorited>
|
208
|
+
<user>
|
209
|
+
<id>4243</id>
|
210
|
+
<name>John Nunemaker</name>
|
211
|
+
<screen_name>jnunemaker</screen_name>
|
212
|
+
|
213
|
+
<location>Indiana</location>
|
214
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
215
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
216
|
+
<url>http://addictedtonew.com</url>
|
217
|
+
<protected>false</protected>
|
218
|
+
<followers_count>363</followers_count>
|
219
|
+
|
220
|
+
</user>
|
221
|
+
</status>
|
222
|
+
<status>
|
223
|
+
<created_at>Sat May 03 01:26:00 +0000 2008</created_at>
|
224
|
+
<id>802316223</id>
|
225
|
+
<text>@lizsmc1 we have a tornado warning right now? where was sighting?</text>
|
226
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
227
|
+
|
228
|
+
<truncated>false</truncated>
|
229
|
+
<in_reply_to_status_id>802314575</in_reply_to_status_id>
|
230
|
+
<in_reply_to_user_id>11485452</in_reply_to_user_id>
|
231
|
+
<favorited>false</favorited>
|
232
|
+
<user>
|
233
|
+
<id>4243</id>
|
234
|
+
|
235
|
+
<name>John Nunemaker</name>
|
236
|
+
<screen_name>jnunemaker</screen_name>
|
237
|
+
<location>Indiana</location>
|
238
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
239
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
240
|
+
<url>http://addictedtonew.com</url>
|
241
|
+
|
242
|
+
<protected>false</protected>
|
243
|
+
<followers_count>363</followers_count>
|
244
|
+
</user>
|
245
|
+
</status>
|
246
|
+
<status>
|
247
|
+
<created_at>Fri May 02 22:48:52 +0000 2008</created_at>
|
248
|
+
<id>802237608</id>
|
249
|
+
|
250
|
+
<text>Mishawaka brewing company.</text>
|
251
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
252
|
+
<truncated>false</truncated>
|
253
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
254
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
255
|
+
<favorited>false</favorited>
|
256
|
+
|
257
|
+
<user>
|
258
|
+
<id>4243</id>
|
259
|
+
<name>John Nunemaker</name>
|
260
|
+
<screen_name>jnunemaker</screen_name>
|
261
|
+
<location>Indiana</location>
|
262
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
263
|
+
|
264
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
265
|
+
<url>http://addictedtonew.com</url>
|
266
|
+
<protected>false</protected>
|
267
|
+
<followers_count>363</followers_count>
|
268
|
+
</user>
|
269
|
+
</status>
|
270
|
+
|
271
|
+
<status>
|
272
|
+
<created_at>Fri May 02 18:06:57 +0000 2008</created_at>
|
273
|
+
<id>802062302</id>
|
274
|
+
<text>Trim time. It's like hammer time but with trim.</text>
|
275
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
276
|
+
|
277
|
+
<truncated>false</truncated>
|
278
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
279
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
280
|
+
<favorited>false</favorited>
|
281
|
+
<user>
|
282
|
+
<id>4243</id>
|
283
|
+
<name>John Nunemaker</name>
|
284
|
+
|
285
|
+
<screen_name>jnunemaker</screen_name>
|
286
|
+
<location>Indiana</location>
|
287
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
288
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
289
|
+
<url>http://addictedtonew.com</url>
|
290
|
+
<protected>false</protected>
|
291
|
+
|
292
|
+
<followers_count>363</followers_count>
|
293
|
+
</user>
|
294
|
+
</status>
|
295
|
+
<status>
|
296
|
+
<created_at>Fri May 02 15:34:27 +0000 2008</created_at>
|
297
|
+
<id>801951791</id>
|
298
|
+
<text>Window shimming.</text>
|
299
|
+
|
300
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
301
|
+
<truncated>false</truncated>
|
302
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
303
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
304
|
+
<favorited>false</favorited>
|
305
|
+
<user>
|
306
|
+
|
307
|
+
<id>4243</id>
|
308
|
+
<name>John Nunemaker</name>
|
309
|
+
<screen_name>jnunemaker</screen_name>
|
310
|
+
<location>Indiana</location>
|
311
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
312
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
313
|
+
|
314
|
+
<url>http://addictedtonew.com</url>
|
315
|
+
<protected>false</protected>
|
316
|
+
<followers_count>363</followers_count>
|
317
|
+
</user>
|
318
|
+
</status>
|
319
|
+
<status>
|
320
|
+
<created_at>Fri May 02 15:14:33 +0000 2008</created_at>
|
321
|
+
|
322
|
+
<id>801937014</id>
|
323
|
+
<text>Lowes for more supplies. Wish it wasn't raining.</text>
|
324
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
325
|
+
<truncated>false</truncated>
|
326
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
327
|
+
|
328
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
329
|
+
<favorited>false</favorited>
|
330
|
+
<user>
|
331
|
+
<id>4243</id>
|
332
|
+
<name>John Nunemaker</name>
|
333
|
+
<screen_name>jnunemaker</screen_name>
|
334
|
+
<location>Indiana</location>
|
335
|
+
|
336
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
337
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
338
|
+
<url>http://addictedtonew.com</url>
|
339
|
+
<protected>false</protected>
|
340
|
+
<followers_count>363</followers_count>
|
341
|
+
</user>
|
342
|
+
|
343
|
+
</status>
|
344
|
+
<status>
|
345
|
+
<created_at>Fri May 02 14:22:52 +0000 2008</created_at>
|
346
|
+
<id>801898311</id>
|
347
|
+
<text>Holding a new window in place while Brady gets nails.</text>
|
348
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
349
|
+
|
350
|
+
<truncated>false</truncated>
|
351
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
352
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
353
|
+
<favorited>false</favorited>
|
354
|
+
<user>
|
355
|
+
<id>4243</id>
|
356
|
+
<name>John Nunemaker</name>
|
357
|
+
|
358
|
+
<screen_name>jnunemaker</screen_name>
|
359
|
+
<location>Indiana</location>
|
360
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
361
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
362
|
+
<url>http://addictedtonew.com</url>
|
363
|
+
<protected>false</protected>
|
364
|
+
|
365
|
+
<followers_count>363</followers_count>
|
366
|
+
</user>
|
367
|
+
</status>
|
368
|
+
<status>
|
369
|
+
<created_at>Fri May 02 13:24:41 +0000 2008</created_at>
|
370
|
+
<id>801857351</id>
|
371
|
+
<text>@mwklawit yes. yes. yes.</text>
|
372
|
+
|
373
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
374
|
+
<truncated>false</truncated>
|
375
|
+
<in_reply_to_status_id>801846483</in_reply_to_status_id>
|
376
|
+
<in_reply_to_user_id>3672651</in_reply_to_user_id>
|
377
|
+
<favorited>false</favorited>
|
378
|
+
|
379
|
+
<user>
|
380
|
+
<id>4243</id>
|
381
|
+
<name>John Nunemaker</name>
|
382
|
+
<screen_name>jnunemaker</screen_name>
|
383
|
+
<location>Indiana</location>
|
384
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
385
|
+
|
386
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
387
|
+
<url>http://addictedtonew.com</url>
|
388
|
+
<protected>false</protected>
|
389
|
+
<followers_count>363</followers_count>
|
390
|
+
</user>
|
391
|
+
</status>
|
392
|
+
<status>
|
393
|
+
|
394
|
+
<created_at>Fri May 02 09:11:58 +0000 2008</created_at>
|
395
|
+
<id>801737962</id>
|
396
|
+
<text>Ironman == AWESOME!!!</text>
|
397
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
398
|
+
<truncated>false</truncated>
|
399
|
+
|
400
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
401
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
402
|
+
<favorited>false</favorited>
|
403
|
+
<user>
|
404
|
+
<id>4243</id>
|
405
|
+
<name>John Nunemaker</name>
|
406
|
+
<screen_name>jnunemaker</screen_name>
|
407
|
+
|
408
|
+
<location>Indiana</location>
|
409
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
410
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
411
|
+
<url>http://addictedtonew.com</url>
|
412
|
+
<protected>false</protected>
|
413
|
+
<followers_count>363</followers_count>
|
414
|
+
|
415
|
+
</user>
|
416
|
+
</status>
|
417
|
+
<status>
|
418
|
+
<created_at>Fri May 02 04:44:19 +0000 2008</created_at>
|
419
|
+
<id>801654740</id>
|
420
|
+
<text>Never been at a movie with more clapping by the audience.</text>
|
421
|
+
<source><a href="http://help.twitter.com/index.php?pg=kb.page&id=75">txt</a></source>
|
422
|
+
|
423
|
+
<truncated>false</truncated>
|
424
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
425
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
426
|
+
<favorited>false</favorited>
|
427
|
+
<user>
|
428
|
+
<id>4243</id>
|
429
|
+
<name>John Nunemaker</name>
|
430
|
+
|
431
|
+
<screen_name>jnunemaker</screen_name>
|
432
|
+
<location>Indiana</location>
|
433
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
434
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
435
|
+
<url>http://addictedtonew.com</url>
|
436
|
+
<protected>false</protected>
|
437
|
+
|
438
|
+
<followers_count>363</followers_count>
|
439
|
+
</user>
|
440
|
+
</status>
|
441
|
+
<status>
|
442
|
+
<created_at>Fri May 02 04:25:55 +0000 2008</created_at>
|
443
|
+
<id>801648988</id>
|
444
|
+
<text>@hreview Iron Man; totally AWESOME, never seen/heard so much clapping in a movie. *****</text>
|
445
|
+
|
446
|
+
<source>web</source>
|
447
|
+
<truncated>false</truncated>
|
448
|
+
<in_reply_to_status_id>787398088</in_reply_to_status_id>
|
449
|
+
<in_reply_to_user_id>14073831</in_reply_to_user_id>
|
450
|
+
<favorited>false</favorited>
|
451
|
+
<user>
|
452
|
+
|
453
|
+
<id>4243</id>
|
454
|
+
<name>John Nunemaker</name>
|
455
|
+
<screen_name>jnunemaker</screen_name>
|
456
|
+
<location>Indiana</location>
|
457
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
458
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
459
|
+
|
460
|
+
<url>http://addictedtonew.com</url>
|
461
|
+
<protected>false</protected>
|
462
|
+
<followers_count>363</followers_count>
|
463
|
+
</user>
|
464
|
+
</status>
|
465
|
+
</statuses>
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour
|
data/spec/spec_helper.rb
ADDED
data/spec/status_spec.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper.rb'
|
2
|
+
|
3
|
+
describe Twitter::Status do
|
4
|
+
it "should create new status from xml doc" do
|
5
|
+
xml = <<EOF
|
6
|
+
<status>
|
7
|
+
<created_at>Sun May 04 21:59:52 +0000 2008</created_at>
|
8
|
+
<id>803435310</id>
|
9
|
+
<text>Writing tests (rspec) for the twitter gem that all can run. Wish I would have done this when I wrote it years back.</text>
|
10
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
11
|
+
<truncated>false</truncated>
|
12
|
+
<in_reply_to_status_id></in_reply_to_status_id>
|
13
|
+
<in_reply_to_user_id></in_reply_to_user_id>
|
14
|
+
<favorited>false</favorited>
|
15
|
+
<user>
|
16
|
+
<id>4243</id>
|
17
|
+
<name>John Nunemaker</name>
|
18
|
+
<screen_name>jnunemaker</screen_name>
|
19
|
+
<location>Indiana</location>
|
20
|
+
<description>Loves his wife, ruby, notre dame football and iu basketball</description>
|
21
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/52619256/ruby_enterprise_shirt_normal.jpg</profile_image_url>
|
22
|
+
<url>http://addictedtonew.com</url>
|
23
|
+
<protected>false</protected>
|
24
|
+
<followers_count>363</followers_count>
|
25
|
+
</user>
|
26
|
+
</status>
|
27
|
+
EOF
|
28
|
+
s = Twitter::Status.new_from_xml(Hpricot.XML(xml))
|
29
|
+
s.id.should == '803435310'
|
30
|
+
s.created_at.should == 'Sun May 04 21:59:52 +0000 2008'
|
31
|
+
s.text.should == 'Writing tests (rspec) for the twitter gem that all can run. Wish I would have done this when I wrote it years back.'
|
32
|
+
s.source.should == '<a href="http://iconfactory.com/software/twitterrific">twitterrific</a>'
|
33
|
+
s.truncated.should == false
|
34
|
+
s.in_reply_to_status_id.should == ''
|
35
|
+
s.in_reply_to_user_id.should == ''
|
36
|
+
s.favorited.should == false
|
37
|
+
s.user.id.should == '4243'
|
38
|
+
s.user.name.should == 'John Nunemaker'
|
39
|
+
end
|
40
|
+
end
|
data/spec/user_spec.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper.rb'
|
2
|
+
|
3
|
+
describe Twitter::User do
|
4
|
+
it "should create new user from xml doc" do
|
5
|
+
xml = <<EOF
|
6
|
+
<user>
|
7
|
+
<id>18713</id>
|
8
|
+
<name>Alex Payne</name>
|
9
|
+
<screen_name>al3x</screen_name>
|
10
|
+
<location>San Francisco, CA</location>
|
11
|
+
<description>Oh, hi. No, I just work here.</description>
|
12
|
+
<profile_image_url>http://s3.amazonaws.com/twitter_production/profile_images/51961745/al3x_normal.jpg</profile_image_url>
|
13
|
+
<url>http://www.al3x.net</url>
|
14
|
+
<protected>false</protected>
|
15
|
+
<followers_count>2889</followers_count>
|
16
|
+
<status>
|
17
|
+
<created_at>Sun May 04 22:38:39 +0000 2008</created_at>
|
18
|
+
<id>803453211</id>
|
19
|
+
<text>@5dots Yes. Give me about 8 hours. *sigh*</text>
|
20
|
+
|
21
|
+
<source><a href="http://iconfactory.com/software/twitterrific">twitterrific</a></source>
|
22
|
+
<truncated>false</truncated>
|
23
|
+
<in_reply_to_status_id>803450314</in_reply_to_status_id>
|
24
|
+
<in_reply_to_user_id>618923</in_reply_to_user_id>
|
25
|
+
<favorited>false</favorited>
|
26
|
+
|
27
|
+
</status>
|
28
|
+
</user>
|
29
|
+
EOF
|
30
|
+
u = Twitter::User.new_from_xml(Hpricot.XML(xml))
|
31
|
+
u.id.should == '18713'
|
32
|
+
u.name.should =='Alex Payne'
|
33
|
+
u.screen_name.should == 'al3x'
|
34
|
+
u.location.should == 'San Francisco, CA'
|
35
|
+
u.description.should == 'Oh, hi. No, I just work here.'
|
36
|
+
u.profile_image_url.should == 'http://s3.amazonaws.com/twitter_production/profile_images/51961745/al3x_normal.jpg'
|
37
|
+
u.url.should == 'http://www.al3x.net'
|
38
|
+
u.protected.should == false
|
39
|
+
u.followers_count.should == '2889'
|
40
|
+
u.status.text.should == '@5dots Yes. Give me about 8 hours. *sigh*'
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
desc 'Release the website and new gem version'
|
2
|
+
task :deploy => [:check_version, :website, :release] do
|
3
|
+
puts "Remember to create SVN tag:"
|
4
|
+
puts "svn copy svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/trunk " +
|
5
|
+
"svn+ssh://#{rubyforge_username}@rubyforge.org/var/svn/#{PATH}/tags/REL-#{VERS} "
|
6
|
+
puts "Suggested comment:"
|
7
|
+
puts "Tagging release #{CHANGES}"
|
8
|
+
end
|
9
|
+
|
10
|
+
desc 'Runs tasks website_generate and install_gem as a local deployment of the gem'
|
11
|
+
task :local_deploy => [:website_generate, :install_gem]
|
12
|
+
|
13
|
+
task :check_version do
|
14
|
+
unless ENV['VERSION']
|
15
|
+
puts 'Must pass a VERSION=x.y.z release version'
|
16
|
+
exit
|
17
|
+
end
|
18
|
+
unless ENV['VERSION'] == VERS
|
19
|
+
puts "Please update your version.rb to match the release version, currently #{VERS}"
|
20
|
+
exit
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc 'Install the package as a gem, without generating documentation(ri/rdoc)'
|
25
|
+
task :install_gem_no_doc => [:clean, :package] do
|
26
|
+
sh "#{'sudo ' unless Hoe::WINDOZE }gem install pkg/*.gem --no-rdoc --no-ri"
|
27
|
+
end
|
28
|
+
|
29
|
+
namespace :manifest do
|
30
|
+
desc 'Recreate Manifest.txt to include ALL files'
|
31
|
+
task :refresh do
|
32
|
+
`rake check_manifest | patch -p0 > Manifest.txt`
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
namespace :files do
|
37
|
+
task :copy do
|
38
|
+
files = File.read(File.join(File.dirname(__FILE__), '..', 'Manifest.txt')).split("\n")
|
39
|
+
%x[echo '#{files.inspect}' | pbcopy]
|
40
|
+
end
|
41
|
+
end
|
data/tasks/website.rake
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
desc 'Generate website files'
|
2
|
+
task :website_generate => :ruby_env do
|
3
|
+
(Dir['website/**/*.txt'] - Dir['website/version*.txt']).each do |txt|
|
4
|
+
sh %{ #{RUBY_APP} script/txt2html #{txt} > #{txt.gsub(/txt$/,'html')} }
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
desc 'Upload website files to rubyforge'
|
9
|
+
task :website_upload do
|
10
|
+
host = "#{rubyforge_username}@rubyforge.org"
|
11
|
+
remote_dir = "/var/www/gforge-projects/#{PATH}/"
|
12
|
+
local_dir = 'website'
|
13
|
+
sh %{rsync -aCv #{local_dir}/ #{host}:#{remote_dir}}
|
14
|
+
end
|
15
|
+
|
16
|
+
desc 'Generate and upload website files'
|
17
|
+
task :website => [:website_generate, :website_upload, :publish_docs]
|