orthodox 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/README.md +3 -7
  4. data/dummy/.ruby-version +1 -1
  5. data/dummy/Gemfile +2 -2
  6. data/dummy/Gemfile.lock +111 -113
  7. data/lib/generators/authentication/templates/controllers/concerns/authentication.rb.erb +24 -24
  8. data/lib/generators/authentication/templates/controllers/sessions_controller.rb.erb +4 -4
  9. data/lib/generators/authentication/templates/controllers/tfa_sessions_controller.rb.erb +2 -2
  10. data/lib/generators/authentication/templates/controllers/tfas_controller.rb.erb +2 -2
  11. data/lib/generators/authentication/templates/helpers/otp_credentials_helper.rb +2 -2
  12. data/lib/generators/authentication/templates/javascript/tfa_forms.js +3 -5
  13. data/lib/generators/authentication/templates/models/concerns/authenticateable.rb +2 -2
  14. data/lib/generators/authentication/templates/models/concerns/otpable.rb +2 -2
  15. data/lib/generators/authentication/templates/models/concerns/password_resetable.rb +2 -2
  16. data/lib/generators/authentication/templates/models/otp_credential.rb.erb +2 -2
  17. data/lib/generators/authentication/templates/models/password_reset_token.rb +2 -2
  18. data/lib/generators/authentication/templates/models/session.rb.erb +2 -2
  19. data/lib/generators/authentication/templates/models/tfa_session.rb +2 -2
  20. data/lib/generators/authentication/templates/spec/models/otp_credential_spec.rb +2 -2
  21. data/lib/generators/authentication/templates/spec/models/password_reset_token_spec.rb +2 -2
  22. data/lib/generators/authentication/templates/spec/models/session_spec.rb.erb +10 -11
  23. data/lib/generators/authentication/templates/spec/models/tfa_session_spec.rb.erb +35 -36
  24. data/lib/generators/authentication/templates/spec/support/authentication_helpers.rb +2 -2
  25. data/lib/generators/authentication/templates/spec/system/authentication_spec.rb.erb +2 -2
  26. data/lib/generators/authentication/templates/spec/system/password_resets_spec.rb.erb +2 -2
  27. data/lib/generators/authentication/templates/spec/system/tfa_authentication_spec.rb.erb +2 -2
  28. data/lib/orthodox/version.rb +1 -1
  29. data/orthodox.gemspec +1 -2
  30. metadata +6 -52
  31. data/docs/Authenticateable/ClassMethods.html +0 -105
  32. data/docs/Authenticateable.html +0 -246
  33. data/docs/AuthenticationGenerator.html +0 -1335
  34. data/docs/AuthenticationHelpers.html +0 -194
  35. data/docs/BaseControllerGenerator.html +0 -247
  36. data/docs/CoffeescriptGenerator.html +0 -495
  37. data/docs/ControllerGenerator.html +0 -855
  38. data/docs/LayoutHelperGenerator.html +0 -397
  39. data/docs/Orthodox/Railtie.html +0 -124
  40. data/docs/Orthodox.html +0 -133
  41. data/docs/OtpCredentialsHelper.html +0 -298
  42. data/docs/Otpable.html +0 -267
  43. data/docs/PasswordResetToken.html +0 -324
  44. data/docs/PasswordResetable.html +0 -193
  45. data/docs/SassGenerator.html +0 -549
  46. data/docs/TfaSession.html +0 -476
  47. data/docs/TwoFactorAuthentication/ClassMethods.html +0 -222
  48. data/docs/TwoFactorAuthentication.html +0 -121
  49. data/docs/_config.yml +0 -1
  50. data/docs/_index.html +0 -265
  51. data/docs/class_list.html +0 -51
  52. data/docs/css/common.css +0 -1
  53. data/docs/css/full_list.css +0 -58
  54. data/docs/css/style.css +0 -496
  55. data/docs/file.README.html +0 -311
  56. data/docs/file_list.html +0 -56
  57. data/docs/frames.html +0 -17
  58. data/docs/index.html +0 -311
  59. data/docs/js/app.js +0 -314
  60. data/docs/js/full_list.js +0 -216
  61. data/docs/js/jquery.js +0 -4
  62. data/docs/method_list.html +0 -555
  63. data/docs/top-level-namespace.html +0 -112
@@ -1,397 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: LayoutHelperGenerator
8
-
9
- &mdash; Orthodox
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "LayoutHelperGenerator";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (L)</a> &raquo;
40
-
41
-
42
- <span class="title">LayoutHelperGenerator</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: LayoutHelperGenerator
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Rails::Generators::Base</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Rails::Generators::Base</li>
78
-
79
- <li class="next">LayoutHelperGenerator</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/generators/layout_helper/layout_helper_generator.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <h2>
113
- Instance Method Summary
114
- <small><a href="#" class="summary_toggle">collapse</a></small>
115
- </h2>
116
-
117
- <ul class="summary">
118
-
119
- <li class="private ">
120
- <span class="summary_signature">
121
-
122
- <a href="#add_description_method-instance_method" title="#add_description_method (instance method)">#<strong>add_description_method</strong> &#x21d2; Object </a>
123
-
124
-
125
-
126
- </span>
127
-
128
-
129
-
130
- <span class="note title private">private</span>
131
-
132
-
133
-
134
-
135
-
136
- <span class="summary_desc"><div class='inline'></div></span>
137
-
138
- </li>
139
-
140
-
141
- <li class="private ">
142
- <span class="summary_signature">
143
-
144
- <a href="#add_title_method-instance_method" title="#add_title_method (instance method)">#<strong>add_title_method</strong> &#x21d2; Object </a>
145
-
146
-
147
-
148
- </span>
149
-
150
-
151
-
152
- <span class="note title private">private</span>
153
-
154
-
155
-
156
-
157
-
158
- <span class="summary_desc"><div class='inline'></div></span>
159
-
160
- </li>
161
-
162
-
163
- <li class="public ">
164
- <span class="summary_signature">
165
-
166
- <a href="#copy_template_file-instance_method" title="#copy_template_file (instance method)">#<strong>copy_template_file</strong> &#x21d2; Object </a>
167
-
168
-
169
-
170
- </span>
171
-
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
- <span class="summary_desc"><div class='inline'></div></span>
181
-
182
- </li>
183
-
184
-
185
- <li class="private ">
186
- <span class="summary_signature">
187
-
188
- <a href="#file_path-instance_method" title="#file_path (instance method)">#<strong>file_path</strong> &#x21d2; Object </a>
189
-
190
-
191
-
192
- </span>
193
-
194
-
195
-
196
- <span class="note title private">private</span>
197
-
198
-
199
-
200
-
201
-
202
- <span class="summary_desc"><div class='inline'></div></span>
203
-
204
- </li>
205
-
206
-
207
- </ul>
208
-
209
-
210
-
211
-
212
-
213
- <div id="instance_method_details" class="method_details_list">
214
- <h2>Instance Method Details</h2>
215
-
216
-
217
- <div class="method_details first">
218
- <h3 class="signature first" id="add_description_method-instance_method">
219
-
220
- #<strong>add_description_method</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
221
-
222
-
223
-
224
-
225
-
226
- </h3><table class="source_code">
227
- <tr>
228
- <td>
229
- <pre class="lines">
230
-
231
-
232
- 41
233
- 42
234
- 43
235
- 44
236
- 45
237
- 46
238
- 47
239
- 48
240
- 49
241
- 50
242
- 51
243
- 52
244
- 53
245
- 54</pre>
246
- </td>
247
- <td>
248
- <pre class="code"><span class="info file"># File 'lib/generators/layout_helper/layout_helper_generator.rb', line 41</span>
249
-
250
- <span class='kw'>def</span> <span class='id identifier rubyid_add_description_method'>add_description_method</span>
251
- <span class='id identifier rubyid_inject_into_file'>inject_into_file</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='comma'>,</span> <span class='label'>after:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>module LayoutHelper\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
252
- <span class='heredoc_beg'>&lt;&lt;-RUBY</span>
253
- <span class='tstring_content'>
254
- def description(value = nil)
255
- if value
256
- @description = value
257
- else
258
- @description.to_s
259
- end
260
- end
261
- </span><span class='heredoc_end'> RUBY
262
- </span> <span class='kw'>end</span>
263
- <span class='kw'>end</span></pre>
264
- </td>
265
- </tr>
266
- </table>
267
- </div>
268
-
269
- <div class="method_details ">
270
- <h3 class="signature " id="add_title_method-instance_method">
271
-
272
- #<strong>add_title_method</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
273
-
274
-
275
-
276
-
277
-
278
- </h3><table class="source_code">
279
- <tr>
280
- <td>
281
- <pre class="lines">
282
-
283
-
284
- 26
285
- 27
286
- 28
287
- 29
288
- 30
289
- 31
290
- 32
291
- 33
292
- 34
293
- 35
294
- 36
295
- 37
296
- 38
297
- 39</pre>
298
- </td>
299
- <td>
300
- <pre class="code"><span class="info file"># File 'lib/generators/layout_helper/layout_helper_generator.rb', line 26</span>
301
-
302
- <span class='kw'>def</span> <span class='id identifier rubyid_add_title_method'>add_title_method</span>
303
- <span class='id identifier rubyid_inject_into_file'>inject_into_file</span><span class='lparen'>(</span><span class='id identifier rubyid_file_path'>file_path</span><span class='comma'>,</span> <span class='label'>after:</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>module LayoutHelper\n</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='kw'>do</span>
304
- <span class='heredoc_beg'>&lt;&lt;-RUBY</span>
305
- <span class='tstring_content'>
306
- def title(value = nil)
307
- if value
308
- @title = value
309
- else
310
- @title.to_s
311
- end
312
- end
313
- </span><span class='heredoc_end'> RUBY
314
- </span> <span class='kw'>end</span>
315
- <span class='kw'>end</span></pre>
316
- </td>
317
- </tr>
318
- </table>
319
- </div>
320
-
321
- <div class="method_details ">
322
- <h3 class="signature " id="copy_template_file-instance_method">
323
-
324
- #<strong>copy_template_file</strong> &#x21d2; <tt>Object</tt>
325
-
326
-
327
-
328
-
329
-
330
- </h3><table class="source_code">
331
- <tr>
332
- <td>
333
- <pre class="lines">
334
-
335
-
336
- 13
337
- 14
338
- 15
339
- 16
340
- 17</pre>
341
- </td>
342
- <td>
343
- <pre class="code"><span class="info file"># File 'lib/generators/layout_helper/layout_helper_generator.rb', line 13</span>
344
-
345
- <span class='kw'>def</span> <span class='id identifier rubyid_copy_template_file'>copy_template_file</span>
346
- <span class='id identifier rubyid_generate'>generate</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>helper</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Layout</span><span class='tstring_end'>&quot;</span></span>
347
- <span class='id identifier rubyid_add_title_method'>add_title_method</span>
348
- <span class='id identifier rubyid_add_description_method'>add_description_method</span>
349
- <span class='kw'>end</span></pre>
350
- </td>
351
- </tr>
352
- </table>
353
- </div>
354
-
355
- <div class="method_details ">
356
- <h3 class="signature " id="file_path-instance_method">
357
-
358
- #<strong>file_path</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
359
-
360
-
361
-
362
-
363
-
364
- </h3><table class="source_code">
365
- <tr>
366
- <td>
367
- <pre class="lines">
368
-
369
-
370
- 22
371
- 23
372
- 24</pre>
373
- </td>
374
- <td>
375
- <pre class="code"><span class="info file"># File 'lib/generators/layout_helper/layout_helper_generator.rb', line 22</span>
376
-
377
- <span class='kw'>def</span> <span class='id identifier rubyid_file_path'>file_path</span>
378
- <span class='const'>Rails</span><span class='period'>.</span><span class='id identifier rubyid_root'>root</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>app</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>helpers</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>layout_helper.rb</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
379
- <span class='kw'>end</span></pre>
380
- </td>
381
- </tr>
382
- </table>
383
- </div>
384
-
385
- </div>
386
-
387
- </div>
388
-
389
- <div id="footer">
390
- Generated on Thu Aug 13 16:36:42 2020 by
391
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
392
- 0.9.24 (ruby-2.6.6).
393
- </div>
394
-
395
- </div>
396
- </body>
397
- </html>
@@ -1,124 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Orthodox::Railtie
8
-
9
- &mdash; Orthodox
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Orthodox::Railtie";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (R)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../Orthodox.html" title="Orthodox (module)">Orthodox</a></span></span>
41
- &raquo;
42
- <span class="title">Railtie</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: Orthodox::Railtie
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Rails::Railtie</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">Rails::Railtie</li>
78
-
79
- <li class="next">Orthodox::Railtie</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/orthodox/railtie.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
- </div>
115
-
116
- <div id="footer">
117
- Generated on Thu Aug 13 16:36:42 2020 by
118
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
119
- 0.9.24 (ruby-2.6.6).
120
- </div>
121
-
122
- </div>
123
- </body>
124
- </html>
data/docs/Orthodox.html DELETED
@@ -1,133 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Module: Orthodox
8
-
9
- &mdash; Orthodox
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Orthodox";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (O)</a> &raquo;
40
-
41
-
42
- <span class="title">Orthodox</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Module: Orthodox
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/orthodox.rb<span class="defines">,<br />
82
- lib/orthodox/railtie.rb,<br /> lib/orthodox/version.rb</span>
83
- </dd>
84
- </dl>
85
-
86
- </div>
87
-
88
- <h2>Defined Under Namespace</h2>
89
- <p class="children">
90
-
91
-
92
-
93
-
94
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Orthodox/Railtie.html" title="Orthodox::Railtie (class)">Railtie</a></span>
95
-
96
-
97
- </p>
98
-
99
-
100
- <h2>
101
- Constant Summary
102
- <small><a href="#" class="constants_summary_toggle">collapse</a></small>
103
- </h2>
104
-
105
- <dl class="constants">
106
-
107
- <dt id="VERSION-constant" class="">VERSION =
108
-
109
- </dt>
110
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.3.4</span><span class='tstring_end'>&quot;</span></span></pre></dd>
111
-
112
- </dl>
113
-
114
-
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- </div>
124
-
125
- <div id="footer">
126
- Generated on Thu Aug 13 16:36:42 2020 by
127
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
128
- 0.9.24 (ruby-2.6.6).
129
- </div>
130
-
131
- </div>
132
- </body>
133
- </html>