rack-simple_auth 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,128 +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
- <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: Rack::SimpleAuth::HMAC
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../';
20
- framesUrl = "../../frames.html#!Rack/SimpleAuth/HMAC.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../_index.html">Index (H)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Rack.html" title="Rack (module)">Rack</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../SimpleAuth.html" title="Rack::SimpleAuth (module)">SimpleAuth</a></span></span>
36
- &raquo;
37
- <span class="title">HMAC</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Module: Rack::SimpleAuth::HMAC
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- <dt class="r1 last">Defined in:</dt>
82
- <dd class="r1 last">lib/rack/simple_auth/hmac/middleware.rb<span class="defines">,<br />
83
- lib/rack/simple_auth/hmac/config.rb</span>
84
- </dd>
85
-
86
- </dl>
87
- <div class="clear"></div>
88
-
89
- <h2>Overview</h2><div class="docstring">
90
- <div class="discussion">
91
-
92
- <p>Contains different classes for authorizing against a hmac signed request</p>
93
-
94
-
95
- </div>
96
- </div>
97
- <div class="tags">
98
-
99
-
100
- </div><h2>Defined Under Namespace</h2>
101
- <p class="children">
102
-
103
-
104
-
105
-
106
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="HMAC/Config.html" title="Rack::SimpleAuth::HMAC::Config (class)">Config</a></span>, <span class='object_link'><a href="HMAC/Middleware.html" title="Rack::SimpleAuth::HMAC::Middleware (class)">Middleware</a></span>
107
-
108
-
109
- </p>
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
-
118
-
119
- </div>
120
-
121
- <div id="footer">
122
- Generated on Wed Apr 30 09:50:21 2014 by
123
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
124
- 0.8.7.4 (ruby-2.1.1).
125
- </div>
126
-
127
- </body>
128
- </html>
@@ -1,1003 +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
- <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
- Class: Rack::SimpleAuth::HMAC::Config
8
-
9
- &mdash; Documentation by YARD 0.8.7.4
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../../../';
20
- framesUrl = "../../../frames.html#!Rack/SimpleAuth/HMAC/Config.html";
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../../../_index.html">Index (C)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../../Rack.html" title="Rack (module)">Rack</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../SimpleAuth.html" title="Rack::SimpleAuth (module)">SimpleAuth</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../HMAC.html" title="Rack::SimpleAuth::HMAC (module)">HMAC</a></span></span>
36
- &raquo;
37
- <span class="title">Config</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../../../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../../../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../../../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: Rack::SimpleAuth::HMAC::Config
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName">Hash</span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next">Hash</li>
82
-
83
- <li class="next">Rack::SimpleAuth::HMAC::Config</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
- <dt class="r2 last">Defined in:</dt>
99
- <dd class="r2 last">lib/rack/simple_auth/hmac/config.rb</dd>
100
-
101
- </dl>
102
- <div class="clear"></div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Config objects will be instantiated out of this class when using
108
- Rack::SimpleAuth::HMAC::Middleware Also the public instance attributes /
109
- virtual attributes will be populated via the Middleware DSL</p>
110
-
111
-
112
- </div>
113
- </div>
114
- <div class="tags">
115
-
116
-
117
- </div>
118
-
119
-
120
-
121
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
122
- <ul class="summary">
123
-
124
- <li class="public ">
125
- <span class="summary_signature">
126
-
127
- <a href="#logpath-instance_method" title="#logpath (instance method)">- (String) <strong>logpath</strong> </a>
128
-
129
-
130
-
131
- </span>
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
-
141
-
142
-
143
-
144
- <span class="summary_desc"><div class='inline'></div></span>
145
-
146
- </li>
147
-
148
-
149
- <li class="public ">
150
- <span class="summary_signature">
151
-
152
- <a href="#request_config-instance_method" title="#request_config (instance method)">- (Hash) <strong>request_config</strong> </a>
153
-
154
-
155
-
156
- </span>
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
- <span class="summary_desc"><div class='inline'></div></span>
170
-
171
- </li>
172
-
173
-
174
- <li class="public ">
175
- <span class="summary_signature">
176
-
177
- <a href="#secret-instance_method" title="#secret (instance method)">- (String) <strong>secret</strong> </a>
178
-
179
-
180
-
181
- </span>
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
- <span class="summary_desc"><div class='inline'>
195
- <p>Secret Attribute with nil guard.</p>
196
- </div></span>
197
-
198
- </li>
199
-
200
-
201
- <li class="public ">
202
- <span class="summary_signature">
203
-
204
- <a href="#signature-instance_method" title="#signature (instance method)">- (String) <strong>signature</strong> </a>
205
-
206
-
207
-
208
- </span>
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
-
220
-
221
- <span class="summary_desc"><div class='inline'>
222
- <p>Signature Attribute with nil guard.</p>
223
- </div></span>
224
-
225
- </li>
226
-
227
-
228
- <li class="public ">
229
- <span class="summary_signature">
230
-
231
- <a href="#tolerance-instance_method" title="#tolerance (instance method)">- (Fixnum) <strong>tolerance</strong> </a>
232
-
233
-
234
-
235
- </span>
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
-
247
-
248
- <span class="summary_desc"><div class='inline'>
249
- <p>Tolerance Attribute with nil guard.</p>
250
- </div></span>
251
-
252
- </li>
253
-
254
-
255
- <li class="public ">
256
- <span class="summary_signature">
257
-
258
- <a href="#verbose-instance_method" title="#verbose (instance method)">- (TrueClass|NilClass) <strong>verbose</strong> </a>
259
-
260
-
261
-
262
- </span>
263
-
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
- <span class="summary_desc"><div class='inline'></div></span>
276
-
277
- </li>
278
-
279
-
280
- </ul>
281
-
282
-
283
-
284
-
285
-
286
- <h2>
287
- Instance Method Summary
288
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
289
- </h2>
290
-
291
- <ul class="summary">
292
-
293
- <li class="public ">
294
- <span class="summary_signature">
295
-
296
- <a href="#method_missing-instance_method" title="#method_missing (instance method)">- (Object) <strong>method_missing</strong>(name, *args) </a>
297
-
298
-
299
-
300
- </span>
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
- <span class="summary_desc"><div class='inline'>
311
- <p>Throw Runtime error for unknown attribute.</p>
312
- </div></span>
313
-
314
- </li>
315
-
316
-
317
- </ul>
318
-
319
-
320
-
321
- <div id="method_missing_details" class="method_details_list">
322
- <h2>Dynamic Method Handling</h2>
323
- <p class="notice this">
324
- This class handles dynamic methods through the <tt>method_missing</tt> method
325
-
326
- </p>
327
-
328
- <div class="method_details first">
329
- <h3 class="signature first" id="method_missing-instance_method">
330
-
331
- - (<tt>Object</tt>) <strong>method_missing</strong>(name, *args)
332
-
333
-
334
-
335
-
336
-
337
- </h3><div class="docstring">
338
- <div class="discussion">
339
-
340
- <p>Throw Runtime error for unknown attribute</p>
341
-
342
-
343
- </div>
344
- </div>
345
- <div class="tags">
346
- <p class="tag_title">Parameters:</p>
347
- <ul class="param">
348
-
349
- <li>
350
-
351
- <span class='name'>name</span>
352
-
353
-
354
- <span class='type'>(<tt>Symbol</tt>)</span>
355
-
356
-
357
-
358
- </li>
359
-
360
- <li>
361
-
362
- <span class='name'>args</span>
363
-
364
-
365
- <span class='type'>(<tt>Array</tt>)</span>
366
-
367
-
368
-
369
- </li>
370
-
371
- </ul>
372
-
373
-
374
- </div><table class="source_code">
375
- <tr>
376
- <td>
377
- <pre class="lines">
378
-
379
-
380
- 39
381
- 40
382
- 41</pre>
383
- </td>
384
- <td>
385
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 39</span>
386
-
387
- <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
388
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown option </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>=</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
389
- <span class='kw'>end</span></pre>
390
- </td>
391
- </tr>
392
- </table>
393
- </div>
394
-
395
- </div>
396
-
397
- <div id="instance_attr_details" class="attr_details">
398
- <h2>Instance Attribute Details</h2>
399
-
400
-
401
- <span id="logpath=-instance_method"></span>
402
- <div class="method_details first">
403
- <h3 class="signature first" id="logpath-instance_method">
404
-
405
- - (<tt>String</tt>) <strong>logpath</strong>
406
-
407
-
408
-
409
-
410
-
411
- </h3><div class="docstring">
412
- <div class="discussion">
413
-
414
-
415
- </div>
416
- </div>
417
- <div class="tags">
418
-
419
- <p class="tag_title">Returns:</p>
420
- <ul class="return">
421
-
422
- <li>
423
-
424
-
425
- <span class='type'>(<tt>String</tt>)</span>
426
-
427
-
428
-
429
- </li>
430
-
431
- </ul>
432
-
433
- </div><table class="source_code">
434
- <tr>
435
- <td>
436
- <pre class="lines">
437
-
438
-
439
- 26
440
- 27
441
- 28
442
- 29
443
- 30
444
- 31
445
- 32
446
- 33
447
- 34
448
- 35
449
- 36
450
- 37
451
- 38
452
- 39
453
- 40
454
- 41
455
- 42
456
- 43
457
- 44
458
- 45
459
- 46
460
- 47
461
- 48
462
- 49
463
- 50
464
- 51
465
- 52
466
- 53
467
- 54
468
- 55
469
- 56
470
- 57
471
- 58
472
- 59
473
- 60
474
- 61
475
- 62
476
- 63
477
- 64
478
- 65
479
- 66
480
- 67
481
- 68
482
- 69</pre>
483
- </td>
484
- <td>
485
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 26</span>
486
-
487
- <span class='kw'>class</span> <span class='const'>Config</span> <span class='op'>&lt;</span> <span class='const'>Hash</span>
488
- <span class='id identifier rubyid_attr_writer'>attr_writer</span> <span class='symbol'>:tolerance</span>
489
- <span class='id identifier rubyid_attr_writer'>attr_writer</span> <span class='symbol'>:secret</span><span class='comma'>,</span> <span class='symbol'>:signature</span>
490
-
491
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:verbose</span>
492
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:logpath</span><span class='comma'>,</span> <span class='symbol'>:request_config</span>
493
-
494
- <span class='comment'>##
495
- </span> <span class='comment'># Throw Runtime error for unknown attribute
496
- </span> <span class='comment'>#
497
- </span> <span class='comment'># @param [Symbol] name
498
- </span> <span class='comment'># @param [Array] args
499
- </span> <span class='comment'>#
500
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
501
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown option </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>=</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
502
- <span class='kw'>end</span>
503
-
504
- <span class='comment'>##
505
- </span> <span class='comment'># Tolerance Attribute with nil guard
506
- </span> <span class='comment'>#
507
- </span> <span class='comment'># @return [Fixnum] tolerance
508
- </span> <span class='comment'>#
509
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_tolerance'>tolerance</span>
510
- <span class='ivar'>@tolerance</span> <span class='op'>||</span> <span class='int'>1000</span>
511
- <span class='kw'>end</span>
512
-
513
- <span class='comment'>##
514
- </span> <span class='comment'># Secret Attribute with nil guard
515
- </span> <span class='comment'>#
516
- </span> <span class='comment'># @return [String] secret
517
- </span> <span class='comment'>#
518
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_secret'>secret</span>
519
- <span class='ivar'>@secret</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
520
- <span class='kw'>end</span>
521
-
522
- <span class='comment'>##
523
- </span> <span class='comment'># Signature Attribute with nil guard
524
- </span> <span class='comment'>#
525
- </span> <span class='comment'># @return [String] signature
526
- </span> <span class='comment'>#
527
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_signature'>signature</span>
528
- <span class='ivar'>@signature</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
529
- <span class='kw'>end</span>
530
- <span class='kw'>end</span></pre>
531
- </td>
532
- </tr>
533
- </table>
534
- </div>
535
-
536
-
537
- <span id="request_config=-instance_method"></span>
538
- <div class="method_details ">
539
- <h3 class="signature " id="request_config-instance_method">
540
-
541
- - (<tt>Hash</tt>) <strong>request_config</strong>
542
-
543
-
544
-
545
-
546
-
547
- </h3><div class="docstring">
548
- <div class="discussion">
549
-
550
-
551
- </div>
552
- </div>
553
- <div class="tags">
554
-
555
- <p class="tag_title">Returns:</p>
556
- <ul class="return">
557
-
558
- <li>
559
-
560
-
561
- <span class='type'>(<tt>Hash</tt>)</span>
562
-
563
-
564
-
565
- </li>
566
-
567
- </ul>
568
-
569
- </div><table class="source_code">
570
- <tr>
571
- <td>
572
- <pre class="lines">
573
-
574
-
575
- 26
576
- 27
577
- 28
578
- 29
579
- 30
580
- 31
581
- 32
582
- 33
583
- 34
584
- 35
585
- 36
586
- 37
587
- 38
588
- 39
589
- 40
590
- 41
591
- 42
592
- 43
593
- 44
594
- 45
595
- 46
596
- 47
597
- 48
598
- 49
599
- 50
600
- 51
601
- 52
602
- 53
603
- 54
604
- 55
605
- 56
606
- 57
607
- 58
608
- 59
609
- 60
610
- 61
611
- 62
612
- 63
613
- 64
614
- 65
615
- 66
616
- 67
617
- 68
618
- 69</pre>
619
- </td>
620
- <td>
621
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 26</span>
622
-
623
- <span class='kw'>class</span> <span class='const'>Config</span> <span class='op'>&lt;</span> <span class='const'>Hash</span>
624
- <span class='id identifier rubyid_attr_writer'>attr_writer</span> <span class='symbol'>:tolerance</span>
625
- <span class='id identifier rubyid_attr_writer'>attr_writer</span> <span class='symbol'>:secret</span><span class='comma'>,</span> <span class='symbol'>:signature</span>
626
-
627
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:verbose</span>
628
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:logpath</span><span class='comma'>,</span> <span class='symbol'>:request_config</span>
629
-
630
- <span class='comment'>##
631
- </span> <span class='comment'># Throw Runtime error for unknown attribute
632
- </span> <span class='comment'>#
633
- </span> <span class='comment'># @param [Symbol] name
634
- </span> <span class='comment'># @param [Array] args
635
- </span> <span class='comment'>#
636
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
637
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown option </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>=</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
638
- <span class='kw'>end</span>
639
-
640
- <span class='comment'>##
641
- </span> <span class='comment'># Tolerance Attribute with nil guard
642
- </span> <span class='comment'>#
643
- </span> <span class='comment'># @return [Fixnum] tolerance
644
- </span> <span class='comment'>#
645
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_tolerance'>tolerance</span>
646
- <span class='ivar'>@tolerance</span> <span class='op'>||</span> <span class='int'>1000</span>
647
- <span class='kw'>end</span>
648
-
649
- <span class='comment'>##
650
- </span> <span class='comment'># Secret Attribute with nil guard
651
- </span> <span class='comment'>#
652
- </span> <span class='comment'># @return [String] secret
653
- </span> <span class='comment'>#
654
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_secret'>secret</span>
655
- <span class='ivar'>@secret</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
656
- <span class='kw'>end</span>
657
-
658
- <span class='comment'>##
659
- </span> <span class='comment'># Signature Attribute with nil guard
660
- </span> <span class='comment'>#
661
- </span> <span class='comment'># @return [String] signature
662
- </span> <span class='comment'>#
663
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_signature'>signature</span>
664
- <span class='ivar'>@signature</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
665
- <span class='kw'>end</span>
666
- <span class='kw'>end</span></pre>
667
- </td>
668
- </tr>
669
- </table>
670
- </div>
671
-
672
-
673
- <span id="secret=-instance_method"></span>
674
- <div class="method_details ">
675
- <h3 class="signature " id="secret-instance_method">
676
-
677
- - (<tt>String</tt>) <strong>secret</strong>
678
-
679
-
680
-
681
-
682
-
683
- </h3><div class="docstring">
684
- <div class="discussion">
685
-
686
- <p>Secret Attribute with nil guard</p>
687
-
688
-
689
- </div>
690
- </div>
691
- <div class="tags">
692
-
693
- <p class="tag_title">Returns:</p>
694
- <ul class="return">
695
-
696
- <li>
697
-
698
-
699
- <span class='type'>(<tt>String</tt>)</span>
700
-
701
-
702
-
703
- &mdash;
704
- <div class='inline'>
705
- <p>secret</p>
706
- </div>
707
-
708
- </li>
709
-
710
- </ul>
711
-
712
- </div><table class="source_code">
713
- <tr>
714
- <td>
715
- <pre class="lines">
716
-
717
-
718
- 57
719
- 58
720
- 59</pre>
721
- </td>
722
- <td>
723
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 57</span>
724
-
725
- <span class='kw'>def</span> <span class='id identifier rubyid_secret'>secret</span>
726
- <span class='ivar'>@secret</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
727
- <span class='kw'>end</span></pre>
728
- </td>
729
- </tr>
730
- </table>
731
- </div>
732
-
733
-
734
- <span id="signature=-instance_method"></span>
735
- <div class="method_details ">
736
- <h3 class="signature " id="signature-instance_method">
737
-
738
- - (<tt>String</tt>) <strong>signature</strong>
739
-
740
-
741
-
742
-
743
-
744
- </h3><div class="docstring">
745
- <div class="discussion">
746
-
747
- <p>Signature Attribute with nil guard</p>
748
-
749
-
750
- </div>
751
- </div>
752
- <div class="tags">
753
-
754
- <p class="tag_title">Returns:</p>
755
- <ul class="return">
756
-
757
- <li>
758
-
759
-
760
- <span class='type'>(<tt>String</tt>)</span>
761
-
762
-
763
-
764
- &mdash;
765
- <div class='inline'>
766
- <p>signature</p>
767
- </div>
768
-
769
- </li>
770
-
771
- </ul>
772
-
773
- </div><table class="source_code">
774
- <tr>
775
- <td>
776
- <pre class="lines">
777
-
778
-
779
- 66
780
- 67
781
- 68</pre>
782
- </td>
783
- <td>
784
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 66</span>
785
-
786
- <span class='kw'>def</span> <span class='id identifier rubyid_signature'>signature</span>
787
- <span class='ivar'>@signature</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
788
- <span class='kw'>end</span></pre>
789
- </td>
790
- </tr>
791
- </table>
792
- </div>
793
-
794
-
795
- <span id="tolerance=-instance_method"></span>
796
- <div class="method_details ">
797
- <h3 class="signature " id="tolerance-instance_method">
798
-
799
- - (<tt>Fixnum</tt>) <strong>tolerance</strong>
800
-
801
-
802
-
803
-
804
-
805
- </h3><div class="docstring">
806
- <div class="discussion">
807
-
808
- <p>Tolerance Attribute with nil guard</p>
809
-
810
-
811
- </div>
812
- </div>
813
- <div class="tags">
814
-
815
- <p class="tag_title">Returns:</p>
816
- <ul class="return">
817
-
818
- <li>
819
-
820
-
821
- <span class='type'>(<tt>Fixnum</tt>)</span>
822
-
823
-
824
-
825
- &mdash;
826
- <div class='inline'>
827
- <p>tolerance</p>
828
- </div>
829
-
830
- </li>
831
-
832
- </ul>
833
-
834
- </div><table class="source_code">
835
- <tr>
836
- <td>
837
- <pre class="lines">
838
-
839
-
840
- 48
841
- 49
842
- 50</pre>
843
- </td>
844
- <td>
845
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 48</span>
846
-
847
- <span class='kw'>def</span> <span class='id identifier rubyid_tolerance'>tolerance</span>
848
- <span class='ivar'>@tolerance</span> <span class='op'>||</span> <span class='int'>1000</span>
849
- <span class='kw'>end</span></pre>
850
- </td>
851
- </tr>
852
- </table>
853
- </div>
854
-
855
-
856
- <span id="verbose=-instance_method"></span>
857
- <div class="method_details ">
858
- <h3 class="signature " id="verbose-instance_method">
859
-
860
- - (<tt>TrueClass|NilClass</tt>) <strong>verbose</strong>
861
-
862
-
863
-
864
-
865
-
866
- </h3><div class="docstring">
867
- <div class="discussion">
868
-
869
-
870
- </div>
871
- </div>
872
- <div class="tags">
873
-
874
- <p class="tag_title">Returns:</p>
875
- <ul class="return">
876
-
877
- <li>
878
-
879
-
880
- <span class='type'>(<tt>TrueClass|NilClass</tt>)</span>
881
-
882
-
883
-
884
- </li>
885
-
886
- </ul>
887
-
888
- </div><table class="source_code">
889
- <tr>
890
- <td>
891
- <pre class="lines">
892
-
893
-
894
- 26
895
- 27
896
- 28
897
- 29
898
- 30
899
- 31
900
- 32
901
- 33
902
- 34
903
- 35
904
- 36
905
- 37
906
- 38
907
- 39
908
- 40
909
- 41
910
- 42
911
- 43
912
- 44
913
- 45
914
- 46
915
- 47
916
- 48
917
- 49
918
- 50
919
- 51
920
- 52
921
- 53
922
- 54
923
- 55
924
- 56
925
- 57
926
- 58
927
- 59
928
- 60
929
- 61
930
- 62
931
- 63
932
- 64
933
- 65
934
- 66
935
- 67
936
- 68
937
- 69</pre>
938
- </td>
939
- <td>
940
- <pre class="code"><span class="info file"># File 'lib/rack/simple_auth/hmac/config.rb', line 26</span>
941
-
942
- <span class='kw'>class</span> <span class='const'>Config</span> <span class='op'>&lt;</span> <span class='const'>Hash</span>
943
- <span class='id identifier rubyid_attr_writer'>attr_writer</span> <span class='symbol'>:tolerance</span>
944
- <span class='id identifier rubyid_attr_writer'>attr_writer</span> <span class='symbol'>:secret</span><span class='comma'>,</span> <span class='symbol'>:signature</span>
945
-
946
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:verbose</span>
947
- <span class='id identifier rubyid_attr_accessor'>attr_accessor</span> <span class='symbol'>:logpath</span><span class='comma'>,</span> <span class='symbol'>:request_config</span>
948
-
949
- <span class='comment'>##
950
- </span> <span class='comment'># Throw Runtime error for unknown attribute
951
- </span> <span class='comment'>#
952
- </span> <span class='comment'># @param [Symbol] name
953
- </span> <span class='comment'># @param [Array] args
954
- </span> <span class='comment'>#
955
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='rparen'>)</span>
956
- <span class='id identifier rubyid_fail'>fail</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown option </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_name'>name</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_gsub!'>gsub!</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>=</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
957
- <span class='kw'>end</span>
958
-
959
- <span class='comment'>##
960
- </span> <span class='comment'># Tolerance Attribute with nil guard
961
- </span> <span class='comment'>#
962
- </span> <span class='comment'># @return [Fixnum] tolerance
963
- </span> <span class='comment'>#
964
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_tolerance'>tolerance</span>
965
- <span class='ivar'>@tolerance</span> <span class='op'>||</span> <span class='int'>1000</span>
966
- <span class='kw'>end</span>
967
-
968
- <span class='comment'>##
969
- </span> <span class='comment'># Secret Attribute with nil guard
970
- </span> <span class='comment'>#
971
- </span> <span class='comment'># @return [String] secret
972
- </span> <span class='comment'>#
973
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_secret'>secret</span>
974
- <span class='ivar'>@secret</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
975
- <span class='kw'>end</span>
976
-
977
- <span class='comment'>##
978
- </span> <span class='comment'># Signature Attribute with nil guard
979
- </span> <span class='comment'>#
980
- </span> <span class='comment'># @return [String] signature
981
- </span> <span class='comment'>#
982
- </span> <span class='kw'>def</span> <span class='id identifier rubyid_signature'>signature</span>
983
- <span class='ivar'>@signature</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_end'>&#39;</span></span>
984
- <span class='kw'>end</span>
985
- <span class='kw'>end</span></pre>
986
- </td>
987
- </tr>
988
- </table>
989
- </div>
990
-
991
- </div>
992
-
993
-
994
- </div>
995
-
996
- <div id="footer">
997
- Generated on Wed Apr 30 09:50:21 2014 by
998
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
999
- 0.8.7.4 (ruby-2.1.1).
1000
- </div>
1001
-
1002
- </body>
1003
- </html>