ez_http 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +41 -0
- data/README.md +20 -0
- data/doc/EZHttp.html +386 -0
- data/doc/_index.html +106 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +88 -0
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +173 -0
- data/doc/js/jquery.js +16 -0
- data/doc/method_list.html +54 -0
- data/doc/top-level-namespace.html +105 -0
- data/ez_http.gemspec +18 -0
- data/lib/ez_http.rb +62 -0
- metadata +98 -0
data/.gitignore
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Compiled source #
|
2
|
+
###################
|
3
|
+
*.com
|
4
|
+
*.class
|
5
|
+
*.dll
|
6
|
+
*.exe
|
7
|
+
*.o
|
8
|
+
*.so
|
9
|
+
*.gem
|
10
|
+
.yardoc
|
11
|
+
|
12
|
+
# Packages #
|
13
|
+
############
|
14
|
+
# it's better to unpack these files and commit the raw source
|
15
|
+
# git has its own built in compression methods
|
16
|
+
*.7z
|
17
|
+
*.dmg
|
18
|
+
*.gz
|
19
|
+
*.iso
|
20
|
+
*.jar
|
21
|
+
*.rar
|
22
|
+
*.tar
|
23
|
+
*.zip
|
24
|
+
|
25
|
+
# Logs and databases #
|
26
|
+
######################
|
27
|
+
*.log
|
28
|
+
*.sql
|
29
|
+
*.sqlite
|
30
|
+
|
31
|
+
# OS generated files #
|
32
|
+
######################
|
33
|
+
.DS_Store*
|
34
|
+
ehthumbs.db
|
35
|
+
Icon?
|
36
|
+
Thumbs.db
|
37
|
+
|
38
|
+
# IDE generated files #
|
39
|
+
#######################
|
40
|
+
.idea
|
41
|
+
*~
|
data/README.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# EZHttp
|
2
|
+
|
3
|
+
A helper wrapper around net/http, supports http/https(with/without certificate), post/get requests, one method call does everything.
|
4
|
+
|
5
|
+
## How to use it
|
6
|
+
response = EZHttp.Send("https://www.example.com:83/api", "post", {"key1"=>"value1"}, "application/json", nil)
|
7
|
+
puts response.body
|
8
|
+
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add the following line to your "Gemfile"
|
12
|
+
gem "ez_http"
|
13
|
+
then execute bundle install
|
14
|
+
|
15
|
+
See here for more details:
|
16
|
+
RubyGem: [http://rubygems.org/gems/ez_http](http://rubygems.org/gems/ez_htt "EZHttp RubyGem Page")
|
17
|
+
|
18
|
+
## Author
|
19
|
+
|
20
|
+
Tianyu Huang
|
data/doc/EZHttp.html
ADDED
@@ -0,0 +1,386 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: EZHttp
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.5
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
relpath = '';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="_index.html">Index (E)</a> »
|
37
|
+
|
38
|
+
|
39
|
+
<span class="title">EZHttp</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Module: EZHttp
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/ez_http.rb</dd>
|
76
|
+
|
77
|
+
</dl>
|
78
|
+
<div class="clear"></div>
|
79
|
+
|
80
|
+
<h2>Overview</h2><div class="docstring">
|
81
|
+
<div class="discussion">
|
82
|
+
|
83
|
+
<p>A helper wrapper around net/http, supports http/https(with/without
|
84
|
+
certificate), post/get requests, one method call does everything.</p>
|
85
|
+
|
86
|
+
<pre class="code ruby"><code><span class='const'>How</span> <span class='id identifier rubyid_to'>to</span> <span class='label'>use:</span>
|
87
|
+
<span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='const'>EZHttp</span><span class='period'>.</span><span class='const'>Send</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>https://www.example.com:83/api</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>post</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>key1</span><span class='tstring_end'>"</span></span><span class='op'>=></span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>value1</span><span class='tstring_end'>"</span></span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>application/json</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
88
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span></code></pre>
|
89
|
+
|
90
|
+
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<div class="tags">
|
94
|
+
|
95
|
+
<h3>Author:</h3>
|
96
|
+
<ul class="author">
|
97
|
+
|
98
|
+
<li>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
<div class='inline'>
|
105
|
+
<p>Tianyu Huang [tianhsky@yahoo.com]</p>
|
106
|
+
</div>
|
107
|
+
|
108
|
+
</li>
|
109
|
+
|
110
|
+
</ul>
|
111
|
+
|
112
|
+
</div>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
<h2>
|
121
|
+
Class Method Summary
|
122
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
123
|
+
</h2>
|
124
|
+
|
125
|
+
<ul class="summary">
|
126
|
+
|
127
|
+
<li class="public ">
|
128
|
+
<span class="summary_signature">
|
129
|
+
|
130
|
+
<a href="#Send-class_method" title="Send (class method)">+ (Net::HTTPResponse) <strong>Send</strong>(url, method, data, content_type, cert_path) </a>
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
</span>
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<span class="summary_desc"><div class='inline'>
|
144
|
+
<p>Send request to specified url and will return responses.</p>
|
145
|
+
</div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
</ul>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
<div id="class_method_details" class="method_details_list">
|
156
|
+
<h2>Class Method Details</h2>
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method_details first">
|
160
|
+
<p class="signature first" id="Send-class_method">
|
161
|
+
|
162
|
+
+ (<tt>Net::HTTPResponse</tt>) <strong>Send</strong>(url, method, data, content_type, cert_path)
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
</p><div class="docstring">
|
167
|
+
<div class="discussion">
|
168
|
+
|
169
|
+
<p>Send request to specified url and will return responses</p>
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
173
|
+
</div>
|
174
|
+
<div class="tags">
|
175
|
+
<h3>Parameters:</h3>
|
176
|
+
<ul class="param">
|
177
|
+
|
178
|
+
<li>
|
179
|
+
|
180
|
+
<span class='name'>url:</span>
|
181
|
+
|
182
|
+
|
183
|
+
<span class='type'>(<tt>String</tt>)</span>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
—
|
188
|
+
<div class='inline'>
|
189
|
+
<p>to send request to</p>
|
190
|
+
</div>
|
191
|
+
|
192
|
+
</li>
|
193
|
+
|
194
|
+
<li>
|
195
|
+
|
196
|
+
<span class='name'>method:</span>
|
197
|
+
|
198
|
+
|
199
|
+
<span class='type'>(<tt>String</tt>)</span>
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
—
|
204
|
+
<div class='inline'>
|
205
|
+
<p>is "get" or "post", if nil default is "post"</p>
|
206
|
+
</div>
|
207
|
+
|
208
|
+
</li>
|
209
|
+
|
210
|
+
<li>
|
211
|
+
|
212
|
+
<span class='name'>data:</span>
|
213
|
+
|
214
|
+
|
215
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
—
|
220
|
+
<div class='inline'>
|
221
|
+
<p>to send</p>
|
222
|
+
</div>
|
223
|
+
|
224
|
+
</li>
|
225
|
+
|
226
|
+
<li>
|
227
|
+
|
228
|
+
<span class='name'>content_type:</span>
|
229
|
+
|
230
|
+
|
231
|
+
<span class='type'>(<tt>String</tt>)</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
—
|
236
|
+
<div class='inline'>
|
237
|
+
<p>if nil default is "application/json"</p>
|
238
|
+
</div>
|
239
|
+
|
240
|
+
</li>
|
241
|
+
|
242
|
+
<li>
|
243
|
+
|
244
|
+
<span class='name'>cert_path:</span>
|
245
|
+
|
246
|
+
|
247
|
+
<span class='type'>(<tt>String</tt>)</span>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
—
|
252
|
+
<div class='inline'>
|
253
|
+
<p>to the certificate file, set nil if none</p>
|
254
|
+
</div>
|
255
|
+
|
256
|
+
</li>
|
257
|
+
|
258
|
+
</ul>
|
259
|
+
|
260
|
+
<h3>Returns:</h3>
|
261
|
+
<ul class="return">
|
262
|
+
|
263
|
+
<li>
|
264
|
+
|
265
|
+
|
266
|
+
<span class='type'>(<tt>Net::HTTPResponse</tt>)</span>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
—
|
271
|
+
<div class='inline'>
|
272
|
+
<p>response from remote server, example to access its fields: response.body,
|
273
|
+
response.status</p>
|
274
|
+
</div>
|
275
|
+
|
276
|
+
</li>
|
277
|
+
|
278
|
+
</ul>
|
279
|
+
|
280
|
+
</div><table class="source_code">
|
281
|
+
<tr>
|
282
|
+
<td>
|
283
|
+
<pre class="lines">
|
284
|
+
|
285
|
+
|
286
|
+
22
|
287
|
+
23
|
288
|
+
24
|
289
|
+
25
|
290
|
+
26
|
291
|
+
27
|
292
|
+
28
|
293
|
+
29
|
294
|
+
30
|
295
|
+
31
|
296
|
+
32
|
297
|
+
33
|
298
|
+
34
|
299
|
+
35
|
300
|
+
36
|
301
|
+
37
|
302
|
+
38
|
303
|
+
39
|
304
|
+
40
|
305
|
+
41
|
306
|
+
42
|
307
|
+
43
|
308
|
+
44
|
309
|
+
45
|
310
|
+
46
|
311
|
+
47
|
312
|
+
48
|
313
|
+
49
|
314
|
+
50
|
315
|
+
51
|
316
|
+
52
|
317
|
+
53
|
318
|
+
54
|
319
|
+
55
|
320
|
+
56
|
321
|
+
57
|
322
|
+
58
|
323
|
+
59
|
324
|
+
60
|
325
|
+
61</pre>
|
326
|
+
</td>
|
327
|
+
<td>
|
328
|
+
<pre class="code"><span class="info file"># File 'lib/ez_http.rb', line 22</span>
|
329
|
+
|
330
|
+
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='const'>Send</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span><span class='comma'>,</span> <span class='id identifier rubyid_content_type'>content_type</span><span class='comma'>,</span> <span class='id identifier rubyid_cert_path'>cert_path</span><span class='rparen'>)</span>
|
331
|
+
<span class='comment'># Parse url
|
332
|
+
</span> <span class='id identifier rubyid_uri'>uri</span> <span class='op'>=</span> <span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='rparen'>)</span>
|
333
|
+
<span class='id identifier rubyid_http'>http</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_host'>host</span><span class='comma'>,</span> <span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_port'>port</span><span class='rparen'>)</span>
|
334
|
+
|
335
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_url'>url</span><span class='period'>.</span><span class='id identifier rubyid_match'>match</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^https</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='rparen'>)</span>
|
336
|
+
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span>
|
337
|
+
<span class='kw'>end</span>
|
338
|
+
|
339
|
+
<span class='comment'># Create request obj
|
340
|
+
</span> <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
341
|
+
|
342
|
+
<span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='id identifier rubyid_method'>method</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>post</span><span class='tstring_end'>"</span></span>
|
343
|
+
<span class='kw'>case</span> <span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_downcase'>downcase</span>
|
344
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>post</span><span class='tstring_end'>"</span></span>
|
345
|
+
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Post</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_request_uri'>request_uri</span><span class='rparen'>)</span>
|
346
|
+
<span class='kw'>when</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>get</span><span class='tstring_end'>"</span></span>
|
347
|
+
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Get</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_request_uri'>request_uri</span><span class='rparen'>)</span>
|
348
|
+
<span class='kw'>else</span>
|
349
|
+
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='op'>::</span><span class='const'>Post</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_uri'>uri</span><span class='period'>.</span><span class='id identifier rubyid_request_uri'>request_uri</span><span class='rparen'>)</span>
|
350
|
+
<span class='kw'>end</span>
|
351
|
+
|
352
|
+
<span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_set_form_data'>set_form_data</span><span class='lparen'>(</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
353
|
+
<span class='id identifier rubyid_request'>request</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Content-Type</span><span class='tstring_end'>"</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_content_type'>content_type</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>application/json</span><span class='tstring_end'>"</span></span>
|
354
|
+
|
355
|
+
<span class='comment'># Add cert if any
|
356
|
+
</span> <span class='kw'>if</span> <span class='lparen'>(</span><span class='id identifier rubyid_cert_path'>cert_path</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span><span class='rparen'>)</span>
|
357
|
+
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_verify_mode'>verify_mode</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>SSL</span><span class='op'>::</span><span class='const'>VERIFY_NONE</span>
|
358
|
+
<span class='kw'>else</span>
|
359
|
+
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_use_ssl'>use_ssl</span> <span class='op'>=</span> <span class='kw'>true</span>
|
360
|
+
<span class='id identifier rubyid_pem'>pem</span> <span class='op'>=</span> <span class='const'>File</span><span class='period'>.</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_cert_path'>cert_path</span><span class='rparen'>)</span>
|
361
|
+
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_cert'>cert</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>X509</span><span class='op'>::</span><span class='const'>Certificate</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_pem'>pem</span><span class='rparen'>)</span>
|
362
|
+
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_key'>key</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>PKey</span><span class='op'>::</span><span class='const'>RSA</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_pem'>pem</span><span class='rparen'>)</span>
|
363
|
+
<span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_verify_mode'>verify_mode</span> <span class='op'>=</span> <span class='const'>OpenSSL</span><span class='op'>::</span><span class='const'>SSL</span><span class='op'>::</span><span class='const'>VERIFY_PEER</span>
|
364
|
+
<span class='kw'>end</span>
|
365
|
+
|
366
|
+
<span class='comment'># Send request and return response
|
367
|
+
</span> <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_http'>http</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
|
368
|
+
|
369
|
+
<span class='kw'>end</span></pre>
|
370
|
+
</td>
|
371
|
+
</tr>
|
372
|
+
</table>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
</div>
|
376
|
+
|
377
|
+
</div>
|
378
|
+
|
379
|
+
<div id="footer">
|
380
|
+
Generated on Sat Mar 31 14:47:49 2012 by
|
381
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
382
|
+
0.7.5 (ruby-1.9.3).
|
383
|
+
</div>
|
384
|
+
|
385
|
+
</body>
|
386
|
+
</html>
|
data/doc/_index.html
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Documentation by YARD 0.7.5
|
8
|
+
|
9
|
+
</title>
|
10
|
+
|
11
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8">
|
16
|
+
relpath = '';
|
17
|
+
if (relpath != '') relpath += '/';
|
18
|
+
</script>
|
19
|
+
|
20
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
23
|
+
|
24
|
+
|
25
|
+
</head>
|
26
|
+
<body>
|
27
|
+
<script type="text/javascript" charset="utf-8">
|
28
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
29
|
+
</script>
|
30
|
+
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
|
35
|
+
<span class="title"></span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a id="class_list_link" href="#">Class List</a>
|
44
|
+
|
45
|
+
<a id="method_list_link" href="#">Method List</a>
|
46
|
+
|
47
|
+
<a id="file_list_link" href="#">File List</a>
|
48
|
+
|
49
|
+
</div>
|
50
|
+
<div class="clear"></div>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
<iframe id="search_frame"></iframe>
|
54
|
+
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.7.5</h1>
|
56
|
+
<div id="listing">
|
57
|
+
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
|
+
|
59
|
+
<h2>File Listing</h2>
|
60
|
+
<ul id="files">
|
61
|
+
|
62
|
+
|
63
|
+
<li class="r1"><a href="index.html" title="README">README</a></li>
|
64
|
+
|
65
|
+
|
66
|
+
</ul>
|
67
|
+
|
68
|
+
<div class="clear"></div>
|
69
|
+
<h2>Namespace Listing A-Z</h2>
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<table>
|
75
|
+
<tr>
|
76
|
+
<td valign='top' width="33%">
|
77
|
+
|
78
|
+
|
79
|
+
<ul id="alpha_E" class="alpha">
|
80
|
+
<li class="letter">E</li>
|
81
|
+
<ul>
|
82
|
+
|
83
|
+
<li>
|
84
|
+
<span class='object_link'><a href="EZHttp.html" title="EZHttp (module)">EZHttp</a></span>
|
85
|
+
|
86
|
+
</li>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</ul>
|
90
|
+
|
91
|
+
</td>
|
92
|
+
</tr>
|
93
|
+
</table>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
<div id="footer">
|
100
|
+
Generated on Sat Mar 31 14:47:49 2012 by
|
101
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
102
|
+
0.7.5 (ruby-1.9.3).
|
103
|
+
</div>
|
104
|
+
|
105
|
+
</body>
|
106
|
+
</html>
|
data/doc/class_list.html
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<base id="base_target" target="_parent" />
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<script type="text/javascript" charset="utf-8">
|
22
|
+
if (window.top.frames.main) {
|
23
|
+
document.getElementById('base_target').target = 'main';
|
24
|
+
document.body.className = 'frames';
|
25
|
+
}
|
26
|
+
</script>
|
27
|
+
<div id="content">
|
28
|
+
<h1 id="full_list_header">Class List</h1>
|
29
|
+
<div id="nav">
|
30
|
+
|
31
|
+
<a target="_self" href="class_list.html">Classes</a>
|
32
|
+
|
33
|
+
<a target="_self" href="method_list.html">Methods</a>
|
34
|
+
|
35
|
+
<a target="_self" href="file_list.html">Files</a>
|
36
|
+
|
37
|
+
</div>
|
38
|
+
<div id="search">Search: <input type="text" /></div>
|
39
|
+
|
40
|
+
<ul id="full_list" class="class">
|
41
|
+
<li><span class='object_link'><a href="top-level-namespace.html" title=" (root)">Top Level Namespace</a></span></li>
|
42
|
+
<li><span class='object_link'><a href="EZHttp.html" title="EZHttp (module)">EZHttp</a></span><small class='search_info'>Top Level Namespace</small></li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
</body>
|
47
|
+
</html>
|
data/doc/css/common.css
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/* Override this file with custom rules */
|