git_hub 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +16 -2
- data/VERSION +1 -1
- data/bin/git_hub +1 -2
- data/git_hub.gemspec +30 -3
- data/lib/git_hub/api.rb +6 -0
- data/lib/git_hub/base.rb +52 -10
- data/lib/git_hub/commit.rb +45 -0
- data/lib/git_hub/repo.rb +47 -51
- data/rdoc/classes/GitHub/Api.html +300 -0
- data/rdoc/classes/GitHub/Base.html +423 -0
- data/rdoc/classes/GitHub/Repo.html +738 -0
- data/rdoc/classes/GitHub.html +310 -0
- data/rdoc/created.rid +1 -0
- data/rdoc/files/README_rdoc.html +171 -0
- data/rdoc/files/lib/git_hub/api_rb.html +103 -0
- data/rdoc/files/lib/git_hub/base_rb.html +101 -0
- data/rdoc/files/lib/git_hub/repo_rb.html +91 -0
- data/rdoc/files/lib/git_hub_rb.html +91 -0
- data/rdoc/fr_class_index.html +33 -0
- data/rdoc/fr_file_index.html +35 -0
- data/rdoc/fr_method_index.html +81 -0
- data/rdoc/index.html +23 -0
- data/rdoc/rdoc-style.css +299 -0
- data/spec/git_hub/base_spec.rb +2 -2
- data/spec/git_hub/commit_spec.rb +53 -0
- data/spec/git_hub/repo_spec.rb +123 -85
- data/spec/spec_helper.rb +35 -8
- data/spec/stubs/api_route_error.res +14 -0
- data/spec/stubs/commits/list/joe007/fine_repo/master/README.res +28 -0
- data/spec/stubs/commits/list/joe007/fine_repo/master.res +84 -0
- data/spec/stubs/commits/show/joe007/fine_repo/5e61f0687c40ca48214d09dc7ae2d0d0d8fbfeb8.res +38 -0
- data/spec/stubs/repos/create.1.res +22 -0
- data/spec/stubs/repos/{create.res → create.2.res} +0 -0
- data/spec/stubs/repos/create.3.res +100 -0
- data/spec/stubs/repos/create.4.res +14 -0
- data/spec/stubs/repos/show/joe007/fine_repo/branches.res +15 -0
- data/spec/stubs/repos/show/joe007/fine_repo/tags.res +17 -0
- metadata +30 -3
@@ -0,0 +1,100 @@
|
|
1
|
+
HTTP/1.1 500 Internal Server Error
|
2
|
+
Server: nginx/0.7.61
|
3
|
+
Date: Fri, 08 Jan 2010 08:52:06 GMT
|
4
|
+
Content-Type: text/html
|
5
|
+
Content-Length: 3637
|
6
|
+
Connection: close
|
7
|
+
|
8
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
9
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
10
|
+
|
11
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
12
|
+
<head>
|
13
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
14
|
+
<title>GitHub - Server Error</title>
|
15
|
+
<link href="http://github.com/stylesheets/bundle_common.css" media="screen" rel="stylesheet" type="text/css" />
|
16
|
+
<link href="http://github.com/stylesheets/bundle_github.css" media="screen" rel="stylesheet" type="text/css" />
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="main">
|
20
|
+
<div id="header" class="basic">
|
21
|
+
|
22
|
+
<div class="site">
|
23
|
+
<div class="logo">
|
24
|
+
<a href="/"><img src="/images/modules/header/logov3.png" alt="git-hub" /></a>
|
25
|
+
</div>
|
26
|
+
<div class="actions">
|
27
|
+
<a href="/">home</a>
|
28
|
+
<a href="/login">login</a>
|
29
|
+
<a href="/signup">signup!</a>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
|
34
|
+
<div class="site">
|
35
|
+
<div id="errornew" class="standard">
|
36
|
+
<img src="/images/error/octocat_sad.gif" alt="Octocat is sad" />
|
37
|
+
<h1>There was a problem serving the requested page.</h1>
|
38
|
+
<p>
|
39
|
+
Usually this means that an unexpected error happened while<br />
|
40
|
+
processing your request. Here's what you can try next:
|
41
|
+
</p>
|
42
|
+
<ul>
|
43
|
+
<li>
|
44
|
+
<a href="javascript: window.location.reload()">Refresh the page,</a>
|
45
|
+
the problem may be temporary.
|
46
|
+
</li>
|
47
|
+
<li>
|
48
|
+
If the problem persists,
|
49
|
+
<a href="http://github.com/contact">contact us</a>
|
50
|
+
and we'll help get you on your way.
|
51
|
+
</li>
|
52
|
+
</ul>
|
53
|
+
</div>
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<div class="push"></div>
|
57
|
+
</div>
|
58
|
+
|
59
|
+
<div id="footer">
|
60
|
+
<div class="site">
|
61
|
+
|
62
|
+
<div class="info">
|
63
|
+
<div class="links">
|
64
|
+
<a href="http://github.com/blog/148-github-shirts-now-available">T-Shirts</a> |
|
65
|
+
<a href="http://github.com/blog">Blog</a> |
|
66
|
+
<a href="http://support.github.com/">Support</a> |
|
67
|
+
<a href="http://github.com/training">Git Training</a> |
|
68
|
+
<a href="http://github.com/contact">Contact</a> |
|
69
|
+
<a href="http://groups.google.com/group/github/">Google Group</a> |
|
70
|
+
<a href="http://twitter.com/github">Status</a>
|
71
|
+
</div>
|
72
|
+
<div class="company">
|
73
|
+
GitHub is <a href="http://logicalawesome.com/">Logical Awesome</a> ©2010 | <a href="http://github.com/site/terms">Terms of Service</a> | <a href="http://github.com/site/privacy">Privacy Policy</a>
|
74
|
+
</div>
|
75
|
+
</div>
|
76
|
+
<div class="sponsor">
|
77
|
+
<div>
|
78
|
+
Powered by the <a href="http://www.rackspace.com ">Dedicated
|
79
|
+
Servers</a> and<br/> <a href="http://www.rackspacecloud.com">Cloud
|
80
|
+
Computing</a> of Rackspace Hosting<span>®</span>
|
81
|
+
</div>
|
82
|
+
<a href="http://www.rackspace.com">
|
83
|
+
<img src="/images/modules/footer/rackspace_logo.png" alt="Dedicated Server" />
|
84
|
+
</a>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
<script type="text/javascript">
|
90
|
+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
91
|
+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
92
|
+
</script>
|
93
|
+
<script type="text/javascript">
|
94
|
+
var pageTracker = _gat._getTracker("UA-3769691-2");
|
95
|
+
pageTracker._initData();
|
96
|
+
pageTracker._trackPageview();
|
97
|
+
</script>
|
98
|
+
|
99
|
+
</body>
|
100
|
+
</html>
|
@@ -0,0 +1,14 @@
|
|
1
|
+
HTTP/1.1 403 Forbidden
|
2
|
+
Server: nginx/0.7.61
|
3
|
+
Date: Fri, 08 Jan 2010 10:27:17 GMT
|
4
|
+
Content-Type: application/x-yaml; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
Status: 403 Forbidden
|
7
|
+
X-Runtime: 9ms
|
8
|
+
Content-Length: 49
|
9
|
+
Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
|
10
|
+
Cache-Control: no-cache
|
11
|
+
|
12
|
+
---
|
13
|
+
error:
|
14
|
+
- error: repository creation failed
|
@@ -0,0 +1,15 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx/0.7.61
|
3
|
+
Date: Fri, 08 Jan 2010 11:02:32 GMT
|
4
|
+
Content-Type: application/x-yaml; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
Status: 200 OK
|
7
|
+
ETag: "68818c74c9ed880e58c2b941cfee3ae5"
|
8
|
+
X-Runtime: 6ms
|
9
|
+
Content-Length: 67
|
10
|
+
Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
|
11
|
+
Cache-Control: private, max-age=0, must-revalidate
|
12
|
+
|
13
|
+
---
|
14
|
+
branches:
|
15
|
+
master: 5e61f0687c40ca48214d09dc7ae2d0d0d8fbfeb8
|
@@ -0,0 +1,17 @@
|
|
1
|
+
HTTP/1.1 200 OK
|
2
|
+
Server: nginx/0.7.61
|
3
|
+
Date: Fri, 08 Jan 2010 10:54:20 GMT
|
4
|
+
Content-Type: application/x-yaml; charset=utf-8
|
5
|
+
Connection: keep-alive
|
6
|
+
Status: 200 OK
|
7
|
+
ETag: "a65b17b26ce8b024c2b6c791dba8fc2e"
|
8
|
+
X-Runtime: 9ms
|
9
|
+
Content-Length: 165
|
10
|
+
Set-Cookie: _github_ses=BAh7BiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D--884981fc5aa85daf318eeff084d98e2cff92578f; path=/; expires=Wed, 01 Jan 2020 08:00:00 GMT; HttpOnly
|
11
|
+
Cache-Control: private, max-age=0, must-revalidate
|
12
|
+
|
13
|
+
---
|
14
|
+
tags:
|
15
|
+
v0.1.0: 3a70f86293b719f193f778a8710b1f83f2f7bf38
|
16
|
+
v0.1.1: f7f5dddaa37deacc83f1f56876e2b135389d03ab
|
17
|
+
v0.1.2: 5e61f0687c40ca48214d09dc7ae2d0d0d8fbfeb8
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_hub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- arvicco
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-11 00:00:00 +03:00
|
13
13
|
default_executable: git_hub
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -54,19 +54,45 @@ files:
|
|
54
54
|
- lib/git_hub.rb
|
55
55
|
- lib/git_hub/api.rb
|
56
56
|
- lib/git_hub/base.rb
|
57
|
+
- lib/git_hub/commit.rb
|
57
58
|
- lib/git_hub/repo.rb
|
59
|
+
- rdoc/classes/GitHub.html
|
60
|
+
- rdoc/classes/GitHub/Api.html
|
61
|
+
- rdoc/classes/GitHub/Base.html
|
62
|
+
- rdoc/classes/GitHub/Repo.html
|
63
|
+
- rdoc/created.rid
|
64
|
+
- rdoc/files/README_rdoc.html
|
65
|
+
- rdoc/files/lib/git_hub/api_rb.html
|
66
|
+
- rdoc/files/lib/git_hub/base_rb.html
|
67
|
+
- rdoc/files/lib/git_hub/repo_rb.html
|
68
|
+
- rdoc/files/lib/git_hub_rb.html
|
69
|
+
- rdoc/fr_class_index.html
|
70
|
+
- rdoc/fr_file_index.html
|
71
|
+
- rdoc/fr_method_index.html
|
72
|
+
- rdoc/index.html
|
73
|
+
- rdoc/rdoc-style.css
|
58
74
|
- spec/git_hub/api_spec.rb
|
59
75
|
- spec/git_hub/base_spec.rb
|
76
|
+
- spec/git_hub/commit_spec.rb
|
60
77
|
- spec/git_hub/repo_spec.rb
|
61
78
|
- spec/spec.opts
|
62
79
|
- spec/spec_helper.rb
|
63
|
-
- spec/stubs/
|
80
|
+
- spec/stubs/api_route_error.res
|
81
|
+
- spec/stubs/commits/list/joe007/fine_repo/master.res
|
82
|
+
- spec/stubs/commits/list/joe007/fine_repo/master/README.res
|
83
|
+
- spec/stubs/commits/show/joe007/fine_repo/5e61f0687c40ca48214d09dc7ae2d0d0d8fbfeb8.res
|
84
|
+
- spec/stubs/repos/create.1.res
|
85
|
+
- spec/stubs/repos/create.2.res
|
86
|
+
- spec/stubs/repos/create.3.res
|
87
|
+
- spec/stubs/repos/create.4.res
|
64
88
|
- spec/stubs/repos/delete/new_repo.1.res
|
65
89
|
- spec/stubs/repos/delete/new_repo.2.res
|
66
90
|
- spec/stubs/repos/search/joe+repo.res
|
67
91
|
- spec/stubs/repos/show/joe007.res
|
68
92
|
- spec/stubs/repos/show/joe007/err_repo.res
|
69
93
|
- spec/stubs/repos/show/joe007/fine_repo.res
|
94
|
+
- spec/stubs/repos/show/joe007/fine_repo/branches.res
|
95
|
+
- spec/stubs/repos/show/joe007/fine_repo/tags.res
|
70
96
|
- spec/stubs/repos/show/joe007/new_repo.res
|
71
97
|
has_rdoc: true
|
72
98
|
homepage: http://github.com/arvicco/git_hub
|
@@ -99,5 +125,6 @@ summary: Simple interface to github API
|
|
99
125
|
test_files:
|
100
126
|
- spec/git_hub/api_spec.rb
|
101
127
|
- spec/git_hub/base_spec.rb
|
128
|
+
- spec/git_hub/commit_spec.rb
|
102
129
|
- spec/git_hub/repo_spec.rb
|
103
130
|
- spec/spec_helper.rb
|