imgur 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +5 -0
- data/LICENSE +20 -0
- data/README.rdoc +18 -0
- data/Rakefile +57 -0
- data/VERSION +1 -0
- data/doc/Imgur.html +30 -0
- data/doc/Imgur/API.html +862 -0
- data/doc/Imgur/Image.html +245 -0
- data/doc/Imgur/ImgurError.html +80 -0
- data/doc/README.rdoc.html +54 -0
- data/doc/all-files.html +23 -0
- data/doc/all-methods.html +70 -0
- data/doc/all-namespaces.html +28 -0
- data/doc/app.js +18 -0
- data/doc/custom.css +1 -0
- data/doc/index.html +19 -0
- data/doc/jquery.js +11 -0
- data/doc/style.css +81 -0
- data/doc/syntax_highlight.css +24 -0
- data/doc/top-level-namespace.html +25 -0
- data/lib/imgur.rb +102 -0
- data/spec/cycle_spec.rb +37 -0
- data/spec/gallery_spec.rb +41 -0
- data/spec/image_stats_spec.rb +22 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/spec_image.jpg +0 -0
- metadata +144 -0
@@ -0,0 +1,245 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../custom.css" type="text/css" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
9
|
+
|
10
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
<title>Class: Imgur::Image</title>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div id="content">
|
16
|
+
<div class="section class Imgur_Image">
|
17
|
+
<h1 class="title">Class: Imgur::Image</h1>
|
18
|
+
<div class="section docstring">
|
19
|
+
<p>
|
20
|
+
Image data container
|
21
|
+
</p>
|
22
|
+
|
23
|
+
</div><div class="section attributes">
|
24
|
+
<h1>Attributes</h1>
|
25
|
+
|
26
|
+
|
27
|
+
<div class="instance">
|
28
|
+
<h2>Instance Attributes</h2>
|
29
|
+
<table>
|
30
|
+
|
31
|
+
|
32
|
+
<tr class="">
|
33
|
+
<th class='signature'>
|
34
|
+
<span class='name'>delete_hash</span>
|
35
|
+
</td>
|
36
|
+
<td class="readwrite">
|
37
|
+
[<span id='delete_hash-instance_method'>R</span><span id='delete_hash=-instance_method'>W</span>]
|
38
|
+
</td>
|
39
|
+
<td class="visibility">
|
40
|
+
public
|
41
|
+
</td>
|
42
|
+
<td class="docstring">
|
43
|
+
<p>
|
44
|
+
Sets the attribute <tt>delete_hash</tt>.
|
45
|
+
</p>
|
46
|
+
|
47
|
+
|
48
|
+
</td>
|
49
|
+
</tr>
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<tr class="">
|
54
|
+
<th class='signature'>
|
55
|
+
<span class='name'>delete_page</span>
|
56
|
+
</td>
|
57
|
+
<td class="readwrite">
|
58
|
+
[<span id='delete_page-instance_method'>R</span><span id='delete_page=-instance_method'>W</span>]
|
59
|
+
</td>
|
60
|
+
<td class="visibility">
|
61
|
+
public
|
62
|
+
</td>
|
63
|
+
<td class="docstring">
|
64
|
+
<p>
|
65
|
+
Sets the attribute <tt>delete_page</tt>.
|
66
|
+
</p>
|
67
|
+
|
68
|
+
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<tr class="">
|
75
|
+
<th class='signature'>
|
76
|
+
<span class='name'>image_hash</span>
|
77
|
+
</td>
|
78
|
+
<td class="readwrite">
|
79
|
+
[<span id='image_hash-instance_method'>R</span><span id='image_hash=-instance_method'>W</span>]
|
80
|
+
</td>
|
81
|
+
<td class="visibility">
|
82
|
+
public
|
83
|
+
</td>
|
84
|
+
<td class="docstring">
|
85
|
+
<p>
|
86
|
+
Sets the attribute <tt>image_hash</tt>.
|
87
|
+
</p>
|
88
|
+
|
89
|
+
|
90
|
+
</td>
|
91
|
+
</tr>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<tr class="">
|
96
|
+
<th class='signature'>
|
97
|
+
<span class='name'>imgur_page</span>
|
98
|
+
</td>
|
99
|
+
<td class="readwrite">
|
100
|
+
[<span id='imgur_page-instance_method'>R</span><span id='imgur_page=-instance_method'>W</span>]
|
101
|
+
</td>
|
102
|
+
<td class="visibility">
|
103
|
+
public
|
104
|
+
</td>
|
105
|
+
<td class="docstring">
|
106
|
+
<p>
|
107
|
+
Sets the attribute <tt>imgur_page</tt>.
|
108
|
+
</p>
|
109
|
+
|
110
|
+
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
<tr class="">
|
117
|
+
<th class='signature'>
|
118
|
+
<span class='name'>large_thumbnail</span>
|
119
|
+
</td>
|
120
|
+
<td class="readwrite">
|
121
|
+
[<span id='large_thumbnail-instance_method'>R</span><span id='large_thumbnail=-instance_method'>W</span>]
|
122
|
+
</td>
|
123
|
+
<td class="visibility">
|
124
|
+
public
|
125
|
+
</td>
|
126
|
+
<td class="docstring">
|
127
|
+
<p>
|
128
|
+
Sets the attribute <tt>large_thumbnail</tt>.
|
129
|
+
</p>
|
130
|
+
|
131
|
+
|
132
|
+
</td>
|
133
|
+
</tr>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<tr class="">
|
138
|
+
<th class='signature'>
|
139
|
+
<span class='name'>original_image</span>
|
140
|
+
</td>
|
141
|
+
<td class="readwrite">
|
142
|
+
[<span id='original_image-instance_method'>R</span><span id='original_image=-instance_method'>W</span>]
|
143
|
+
</td>
|
144
|
+
<td class="visibility">
|
145
|
+
public
|
146
|
+
</td>
|
147
|
+
<td class="docstring">
|
148
|
+
<p>
|
149
|
+
Sets the attribute <tt>original_image</tt>.
|
150
|
+
</p>
|
151
|
+
|
152
|
+
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
<tr class="">
|
159
|
+
<th class='signature'>
|
160
|
+
<span class='name'>small_thumbnail</span>
|
161
|
+
</td>
|
162
|
+
<td class="readwrite">
|
163
|
+
[<span id='small_thumbnail-instance_method'>R</span><span id='small_thumbnail=-instance_method'>W</span>]
|
164
|
+
</td>
|
165
|
+
<td class="visibility">
|
166
|
+
public
|
167
|
+
</td>
|
168
|
+
<td class="docstring">
|
169
|
+
<p>
|
170
|
+
Sets the attribute <tt>small_thumbnail</tt>.
|
171
|
+
</p>
|
172
|
+
|
173
|
+
|
174
|
+
</td>
|
175
|
+
</tr>
|
176
|
+
|
177
|
+
|
178
|
+
</table>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
<div class="section constants">
|
183
|
+
|
184
|
+
</div><div class="section constructor">
|
185
|
+
<h1>Constructor Summary</h1>
|
186
|
+
<div id="initialize-instance_method" class="section method">
|
187
|
+
<div class="details_title">
|
188
|
+
<div class='section methodsignature'>
|
189
|
+
<tt class='def'>
|
190
|
+
<span class='visibility'>public</span>
|
191
|
+
<span class='return_types'></span>
|
192
|
+
<span class='name'>initialize</span><span class='args'>(image_info)</span>
|
193
|
+
<span class='block'></span>
|
194
|
+
</tt>
|
195
|
+
</div>
|
196
|
+
|
197
|
+
</div><div class="section source">
|
198
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
199
|
+
<div class="source_code">
|
200
|
+
<table>
|
201
|
+
<tr>
|
202
|
+
<td>
|
203
|
+
<pre class="lines">
|
204
|
+
|
205
|
+
|
206
|
+
25
|
207
|
+
26
|
208
|
+
27
|
209
|
+
28
|
210
|
+
29
|
211
|
+
30
|
212
|
+
31
|
213
|
+
32
|
214
|
+
33</pre>
|
215
|
+
</td>
|
216
|
+
<td>
|
217
|
+
<pre class="code"><span class="info file"># File 'lib/imgur.rb', line 25</span>
|
218
|
+
|
219
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span> <span class='image_info identifier id'>image_info</span>
|
220
|
+
<span class='image_hash identifier id'>image_hash</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"image_hash"</span><span class='rbrack token'>]</span>
|
221
|
+
<span class='delete_hash identifier id'>delete_hash</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"delete_hash"</span><span class='rbrack token'>]</span>
|
222
|
+
<span class='original_image identifier id'>original_image</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"original_image"</span><span class='rbrack token'>]</span>
|
223
|
+
<span class='large_thumbnail identifier id'>large_thumbnail</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"large_thumbnail"</span><span class='rbrack token'>]</span>
|
224
|
+
<span class='small_thumbnail identifier id'>small_thumbnail</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"small_thumbnail"</span><span class='rbrack token'>]</span>
|
225
|
+
<span class='imgur_page identifier id'>imgur_page</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"imgur_page"</span><span class='rbrack token'>]</span>
|
226
|
+
<span class='delete_page identifier id'>delete_page</span> <span class='assign token'>=</span> <span class='image_info identifier id'>image_info</span><span class='lbrack token'>[</span><span class='string val'>"delete_page"</span><span class='rbrack token'>]</span>
|
227
|
+
<span class='end end kw'>end</span>
|
228
|
+
</pre>
|
229
|
+
</td>
|
230
|
+
</tr>
|
231
|
+
</table>
|
232
|
+
</div>
|
233
|
+
</div>
|
234
|
+
</div>
|
235
|
+
</div>
|
236
|
+
</div>
|
237
|
+
</div>
|
238
|
+
<div id="yard_info">
|
239
|
+
Generated on Thursday, October 15 2009 at 01:58:08 PM by
|
240
|
+
<abbr class="yard" title="Yay! A Ruby Documentation Tool"><a href="http://yard.soen.ca">YARD</a></abbr>
|
241
|
+
0.2.3.5 (ruby-1.8.7).
|
242
|
+
</div>
|
243
|
+
|
244
|
+
</body>
|
245
|
+
</html>
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="../style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="../custom.css" type="text/css" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="../syntax_highlight.css" type="text/css" charset="utf-8" />
|
9
|
+
|
10
|
+
<script src="../jquery.js" type="text/javascript" charset="utf-8"></script>
|
11
|
+
<script src="../app.js" type="text/javascript" charset="utf-8"></script>
|
12
|
+
<title>Exception: Imgur::ImgurError</title>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<div id="content">
|
16
|
+
<div class="section class Imgur_ImgurError">
|
17
|
+
<h1 class="title">Exception: Imgur::ImgurError</h1>
|
18
|
+
<div class="section inheritance">
|
19
|
+
<ul>
|
20
|
+
<li>RuntimeError</li><ul><li>Imgur::ImgurError</li>
|
21
|
+
</ul></ul>
|
22
|
+
</div><div class="section docstring">
|
23
|
+
<p>
|
24
|
+
General Imgur error container
|
25
|
+
</p>
|
26
|
+
|
27
|
+
</div><div class="section constants">
|
28
|
+
|
29
|
+
</div><div class="section constructor">
|
30
|
+
<h1>Constructor Summary</h1>
|
31
|
+
<div id="initialize-instance_method" class="section method">
|
32
|
+
<div class="details_title">
|
33
|
+
<div class='section methodsignature'>
|
34
|
+
<tt class='def'>
|
35
|
+
<span class='visibility'>public</span>
|
36
|
+
<span class='return_types'></span>
|
37
|
+
<span class='name'>initialize</span><span class='args'>(message)</span>
|
38
|
+
<span class='block'></span>
|
39
|
+
</tt>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div><div class="section source">
|
43
|
+
<span>[<a class="source_link" href="#">View source</a>]</span>
|
44
|
+
<div class="source_code">
|
45
|
+
<table>
|
46
|
+
<tr>
|
47
|
+
<td>
|
48
|
+
<pre class="lines">
|
49
|
+
|
50
|
+
|
51
|
+
13
|
52
|
+
14
|
53
|
+
15
|
54
|
+
16</pre>
|
55
|
+
</td>
|
56
|
+
<td>
|
57
|
+
<pre class="code"><span class="info file"># File 'lib/imgur.rb', line 13</span>
|
58
|
+
|
59
|
+
<span class='def def kw'>def</span> <span class='initialize identifier id'>initialize</span> <span class='message identifier id'>message</span>
|
60
|
+
<span class='@message ivar id'>@message</span> <span class='assign token'>=</span> <span class='message identifier id'>message</span>
|
61
|
+
<span class='super super kw'>super</span>
|
62
|
+
<span class='end end kw'>end</span>
|
63
|
+
</pre>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
</table>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
</div>
|
70
|
+
</div>
|
71
|
+
</div>
|
72
|
+
</div>
|
73
|
+
<div id="yard_info">
|
74
|
+
Generated on Thursday, October 15 2009 at 05:19:33 PM by
|
75
|
+
<abbr class="yard" title="Yay! A Ruby Documentation Tool"><a href="http://yard.soen.ca">YARD</a></abbr>
|
76
|
+
0.2.3.5 (ruby-1.8.7).
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</body>
|
80
|
+
</html>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="custom.css" type="text/css" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="syntax_highlight.css" type="text/css" charset="utf-8" />
|
9
|
+
|
10
|
+
<title>README.rdoc</title>
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<div id="content">
|
14
|
+
<div class="section docstring readme">
|
15
|
+
<h1>imgur</h1>
|
16
|
+
<p>
|
17
|
+
Description goes here.
|
18
|
+
</p>
|
19
|
+
<h2>Note on Patches/Pull Requests</h2>
|
20
|
+
<ul>
|
21
|
+
<li>Fork the project.
|
22
|
+
|
23
|
+
</li>
|
24
|
+
<li>Make your feature addition or bug fix.
|
25
|
+
|
26
|
+
</li>
|
27
|
+
<li>Add tests for it. This is important so I don’t break it in a future
|
28
|
+
version unintentionally.
|
29
|
+
|
30
|
+
</li>
|
31
|
+
<li>Commit, do not mess with rakefile, version, or history. (if you want to
|
32
|
+
have your own version, that is fine but bump version in a commit by itself
|
33
|
+
I can ignore when I pull)
|
34
|
+
|
35
|
+
</li>
|
36
|
+
<li>Send me a pull request. Bonus points for topic branches.
|
37
|
+
|
38
|
+
</li>
|
39
|
+
</ul>
|
40
|
+
<h2>Copyright</h2>
|
41
|
+
<p>
|
42
|
+
Copyright © 2009 jdp. See LICENSE for details.
|
43
|
+
</p>
|
44
|
+
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
<div id="yard_info">
|
48
|
+
Generated on Thursday, October 15 2009 at 05:19:33 PM by
|
49
|
+
<abbr class="yard" title="Yay! A Ruby Documentation Tool"><a href="http://yard.soen.ca">YARD</a></abbr>
|
50
|
+
0.2.3.5 (ruby-1.8.7).
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</body>
|
54
|
+
</html>
|
data/doc/all-files.html
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="custom.css" type="text/css" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="syntax_highlight.css" type="text/css" charset="utf-8" />
|
9
|
+
|
10
|
+
<title>All Files</title>
|
11
|
+
<base target="main" />
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="nav" class="files">
|
15
|
+
<h1>Files List</h1>
|
16
|
+
<ul>
|
17
|
+
|
18
|
+
<li nowrap><a href="README.rdoc.html">README.rdoc</a></li>
|
19
|
+
|
20
|
+
</ul>
|
21
|
+
</div>
|
22
|
+
</body>
|
23
|
+
</html>
|
@@ -0,0 +1,70 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
|
7
|
+
<link rel="stylesheet" href="custom.css" type="text/css" charset="utf-8" />
|
8
|
+
<link rel="stylesheet" href="syntax_highlight.css" type="text/css" charset="utf-8" />
|
9
|
+
|
10
|
+
<title>All Methods</title>
|
11
|
+
<base target="main" />
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
<div id="nav" class="methods">
|
15
|
+
<h1>Method List</h1>
|
16
|
+
<ul>
|
17
|
+
|
18
|
+
<li nowrap="nowrap" class="">
|
19
|
+
<a title="#delete" href="Imgur/API.html#delete-instance_method">#delete</a>
|
20
|
+
|
21
|
+
<em>(class API)</em>
|
22
|
+
|
23
|
+
</li>
|
24
|
+
|
25
|
+
<li nowrap="nowrap" class="">
|
26
|
+
<a title="#gallery" href="Imgur/API.html#gallery-instance_method">#gallery</a>
|
27
|
+
|
28
|
+
<em>(class API)</em>
|
29
|
+
|
30
|
+
</li>
|
31
|
+
|
32
|
+
<li nowrap="nowrap" class="">
|
33
|
+
<a title="#image_stats" href="Imgur/API.html#image_stats-instance_method">#image_stats</a>
|
34
|
+
|
35
|
+
<em>(class API)</em>
|
36
|
+
|
37
|
+
</li>
|
38
|
+
|
39
|
+
<li nowrap="nowrap" class="">
|
40
|
+
<a title="#initialize" href="Imgur/API.html#initialize-instance_method">#initialize</a>
|
41
|
+
|
42
|
+
<em>(class API)</em>
|
43
|
+
|
44
|
+
</li>
|
45
|
+
|
46
|
+
<li nowrap="nowrap" class="">
|
47
|
+
<a title="#upload_file" href="Imgur/API.html#upload_file-instance_method">#upload_file</a>
|
48
|
+
|
49
|
+
<em>(class API)</em>
|
50
|
+
|
51
|
+
</li>
|
52
|
+
|
53
|
+
<li nowrap="nowrap" class="">
|
54
|
+
<a title="#upload_from_url" href="Imgur/API.html#upload_from_url-instance_method">#upload_from_url</a>
|
55
|
+
|
56
|
+
<em>(class API)</em>
|
57
|
+
|
58
|
+
</li>
|
59
|
+
|
60
|
+
<li nowrap="nowrap" class="">
|
61
|
+
<a title="#initialize" href="Imgur/ImgurError.html#initialize-instance_method">#initialize</a>
|
62
|
+
|
63
|
+
<em>(class ImgurError)</em>
|
64
|
+
|
65
|
+
</li>
|
66
|
+
|
67
|
+
</ul>
|
68
|
+
</div>
|
69
|
+
</body>
|
70
|
+
</html>
|