apphunk 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,117 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>Apphunk::Remote</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
- <link rel="stylesheet" href="../../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../../css/main.css" type="text/css" media="screen" />
10
- <script src="../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
- <script src="../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
- </head>
14
-
15
- <body>
16
- <div class="banner">
17
- <h1>
18
- <span class="type">Module</span>
19
- Apphunk::Remote
20
-
21
- </h1>
22
- <ul class="files">
23
-
24
- <li><a href="../../files/lib/apphunk/remote/result_rb.html">lib/apphunk/remote/result.rb</a></li>
25
-
26
- <li><a href="../../files/lib/apphunk/remote_rb.html">lib/apphunk/remote.rb</a></li>
27
-
28
- </ul>
29
- </div>
30
- <div id="bodyContent">
31
- <div id="content">
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
-
40
-
41
- <div class="sectiontitle">Methods</div>
42
- <dl class="methods">
43
-
44
- <dt>P</dt>
45
- <dd>
46
- <ul>
47
-
48
- <li><a href="#M000005">post</a></li>
49
-
50
- </ul>
51
- </dd>
52
-
53
- </dl>
54
-
55
-
56
-
57
-
58
-
59
-
60
-
61
- <div class="sectiontitle">Classes and Modules</div>
62
- <ul>
63
-
64
- <li><span class="type">CLASS</span> <a href="Remote/Result.html">Apphunk::Remote::Result</a></li>
65
-
66
- </ul>
67
-
68
-
69
-
70
-
71
-
72
-
73
-
74
- <div class="sectiontitle">Class Public methods</div>
75
-
76
- <div class="method">
77
- <div class="title" id="M000005">
78
-
79
- <a name="M000005"></a><b>post</b>(url, payload = {}, post_timeout = 30)
80
-
81
- </div>
82
-
83
-
84
-
85
-
86
- <div class="sourcecode">
87
- <p class="source-link">
88
- Source: <a href="javascript:toggleSource('M000005_source')" id="l_M000005_source">show</a>
89
-
90
- | <a href="http://github.com/apphunk/apphunk/blob/48fc95d4142cff080234f5d745b1ba413803411e/lib/apphunk/remote.rb#L12" target="_blank" class="github_url">on GitHub</a>
91
-
92
- </p>
93
- <div id="M000005_source" class="dyn-source">
94
- <pre><span class="ruby-comment cmt"># File lib/apphunk/remote.rb, line 12</span>
95
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post</span>(<span class="ruby-identifier">url</span>, <span class="ruby-identifier">payload</span> = {}, <span class="ruby-identifier">post_timeout</span> = <span class="ruby-value">30</span>)
96
- <span class="ruby-keyword kw">begin</span>
97
- <span class="ruby-constant">Timeout</span>.<span class="ruby-identifier">timeout</span>(<span class="ruby-identifier">post_timeout</span>) <span class="ruby-keyword kw">do</span>
98
- <span class="ruby-identifier">uri</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>)
99
- <span class="ruby-identifier">result</span> = <span class="ruby-constant">Remote</span><span class="ruby-operator">::</span><span class="ruby-constant">Result</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:response</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">post_form</span>(<span class="ruby-identifier">uri</span>, <span class="ruby-identifier">payload</span>))
100
- <span class="ruby-identifier">result</span>.<span class="ruby-identifier">status</span> = <span class="ruby-identifier">:ok</span>
101
- <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>
102
- <span class="ruby-keyword kw">end</span>
103
- <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">SocketError</span>, <span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ECONNREFUSED</span>
104
- <span class="ruby-constant">Remote</span><span class="ruby-operator">::</span><span class="ruby-constant">Result</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:status</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:connection_error</span>)
105
- <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Timeout</span><span class="ruby-operator">::</span><span class="ruby-constant">Error</span>
106
- <span class="ruby-constant">Remote</span><span class="ruby-operator">::</span><span class="ruby-constant">Result</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">:status</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:timeout</span>)
107
- <span class="ruby-keyword kw">end</span>
108
- <span class="ruby-keyword kw">end</span></pre>
109
- </div>
110
- </div>
111
-
112
- </div>
113
-
114
- </div>
115
- </div>
116
- </body>
117
- </html>
@@ -1,125 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
- <head>
6
- <title>Apphunk::Remote::Result</title>
7
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
8
- <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
9
- <link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
10
- <script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
11
- <script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
12
- <script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
13
- </head>
14
-
15
- <body>
16
- <div class="banner">
17
- <h1>
18
- <span class="type">Class</span>
19
- Apphunk::Remote::Result
20
-
21
- <span class="parent">&lt;
22
-
23
- Object
24
-
25
- </span>
26
-
27
- </h1>
28
- <ul class="files">
29
-
30
- <li><a href="../../../files/lib/apphunk/remote/result_rb.html">lib/apphunk/remote/result.rb</a></li>
31
-
32
- </ul>
33
- </div>
34
- <div id="bodyContent">
35
- <div id="content">
36
-
37
-
38
-
39
-
40
-
41
-
42
-
43
-
44
-
45
- <div class="sectiontitle">Methods</div>
46
- <dl class="methods">
47
-
48
- <dt>N</dt>
49
- <dd>
50
- <ul>
51
-
52
- <li><a href="#M000004">new</a></li>
53
-
54
- </ul>
55
- </dd>
56
-
57
- </dl>
58
-
59
-
60
-
61
-
62
-
63
-
64
-
65
-
66
-
67
-
68
-
69
- <div class="sectiontitle">Attributes</div>
70
- <table border='0' cellpadding='5'>
71
-
72
- <tr valign='top'>
73
- <td class='attr-rw'>
74
- [RW]
75
- </td>
76
- <td class='attr-name'>status</td>
77
- <td class='attr-desc'></td>
78
- </tr>
79
-
80
- <tr valign='top'>
81
- <td class='attr-rw'>
82
- [RW]
83
- </td>
84
- <td class='attr-name'>response</td>
85
- <td class='attr-desc'></td>
86
- </tr>
87
-
88
- </table>
89
-
90
-
91
-
92
- <div class="sectiontitle">Class Public methods</div>
93
-
94
- <div class="method">
95
- <div class="title" id="M000004">
96
-
97
- <a name="M000004"></a><b>new</b>(opts = {})
98
-
99
- </div>
100
-
101
-
102
-
103
-
104
- <div class="sourcecode">
105
- <p class="source-link">
106
- Source: <a href="javascript:toggleSource('M000004_source')" id="l_M000004_source">show</a>
107
-
108
- | <a href="http://github.com/apphunk/apphunk/blob/48fc95d4142cff080234f5d745b1ba413803411e/lib/apphunk/remote/result.rb#L8" target="_blank" class="github_url">on GitHub</a>
109
-
110
- </p>
111
- <div id="M000004_source" class="dyn-source">
112
- <pre><span class="ruby-comment cmt"># File lib/apphunk/remote/result.rb, line 8</span>
113
- <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">opts</span> = {})
114
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">status</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:status</span>)
115
- <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">response</span> = <span class="ruby-identifier">opts</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:response</span>)
116
- <span class="ruby-keyword kw">end</span></pre>
117
- </div>
118
- </div>
119
-
120
- </div>
121
-
122
- </div>
123
- </div>
124
- </body>
125
- </html>
data/doc/created.rid DELETED
@@ -1 +0,0 @@
1
- Fri, 27 Nov 2009 13:37:17 +0100
data/doc/css/main.css DELETED
@@ -1,263 +0,0 @@
1
- body {
2
- font-family: "Helvetica Neue", Arial, sans-serif;
3
- background: #FFF;
4
- color: #000;
5
- margin: 0px;
6
- font-size: 0.82em;
7
- line-height: 1.25em;
8
- }
9
-
10
- a {
11
- color: #00F;
12
- text-decoration: none;
13
- }
14
-
15
- a:hover {
16
- color: #333;
17
- background: #FE8;
18
- }
19
-
20
- p {
21
- margin-bottom: 1em;
22
- }
23
-
24
- h1 {
25
- font-size: 2.1em;
26
- font-weight: normal;
27
- line-height: 1.2em;
28
- margin: 1.4em 0 0.7em 0;
29
- }
30
-
31
- h2 {
32
- font-size: 1.6em;
33
- margin: 1.8em 0 0.8em 0;
34
- font-weight: normal;
35
- line-height: 1.2em;
36
- }
37
-
38
- h3 {
39
- font-size: 1.4em;
40
- color:#555;
41
- margin: 1.4em 0 0.7em 0;
42
- font-weight: normal;
43
- }
44
-
45
- h4 {
46
- margin: 1.4em 0 0.5em 0;
47
- font-size: 1em;
48
- }
49
-
50
- .clear
51
- {
52
- clear: both;
53
- width: 0; height: 0;
54
- }
55
-
56
- dt
57
- {
58
- margin-bottom: 0.3em;
59
- font-weight: bold;
60
- }
61
-
62
- dd
63
- {
64
- margin-left: 2em;
65
- margin-bottom: 1em;
66
- }
67
-
68
- dd p
69
- {
70
- margin-top: 0.6em;
71
- }
72
-
73
- li
74
- {
75
- margin: 0 0 0.5em 2em;
76
- }
77
-
78
- ul li
79
- {
80
- list-style: disc;
81
- }
82
-
83
- ol li
84
- {
85
- list-style: decimal;
86
- }
87
-
88
- .banner
89
- {
90
- background: #EDF3FE;
91
- border-bottom: 1px solid #ccc;
92
- padding: 1em 2em 0.5em 2em;
93
- }
94
- .banner h1
95
- {
96
- font-size: 1.2em;
97
- margin: 0;
98
- }
99
-
100
- .banner h1 .type
101
- {
102
- font-size: 0.833em;
103
- display:block;
104
- }
105
-
106
- .banner h1 .type,
107
- .banner h1 .parent
108
- {
109
- color: #666;
110
- }
111
-
112
- .banner ul
113
- {
114
- margin-top: 0.3em;
115
- margin-bottom: 0;
116
- font-size: 0.85em;
117
- }
118
-
119
- .banner li
120
- {
121
- list-style: none;
122
- margin-left: 0;
123
- margin-bottom: 0;
124
- }
125
-
126
- pre
127
- {
128
- margin-bottom: 1em;
129
- }
130
-
131
- .methods dt
132
- {
133
- width: 1em;
134
- font-size: 1.5em;
135
- color:#AAA;
136
- position: absolute;
137
- font-weight: normal;
138
- margin: 0;
139
- }
140
-
141
- .methods dd
142
- {
143
- margin-left: 2.5em;
144
- min-height: 1.8em;
145
- -height: 1.8em;
146
- padding-bottom: 0.8em;
147
- }
148
-
149
-
150
- .methods ul li
151
- {
152
- margin-right: 0.7em;
153
- margin-left: 0;
154
- list-style: none;
155
- display: inline;
156
- }
157
-
158
- #content {
159
- margin: 2em;
160
- margin-left: 3.5em;
161
- margin-right: 3.5em;
162
- }
163
-
164
-
165
- .sectiontitle {
166
- margin-top: 2em;
167
- margin-bottom: 1.3em;
168
- margin-left: -1.2em;
169
- font-size: 1.2em;
170
- padding: 0 0 0.25em 0;
171
- font-weight: bold;
172
- border-bottom: 1px solid #000;
173
- }
174
-
175
- .attr-rw {
176
- padding-right: 1em;
177
- text-align: center;
178
- color: #055;
179
- }
180
-
181
- .attr-name {
182
- font-weight: bold;
183
- padding-right: 1em;
184
- }
185
-
186
- .attr-desc {
187
- }
188
-
189
- tt {
190
- font-size: 1.15em;
191
- }
192
-
193
- .attr-value {
194
- font-family: monospace;
195
- padding-left: 1em;
196
- font-size: 1.15em;
197
- }
198
-
199
- .dyn-source {
200
- display: none;
201
- background: #fffde8;
202
- color: #000;
203
- border: #ffe0bb dotted 1px;
204
- margin: 0.5em 2em 0.5em 0;
205
- padding: 0.5em;
206
- }
207
-
208
- .dyn-source .cmt {
209
- color: #00F;
210
- font-style: italic;
211
- }
212
-
213
- .dyn-source .kw {
214
- color: #070;
215
- font-weight: bold;
216
- }
217
-
218
- .description pre {
219
- padding: 0.5em;
220
- border: #ffe0bb dotted 1px;
221
- background: #fffde8;
222
- }
223
-
224
- .method {
225
- margin-bottom: 2em;
226
- }
227
- .method .description,
228
- .method .sourcecode
229
- {
230
- margin-left: 1.2em;
231
- }
232
- .method h4
233
- {
234
- border-bottom: 1px dotted #999;
235
- padding: 0 0 0.2em 0;
236
- margin-bottom: 0.8em;
237
- font-size: 1.1em;
238
- color:#333;
239
- }
240
- .method .title {
241
- border-bottom: 1px dotted #666;
242
- padding: 0 0 0.15em 0;
243
- margin: 0 0 0.5em 0;
244
- font-size: 1.2em;
245
- line-height: 1.25em;
246
- }
247
-
248
- .method .sourcecode p.source-link {
249
- text-indent: 0em;
250
- margin-top: 0.5em;
251
- }
252
-
253
- .method .aka {
254
- margin-top: 0.3em;
255
- margin-left: 1em;
256
- font-style: italic;
257
- text-indent: 2em;
258
- }
259
-
260
- .method .source-link
261
- {
262
- font-size: 0.85em;
263
- }