dancroak-le-git 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.textile +25 -0
- data/Rakefile +43 -0
- data/VERSION.yml +4 -0
- data/lib/le_git/commit.rb +54 -0
- data/lib/le_git/repository.rb +22 -0
- data/lib/le_git/user.rb +22 -0
- data/lib/le_git.rb +8 -0
- data/test/fixtures/commit.xml +64 -0
- data/test/fixtures/commits.xml +649 -0
- data/test/fixtures/search.xml +347 -0
- data/test/fixtures/user.xml +450 -0
- data/test/github_commit_test.rb +163 -0
- data/test/github_repository_test.rb +49 -0
- data/test/github_user_test.rb +73 -0
- data/test/test_helper.rb +20 -0
- metadata +92 -0
@@ -0,0 +1,450 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx/0.6.26
|
3
|
+
Date: Tue, 20 Jan 2009 02:10:12 GMT
|
4
|
+
Content-Type: application/xml; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
|
7
|
+
Status: 200 OK
|
8
|
+
X-Runtime: 105ms
|
9
|
+
ETag: "c98d7bb37b73989366f70c9e0aa750fb"
|
10
|
+
Cache-Control: private, max-age=0, must-revalidate
|
11
|
+
Content-Length: 18475
|
12
|
+
|
13
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
14
|
+
<user>
|
15
|
+
<name>Josh Nichols</name>
|
16
|
+
<repositories type="array">
|
17
|
+
<repository>
|
18
|
+
<owner>technicalpickles</owner>
|
19
|
+
<forks type="integer">0</forks>
|
20
|
+
<description>Ambition adapter for Sphinx</description>
|
21
|
+
<name>ambitious-sphinx</name>
|
22
|
+
<private type="boolean">false</private>
|
23
|
+
<url>http://github.com/technicalpickles/ambitious-sphinx</url>
|
24
|
+
<watchers type="integer">11</watchers>
|
25
|
+
<fork type="boolean">false</fork>
|
26
|
+
<homepage></homepage>
|
27
|
+
</repository>
|
28
|
+
<repository>
|
29
|
+
<owner>technicalpickles</owner>
|
30
|
+
<forks type="integer">0</forks>
|
31
|
+
<description>A 'planet' like feed aggregator using feedparser and erubis</description>
|
32
|
+
<name>feedbarn</name>
|
33
|
+
<private type="boolean">false</private>
|
34
|
+
<url>http://github.com/technicalpickles/feedbarn</url>
|
35
|
+
<watchers type="integer">3</watchers>
|
36
|
+
<fork type="boolean">false</fork>
|
37
|
+
<homepage></homepage>
|
38
|
+
</repository>
|
39
|
+
<repository>
|
40
|
+
<owner>technicalpickles</owner>
|
41
|
+
<forks type="integer">0</forks>
|
42
|
+
<description>Ruby library for the del.icio.us API</description>
|
43
|
+
<name>deliciousr</name>
|
44
|
+
<private type="boolean">false</private>
|
45
|
+
<url>http://github.com/technicalpickles/deliciousr</url>
|
46
|
+
<watchers type="integer">2</watchers>
|
47
|
+
<fork type="boolean">false</fork>
|
48
|
+
<homepage></homepage>
|
49
|
+
</repository>
|
50
|
+
<repository>
|
51
|
+
<owner>technicalpickles</owner>
|
52
|
+
<forks type="integer">0</forks>
|
53
|
+
<description>Extra tasks for vlad</description>
|
54
|
+
<name>vlad-extras</name>
|
55
|
+
<private type="boolean">false</private>
|
56
|
+
<url>http://github.com/technicalpickles/vlad-extras</url>
|
57
|
+
<watchers type="integer">1</watchers>
|
58
|
+
<fork type="boolean">false</fork>
|
59
|
+
<homepage></homepage>
|
60
|
+
</repository>
|
61
|
+
<repository>
|
62
|
+
<owner>technicalpickles</owner>
|
63
|
+
<forks type="integer">0</forks>
|
64
|
+
<description>Tool for creating Gentoo ebuilds based on gems</description>
|
65
|
+
<name>g-gem</name>
|
66
|
+
<private type="boolean">false</private>
|
67
|
+
<url>http://github.com/technicalpickles/g-gem</url>
|
68
|
+
<watchers type="integer">4</watchers>
|
69
|
+
<fork type="boolean">false</fork>
|
70
|
+
<homepage></homepage>
|
71
|
+
</repository>
|
72
|
+
<repository>
|
73
|
+
<owner>technicalpickles</owner>
|
74
|
+
<forks type="integer">6</forks>
|
75
|
+
<description>Rails generators which produce tests using shoulda instead of straight up Test::Unit. Other goodies as well.</description>
|
76
|
+
<name>shoulda_generator</name>
|
77
|
+
<private type="boolean">false</private>
|
78
|
+
<url>http://github.com/technicalpickles/shoulda_generator</url>
|
79
|
+
<watchers type="integer">40</watchers>
|
80
|
+
<fork type="boolean">false</fork>
|
81
|
+
<homepage></homepage>
|
82
|
+
</repository>
|
83
|
+
<repository>
|
84
|
+
<owner>technicalpickles</owner>
|
85
|
+
<forks type="integer">1</forks>
|
86
|
+
<description>Manage markup close to home... right in the model! Caching, validation, etc</description>
|
87
|
+
<name>has_markup</name>
|
88
|
+
<private type="boolean">false</private>
|
89
|
+
<url>http://github.com/technicalpickles/has_markup</url>
|
90
|
+
<watchers type="integer">17</watchers>
|
91
|
+
<fork type="boolean">false</fork>
|
92
|
+
<homepage></homepage>
|
93
|
+
</repository>
|
94
|
+
<repository>
|
95
|
+
<owner>technicalpickles</owner>
|
96
|
+
<forks type="integer">0</forks>
|
97
|
+
<description>A helper method for loading files during test</description>
|
98
|
+
<name>file_fixture</name>
|
99
|
+
<private type="boolean">false</private>
|
100
|
+
<url>http://github.com/technicalpickles/file_fixture</url>
|
101
|
+
<watchers type="integer">1</watchers>
|
102
|
+
<fork type="boolean">false</fork>
|
103
|
+
<homepage></homepage>
|
104
|
+
</repository>
|
105
|
+
<repository>
|
106
|
+
<owner>technicalpickles</owner>
|
107
|
+
<forks type="integer">0</forks>
|
108
|
+
<description>A gitified copy of Peter Cooper's Rubyflow website</description>
|
109
|
+
<name>rubyflow</name>
|
110
|
+
<private type="boolean">false</private>
|
111
|
+
<url>http://github.com/technicalpickles/rubyflow</url>
|
112
|
+
<watchers type="integer">3</watchers>
|
113
|
+
<fork type="boolean">true</fork>
|
114
|
+
<homepage>http://rubyflow.com</homepage>
|
115
|
+
</repository>
|
116
|
+
<repository>
|
117
|
+
<owner>technicalpickles</owner>
|
118
|
+
<forks type="integer">1</forks>
|
119
|
+
<description>Some minor conveniences for using factory_girl on a Rails project</description>
|
120
|
+
<name>factory_girl_on_rails</name>
|
121
|
+
<private type="boolean">false</private>
|
122
|
+
<url>http://github.com/technicalpickles/factory_girl_on_rails</url>
|
123
|
+
<watchers type="integer">37</watchers>
|
124
|
+
<fork type="boolean">false</fork>
|
125
|
+
<homepage></homepage>
|
126
|
+
</repository>
|
127
|
+
<repository>
|
128
|
+
<owner>technicalpickles</owner>
|
129
|
+
<forks type="integer">0</forks>
|
130
|
+
<description>Makes tests easy on the fingers and the eyes</description>
|
131
|
+
<name>shoulda</name>
|
132
|
+
<private type="boolean">false</private>
|
133
|
+
<url>http://github.com/technicalpickles/shoulda</url>
|
134
|
+
<watchers type="integer">1</watchers>
|
135
|
+
<fork type="boolean">true</fork>
|
136
|
+
<homepage>http://www.thoughtbot.com/projects/shoulda</homepage>
|
137
|
+
</repository>
|
138
|
+
<repository>
|
139
|
+
<owner>technicalpickles</owner>
|
140
|
+
<forks type="integer">0</forks>
|
141
|
+
<description>Website for bostonrb.org</description>
|
142
|
+
<name>bostonrb</name>
|
143
|
+
<private type="boolean">false</private>
|
144
|
+
<url>http://github.com/technicalpickles/bostonrb</url>
|
145
|
+
<watchers type="integer">1</watchers>
|
146
|
+
<fork type="boolean">true</fork>
|
147
|
+
<homepage>http://bostonrb.org</homepage>
|
148
|
+
</repository>
|
149
|
+
<repository>
|
150
|
+
<owner>technicalpickles</owner>
|
151
|
+
<forks type="integer">0</forks>
|
152
|
+
<description>A fresh Rails app, with some niceties and cleanup</description>
|
153
|
+
<name>pickles-on-rails</name>
|
154
|
+
<private type="boolean">false</private>
|
155
|
+
<url>http://github.com/technicalpickles/pickles-on-rails</url>
|
156
|
+
<watchers type="integer">3</watchers>
|
157
|
+
<fork type="boolean">false</fork>
|
158
|
+
<homepage></homepage>
|
159
|
+
</repository>
|
160
|
+
<repository>
|
161
|
+
<owner>technicalpickles</owner>
|
162
|
+
<forks type="integer">0</forks>
|
163
|
+
<description>Easy and customizable generation of forged data.</description>
|
164
|
+
<name>forgery</name>
|
165
|
+
<private type="boolean">false</private>
|
166
|
+
<url>http://github.com/technicalpickles/forgery</url>
|
167
|
+
<watchers type="integer">1</watchers>
|
168
|
+
<fork type="boolean">true</fork>
|
169
|
+
<homepage>http://sevenwire.com</homepage>
|
170
|
+
</repository>
|
171
|
+
<repository>
|
172
|
+
<owner>technicalpickles</owner>
|
173
|
+
<forks type="integer">0</forks>
|
174
|
+
<description>Simple authentication for Ruby web apps, with Shoulda and Factory Girl tests for its test suite.</description>
|
175
|
+
<name>clearance</name>
|
176
|
+
<private type="boolean">false</private>
|
177
|
+
<url>http://github.com/technicalpickles/clearance</url>
|
178
|
+
<watchers type="integer">1</watchers>
|
179
|
+
<fork type="boolean">true</fork>
|
180
|
+
<homepage>http://thoughtbot.com</homepage>
|
181
|
+
</repository>
|
182
|
+
<repository>
|
183
|
+
<owner>technicalpickles</owner>
|
184
|
+
<forks type="integer">0</forks>
|
185
|
+
<description>Rails plugin to rescue common Rails exceptions, render an error with your look and feel, and return an appropriate HTTP status code</description>
|
186
|
+
<name>safety_valve</name>
|
187
|
+
<private type="boolean">false</private>
|
188
|
+
<url>http://github.com/technicalpickles/safety_valve</url>
|
189
|
+
<watchers type="integer">5</watchers>
|
190
|
+
<fork type="boolean">false</fork>
|
191
|
+
<homepage></homepage>
|
192
|
+
</repository>
|
193
|
+
<repository>
|
194
|
+
<owner>technicalpickles</owner>
|
195
|
+
<pledgie type="integer">2604</pledgie>
|
196
|
+
<forks type="integer">6</forks>
|
197
|
+
<description>Simple and opinionated helper for creating Rubygem projects on GitHub</description>
|
198
|
+
<name>jeweler</name>
|
199
|
+
<private type="boolean">false</private>
|
200
|
+
<url>http://github.com/technicalpickles/jeweler</url>
|
201
|
+
<watchers type="integer">98</watchers>
|
202
|
+
<fork type="boolean">false</fork>
|
203
|
+
<homepage>http://technicalpickles.github.com/jeweler</homepage>
|
204
|
+
</repository>
|
205
|
+
<repository>
|
206
|
+
<owner>technicalpickles</owner>
|
207
|
+
<forks type="integer">0</forks>
|
208
|
+
<description>An ActionView helper for determining if content_for</description>
|
209
|
+
<name>content_given</name>
|
210
|
+
<private type="boolean">false</private>
|
211
|
+
<url>http://github.com/technicalpickles/content_given</url>
|
212
|
+
<watchers type="integer">2</watchers>
|
213
|
+
<fork type="boolean">false</fork>
|
214
|
+
<homepage></homepage>
|
215
|
+
</repository>
|
216
|
+
<repository>
|
217
|
+
<owner>technicalpickles</owner>
|
218
|
+
<forks type="integer">0</forks>
|
219
|
+
<description></description>
|
220
|
+
<name>factory_girl</name>
|
221
|
+
<private type="boolean">false</private>
|
222
|
+
<url>http://github.com/technicalpickles/factory_girl</url>
|
223
|
+
<watchers type="integer">1</watchers>
|
224
|
+
<fork type="boolean">true</fork>
|
225
|
+
<homepage></homepage>
|
226
|
+
</repository>
|
227
|
+
<repository>
|
228
|
+
<owner>technicalpickles</owner>
|
229
|
+
<forks type="integer">0</forks>
|
230
|
+
<description>command line tweets and an api wrapper for twitter</description>
|
231
|
+
<name>twitter</name>
|
232
|
+
<private type="boolean">false</private>
|
233
|
+
<url>http://github.com/technicalpickles/twitter</url>
|
234
|
+
<watchers type="integer">2</watchers>
|
235
|
+
<fork type="boolean">true</fork>
|
236
|
+
<homepage>http://twitter.rubyforge.org/</homepage>
|
237
|
+
</repository>
|
238
|
+
<repository>
|
239
|
+
<owner>technicalpickles</owner>
|
240
|
+
<forks type="integer">0</forks>
|
241
|
+
<description>Push jobs into starling</description>
|
242
|
+
<name>simplified_starling</name>
|
243
|
+
<private type="boolean">false</private>
|
244
|
+
<url>http://github.com/technicalpickles/simplified_starling</url>
|
245
|
+
<watchers type="integer">1</watchers>
|
246
|
+
<fork type="boolean">true</fork>
|
247
|
+
<homepage></homepage>
|
248
|
+
</repository>
|
249
|
+
<repository>
|
250
|
+
<owner>technicalpickles</owner>
|
251
|
+
<forks type="integer">0</forks>
|
252
|
+
<description>A command line ruby script to watch your team's results in the rumble</description>
|
253
|
+
<name>rails-rumble-monitor</name>
|
254
|
+
<private type="boolean">false</private>
|
255
|
+
<url>http://github.com/technicalpickles/rails-rumble-monitor</url>
|
256
|
+
<watchers type="integer">1</watchers>
|
257
|
+
<fork type="boolean">true</fork>
|
258
|
+
<homepage></homepage>
|
259
|
+
</repository>
|
260
|
+
<repository>
|
261
|
+
<owner>technicalpickles</owner>
|
262
|
+
<forks type="integer">0</forks>
|
263
|
+
<description>Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary.</description>
|
264
|
+
<name>ruby-git</name>
|
265
|
+
<private type="boolean">false</private>
|
266
|
+
<url>http://github.com/technicalpickles/ruby-git</url>
|
267
|
+
<watchers type="integer">1</watchers>
|
268
|
+
<fork type="boolean">true</fork>
|
269
|
+
<homepage>http://jointheconversation.org/rubygit/</homepage>
|
270
|
+
</repository>
|
271
|
+
<repository>
|
272
|
+
<owner>technicalpickles</owner>
|
273
|
+
<forks type="integer">0</forks>
|
274
|
+
<description>It's a GitHub party and you're invited! Ruby wrapper for the GitHub API using HTTParty</description>
|
275
|
+
<name>github-party</name>
|
276
|
+
<private type="boolean">false</private>
|
277
|
+
<url>http://github.com/technicalpickles/github-party</url>
|
278
|
+
<watchers type="integer">2</watchers>
|
279
|
+
<fork type="boolean">false</fork>
|
280
|
+
<homepage></homepage>
|
281
|
+
</repository>
|
282
|
+
<repository>
|
283
|
+
<owner>technicalpickles</owner>
|
284
|
+
<forks type="integer">0</forks>
|
285
|
+
<description>The scripts used to build RubyGems on GitHub</description>
|
286
|
+
<name>github-gem-builder</name>
|
287
|
+
<private type="boolean">false</private>
|
288
|
+
<url>http://github.com/technicalpickles/github-gem-builder</url>
|
289
|
+
<watchers type="integer">1</watchers>
|
290
|
+
<fork type="boolean">true</fork>
|
291
|
+
<homepage></homepage>
|
292
|
+
</repository>
|
293
|
+
<repository>
|
294
|
+
<owner>technicalpickles</owner>
|
295
|
+
<forks type="integer">0</forks>
|
296
|
+
<description>A planet style feed aggregator written in Ruby</description>
|
297
|
+
<name>pluto</name>
|
298
|
+
<private type="boolean">false</private>
|
299
|
+
<url>http://github.com/technicalpickles/pluto</url>
|
300
|
+
<watchers type="integer">1</watchers>
|
301
|
+
<fork type="boolean">true</fork>
|
302
|
+
<homepage></homepage>
|
303
|
+
</repository>
|
304
|
+
<repository>
|
305
|
+
<owner>technicalpickles</owner>
|
306
|
+
<forks type="integer">0</forks>
|
307
|
+
<description>Experiment for generating a jeweler-enabled project</description>
|
308
|
+
<name>the-perfect-gem</name>
|
309
|
+
<private type="boolean">false</private>
|
310
|
+
<url>http://github.com/technicalpickles/the-perfect-gem</url>
|
311
|
+
<watchers type="integer">1</watchers>
|
312
|
+
<fork type="boolean">false</fork>
|
313
|
+
<homepage></homepage>
|
314
|
+
</repository>
|
315
|
+
<repository>
|
316
|
+
<owner>technicalpickles</owner>
|
317
|
+
<forks type="integer">0</forks>
|
318
|
+
<description>evil twin of paperclip to ease migration from attachment_fu</description>
|
319
|
+
<name>paperclip-in-attachment_fus-clothing</name>
|
320
|
+
<private type="boolean">false</private>
|
321
|
+
<url>http://github.com/technicalpickles/paperclip-in-attachment_fus-clothing</url>
|
322
|
+
<watchers type="integer">3</watchers>
|
323
|
+
<fork type="boolean">false</fork>
|
324
|
+
<homepage></homepage>
|
325
|
+
</repository>
|
326
|
+
<repository>
|
327
|
+
<owner>technicalpickles</owner>
|
328
|
+
<forks type="integer">0</forks>
|
329
|
+
<description>SSL Requirement plugin</description>
|
330
|
+
<name>ssl_requirement</name>
|
331
|
+
<private type="boolean">false</private>
|
332
|
+
<url>http://github.com/technicalpickles/ssl_requirement</url>
|
333
|
+
<watchers type="integer">3</watchers>
|
334
|
+
<fork type="boolean">true</fork>
|
335
|
+
<homepage>http://rubyonrails.org</homepage>
|
336
|
+
</repository>
|
337
|
+
<repository>
|
338
|
+
<owner>technicalpickles</owner>
|
339
|
+
<forks type="integer">0</forks>
|
340
|
+
<description>A collection of useful rake tasks.</description>
|
341
|
+
<name>limerick_rake</name>
|
342
|
+
<private type="boolean">false</private>
|
343
|
+
<url>http://github.com/technicalpickles/limerick_rake</url>
|
344
|
+
<watchers type="integer">1</watchers>
|
345
|
+
<fork type="boolean">true</fork>
|
346
|
+
<homepage>http://thoughtbot.com</homepage>
|
347
|
+
</repository>
|
348
|
+
<repository>
|
349
|
+
<owner>technicalpickles</owner>
|
350
|
+
<forks type="integer">0</forks>
|
351
|
+
<description>Fork of Blaine Cook's FakeWeb for fixes and new features</description>
|
352
|
+
<name>fakeweb</name>
|
353
|
+
<private type="boolean">false</private>
|
354
|
+
<url>http://github.com/technicalpickles/fakeweb</url>
|
355
|
+
<watchers type="integer">2</watchers>
|
356
|
+
<fork type="boolean">true</fork>
|
357
|
+
<homepage>http://fakeweb.rubyforge.org</homepage>
|
358
|
+
</repository>
|
359
|
+
<repository>
|
360
|
+
<owner>technicalpickles</owner>
|
361
|
+
<forks type="integer">0</forks>
|
362
|
+
<description>FriendlyId is a plugin for Ruby on Rails which allows you to work with human-friendly strings as well as numeric ids for ActiveRecords.</description>
|
363
|
+
<name>friendly_id</name>
|
364
|
+
<private type="boolean">false</private>
|
365
|
+
<url>http://github.com/technicalpickles/friendly_id</url>
|
366
|
+
<watchers type="integer">3</watchers>
|
367
|
+
<fork type="boolean">true</fork>
|
368
|
+
<homepage>http://randomba.org</homepage>
|
369
|
+
</repository>
|
370
|
+
<repository>
|
371
|
+
<owner>technicalpickles</owner>
|
372
|
+
<forks type="integer">0</forks>
|
373
|
+
<description>Trying out cucumber</description>
|
374
|
+
<name>cucumbler</name>
|
375
|
+
<private type="boolean">false</private>
|
376
|
+
<url>http://github.com/technicalpickles/cucumbler</url>
|
377
|
+
<watchers type="integer">1</watchers>
|
378
|
+
<fork type="boolean">false</fork>
|
379
|
+
<homepage></homepage>
|
380
|
+
</repository>
|
381
|
+
<repository>
|
382
|
+
<owner>technicalpickles</owner>
|
383
|
+
<forks type="integer">1</forks>
|
384
|
+
<name>the-sickest-gem-ever</name>
|
385
|
+
<private type="boolean">false</private>
|
386
|
+
<url>http://github.com/technicalpickles/the-sickest-gem-ever</url>
|
387
|
+
<watchers type="integer">2</watchers>
|
388
|
+
<fork type="boolean">false</fork>
|
389
|
+
</repository>
|
390
|
+
<repository>
|
391
|
+
<owner>technicalpickles</owner>
|
392
|
+
<forks type="integer">0</forks>
|
393
|
+
<description>The easy and fun Continuous Integration server</description>
|
394
|
+
<name>integrity</name>
|
395
|
+
<private type="boolean">false</private>
|
396
|
+
<url>http://github.com/technicalpickles/integrity</url>
|
397
|
+
<watchers type="integer">1</watchers>
|
398
|
+
<fork type="boolean">true</fork>
|
399
|
+
<homepage>http://integrityapp.com</homepage>
|
400
|
+
</repository>
|
401
|
+
<repository>
|
402
|
+
<owner>technicalpickles</owner>
|
403
|
+
<forks type="integer">0</forks>
|
404
|
+
<description>Port of technicalpickles.com to jekyll</description>
|
405
|
+
<name>technicalpickles.github.com</name>
|
406
|
+
<private type="boolean">false</private>
|
407
|
+
<url>http://github.com/technicalpickles/technicalpickles.github.com</url>
|
408
|
+
<watchers type="integer">1</watchers>
|
409
|
+
<fork type="boolean">false</fork>
|
410
|
+
<homepage>http://technicalpickles.github.com</homepage>
|
411
|
+
</repository>
|
412
|
+
<repository>
|
413
|
+
<owner>technicalpickles</owner>
|
414
|
+
<forks type="integer">0</forks>
|
415
|
+
<description>Database backed asynchronous priority queue -- Extracted from Shopify </description>
|
416
|
+
<name>delayed_job</name>
|
417
|
+
<private type="boolean">false</private>
|
418
|
+
<url>http://github.com/technicalpickles/delayed_job</url>
|
419
|
+
<watchers type="integer">1</watchers>
|
420
|
+
<fork type="boolean">true</fork>
|
421
|
+
<homepage>http://www.shopify.com</homepage>
|
422
|
+
</repository>
|
423
|
+
<repository>
|
424
|
+
<owner>technicalpickles</owner>
|
425
|
+
<forks type="integer">0</forks>
|
426
|
+
<description>Jekyll is a blog-aware, static site generator in Ruby</description>
|
427
|
+
<name>jekyll</name>
|
428
|
+
<private type="boolean">false</private>
|
429
|
+
<url>http://github.com/technicalpickles/jekyll</url>
|
430
|
+
<watchers type="integer">2</watchers>
|
431
|
+
<fork type="boolean">true</fork>
|
432
|
+
<homepage></homepage>
|
433
|
+
</repository>
|
434
|
+
<repository>
|
435
|
+
<owner>technicalpickles</owner>
|
436
|
+
<forks type="integer">0</forks>
|
437
|
+
<description>flickr-fu is a ruby interface around the flickr REST api</description>
|
438
|
+
<name>flickr_fu</name>
|
439
|
+
<private type="boolean">false</private>
|
440
|
+
<url>http://github.com/technicalpickles/flickr_fu</url>
|
441
|
+
<watchers type="integer">2</watchers>
|
442
|
+
<fork type="boolean">true</fork>
|
443
|
+
<homepage>http://www.commonthread.com/projects/flickr_fu/rdoc/</homepage>
|
444
|
+
</repository>
|
445
|
+
</repositories>
|
446
|
+
<blog>http://technicalpickles.com</blog>
|
447
|
+
<login>technicalpickles</login>
|
448
|
+
<email>josh@technicalpickles.com</email>
|
449
|
+
<location>Boston, MA</location>
|
450
|
+
</user>
|
@@ -0,0 +1,163 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '/test_helper.rb')
|
2
|
+
|
3
|
+
class GitHubCommitTest < Test::Unit::TestCase
|
4
|
+
context "A single commit" do
|
5
|
+
setup do
|
6
|
+
FakeWeb.register_uri("http://github.com/api/v1/xml/defunkt/github-gem/commit/c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b", :response => File.join(File.dirname(__FILE__), 'fixtures', 'commit.xml'))
|
7
|
+
@commit = GitHub::Commit.find "defunkt", "github-gem", "c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b"
|
8
|
+
end
|
9
|
+
|
10
|
+
test "#message" do
|
11
|
+
@commit.message.should == "move commands.rb and helpers.rb into commands/ dir"
|
12
|
+
end
|
13
|
+
|
14
|
+
test "#removed size" do
|
15
|
+
pending "Not adding files yet" do
|
16
|
+
@commit.removed.size.should == 2
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
test "#added size" do
|
21
|
+
pending "Not adding files yet" do
|
22
|
+
@commit.added.size.should == 2
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
test "#modified size" do
|
27
|
+
pending "Not adding files yet" do
|
28
|
+
@commit.modified.size.should == 1
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
test "#parents" do
|
33
|
+
pending "Not adding parents yet" do
|
34
|
+
@commit.parents.size.should == 1
|
35
|
+
@commit.parents.first.id.should == "d462d2a2e60438ded3dd9e8e6593ca4146c5a0ba"
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
test "#url" do
|
40
|
+
@commit.url.should == "http://github.com/defunkt/github-gem/commit/c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b"
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
test "#author" do
|
45
|
+
pending "Not adding author yet" do
|
46
|
+
@commit.author.name.should == "Chris Wanstrath"
|
47
|
+
@commit.author.email.should == "chris@ozmm.org"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
test "#id" do
|
52
|
+
@commit.id.should == "c26d4ce9807ecf57d3f9eefe19ae64e75bcaaa8b"
|
53
|
+
end
|
54
|
+
|
55
|
+
test "#commited_date" do
|
56
|
+
pending "happymapper doesn't support dashes yet" do
|
57
|
+
@commit.commited_date.should == Date.parse("2008-03-02T16:45:41-08:00")
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
test "#authored_date" do
|
62
|
+
pending "need to figure out how datey stuff works" do
|
63
|
+
@commit.authored_date.should == Date.parse("2008-03-02T16:45:41-08:00")
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
test "#tree" do
|
68
|
+
@commit.tree.should == "28a1a1ca3e663d35ba8bf07d3f1781af71359b76"
|
69
|
+
end
|
70
|
+
|
71
|
+
test "#committer" do
|
72
|
+
pending "Not adding committer yet" do
|
73
|
+
@commit.committer.name.should == "Chris Wanstrath"
|
74
|
+
@commit.committer.email.should == "chris@ozmm.org"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
context "For a project" do
|
80
|
+
setup do
|
81
|
+
FakeWeb.register_uri("http://github.com/api/v1/xml/caged/gitnub/commits/master", :response => File.join(File.dirname(__FILE__), 'fixtures', 'commits.xml'))
|
82
|
+
@commits = GitHub::Commit.find("caged", "gitnub", :all)
|
83
|
+
end
|
84
|
+
|
85
|
+
test "size" do
|
86
|
+
@commits.size.should == 30
|
87
|
+
end
|
88
|
+
|
89
|
+
context "first commit" do
|
90
|
+
setup do
|
91
|
+
@commit = @commits.first
|
92
|
+
end
|
93
|
+
|
94
|
+
test "#message" do
|
95
|
+
@commit.message.should == "This time, lets actually add diff-lcs"
|
96
|
+
end
|
97
|
+
|
98
|
+
test "#removed size" do
|
99
|
+
pending "Not adding files yet" do
|
100
|
+
@commit.removed.should be_nil
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
test "#added size" do
|
105
|
+
pending "Not adding files yet" do
|
106
|
+
@commit.added.should be_nil
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
test "#modified size" do
|
111
|
+
pending "Not adding files yet" do
|
112
|
+
@commit.modified.should be_nil
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
test "#parents size" do
|
117
|
+
pending "Not adding parents yet" do
|
118
|
+
@commit.parents.size.should == 1
|
119
|
+
@commits.pararents.first.id.should == "64cefa238db1d5ad62f0560378ddd9cdbfbbfe16"
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
test "#url" do
|
124
|
+
@commit.url.should == "http://github.com/Caged/gitnub/commit/2f4522c15c8f4734ea7db07f4c355ade06a3f619"
|
125
|
+
|
126
|
+
end
|
127
|
+
|
128
|
+
test "#author" do
|
129
|
+
pending "Not adding author yet" do
|
130
|
+
@commit.author.name.should == "Justin Palmer"
|
131
|
+
@commit.author.email.should == "justin@activereload.net"
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
test "#id" do
|
136
|
+
@commit.id.should == "2f4522c15c8f4734ea7db07f4c355ade06a3f619"
|
137
|
+
end
|
138
|
+
|
139
|
+
test "#commited_date" do
|
140
|
+
pending "happymapper doesn't support dashes yet" do
|
141
|
+
@commit.commited_date.should == Date.parse("2008-10-17T12:00:08-07:00")
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
test "#authored_date" do
|
146
|
+
pending "need to figure out how datey stuff works" do
|
147
|
+
@commit.authored_date.should == Date.parse("2008-10-17T12:00:08-07:00")
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
test "#tree" do
|
152
|
+
@commit.tree.should == "489360e07f74e9b0eeea0d8ec07328d3b3a0a947"
|
153
|
+
end
|
154
|
+
|
155
|
+
test "#committer" do
|
156
|
+
pending "Not adding committer yet" do
|
157
|
+
@commit.committer.name.should == "Justin Palmer"
|
158
|
+
@commit.committer.email.should == "justin@activereload.net"
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '/test_helper.rb')
|
2
|
+
|
3
|
+
class GitHubRepositoryTest < Test::Unit::TestCase
|
4
|
+
context "searching repositories" do
|
5
|
+
setup do
|
6
|
+
FakeWeb.register_uri('http://github.com/api/v1/xml/search/merb', :response => File.join(File.dirname(__FILE__), 'fixtures', 'search.xml'))
|
7
|
+
|
8
|
+
@repositories = GitHub::Repository.search("merb")
|
9
|
+
end
|
10
|
+
|
11
|
+
test "size" do
|
12
|
+
@repositories.size.should == 30
|
13
|
+
end
|
14
|
+
|
15
|
+
context "first" do
|
16
|
+
setup do
|
17
|
+
@repository = @repositories.first
|
18
|
+
end
|
19
|
+
|
20
|
+
test "#name" do
|
21
|
+
@repository.name.should == "merb"
|
22
|
+
end
|
23
|
+
|
24
|
+
test "#watchers" do
|
25
|
+
@repository.watchers.should == 15
|
26
|
+
end
|
27
|
+
|
28
|
+
test "#private" do
|
29
|
+
@repository.private.should == false
|
30
|
+
end
|
31
|
+
|
32
|
+
test "#description" do
|
33
|
+
@repository.description.should == "Merb official repository"
|
34
|
+
end
|
35
|
+
|
36
|
+
test "#forks" do
|
37
|
+
@repository.forks.should == 0
|
38
|
+
end
|
39
|
+
|
40
|
+
test "#homepage" do
|
41
|
+
@repository.homepage.should == "http://www.merbivore.com"
|
42
|
+
end
|
43
|
+
|
44
|
+
test "#owner" do
|
45
|
+
@repository.owner.should == "merb"
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|