clavem 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.gitignore +5 -1
- data/.travis-gemfile +9 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +4 -0
- data/Gemfile +5 -6
- data/README.md +3 -1
- data/bin/clavem +10 -7
- data/clavem.gemspec +3 -3
- data/doc/Clavem.html +4 -4
- data/doc/Clavem/Authorizer.html +1572 -1583
- data/doc/Clavem/Exceptions.html +4 -4
- data/doc/Clavem/Exceptions/Failure.html +4 -4
- data/doc/Clavem/Server.html +54 -57
- data/doc/Clavem/Version.html +12 -8
- data/doc/_index.html +5 -5
- data/doc/class_list.html +1 -1
- data/doc/css/style.css +2 -1
- data/doc/file.README.html +8 -6
- data/doc/frames.html +5 -7
- data/doc/index.html +8 -6
- data/doc/js/app.js +7 -2
- data/doc/top-level-namespace.html +4 -4
- data/lib/clavem.rb +1 -3
- data/lib/clavem/authorizer.rb +20 -21
- data/lib/clavem/server.rb +41 -15
- data/lib/clavem/version.rb +1 -1
- data/locales/en.yml +3 -1
- data/locales/it.yml +2 -0
- data/spec/clavem/authorizer_spec.rb +15 -9
- data/spec/clavem/server_spec.rb +21 -12
- data/spec/spec_helper.rb +0 -1
- data/test_server.rb +3 -2
- metadata +45 -59
data/doc/Clavem/Exceptions.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Clavem::Exceptions
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Clavem/Exceptions.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -116,9 +116,9 @@
|
|
116
116
|
</div>
|
117
117
|
|
118
118
|
<div id="footer">
|
119
|
-
Generated on
|
119
|
+
Generated on Sun Apr 6 15:36:21 2014 by
|
120
120
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
121
|
-
0.8.7 (ruby-2.
|
121
|
+
0.8.7.4 (ruby-2.1.0).
|
122
122
|
</div>
|
123
123
|
|
124
124
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Exception: Clavem::Exceptions::Failure
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!"
|
20
|
+
framesUrl = "../../frames.html#!Clavem/Exceptions/Failure.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -124,9 +124,9 @@
|
|
124
124
|
</div>
|
125
125
|
|
126
126
|
<div id="footer">
|
127
|
-
Generated on
|
127
|
+
Generated on Sun Apr 6 15:36:21 2014 by
|
128
128
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
129
|
-
0.8.7 (ruby-2.
|
129
|
+
0.8.7.4 (ruby-2.1.0).
|
130
130
|
</div>
|
131
131
|
|
132
132
|
</body>
|
data/doc/Clavem/Server.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: Clavem::Server
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Clavem/Server.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -73,13 +73,11 @@
|
|
73
73
|
|
74
74
|
<dt class="r1">Inherits:</dt>
|
75
75
|
<dd class="r1">
|
76
|
-
<span class="inheritName">
|
76
|
+
<span class="inheritName">Object</span>
|
77
77
|
|
78
78
|
<ul class="fullTree">
|
79
79
|
<li>Object</li>
|
80
80
|
|
81
|
-
<li class="next">EM::Connection</li>
|
82
|
-
|
83
81
|
<li class="next">Clavem::Server</li>
|
84
82
|
|
85
83
|
</ul>
|
@@ -92,15 +90,11 @@
|
|
92
90
|
|
93
91
|
|
94
92
|
|
95
|
-
<dt class="r2">Includes:</dt>
|
96
|
-
<dd class="r2">EM::HttpServer</dd>
|
97
|
-
|
98
|
-
|
99
93
|
|
100
94
|
|
101
95
|
|
102
|
-
<dt class="
|
103
|
-
<dd class="
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/clavem/server.rb</dd>
|
104
98
|
|
105
99
|
</dl>
|
106
100
|
<div class="clear"></div>
|
@@ -133,15 +127,8 @@
|
|
133
127
|
|
134
128
|
</div>
|
135
129
|
</dt>
|
136
|
-
<dd><pre class="code"><span class='
|
137
|
-
|
138
|
-
<head>
|
139
|
-
<title>Clavem</title>
|
140
|
-
<script type="text/javascript"> close_window = (function(){ window.open("", "_self", ""); window.close(); })(); </script>
|
141
|
-
</head>
|
142
|
-
<body><h4>%s</h4></body>
|
143
|
-
</html>
|
144
|
-
</span><span class='heredoc_end'>EOTEMPLATE</span></pre></dd>
|
130
|
+
<dd><pre class="code"><span class='string val'>"<html>\n<head>\n<title>Clavem</title>\n<script type=\"text/javascript\" charset=\"utf8\">(function(){ window.open(\"\", \"_self\", \"\"); window.close(); })();</script>\n</head>\n<body>\n%s\n</body>\n</html>\n"</span>
|
131
|
+
</pre></dd>
|
145
132
|
|
146
133
|
</dl>
|
147
134
|
|
@@ -211,9 +198,7 @@
|
|
211
198
|
</ul>
|
212
199
|
|
213
200
|
|
214
|
-
|
215
|
-
|
216
|
-
<div id="constructor_details" class="method_details_list">
|
201
|
+
<div id="constructor_details" class="method_details_list">
|
217
202
|
<h2>Constructor Details</h2>
|
218
203
|
|
219
204
|
<div class="method_details first">
|
@@ -260,16 +245,21 @@
|
|
260
245
|
<pre class="lines">
|
261
246
|
|
262
247
|
|
263
|
-
26
|
264
248
|
27
|
265
|
-
28
|
249
|
+
28
|
250
|
+
29
|
251
|
+
30
|
252
|
+
31</pre>
|
266
253
|
</td>
|
267
254
|
<td>
|
268
|
-
<pre class="code"><span class="info file"># File 'lib/clavem/server.rb', line
|
255
|
+
<pre class="code"><span class="info file"># File 'lib/clavem/server.rb', line 27</span>
|
256
|
+
|
257
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_initialize identifier id'>initialize</span><span class='lparen token'>(</span><span class='rubyid_authorizer identifier id'>authorizer</span><span class='rparen token'>)</span>
|
258
|
+
<span class='rubyid_@authorizer ivar id'>@authorizer</span> <span class='assign token'>=</span> <span class='rubyid_authorizer identifier id'>authorizer</span>
|
269
259
|
|
270
|
-
<span class='
|
271
|
-
|
272
|
-
|
260
|
+
<span class='rubyid_process_http_request identifier id'>process_http_request</span>
|
261
|
+
<span class='rubyid_end end kw'>end</span>
|
262
|
+
</pre>
|
273
263
|
</td>
|
274
264
|
</tr>
|
275
265
|
</table>
|
@@ -307,9 +297,6 @@
|
|
307
297
|
<pre class="lines">
|
308
298
|
|
309
299
|
|
310
|
-
31
|
311
|
-
32
|
312
|
-
33
|
313
300
|
34
|
314
301
|
35
|
315
302
|
36
|
@@ -326,31 +313,41 @@
|
|
326
313
|
47
|
327
314
|
48
|
328
315
|
49
|
329
|
-
50
|
316
|
+
50
|
317
|
+
51
|
318
|
+
52
|
319
|
+
53
|
320
|
+
54
|
321
|
+
55
|
322
|
+
56</pre>
|
330
323
|
</td>
|
331
324
|
<td>
|
332
|
-
<pre class="code"><span class="info file"># File 'lib/clavem/server.rb', line
|
333
|
-
|
334
|
-
<span class='kw'>def</span> <span class='
|
335
|
-
<span class='
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
<span class='
|
341
|
-
|
342
|
-
<span class='
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
<span class='
|
347
|
-
|
348
|
-
<span class='
|
349
|
-
|
350
|
-
|
351
|
-
<span class='
|
352
|
-
|
353
|
-
<span class='kw'>end</span
|
325
|
+
<pre class="code"><span class="info file"># File 'lib/clavem/server.rb', line 34</span>
|
326
|
+
|
327
|
+
<span class='rubyid_def def kw'>def</span> <span class='rubyid_process_http_request identifier id'>process_http_request</span>
|
328
|
+
<span class='rubyid_server identifier id'>server</span> <span class='assign token'>=</span> <span class='rubyid_create_server identifier id'>create_server</span>
|
329
|
+
<span class='rubyid_socket identifier id'>socket</span> <span class='assign token'>=</span> <span class='rubyid_server identifier id'>server</span><span class='dot token'>.</span><span class='rubyid_accept identifier id'>accept</span>
|
330
|
+
|
331
|
+
<span class='comment val'># Get the request</span>
|
332
|
+
<span class='rubyid_request identifier id'>request</span> <span class='assign token'>=</span> <span class='rubyid_socket identifier id'>socket</span><span class='dot token'>.</span><span class='rubyid_gets identifier id'>gets</span><span class='dot token'>.</span><span class='rubyid_gsub identifier id'>gsub</span><span class='lparen token'>(</span><span class='regexp val'>/^[A-Z]+\s(.+)\sHTTP.+$/</span><span class='comma token'>,</span> <span class='string val'>"\\1"</span><span class='rparen token'>)</span>
|
333
|
+
<span class='rubyid_querystring identifier id'>querystring</span> <span class='assign token'>=</span> <span class='rubyid_Addressable constant id'>Addressable</span><span class='colon2 op'>::</span><span class='rubyid_URI constant id'>URI</span><span class='dot token'>.</span><span class='rubyid_parse identifier id'>parse</span><span class='lparen token'>(</span><span class='lparen token'>(</span><span class='string val'>"%s%s"</span> <span class='mod op'>%</span> <span class='lbrack token'>[</span><span class='rubyid_@authorizer ivar id'>@authorizer</span><span class='dot token'>.</span><span class='rubyid_callback_url identifier id'>callback_url</span><span class='comma token'>,</span> <span class='rubyid_request identifier id'>request</span><span class='rbrack token'>]</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_strip identifier id'>strip</span><span class='rparen token'>)</span><span class='dot token'>.</span><span class='rubyid_query_values identifier id'>query_values</span>
|
334
|
+
|
335
|
+
<span class='comment val'># Send the response and close the socket</span>
|
336
|
+
<span class='rubyid_send_response identifier id'>send_response</span><span class='lparen token'>(</span><span class='rubyid_socket identifier id'>socket</span><span class='rparen token'>)</span>
|
337
|
+
|
338
|
+
<span class='comment val'># Handle the token</span>
|
339
|
+
<span class='rubyid_token identifier id'>token</span> <span class='assign token'>=</span> <span class='rubyid_@authorizer ivar id'>@authorizer</span><span class='dot token'>.</span><span class='rubyid_response_handler identifier id'>response_handler</span><span class='dot token'>.</span><span class='rubyid_call identifier id'>call</span><span class='lparen token'>(</span><span class='rubyid_querystring identifier id'>querystring</span><span class='rparen token'>)</span>
|
340
|
+
|
341
|
+
<span class='rubyid_if if kw'>if</span> <span class='rubyid_token identifier id'>token</span> <span class='rubyid_then then kw'>then</span>
|
342
|
+
<span class='rubyid_@authorizer ivar id'>@authorizer</span><span class='dot token'>.</span><span class='rubyid_token identifier id'>token</span> <span class='assign token'>=</span> <span class='rubyid_token identifier id'>token</span>
|
343
|
+
<span class='rubyid_@authorizer ivar id'>@authorizer</span><span class='dot token'>.</span><span class='rubyid_status identifier id'>status</span> <span class='assign token'>=</span> <span class='symbol val'>:succeeded</span>
|
344
|
+
<span class='rubyid_else else kw'>else</span>
|
345
|
+
<span class='rubyid_@authorizer ivar id'>@authorizer</span><span class='dot token'>.</span><span class='rubyid_status identifier id'>status</span> <span class='assign token'>=</span> <span class='symbol val'>:denied</span>
|
346
|
+
<span class='rubyid_end end kw'>end</span>
|
347
|
+
|
348
|
+
<span class='rubyid_server identifier id'>server</span><span class='dot token'>.</span><span class='rubyid_close identifier id'>close</span>
|
349
|
+
<span class='rubyid_end end kw'>end</span>
|
350
|
+
</pre>
|
354
351
|
</td>
|
355
352
|
</tr>
|
356
353
|
</table>
|
@@ -361,9 +358,9 @@
|
|
361
358
|
</div>
|
362
359
|
|
363
360
|
<div id="footer">
|
364
|
-
Generated on
|
361
|
+
Generated on Sun Apr 6 15:36:21 2014 by
|
365
362
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
366
|
-
0.8.7 (ruby-2.
|
363
|
+
0.8.7.4 (ruby-2.1.0).
|
367
364
|
</div>
|
368
365
|
|
369
366
|
</body>
|
data/doc/Clavem/Version.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: Clavem::Version
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!"
|
20
|
+
framesUrl = "../frames.html#!Clavem/Version.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -119,7 +119,8 @@
|
|
119
119
|
|
120
120
|
</div>
|
121
121
|
</dt>
|
122
|
-
<dd><pre class="code"><span class='
|
122
|
+
<dd><pre class="code"><span class='integer val'>2</span>
|
123
|
+
</pre></dd>
|
123
124
|
|
124
125
|
<dt id="MINOR-constant" class="">MINOR =
|
125
126
|
<div class="docstring">
|
@@ -134,7 +135,8 @@
|
|
134
135
|
|
135
136
|
</div>
|
136
137
|
</dt>
|
137
|
-
<dd><pre class="code"><span class='
|
138
|
+
<dd><pre class="code"><span class='integer val'>1</span>
|
139
|
+
</pre></dd>
|
138
140
|
|
139
141
|
<dt id="PATCH-constant" class="">PATCH =
|
140
142
|
<div class="docstring">
|
@@ -149,7 +151,8 @@
|
|
149
151
|
|
150
152
|
</div>
|
151
153
|
</dt>
|
152
|
-
<dd><pre class="code"><span class='
|
154
|
+
<dd><pre class="code"><span class='integer val'>0</span>
|
155
|
+
</pre></dd>
|
153
156
|
|
154
157
|
<dt id="STRING-constant" class="">STRING =
|
155
158
|
<div class="docstring">
|
@@ -164,7 +167,8 @@
|
|
164
167
|
|
165
168
|
</div>
|
166
169
|
</dt>
|
167
|
-
<dd><pre class="code"><span class='
|
170
|
+
<dd><pre class="code"><span class='lbrack token'>[</span><span class='rubyid_MAJOR constant id'>MAJOR</span><span class='comma token'>,</span> <span class='rubyid_MINOR constant id'>MINOR</span><span class='comma token'>,</span> <span class='rubyid_PATCH constant id'>PATCH</span><span class='rbrack token'>]</span><span class='dot token'>.</span><span class='rubyid_compact identifier id'>compact</span><span class='dot token'>.</span><span class='rubyid_join identifier id'>join</span><span class='lparen token'>(</span><span class='string val'>"."</span><span class='rparen token'>)</span>
|
171
|
+
</pre></dd>
|
168
172
|
|
169
173
|
</dl>
|
170
174
|
|
@@ -180,9 +184,9 @@
|
|
180
184
|
</div>
|
181
185
|
|
182
186
|
<div id="footer">
|
183
|
-
Generated on
|
187
|
+
Generated on Sun Apr 6 15:36:21 2014 by
|
184
188
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
185
|
-
0.8.7 (ruby-2.
|
189
|
+
0.8.7.4 (ruby-2.1.0).
|
186
190
|
</div>
|
187
191
|
|
188
192
|
</body>
|
data/doc/_index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<head>
|
5
5
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
6
|
<title>
|
7
|
-
Documentation by YARD 0.8.7
|
7
|
+
Documentation by YARD 0.8.7.4
|
8
8
|
|
9
9
|
</title>
|
10
10
|
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript" charset="utf-8">
|
16
16
|
hasFrames = window.top.frames.main ? true : false;
|
17
17
|
relpath = '';
|
18
|
-
framesUrl = "frames.html#!"
|
18
|
+
framesUrl = "frames.html#!_index.html";
|
19
19
|
</script>
|
20
20
|
|
21
21
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
<iframe id="search_frame"></iframe>
|
58
58
|
|
59
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7</h1>
|
59
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.8.7.4</h1>
|
60
60
|
<div id="listing">
|
61
61
|
<h1 class="alphaindex">Alphabetic Index</h1>
|
62
62
|
|
@@ -176,9 +176,9 @@
|
|
176
176
|
</div>
|
177
177
|
|
178
178
|
<div id="footer">
|
179
|
-
Generated on
|
179
|
+
Generated on Sun Apr 6 15:36:20 2014 by
|
180
180
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
181
|
-
0.8.7 (ruby-2.
|
181
|
+
0.8.7.4 (ruby-2.1.0).
|
182
182
|
</div>
|
183
183
|
|
184
184
|
</body>
|
data/doc/class_list.html
CHANGED
@@ -46,7 +46,7 @@
|
|
46
46
|
|
47
47
|
<ul id="full_list" class="class">
|
48
48
|
<li><span class='object_link'><a href="top-level-namespace.html" title="Top Level Namespace (root)">Top Level Namespace</a></span></li>
|
49
|
-
<li><a class='toggle'></a> <span class='object_link'><a href="Clavem.html" title="Clavem (module)">Clavem</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Clavem/Authorizer.html" title="Clavem::Authorizer (class)">Authorizer</a></span> < Object<small class='search_info'>Clavem</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Clavem/Exceptions.html" title="Clavem::Exceptions (module)">Exceptions</a></span><small class='search_info'>Clavem</small></li><ul><li><span class='object_link'><a href="Clavem/Exceptions/Failure.html" title="Clavem::Exceptions::Failure (class)">Failure</a></span> < StandardError<small class='search_info'>Clavem::Exceptions</small></li></ul><li><span class='object_link'><a href="Clavem/Server.html" title="Clavem::Server (class)">Server</a></span> <
|
49
|
+
<li><a class='toggle'></a> <span class='object_link'><a href="Clavem.html" title="Clavem (module)">Clavem</a></span><small class='search_info'>Top Level Namespace</small></li><ul><li><span class='object_link'><a href="Clavem/Authorizer.html" title="Clavem::Authorizer (class)">Authorizer</a></span> < Object<small class='search_info'>Clavem</small></li><li><a class='toggle'></a> <span class='object_link'><a href="Clavem/Exceptions.html" title="Clavem::Exceptions (module)">Exceptions</a></span><small class='search_info'>Clavem</small></li><ul><li><span class='object_link'><a href="Clavem/Exceptions/Failure.html" title="Clavem::Exceptions::Failure (class)">Failure</a></span> < StandardError<small class='search_info'>Clavem::Exceptions</small></li></ul><li><span class='object_link'><a href="Clavem/Server.html" title="Clavem::Server (class)">Server</a></span> < Object<small class='search_info'>Clavem</small></li><li><span class='object_link'><a href="Clavem/Version.html" title="Clavem::Version (module)">Version</a></span><small class='search_info'>Clavem</small></li></ul>
|
50
50
|
|
51
51
|
</ul>
|
52
52
|
</div>
|
data/doc/css/style.css
CHANGED
@@ -291,6 +291,7 @@ li.r2 { background: #fafafa; }
|
|
291
291
|
-moz-box-shadow: -2px 2px 6px #bbb;
|
292
292
|
z-index: 5000;
|
293
293
|
position: relative;
|
294
|
+
overflow-x: auto;
|
294
295
|
}
|
295
296
|
#toc.nofloat { float: none; max-width: none; border: none; padding: 0; margin: 20px 0; -webkit-box-shadow: none; -moz-box-shadow: none; }
|
296
297
|
#toc.nofloat.hidden { padding: 0; background: 0; margin-bottom: 5px; }
|
@@ -324,9 +325,9 @@ pre.code .dot + pre.code .id,
|
|
324
325
|
pre.code .rubyid_to_i pre.code .rubyid_each { color: #0085FF; }
|
325
326
|
pre.code .comment { color: #0066FF; }
|
326
327
|
pre.code .const, pre.code .constant { color: #585CF6; }
|
328
|
+
pre.code .label,
|
327
329
|
pre.code .symbol { color: #C5060B; }
|
328
330
|
pre.code .kw,
|
329
|
-
pre.code .label,
|
330
331
|
pre.code .rubyid_require,
|
331
332
|
pre.code .rubyid_extend,
|
332
333
|
pre.code .rubyid_include { color: #0000FF; }
|
data/doc/file.README.html
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
File: README
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.7
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
18
|
hasFrames = window.top.frames.main ? true : false;
|
19
19
|
relpath = '';
|
20
|
-
framesUrl = "frames.html#!
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
21
|
</script>
|
22
22
|
|
23
23
|
|
@@ -67,7 +67,9 @@
|
|
67
67
|
<a href="https://gemnasium.com/ShogunPanda/clavem"><img src="https://gemnasium.com/ShogunPanda/clavem.png?travis" alt="Dependency Status" /></a>
|
68
68
|
<a href="http://travis-ci.org/ShogunPanda/clavem"><img src="https://secure.travis-ci.org/ShogunPanda/clavem.png?branch=master" alt="Build Status" /></a>
|
69
69
|
<a href="https://codeclimate.com/github/ShogunPanda/clavem"><img src="https://codeclimate.com/github/ShogunPanda/clavem.png" alt="Code Climate" /></a>
|
70
|
-
<a href="https://coveralls.io/r/ShogunPanda/clavem"><img src="https://coveralls.io/repos/ShogunPanda/clavem/badge.png" alt="Coverage Status" /></a
|
70
|
+
<a href="https://coveralls.io/r/ShogunPanda/clavem"><img src="https://coveralls.io/repos/ShogunPanda/clavem/badge.png" alt="Coverage Status" /></a>
|
71
|
+
<a href="https://bitdeli.com/free" title="Bitdeli Badge"><img src="https://d2weczhvl823v0.cloudfront.net/ShogunPanda/clavem/trend.png" alt="Bitdeli Trend" /></a>
|
72
|
+
<iframe src="http://ghbtns.com/github-btn.html?user=ShogunPanda&repo=clavem&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="135" height="20"></iframe></p>
|
71
73
|
|
72
74
|
<p>A local callback server for oAuth web-flow.</p>
|
73
75
|
|
@@ -90,7 +92,7 @@ require “clavem”</p>
|
|
90
92
|
|
91
93
|
<h1 id="get-the-token">Get the token</h1>
|
92
94
|
<p># You can also handle callback parameter by yourself.
|
93
|
-
# url += “?oauth_callback
|
95
|
+
# url += “?oauth_callback=” + authorizer.callback_url
|
94
96
|
# authorizer.authorize(url, false)
|
95
97
|
authorizer.authorize(url)</p>
|
96
98
|
|
@@ -133,9 +135,9 @@ end
|
|
133
135
|
</div></div>
|
134
136
|
|
135
137
|
<div id="footer">
|
136
|
-
Generated on
|
138
|
+
Generated on Sun Apr 6 15:36:21 2014 by
|
137
139
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
138
|
-
0.8.7 (ruby-2.
|
140
|
+
0.8.7.4 (ruby-2.1.0).
|
139
141
|
</div>
|
140
142
|
|
141
143
|
</body>
|
data/doc/frames.html
CHANGED
@@ -4,18 +4,16 @@
|
|
4
4
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
5
|
<head>
|
6
6
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
7
|
-
<title>Documentation by YARD 0.8.7</title>
|
7
|
+
<title>Documentation by YARD 0.8.7.4</title>
|
8
8
|
</head>
|
9
9
|
<script type="text/javascript" charset="utf-8">
|
10
10
|
window.onload = function() {
|
11
|
-
var match = window.location.hash.match(/^#!(.+)/);
|
12
|
-
var name = 'index.html';
|
13
|
-
|
14
|
-
name = unescape(match[1]);
|
15
|
-
}
|
11
|
+
var match = unescape(window.location.hash).match(/^#!(.+)/);
|
12
|
+
var name = match ? match[1] : 'index.html';
|
13
|
+
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
|
16
14
|
document.writeln('<frameset cols="20%,*">' +
|
17
15
|
'<frame name="list" src="class_list.html" />' +
|
18
|
-
'<frame name="main" src="' + name + '" />' +
|
16
|
+
'<frame name="main" src="' + escape(name) + '" />' +
|
19
17
|
'</frameset>');
|
20
18
|
}
|
21
19
|
</script>
|