gisty 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +3 -8
- data/Rakefile +3 -26
- data/bin/gisty +2 -2
- data/lib/gisty.rb +79 -119
- data/test/fixtures/gists_1 +877 -0
- data/test/fixtures/gists_2 +863 -0
- data/test/fixtures/gists_3 +346 -0
- data/test/fixtures/gists_post +65 -0
- data/test/gisty_test.rb +123 -115
- metadata +12 -45
- data/test/fixtures/24835 +0 -241
- data/test/fixtures/30119 +0 -376
- data/test/fixtures/mine_login_foo_token_bar +0 -494
- data/test/fixtures/mine_page_1_login_foo_token_bar +0 -518
- data/test/fixtures/mine_page_2_login_foo_token_bar +0 -511
- data/test/fixtures/mine_page_3_login_foo_token_bar +0 -190
- data/test/fixtures/swdyh +0 -302
- data/test/fixtures/swdyh_page_4 +0 -178
data/test/fixtures/swdyh_page_4
DELETED
@@ -1,178 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
|
4
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
-
<head>
|
6
|
-
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
7
|
-
|
8
|
-
<title>Gist — GitHub</title>
|
9
|
-
|
10
|
-
<link href="/stylesheets/facebox.css" media="screen" rel="stylesheet" type="text/css" />
|
11
|
-
<link href="/stylesheets/gist/screen.css" media="screen" rel="stylesheet" type="text/css" />
|
12
|
-
<link href="/stylesheets/pygment_trac.css" media="screen" rel="stylesheet" type="text/css" />
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
</head>
|
17
|
-
|
18
|
-
<body>
|
19
|
-
<div id="main">
|
20
|
-
<div id="header" class="">
|
21
|
-
<div class="site">
|
22
|
-
<div class="logo">
|
23
|
-
<a href="/"><img src="/images/modules/header/logo_gist.png" alt="git-hub" /></a>
|
24
|
-
</div>
|
25
|
-
|
26
|
-
<div class="actions">
|
27
|
-
<a href="/">New</a>
|
28
|
-
<a href="/gists">All Gists</a>
|
29
|
-
<a href="/login?return_to=gist">Login</a>
|
30
|
-
<a href="http://github.com/signup?return_to=gist">Signup for a GitHub Account</a>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
</div>
|
34
|
-
</div>
|
35
|
-
|
36
|
-
<div class="site">
|
37
|
-
<div id="gist_data">
|
38
|
-
|
39
|
-
<div class="right">
|
40
|
-
<a href="http://github.com/swdyh">Visit swdyh on GitHub</a>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<h2>Public Gists by swdyh</h2>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
<div id="files">
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
<div class="file">
|
53
|
-
<div class="meta public inline-gravatar" style="padding-right:45px; background:#eaeaea url('http://www.gravatar.com/avatar/465e43442fc3604b4a7ad9c55bc52066?s=20&d=http%3A%2F%2Fgithub.com%2Fimages%2Fgravatars%2Fgravatar-20.png') no-repeat scroll 98.5% 50%;">
|
54
|
-
<div class="info">
|
55
|
-
<span><a href="/6938">gist: 6938</a></span>
|
56
|
-
<span></span>
|
57
|
-
</div>
|
58
|
-
<div class="right">
|
59
|
-
<span class="date">
|
60
|
-
<abbr class="relatize" title="2008-08-23 13:21:34">Sat Aug 23 13:21:34 -0700 2008</abbr>
|
61
|
-
|
62
|
-
</span>
|
63
|
-
<br style="clear:both;"/>
|
64
|
-
</div>
|
65
|
-
</div>
|
66
|
-
<div class="data syntax">
|
67
|
-
|
68
|
-
<table cellpadding="0" cellspacing="0">
|
69
|
-
<tr>
|
70
|
-
<td>
|
71
|
-
<pre class="line_numbers">
|
72
|
-
<span id="LID1" rel="#L1">1</span>
|
73
|
-
<span id="LID2" rel="#L2">2</span>
|
74
|
-
<span id="LID3" rel="#L3">3</span>
|
75
|
-
</pre>
|
76
|
-
</td>
|
77
|
-
<td width="100%">
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<div class="highlight"><pre><div class="line" id="LC1"><span class="nb">Array</span><span class="p">.</span><span class="nx">forEach</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">images</span><span class="o">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">i</span><span class="p">)</span> <span class="p">{</span></div><div class="line" id="LC2"> <span class="kd">var</span> <span class="nx">pa</span> <span class="o">=</span> <span class="nx">i</span><span class="p">.</span><span class="nx">parentNode</span></div><div class="line" id="LC3"> <span class="k">if</span> <span class="p">(</span><span class="nx">pa</span><span class="p">.</span><span class="nx">rel</span> <span class="o">&&</span> <span class="nx">pa</span><span class="p">.</span><span class="nx">rel</span><span class="p">.</span><span class="nx">match</span><span class="p">(</span><span class="sr">/^lightbox/</span><span class="p">))</span> <span class="p">{</span></div></pre></div>
|
82
|
-
|
83
|
-
</td>
|
84
|
-
</tr>
|
85
|
-
</table>
|
86
|
-
</div>
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
<div class="file">
|
94
|
-
<div class="meta public inline-gravatar" style="padding-right:45px; background:#eaeaea url('http://www.gravatar.com/avatar/465e43442fc3604b4a7ad9c55bc52066?s=20&d=http%3A%2F%2Fgithub.com%2Fimages%2Fgravatars%2Fgravatar-20.png') no-repeat scroll 98.5% 50%;">
|
95
|
-
<div class="info">
|
96
|
-
<span><a href="/3668">gist: 3668</a></span>
|
97
|
-
<span></span>
|
98
|
-
</div>
|
99
|
-
<div class="right">
|
100
|
-
<span class="date">
|
101
|
-
<abbr class="relatize" title="2008-08-01 12:15:00">Fri Aug 01 12:15:00 -0700 2008</abbr>
|
102
|
-
|
103
|
-
</span>
|
104
|
-
<br style="clear:both;"/>
|
105
|
-
</div>
|
106
|
-
</div>
|
107
|
-
<div class="data syntax">
|
108
|
-
|
109
|
-
<table cellpadding="0" cellspacing="0">
|
110
|
-
<tr>
|
111
|
-
<td>
|
112
|
-
<pre class="line_numbers">
|
113
|
-
<span id="LID1" rel="#L1">1</span>
|
114
|
-
<span id="LID2" rel="#L2">2</span>
|
115
|
-
<span id="LID3" rel="#L3">3</span>
|
116
|
-
</pre>
|
117
|
-
</td>
|
118
|
-
<td width="100%">
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
<div class="highlight"><pre><div class="line" id="LC1"><span class="c">// jsactions script.</span></div><div class="line" id="LC2"><span class="c">// download http://www.humberthumbert.net/code/codelist.html</span></div><div class="line" id="LC3"> </div></pre></div>
|
123
|
-
|
124
|
-
</td>
|
125
|
-
</tr>
|
126
|
-
</table>
|
127
|
-
</div>
|
128
|
-
</div>
|
129
|
-
|
130
|
-
|
131
|
-
</div>
|
132
|
-
|
133
|
-
<div class="pagination"><a href="/swdyh?page=3" hotkey="h" rel="prev">« Previous</a> <a href="/swdyh?page=1" rel="start">1</a> <a href="/swdyh?page=2">2</a> <a href="/swdyh?page=3" rel="prev">3</a> <span class="current">4</span> <span class="disabled">Next »</span></div>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<br/>
|
138
|
-
|
139
|
-
</div> <!-- gist_data -->
|
140
|
-
|
141
|
-
<div id="gist_meta">
|
142
|
-
</div>
|
143
|
-
|
144
|
-
</div> <!-- site -->
|
145
|
-
|
146
|
-
<div class="push"></div>
|
147
|
-
|
148
|
-
</div>
|
149
|
-
|
150
|
-
<div id="footer">
|
151
|
-
<div class="site">
|
152
|
-
<div class="info">
|
153
|
-
<div style="float: left; margin-right: 2em; margin-top: -.6em;">
|
154
|
-
<a href="http://github.com/">
|
155
|
-
<img src="/images/modules/header/logo_white.png" alt="GitHub" />
|
156
|
-
</a>
|
157
|
-
</div>
|
158
|
-
<div class="links" style="float: left; width: 18em;">
|
159
|
-
<a href="http://github.com/blog"><strong>The Github Blog</strong></a> |
|
160
|
-
<a href="http://support.github.com/">Support</a> |
|
161
|
-
<a href="http://github.com/contact">Contact Us</a>
|
162
|
-
</div>
|
163
|
-
<div class="company">
|
164
|
-
<span id="_rrt" title="0.34286s from gist.github.com">It's</span>
|
165
|
-
<a href="http://logicalawesome.com/">Logical Awesome</a> | ©2008
|
166
|
-
</div>
|
167
|
-
</div>
|
168
|
-
<div class="sponsor">
|
169
|
-
<a href="http://engineyard.com">Hosting provided by</a>
|
170
|
-
<a href="http://engineyard.com">
|
171
|
-
<img src="/images/modules/footer/engine_yard_logo.gif" alt="Hosted by Engine Yard" />
|
172
|
-
</a>
|
173
|
-
</div>
|
174
|
-
|
175
|
-
</div>
|
176
|
-
</div>
|
177
|
-
</body>
|
178
|
-
</html>
|