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.
- 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,91 @@
|
|
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>File: repo.rb [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="fileHeader">
|
47
|
+
<h1>repo.rb</h1>
|
48
|
+
<table class="header-table">
|
49
|
+
<tr class="top-aligned-row">
|
50
|
+
<td><strong>Path:</strong></td>
|
51
|
+
<td>lib/git_hub/repo.rb
|
52
|
+
|
53
|
+
</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>Last Update:</strong></td>
|
57
|
+
<td>2010-01-08 11:28:29 +0300</td>
|
58
|
+
</tr>
|
59
|
+
</table>
|
60
|
+
</div>
|
61
|
+
<!-- banner header -->
|
62
|
+
|
63
|
+
<div id="bodyContent">
|
64
|
+
|
65
|
+
<div id="contextContent">
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<!-- if includes -->
|
73
|
+
|
74
|
+
<div id="section">
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if method_list -->
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="validator-badges">
|
87
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
</body>
|
91
|
+
</html>
|
@@ -0,0 +1,91 @@
|
|
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>File: git_hub.rb [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="fileHeader">
|
47
|
+
<h1>git_hub.rb</h1>
|
48
|
+
<table class="header-table">
|
49
|
+
<tr class="top-aligned-row">
|
50
|
+
<td><strong>Path:</strong></td>
|
51
|
+
<td>lib/git_hub.rb
|
52
|
+
|
53
|
+
</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>Last Update:</strong></td>
|
57
|
+
<td>2010-01-05 20:54:11 +0300</td>
|
58
|
+
</tr>
|
59
|
+
</table>
|
60
|
+
</div>
|
61
|
+
<!-- banner header -->
|
62
|
+
|
63
|
+
<div id="bodyContent">
|
64
|
+
|
65
|
+
<div id="contextContent">
|
66
|
+
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<!-- if includes -->
|
73
|
+
|
74
|
+
<div id="section">
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<!-- if method_list -->
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="validator-badges">
|
87
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
88
|
+
</div>
|
89
|
+
|
90
|
+
</body>
|
91
|
+
</html>
|
@@ -0,0 +1,33 @@
|
|
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
|
+
<!--
|
5
|
+
|
6
|
+
Classes [zemax 0.1.0
|
7
|
+
]
|
8
|
+
|
9
|
+
-->
|
10
|
+
<head>
|
11
|
+
<title>Classes [zemax 0.1.0
|
12
|
+
]</title>
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
14
|
+
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
15
|
+
<base target="docwin" />
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<div class="index">
|
19
|
+
<h1 class="section-bar">Classes</h1>
|
20
|
+
<div id="index-entries">
|
21
|
+
|
22
|
+
<a href="classes/GitHub.html">GitHub</a><br />
|
23
|
+
|
24
|
+
<a href="classes/GitHub/Api.html">GitHub::Api</a><br />
|
25
|
+
|
26
|
+
<a href="classes/GitHub/Base.html">GitHub::Base</a><br />
|
27
|
+
|
28
|
+
<a href="classes/GitHub/Repo.html">GitHub::Repo</a><br />
|
29
|
+
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,35 @@
|
|
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
|
+
<!--
|
5
|
+
|
6
|
+
Files [zemax 0.1.0
|
7
|
+
]
|
8
|
+
|
9
|
+
-->
|
10
|
+
<head>
|
11
|
+
<title>Files [zemax 0.1.0
|
12
|
+
]</title>
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
14
|
+
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
15
|
+
<base target="docwin" />
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<div class="index">
|
19
|
+
<h1 class="section-bar">Files</h1>
|
20
|
+
<div id="index-entries">
|
21
|
+
|
22
|
+
<a href="files/README_rdoc.html">README.rdoc</a><br />
|
23
|
+
|
24
|
+
<a href="files/lib/git_hub_rb.html">lib/git_hub.rb</a><br />
|
25
|
+
|
26
|
+
<a href="files/lib/git_hub/api_rb.html">lib/git_hub/api.rb</a><br />
|
27
|
+
|
28
|
+
<a href="files/lib/git_hub/base_rb.html">lib/git_hub/base.rb</a><br />
|
29
|
+
|
30
|
+
<a href="files/lib/git_hub/repo_rb.html">lib/git_hub/repo.rb</a><br />
|
31
|
+
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</body>
|
35
|
+
</html>
|
@@ -0,0 +1,81 @@
|
|
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
|
+
<!--
|
5
|
+
|
6
|
+
Methods [zemax 0.1.0
|
7
|
+
]
|
8
|
+
|
9
|
+
-->
|
10
|
+
<head>
|
11
|
+
<title>Methods [zemax 0.1.0
|
12
|
+
]</title>
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
14
|
+
<link rel="stylesheet" href="rdoc-style.css" type="text/css" />
|
15
|
+
<base target="docwin" />
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<div class="index">
|
19
|
+
<h1 class="section-bar">Methods</h1>
|
20
|
+
<div id="index-entries">
|
21
|
+
|
22
|
+
<a href="classes/GitHub/Repo.html#M000027">add_collaborator (GitHub::Repo)</a><br />
|
23
|
+
|
24
|
+
<a href="classes/GitHub/Repo.html#M000025">add_service (GitHub::Repo)</a><br />
|
25
|
+
|
26
|
+
<a href="classes/GitHub/Base.html#M000017">api (GitHub::Base)</a><br />
|
27
|
+
|
28
|
+
<a href="classes/GitHub/Base.html#M000014">api (GitHub::Base)</a><br />
|
29
|
+
|
30
|
+
<a href="classes/GitHub/Api.html#M000005">auth (GitHub::Api)</a><br />
|
31
|
+
|
32
|
+
<a href="classes/GitHub/Api.html#M000006">authenticated? (GitHub::Api)</a><br />
|
33
|
+
|
34
|
+
<a href="classes/GitHub/Base.html#M000010">base_uri (GitHub::Base)</a><br />
|
35
|
+
|
36
|
+
<a href="classes/GitHub/Api.html#M000007">classify (GitHub::Api)</a><br />
|
37
|
+
|
38
|
+
<a href="classes/GitHub/Repo.html#M000021">clone_url (GitHub::Repo)</a><br />
|
39
|
+
|
40
|
+
<a href="classes/GitHub/Repo.html#M000023">create (GitHub::Repo)</a><br />
|
41
|
+
|
42
|
+
<a href="classes/GitHub/Repo.html#M000024">delete (GitHub::Repo)</a><br />
|
43
|
+
|
44
|
+
<a href="classes/GitHub/Repo.html#M000022">find (GitHub::Repo)</a><br />
|
45
|
+
|
46
|
+
<a href="classes/GitHub/Repo.html#M000019">fork? (GitHub::Repo)</a><br />
|
47
|
+
|
48
|
+
<a href="classes/GitHub/Base.html#M000012">get (GitHub::Base)</a><br />
|
49
|
+
|
50
|
+
<a href="classes/GitHub/Base.html#M000015">get (GitHub::Base)</a><br />
|
51
|
+
|
52
|
+
<a href="classes/GitHub.html#M000002">libpath (GitHub)</a><br />
|
53
|
+
|
54
|
+
<a href="classes/GitHub/Base.html#M000009">new (GitHub::Base)</a><br />
|
55
|
+
|
56
|
+
<a href="classes/GitHub/Repo.html#M000018">new (GitHub::Repo)</a><br />
|
57
|
+
|
58
|
+
<a href="classes/GitHub.html#M000003">path (GitHub)</a><br />
|
59
|
+
|
60
|
+
<a href="classes/GitHub/Base.html#M000013">post (GitHub::Base)</a><br />
|
61
|
+
|
62
|
+
<a href="classes/GitHub/Base.html#M000016">post (GitHub::Base)</a><br />
|
63
|
+
|
64
|
+
<a href="classes/GitHub/Repo.html#M000020">private? (GitHub::Repo)</a><br />
|
65
|
+
|
66
|
+
<a href="classes/GitHub/Repo.html#M000028">remove_collaborator (GitHub::Repo)</a><br />
|
67
|
+
|
68
|
+
<a href="classes/GitHub/Repo.html#M000026">remove_service (GitHub::Repo)</a><br />
|
69
|
+
|
70
|
+
<a href="classes/GitHub/Base.html#M000011">request (GitHub::Base)</a><br />
|
71
|
+
|
72
|
+
<a href="classes/GitHub/Api.html#M000008">request (GitHub::Api)</a><br />
|
73
|
+
|
74
|
+
<a href="classes/GitHub.html#M000004">require_all_libs_relative_to (GitHub)</a><br />
|
75
|
+
|
76
|
+
<a href="classes/GitHub.html#M000001">version (GitHub)</a><br />
|
77
|
+
|
78
|
+
</div>
|
79
|
+
</div>
|
80
|
+
</body>
|
81
|
+
</html>
|
data/rdoc/index.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<!--
|
5
|
+
|
6
|
+
zemax 0.1.0
|
7
|
+
|
8
|
+
|
9
|
+
-->
|
10
|
+
<head>
|
11
|
+
<title>zemax 0.1.0
|
12
|
+
</title>
|
13
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
14
|
+
</head>
|
15
|
+
<frameset rows="20%, 80%">
|
16
|
+
<frameset cols="25%,35%,45%">
|
17
|
+
<frame src="fr_file_index.html" title="Files" name="Files" />
|
18
|
+
<frame src="fr_class_index.html" name="Classes" />
|
19
|
+
<frame src="fr_method_index.html" name="Methods" />
|
20
|
+
</frameset>
|
21
|
+
<frame src="files/README_rdoc.html" name="docwin" />
|
22
|
+
</frameset>
|
23
|
+
</html>
|
data/rdoc/rdoc-style.css
ADDED
@@ -0,0 +1,299 @@
|
|
1
|
+
body {
|
2
|
+
font-family: Verdana,Arial,Helvetica,sans-serif;
|
3
|
+
font-size: 90%;
|
4
|
+
margin: 0;
|
5
|
+
margin-left: 40px;
|
6
|
+
padding: 0;
|
7
|
+
background: white;
|
8
|
+
color: black;
|
9
|
+
}
|
10
|
+
|
11
|
+
h1, h2, h3, h4 {
|
12
|
+
margin: 0;
|
13
|
+
background: transparent;
|
14
|
+
}
|
15
|
+
|
16
|
+
h1 {
|
17
|
+
font-size: 150%;
|
18
|
+
}
|
19
|
+
|
20
|
+
h2,h3,h4 {
|
21
|
+
margin-top: 1em;
|
22
|
+
}
|
23
|
+
|
24
|
+
:link, :visited {
|
25
|
+
background: #eef;
|
26
|
+
color: #039;
|
27
|
+
text-decoration: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
:link:hover, :visited:hover {
|
31
|
+
background: #039;
|
32
|
+
color: #eef;
|
33
|
+
}
|
34
|
+
|
35
|
+
/* Override the base stylesheet's Anchor inside a table cell */
|
36
|
+
td > :link, td > :visited {
|
37
|
+
background: transparent;
|
38
|
+
color: #039;
|
39
|
+
text-decoration: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
/* and inside a section title */
|
43
|
+
.section-title > :link, .section-title > :visited {
|
44
|
+
background: transparent;
|
45
|
+
color: #eee;
|
46
|
+
text-decoration: none;
|
47
|
+
}
|
48
|
+
|
49
|
+
/* === Structural elements =================================== */
|
50
|
+
|
51
|
+
.index {
|
52
|
+
margin: 0;
|
53
|
+
margin-left: -40px;
|
54
|
+
padding: 0;
|
55
|
+
font-size: 90%;
|
56
|
+
}
|
57
|
+
|
58
|
+
.index :link, .index :visited {
|
59
|
+
margin-left: 0.7em;
|
60
|
+
}
|
61
|
+
|
62
|
+
.index .section-bar {
|
63
|
+
margin-left: 0px;
|
64
|
+
padding-left: 0.7em;
|
65
|
+
background: #ccc;
|
66
|
+
font-size: small;
|
67
|
+
}
|
68
|
+
|
69
|
+
#classHeader, #fileHeader {
|
70
|
+
width: auto;
|
71
|
+
color: white;
|
72
|
+
padding: 0.5em 1.5em 0.5em 1.5em;
|
73
|
+
margin: 0;
|
74
|
+
margin-left: -40px;
|
75
|
+
border-bottom: 3px solid #006;
|
76
|
+
}
|
77
|
+
|
78
|
+
#classHeader :link, #fileHeader :link,
|
79
|
+
#classHeader :visited, #fileHeader :visited {
|
80
|
+
background: inherit;
|
81
|
+
color: white;
|
82
|
+
}
|
83
|
+
|
84
|
+
#classHeader td, #fileHeader td {
|
85
|
+
background: inherit;
|
86
|
+
color: white;
|
87
|
+
}
|
88
|
+
|
89
|
+
#fileHeader {
|
90
|
+
background: #057;
|
91
|
+
}
|
92
|
+
|
93
|
+
#classHeader {
|
94
|
+
background: #048;
|
95
|
+
}
|
96
|
+
|
97
|
+
.class-name-in-header {
|
98
|
+
font-size: 180%;
|
99
|
+
font-weight: bold;
|
100
|
+
}
|
101
|
+
|
102
|
+
#bodyContent {
|
103
|
+
padding: 0 1.5em 0 1.5em;
|
104
|
+
}
|
105
|
+
|
106
|
+
#description {
|
107
|
+
padding: 0.5em 1.5em;
|
108
|
+
background: #efefef;
|
109
|
+
border: 1px dotted #999;
|
110
|
+
}
|
111
|
+
|
112
|
+
#description h1, #description h2, #description h3,
|
113
|
+
#description h4, #description h5, #description h6 {
|
114
|
+
color: #125;
|
115
|
+
background: transparent;
|
116
|
+
}
|
117
|
+
|
118
|
+
#validator-badges {
|
119
|
+
text-align: center;
|
120
|
+
}
|
121
|
+
|
122
|
+
#validator-badges img {
|
123
|
+
border: 0;
|
124
|
+
}
|
125
|
+
|
126
|
+
#copyright {
|
127
|
+
color: #333;
|
128
|
+
background: #efefef;
|
129
|
+
font: 0.75em sans-serif;
|
130
|
+
margin-top: 5em;
|
131
|
+
margin-bottom: 0;
|
132
|
+
padding: 0.5em 2em;
|
133
|
+
}
|
134
|
+
|
135
|
+
/* === Classes =================================== */
|
136
|
+
|
137
|
+
table.header-table {
|
138
|
+
color: white;
|
139
|
+
font-size: small;
|
140
|
+
}
|
141
|
+
|
142
|
+
.type-note {
|
143
|
+
font-size: small;
|
144
|
+
color: #dedede;
|
145
|
+
}
|
146
|
+
|
147
|
+
.section-bar {
|
148
|
+
color: #333;
|
149
|
+
border-bottom: 1px solid #999;
|
150
|
+
margin-left: -20px;
|
151
|
+
}
|
152
|
+
|
153
|
+
.section-title {
|
154
|
+
background: #79a;
|
155
|
+
color: #eee;
|
156
|
+
padding: 3px;
|
157
|
+
margin-top: 2em;
|
158
|
+
margin-left: -30px;
|
159
|
+
border: 1px solid #999;
|
160
|
+
}
|
161
|
+
|
162
|
+
.top-aligned-row {
|
163
|
+
vertical-align: top
|
164
|
+
}
|
165
|
+
|
166
|
+
.bottom-aligned-row {
|
167
|
+
vertical-align: bottom
|
168
|
+
}
|
169
|
+
|
170
|
+
#diagram img {
|
171
|
+
border: 0;
|
172
|
+
}
|
173
|
+
|
174
|
+
/* --- Context section classes ----------------------- */
|
175
|
+
|
176
|
+
.context-row { }
|
177
|
+
|
178
|
+
.context-item-name {
|
179
|
+
font-family: monospace;
|
180
|
+
font-weight: bold;
|
181
|
+
color: black;
|
182
|
+
}
|
183
|
+
|
184
|
+
.context-item-value {
|
185
|
+
font-size: small;
|
186
|
+
color: #448;
|
187
|
+
}
|
188
|
+
|
189
|
+
.context-item-desc {
|
190
|
+
color: #333;
|
191
|
+
padding-left: 2em;
|
192
|
+
}
|
193
|
+
|
194
|
+
/* --- Method classes -------------------------- */
|
195
|
+
|
196
|
+
.method-detail {
|
197
|
+
background: #efefef;
|
198
|
+
padding: 0;
|
199
|
+
margin-top: 0.5em;
|
200
|
+
margin-bottom: 1em;
|
201
|
+
border: 1px dotted #ccc;
|
202
|
+
}
|
203
|
+
|
204
|
+
.method-heading {
|
205
|
+
color: black;
|
206
|
+
background: #ccc;
|
207
|
+
border-bottom: 1px solid #666;
|
208
|
+
padding: 0.2em 0.5em 0 0.5em;
|
209
|
+
}
|
210
|
+
|
211
|
+
.method-signature {
|
212
|
+
color: black;
|
213
|
+
background: inherit;
|
214
|
+
}
|
215
|
+
|
216
|
+
.method-name {
|
217
|
+
font-weight: bold;
|
218
|
+
}
|
219
|
+
|
220
|
+
.method-args {
|
221
|
+
font-style: italic;
|
222
|
+
}
|
223
|
+
|
224
|
+
.method-description {
|
225
|
+
padding: 0 0.5em 0 0.5em;
|
226
|
+
}
|
227
|
+
|
228
|
+
/* --- Source code sections -------------------- */
|
229
|
+
|
230
|
+
:link.source-toggle, :visited.source-toggle {
|
231
|
+
font-size: 90%;
|
232
|
+
}
|
233
|
+
|
234
|
+
div.method-source-code {
|
235
|
+
background: #262626;
|
236
|
+
color: #ffdead;
|
237
|
+
margin: 1em;
|
238
|
+
padding: 0.5em;
|
239
|
+
border: 1px dashed #999;
|
240
|
+
overflow: auto;
|
241
|
+
}
|
242
|
+
|
243
|
+
div.method-source-code pre {
|
244
|
+
color: #ffdead;
|
245
|
+
}
|
246
|
+
|
247
|
+
/* --- Ruby keyword styles --------------------- */
|
248
|
+
|
249
|
+
.standalone-code {
|
250
|
+
background: #221111;
|
251
|
+
color: #ffdead;
|
252
|
+
overflow: auto;
|
253
|
+
}
|
254
|
+
|
255
|
+
.ruby-constant {
|
256
|
+
color: #7fffd4;
|
257
|
+
background: transparent;
|
258
|
+
}
|
259
|
+
|
260
|
+
.ruby-keyword {
|
261
|
+
color: #00ffff;
|
262
|
+
background: transparent;
|
263
|
+
}
|
264
|
+
|
265
|
+
.ruby-ivar {
|
266
|
+
color: #eedd82;
|
267
|
+
background: transparent;
|
268
|
+
}
|
269
|
+
|
270
|
+
.ruby-operator {
|
271
|
+
color: #00ffee;
|
272
|
+
background: transparent;
|
273
|
+
}
|
274
|
+
|
275
|
+
.ruby-identifier {
|
276
|
+
color: #ffdead;
|
277
|
+
background: transparent;
|
278
|
+
}
|
279
|
+
|
280
|
+
.ruby-node {
|
281
|
+
color: #ffa07a;
|
282
|
+
background: transparent;
|
283
|
+
}
|
284
|
+
|
285
|
+
.ruby-comment {
|
286
|
+
color: #b22222;
|
287
|
+
font-weight: bold;
|
288
|
+
background: transparent;
|
289
|
+
}
|
290
|
+
|
291
|
+
.ruby-regexp {
|
292
|
+
color: #ffa07a;
|
293
|
+
background: transparent;
|
294
|
+
}
|
295
|
+
|
296
|
+
.ruby-value {
|
297
|
+
color: #7fffd4;
|
298
|
+
background: transparent;
|
299
|
+
}
|
data/spec/git_hub/base_spec.rb
CHANGED
@@ -29,9 +29,9 @@ module GitHubTest
|
|
29
29
|
described_class.post ('/blah')
|
30
30
|
end
|
31
31
|
|
32
|
-
it 'prepends get/post calls
|
32
|
+
it 'prepends get/post calls by content of @base_uri variable' do
|
33
33
|
base = described_class.new
|
34
|
-
described_class.class_eval { base_uri 'http://base1.com' }
|
34
|
+
described_class.class_eval { @base_uri = 'http://base1.com' }
|
35
35
|
api.should_receive(:request).with(:get, 'http://base1.com/blah', anything()).twice
|
36
36
|
base.get ('/blah')
|
37
37
|
described_class.get ('/blah')
|