git_hub 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/README.rdoc +16 -2
  2. data/VERSION +1 -1
  3. data/bin/git_hub +1 -2
  4. data/git_hub.gemspec +30 -3
  5. data/lib/git_hub/api.rb +6 -0
  6. data/lib/git_hub/base.rb +52 -10
  7. data/lib/git_hub/commit.rb +45 -0
  8. data/lib/git_hub/repo.rb +47 -51
  9. data/rdoc/classes/GitHub/Api.html +300 -0
  10. data/rdoc/classes/GitHub/Base.html +423 -0
  11. data/rdoc/classes/GitHub/Repo.html +738 -0
  12. data/rdoc/classes/GitHub.html +310 -0
  13. data/rdoc/created.rid +1 -0
  14. data/rdoc/files/README_rdoc.html +171 -0
  15. data/rdoc/files/lib/git_hub/api_rb.html +103 -0
  16. data/rdoc/files/lib/git_hub/base_rb.html +101 -0
  17. data/rdoc/files/lib/git_hub/repo_rb.html +91 -0
  18. data/rdoc/files/lib/git_hub_rb.html +91 -0
  19. data/rdoc/fr_class_index.html +33 -0
  20. data/rdoc/fr_file_index.html +35 -0
  21. data/rdoc/fr_method_index.html +81 -0
  22. data/rdoc/index.html +23 -0
  23. data/rdoc/rdoc-style.css +299 -0
  24. data/spec/git_hub/base_spec.rb +2 -2
  25. data/spec/git_hub/commit_spec.rb +53 -0
  26. data/spec/git_hub/repo_spec.rb +123 -85
  27. data/spec/spec_helper.rb +35 -8
  28. data/spec/stubs/api_route_error.res +14 -0
  29. data/spec/stubs/commits/list/joe007/fine_repo/master/README.res +28 -0
  30. data/spec/stubs/commits/list/joe007/fine_repo/master.res +84 -0
  31. data/spec/stubs/commits/show/joe007/fine_repo/5e61f0687c40ca48214d09dc7ae2d0d0d8fbfeb8.res +38 -0
  32. data/spec/stubs/repos/create.1.res +22 -0
  33. data/spec/stubs/repos/{create.res → create.2.res} +0 -0
  34. data/spec/stubs/repos/create.3.res +100 -0
  35. data/spec/stubs/repos/create.4.res +14 -0
  36. data/spec/stubs/repos/show/joe007/fine_repo/branches.res +15 -0
  37. data/spec/stubs/repos/show/joe007/fine_repo/tags.res +17 -0
  38. metadata +30 -3
@@ -0,0 +1,738 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <title>Class: GitHub::Repo [zemax 0.1.0
6
+ ]</title>
7
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
9
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
10
+ <script type="text/javascript">
11
+ // <![CDATA[
12
+
13
+ function popupCode( url ) {
14
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
15
+ }
16
+
17
+ function toggleCode( id ) {
18
+ if ( document.getElementById )
19
+ elem = document.getElementById( id );
20
+ else if ( document.all )
21
+ elem = eval( "document.all." + id );
22
+ else
23
+ return false;
24
+
25
+ elemStyle = elem.style;
26
+
27
+ if ( elemStyle.display != "block" ) {
28
+ elemStyle.display = "block"
29
+ } else {
30
+ elemStyle.display = "none"
31
+ }
32
+
33
+ return true;
34
+ }
35
+
36
+ // Make codeblocks hidden by default
37
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }<\/style>" )
38
+
39
+ // ]]>
40
+ </script>
41
+
42
+ </head>
43
+ <body>
44
+
45
+
46
+ <div id="classHeader">
47
+ <table class="header-table">
48
+ <tr class="top-aligned-row">
49
+ <td><strong>Class</strong></td>
50
+ <td class="class-name-in-header">GitHub::Repo</td>
51
+ </tr>
52
+ <tr class="top-aligned-row">
53
+ <td><strong>In:</strong></td>
54
+ <td>
55
+
56
+
57
+ <a href="../../files/lib/git_hub/repo_rb.html">
58
+
59
+ lib/git_hub/repo.rb
60
+
61
+ </a>
62
+
63
+
64
+ <br />
65
+
66
+ </td>
67
+ </tr>
68
+
69
+
70
+ <tr class="top-aligned-row">
71
+ <td><strong>Parent:</strong></td>
72
+ <td>
73
+
74
+ <a href="Base.html">
75
+
76
+ GitHub::Base
77
+
78
+ </a>
79
+
80
+ </td>
81
+ </tr>
82
+
83
+ </table>
84
+ </div>
85
+ <!-- banner header -->
86
+
87
+ <div id="bodyContent">
88
+
89
+ <div id="contextContent">
90
+
91
+ </div>
92
+
93
+
94
+ <div id="method-list">
95
+ <h3 class="section-bar">Methods</h3>
96
+
97
+ <div class="name-list">
98
+
99
+ <a href="#M000027">add_collaborator</a>&nbsp;&nbsp;
100
+
101
+ <a href="#M000025">add_service</a>&nbsp;&nbsp;
102
+
103
+ <a href="#M000021">clone_url</a>&nbsp;&nbsp;
104
+
105
+ <a href="#M000023">create</a>&nbsp;&nbsp;
106
+
107
+ <a href="#M000024">delete</a>&nbsp;&nbsp;
108
+
109
+ <a href="#M000022">find</a>&nbsp;&nbsp;
110
+
111
+ <a href="#M000019">fork?</a>&nbsp;&nbsp;
112
+
113
+ <a href="#M000018">new</a>&nbsp;&nbsp;
114
+
115
+ <a href="#M000020">private?</a>&nbsp;&nbsp;
116
+
117
+ <a href="#M000028">remove_collaborator</a>&nbsp;&nbsp;
118
+
119
+ <a href="#M000026">remove_service</a>&nbsp;&nbsp;
120
+
121
+ </div>
122
+ </div>
123
+
124
+ </div>
125
+
126
+ <!-- if includes -->
127
+
128
+ <div id="section">
129
+
130
+ <div id="constants-list">
131
+ <h3 class="section-bar">Constants</h3>
132
+
133
+ <div class="name-list">
134
+ <table summary="Constants">
135
+
136
+ <tr class="top-aligned-row context-row">
137
+ <td class="context-item-name">GITHUB_SERVICES</td>
138
+ <td>=</td>
139
+ <td class="context-item-value">{ #[github] # user = user # token = token # :donate =&gt; {:path =&gt; '/edit/donate', :inputs =&gt; ['paypal']} # homepage = homepage_url # webhooks =&gt; {:path =&gt; '/edit/postreceive_urls', :fields =&gt; [] #http://rdoc.info/projects/update, http://runcoderun.com/github, http://api.devver.net/github # basecamp = url, username, password, project, category # cia = true # campfire = subdomain, username, password, room, ssl, play_sound # email = arvitallian@gmail.com # fogbugz = cvssubmit_url, fb_version, fb_repoid # friendfeed = nickname, remotekey # irc = server, port, room, password, nick, ssl # jabber = user # lighthouse = subdomain, project_id, token, private # presently = subdomain, group_name, username, password # rubyforge = username, password, grupid # runcoderun = true # trac = url, token # twitter = username, password, digest }</td>
140
+
141
+ </tr>
142
+
143
+ </table>
144
+ </div>
145
+ </div>
146
+
147
+ <div id="aliases-list">
148
+ <h3 class="section-bar">External Aliases</h3>
149
+
150
+ <div class="name-list">
151
+ <table summary="aliases">
152
+
153
+ <tr class="top-aligned-row context-row">
154
+ <td class="context-item-name">watchers=</td>
155
+ <td>-&gt;</td>
156
+ <td class="context-item-value">followers=</td>
157
+ </tr>
158
+
159
+ <tr class="top-aligned-row context-row">
160
+ <td class="context-item-name">watchers</td>
161
+ <td>-&gt;</td>
162
+ <td class="context-item-value">followers</td>
163
+ </tr>
164
+
165
+ <tr class="top-aligned-row context-row">
166
+ <td class="context-item-name">owner=</td>
167
+ <td>-&gt;</td>
168
+ <td class="context-item-value">username=</td>
169
+ </tr>
170
+
171
+ <tr class="top-aligned-row context-row">
172
+ <td class="context-item-name">owner</td>
173
+ <td>-&gt;</td>
174
+ <td class="context-item-value">username</td>
175
+ </tr>
176
+
177
+ <tr class="top-aligned-row context-row">
178
+ <td class="context-item-name">find</td>
179
+ <td>-&gt;</td>
180
+ <td class="context-item-value">show</td>
181
+ </tr>
182
+
183
+ <tr class="top-aligned-row context-row">
184
+ <td class="context-item-name">find</td>
185
+ <td>-&gt;</td>
186
+ <td class="context-item-value">search</td>
187
+ </tr>
188
+
189
+ </table>
190
+ </div>
191
+ </div>
192
+
193
+
194
+
195
+ <div id="attribute-list">
196
+ <h3 class="section-bar">Attributes</h3>
197
+
198
+ <div class="name-list">
199
+ <table>
200
+
201
+ <tr class="top-aligned-row context-row">
202
+ <td class="context-item-name">created</td>
203
+
204
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
205
+
206
+ <td class="context-item-desc"></td>
207
+ </tr>
208
+
209
+ <tr class="top-aligned-row context-row">
210
+ <td class="context-item-name">description</td>
211
+
212
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
213
+
214
+ <td class="context-item-desc"></td>
215
+ </tr>
216
+
217
+ <tr class="top-aligned-row context-row">
218
+ <td class="context-item-name">fork</td>
219
+
220
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
221
+
222
+ <td class="context-item-desc"></td>
223
+ </tr>
224
+
225
+ <tr class="top-aligned-row context-row">
226
+ <td class="context-item-name">forks</td>
227
+
228
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
229
+
230
+ <td class="context-item-desc"></td>
231
+ </tr>
232
+
233
+ <tr class="top-aligned-row context-row">
234
+ <td class="context-item-name">homepage</td>
235
+
236
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
237
+
238
+ <td class="context-item-desc"></td>
239
+ </tr>
240
+
241
+ <tr class="top-aligned-row context-row">
242
+ <td class="context-item-name">id</td>
243
+
244
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
245
+
246
+ <td class="context-item-desc"></td>
247
+ </tr>
248
+
249
+ <tr class="top-aligned-row context-row">
250
+ <td class="context-item-name">language</td>
251
+
252
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
253
+
254
+ <td class="context-item-desc"></td>
255
+ </tr>
256
+
257
+ <tr class="top-aligned-row context-row">
258
+ <td class="context-item-name">name</td>
259
+
260
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
261
+
262
+ <td class="context-item-desc"></td>
263
+ </tr>
264
+
265
+ <tr class="top-aligned-row context-row">
266
+ <td class="context-item-name">open_issues</td>
267
+
268
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
269
+
270
+ <td class="context-item-desc"></td>
271
+ </tr>
272
+
273
+ <tr class="top-aligned-row context-row">
274
+ <td class="context-item-name">owner</td>
275
+
276
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
277
+
278
+ <td class="context-item-desc"></td>
279
+ </tr>
280
+
281
+ <tr class="top-aligned-row context-row">
282
+ <td class="context-item-name">private</td>
283
+
284
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
285
+
286
+ <td class="context-item-desc"></td>
287
+ </tr>
288
+
289
+ <tr class="top-aligned-row context-row">
290
+ <td class="context-item-name">pushed</td>
291
+
292
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
293
+
294
+ <td class="context-item-desc"></td>
295
+ </tr>
296
+
297
+ <tr class="top-aligned-row context-row">
298
+ <td class="context-item-name">score</td>
299
+
300
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
301
+
302
+ <td class="context-item-desc"></td>
303
+ </tr>
304
+
305
+ <tr class="top-aligned-row context-row">
306
+ <td class="context-item-name">size</td>
307
+
308
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
309
+
310
+ <td class="context-item-desc"></td>
311
+ </tr>
312
+
313
+ <tr class="top-aligned-row context-row">
314
+ <td class="context-item-name">type</td>
315
+
316
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
317
+
318
+ <td class="context-item-desc"></td>
319
+ </tr>
320
+
321
+ <tr class="top-aligned-row context-row">
322
+ <td class="context-item-name">url</td>
323
+
324
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
325
+
326
+ <td class="context-item-desc"></td>
327
+ </tr>
328
+
329
+ <tr class="top-aligned-row context-row">
330
+ <td class="context-item-name">watchers</td>
331
+
332
+ <td class="context-item-value">&nbsp;[RW]&nbsp;</td>
333
+
334
+ <td class="context-item-desc"></td>
335
+ </tr>
336
+
337
+ </table>
338
+ </div>
339
+ </div>
340
+
341
+
342
+ <!-- if method_list -->
343
+
344
+ <div id="methods">
345
+
346
+ <h3 class="section-bar">Public Class methods</h3>
347
+
348
+
349
+ <div id="method-M000023" class="method-detail">
350
+ <a name="M000023"></a>
351
+
352
+ <div class="method-heading">
353
+
354
+ <a href="#M000023" class="method-signature">
355
+
356
+ <span class="method-name">create</span><span class="method-args">(opts)</span>
357
+
358
+ </a>
359
+
360
+ </div>
361
+
362
+ <div class="method-description">
363
+
364
+ <p>
365
+ Create new github repo, accepts Hash with :repo, :description, :homepage,
366
+ :public/:private or repo name as a single parameter
367
+ </p>
368
+
369
+ <p><a class="source-toggle" href="#"
370
+ onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
371
+ <div class="method-source-code" id="M000023-source">
372
+ <pre>
373
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 82</span>
374
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>(<span class="ruby-identifier">opts</span>)
375
+ <span class="ruby-identifier">repo</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:repo</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:repository</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:name</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:project</span>]
376
+ <span class="ruby-identifier">description</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:description</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:descr</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:desc</span>]
377
+ <span class="ruby-identifier">homepage</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:homepage</span>]
378
+ <span class="ruby-identifier">public</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:public</span>] <span class="ruby-operator">||</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:private</span>] <span class="ruby-comment cmt"># default to true</span>
379
+ <span class="ruby-identifier">ensure_auth</span> <span class="ruby-identifier">opts</span>
380
+ <span class="ruby-identifier">convert_to_repo</span> <span class="ruby-identifier">post</span>(<span class="ruby-value str">&quot;/create&quot;</span>, <span class="ruby-value str">'name'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">repo</span>, <span class="ruby-value str">'description'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">description</span>,
381
+ <span class="ruby-value str">'homepage'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">homepage</span>, <span class="ruby-value str">'public'</span> =<span class="ruby-operator">&gt;</span> (<span class="ruby-identifier">public</span> <span class="ruby-value">? </span><span class="ruby-value">1</span> <span class="ruby-operator">:</span> <span class="ruby-value">0</span>))
382
+ <span class="ruby-keyword kw">end</span>
383
+ </pre>
384
+ </div>
385
+
386
+ </div>
387
+ </div>
388
+
389
+
390
+ <div id="method-M000022" class="method-detail">
391
+ <a name="M000022"></a>
392
+
393
+ <div class="method-heading">
394
+
395
+ <a href="#M000022" class="method-signature">
396
+
397
+ <span class="method-name">find</span><span class="method-args">(opts)</span>
398
+
399
+ </a>
400
+
401
+ </div>
402
+
403
+ <div class="method-description">
404
+
405
+ <p>
406
+ Find repo(s) of a (valid) github user. Accepts Hash with keys:
407
+ </p>
408
+ <table>
409
+ <tr><td valign="top">:owner/:user/:username:</td><td>Github user name
410
+
411
+ </td></tr>
412
+ <tr><td valign="top">:repo/:repository/:project/:name:</td><td><a href="Repo.html">Repo</a> name
413
+
414
+ </td></tr>
415
+ <tr><td valign="top">:query/:search:</td><td>Array of search terms as Strings or Symbols
416
+
417
+ </td></tr>
418
+ </table>
419
+
420
+ <p><a class="source-toggle" href="#"
421
+ onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
422
+ <div class="method-source-code" id="M000022-source">
423
+ <pre>
424
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 65</span>
425
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">opts</span>)
426
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:query</span>]
427
+ <span class="ruby-identifier">query</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:query</span>].<span class="ruby-identifier">map</span>(<span class="ruby-operator">&amp;</span><span class="ruby-identifier">:to_s</span>).<span class="ruby-identifier">join</span>(<span class="ruby-value str">'+'</span>)
428
+ <span class="ruby-identifier">path</span> = <span class="ruby-node">&quot;/search/#{query}&quot;</span>
429
+ <span class="ruby-keyword kw">else</span>
430
+ <span class="ruby-identifier">owner</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:owner</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:user</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:username</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:login</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">auth</span>[<span class="ruby-value str">'login'</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">''</span>
431
+ <span class="ruby-identifier">repo</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:repo</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:repository</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:name</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:project</span>]
432
+ <span class="ruby-identifier">path</span> = <span class="ruby-identifier">repo</span> <span class="ruby-value">? </span><span class="ruby-node">&quot;/show/#{owner}/#{repo}&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-node">&quot;/show/#{owner}&quot;</span>
433
+ <span class="ruby-keyword kw">end</span>
434
+ <span class="ruby-identifier">convert_to_repo</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">path</span>)
435
+ <span class="ruby-keyword kw">end</span>
436
+ </pre>
437
+ </div>
438
+
439
+ </div>
440
+ </div>
441
+
442
+
443
+ <div id="method-M000018" class="method-detail">
444
+ <a name="M000018"></a>
445
+
446
+ <div class="method-heading">
447
+
448
+ <a href="#M000018" class="method-signature">
449
+
450
+ <span class="method-name">new</span><span class="method-args">(options)</span>
451
+
452
+ </a>
453
+
454
+ </div>
455
+
456
+ <div class="method-description">
457
+
458
+ <p><a class="source-toggle" href="#"
459
+ onclick="toggleCode('M000018-source');return false;">[Source]</a></p>
460
+ <div class="method-source-code" id="M000018-source">
461
+ <pre>
462
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 33</span>
463
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">options</span>
464
+ <span class="ruby-keyword kw">super</span>
465
+ <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;Unable to initialize #{self.class} without name&quot;</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-ivar">@name</span>
466
+ <span class="ruby-ivar">@url</span> <span class="ruby-operator">||=</span> <span class="ruby-node">&quot;http://github.com/#{@owner}/#{@name}&quot;</span>
467
+ <span class="ruby-ivar">@type</span> <span class="ruby-operator">||=</span> <span class="ruby-value str">&quot;repo&quot;</span>
468
+ <span class="ruby-keyword kw">end</span>
469
+ </pre>
470
+ </div>
471
+
472
+ </div>
473
+ </div>
474
+
475
+
476
+ <h3 class="section-bar">Public Instance methods</h3>
477
+
478
+
479
+ <div id="method-M000027" class="method-detail">
480
+ <a name="M000027"></a>
481
+
482
+ <div class="method-heading">
483
+
484
+ <a href="#M000027" class="method-signature">
485
+
486
+ <span class="method-name">add_collaborator</span><span class="method-args">()</span>
487
+
488
+ </a>
489
+
490
+ </div>
491
+
492
+ <div class="method-description">
493
+
494
+ <p><a class="source-toggle" href="#"
495
+ onclick="toggleCode('M000027-source');return false;">[Source]</a></p>
496
+ <div class="method-source-code" id="M000027-source">
497
+ <pre>
498
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 122</span>
499
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_collaborator</span>
500
+ <span class="ruby-keyword kw">end</span>
501
+ </pre>
502
+ </div>
503
+
504
+ </div>
505
+ </div>
506
+
507
+
508
+ <div id="method-M000025" class="method-detail">
509
+ <a name="M000025"></a>
510
+
511
+ <div class="method-heading">
512
+
513
+ <a href="#M000025" class="method-signature">
514
+
515
+ <span class="method-name">add_service</span><span class="method-args">()</span>
516
+
517
+ </a>
518
+
519
+ </div>
520
+
521
+ <div class="method-description">
522
+
523
+ <p><a class="source-toggle" href="#"
524
+ onclick="toggleCode('M000025-source');return false;">[Source]</a></p>
525
+ <div class="method-source-code" id="M000025-source">
526
+ <pre>
527
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 116</span>
528
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_service</span>
529
+ <span class="ruby-keyword kw">end</span>
530
+ </pre>
531
+ </div>
532
+
533
+ </div>
534
+ </div>
535
+
536
+
537
+ <div id="method-M000021" class="method-detail">
538
+ <a name="M000021"></a>
539
+
540
+ <div class="method-heading">
541
+
542
+ <a href="#M000021" class="method-signature">
543
+
544
+ <span class="method-name">clone_url</span><span class="method-args">()</span>
545
+
546
+ </a>
547
+
548
+ </div>
549
+
550
+ <div class="method-description">
551
+
552
+ <p><a class="source-toggle" href="#"
553
+ onclick="toggleCode('M000021-source');return false;">[Source]</a></p>
554
+ <div class="method-source-code" id="M000021-source">
555
+ <pre>
556
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 53</span>
557
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clone_url</span>
558
+ <span class="ruby-identifier">url</span> = <span class="ruby-identifier">private?</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">api</span>.<span class="ruby-identifier">auth</span>[<span class="ruby-value str">'login'</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">owner</span> <span class="ruby-value">? </span><span class="ruby-value str">&quot;git@github.com:&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;git://github.com/&quot;</span>
559
+ <span class="ruby-identifier">url</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;#{self.owner}/#{self.name}.git&quot;</span>
560
+ <span class="ruby-keyword kw">end</span>
561
+ </pre>
562
+ </div>
563
+
564
+ </div>
565
+ </div>
566
+
567
+
568
+ <div id="method-M000024" class="method-detail">
569
+ <a name="M000024"></a>
570
+
571
+ <div class="method-heading">
572
+
573
+ <a href="#M000024" class="method-signature">
574
+
575
+ <span class="method-name">delete</span><span class="method-args">()</span>
576
+
577
+ </a>
578
+
579
+ </div>
580
+
581
+ <div class="method-description">
582
+
583
+ <p>
584
+ Delete github repo
585
+ </p>
586
+
587
+ <p><a class="source-toggle" href="#"
588
+ onclick="toggleCode('M000024-source');return false;">[Source]</a></p>
589
+ <div class="method-source-code" id="M000024-source">
590
+ <pre>
591
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 107</span>
592
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span>
593
+ <span class="ruby-identifier">result</span> = <span class="ruby-identifier">post</span>(<span class="ruby-node">&quot;/delete/#{@name}&quot;</span>)
594
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">result</span>[<span class="ruby-value str">'delete_token'</span>]
595
+ <span class="ruby-identifier">post</span>(<span class="ruby-node">&quot;/delete/#{@name}&quot;</span>, <span class="ruby-value str">'delete_token'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">result</span>[<span class="ruby-value str">'delete_token'</span>])
596
+ <span class="ruby-keyword kw">else</span>
597
+ <span class="ruby-identifier">result</span>
598
+ <span class="ruby-keyword kw">end</span>
599
+ <span class="ruby-keyword kw">end</span>
600
+ </pre>
601
+ </div>
602
+
603
+ </div>
604
+ </div>
605
+
606
+
607
+ <div id="method-M000019" class="method-detail">
608
+ <a name="M000019"></a>
609
+
610
+ <div class="method-heading">
611
+
612
+ <a href="#M000019" class="method-signature">
613
+
614
+ <span class="method-name">fork?</span><span class="method-args">()</span>
615
+
616
+ </a>
617
+
618
+ </div>
619
+
620
+ <div class="method-description">
621
+
622
+ <p><a class="source-toggle" href="#"
623
+ onclick="toggleCode('M000019-source');return false;">[Source]</a></p>
624
+ <div class="method-source-code" id="M000019-source">
625
+ <pre>
626
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 45</span>
627
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fork?</span>;
628
+ <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fork</span>
629
+ <span class="ruby-keyword kw">end</span>
630
+ </pre>
631
+ </div>
632
+
633
+ </div>
634
+ </div>
635
+
636
+
637
+ <div id="method-M000020" class="method-detail">
638
+ <a name="M000020"></a>
639
+
640
+ <div class="method-heading">
641
+
642
+ <a href="#M000020" class="method-signature">
643
+
644
+ <span class="method-name">private?</span><span class="method-args">()</span>
645
+
646
+ </a>
647
+
648
+ </div>
649
+
650
+ <div class="method-description">
651
+
652
+ <p><a class="source-toggle" href="#"
653
+ onclick="toggleCode('M000020-source');return false;">[Source]</a></p>
654
+ <div class="method-source-code" id="M000020-source">
655
+ <pre>
656
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 49</span>
657
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">private?</span>;
658
+ <span class="ruby-operator">!</span><span class="ruby-operator">!</span><span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">private</span>
659
+ <span class="ruby-keyword kw">end</span>
660
+ </pre>
661
+ </div>
662
+
663
+ </div>
664
+ </div>
665
+
666
+
667
+ <div id="method-M000028" class="method-detail">
668
+ <a name="M000028"></a>
669
+
670
+ <div class="method-heading">
671
+
672
+ <a href="#M000028" class="method-signature">
673
+
674
+ <span class="method-name">remove_collaborator</span><span class="method-args">()</span>
675
+
676
+ </a>
677
+
678
+ </div>
679
+
680
+ <div class="method-description">
681
+
682
+ <p><a class="source-toggle" href="#"
683
+ onclick="toggleCode('M000028-source');return false;">[Source]</a></p>
684
+ <div class="method-source-code" id="M000028-source">
685
+ <pre>
686
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 125</span>
687
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_collaborator</span>
688
+ <span class="ruby-keyword kw">end</span>
689
+ </pre>
690
+ </div>
691
+
692
+ </div>
693
+ </div>
694
+
695
+
696
+ <div id="method-M000026" class="method-detail">
697
+ <a name="M000026"></a>
698
+
699
+ <div class="method-heading">
700
+
701
+ <a href="#M000026" class="method-signature">
702
+
703
+ <span class="method-name">remove_service</span><span class="method-args">()</span>
704
+
705
+ </a>
706
+
707
+ </div>
708
+
709
+ <div class="method-description">
710
+
711
+ <p><a class="source-toggle" href="#"
712
+ onclick="toggleCode('M000026-source');return false;">[Source]</a></p>
713
+ <div class="method-source-code" id="M000026-source">
714
+ <pre>
715
+ <span class="ruby-comment cmt"># File lib/git_hub/repo.rb, line 119</span>
716
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_service</span>
717
+ <span class="ruby-keyword kw">end</span>
718
+ </pre>
719
+ </div>
720
+
721
+ </div>
722
+ </div>
723
+
724
+
725
+
726
+ </div>
727
+
728
+
729
+
730
+
731
+ </div>
732
+
733
+ <div id="validator-badges">
734
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
735
+ </div>
736
+
737
+ </body>
738
+ </html>