orthodox 0.3.2 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -1
  3. data/.ruby-version +1 -0
  4. data/.yardopts +7 -0
  5. data/README.md +3 -3
  6. data/dummy/.ruby-version +1 -1
  7. data/dummy/Gemfile +2 -2
  8. data/dummy/Gemfile.lock +111 -113
  9. data/lib/generators/authentication/authentication_generator.rb +86 -86
  10. data/lib/generators/authentication/templates/controllers/concerns/authentication.rb.erb +25 -25
  11. data/lib/generators/authentication/templates/controllers/password_resets_controller.rb.erb +1 -1
  12. data/lib/generators/authentication/templates/controllers/sessions_controller.rb.erb +5 -5
  13. data/lib/generators/authentication/templates/controllers/tfa_sessions_controller.rb.erb +3 -3
  14. data/lib/generators/authentication/templates/controllers/tfas_controller.rb.erb +3 -3
  15. data/lib/generators/authentication/templates/helpers/otp_credentials_helper.rb +3 -3
  16. data/lib/generators/authentication/templates/javascript/tfa_forms.js +3 -5
  17. data/lib/generators/authentication/templates/models/concerns/authenticateable.rb +3 -3
  18. data/lib/generators/authentication/templates/models/concerns/otpable.rb +3 -3
  19. data/lib/generators/authentication/templates/models/concerns/password_resetable.rb +3 -3
  20. data/lib/generators/authentication/templates/models/otp_credential.rb.erb +3 -3
  21. data/lib/generators/authentication/templates/models/password_reset_token.rb +3 -3
  22. data/lib/generators/authentication/templates/models/session.rb.erb +3 -3
  23. data/lib/generators/authentication/templates/models/tfa_session.rb +2 -2
  24. data/lib/generators/authentication/templates/spec/models/otp_credential_spec.rb +2 -2
  25. data/lib/generators/authentication/templates/spec/models/password_reset_token_spec.rb +2 -2
  26. data/lib/generators/authentication/templates/spec/models/session_spec.rb.erb +10 -11
  27. data/lib/generators/authentication/templates/spec/models/tfa_session_spec.rb.erb +35 -36
  28. data/lib/generators/authentication/templates/spec/support/authentication_helpers.rb +3 -3
  29. data/lib/generators/authentication/templates/spec/system/authentication_spec.rb.erb +2 -2
  30. data/lib/generators/authentication/templates/spec/system/password_resets_spec.rb.erb +2 -2
  31. data/lib/generators/authentication/templates/spec/system/tfa_authentication_spec.rb.erb +2 -2
  32. data/lib/generators/base_controller/base_controller_generator.rb +1 -1
  33. data/lib/generators/base_controller/templates/base_controller.rb.erb +1 -1
  34. data/lib/generators/controller/templates/controller.rb.erb +1 -1
  35. data/lib/generators/layout_helper/layout_helper_generator.rb +1 -1
  36. data/lib/orthodox/version.rb +1 -1
  37. data/orthodox.gemspec +5 -7
  38. metadata +16 -42
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5c76ea98111b9b984963beba14eb62daea017a646a34057c726b73b44fc3805c
4
- data.tar.gz: 5d712ea97e53c4247eae89c6875a0e6fec64edb8b88123483762dbd9251837e3
3
+ metadata.gz: 44c5e870047ab45a759e21ac5225ce347f234740f338fb0aa42c175a3d919bc2
4
+ data.tar.gz: c2452520df415c86c88e3f9bacf77f87b7b0109cccc71585422be9375d93210c
5
5
  SHA512:
6
- metadata.gz: 0b230ca3b3d30e942336fddb247f2fbe722c00b983985df52c1e2f799e25d030fb1e9404bdfe1813a80c2752413545e1fa0b15dd3b570af35d034af61d3de4c6
7
- data.tar.gz: 249654ccbfa5844af6c3862a8efcabca77339554ee77b7a55fa30a64d07cb5faaaf69da69f8443c53346c719f34254997b2ae47de5b41c1bbf0335b958de64f0
6
+ metadata.gz: 3b8cc69600b87f8a90b1d8999616930eb8fd54d7a93f5db1aaf48ed72a23ea94d9285b8bcc08ca2b8dfbba188d40069d08cb42b1ec74fd1003fc91409df771e4
7
+ data.tar.gz: 66682e2c0fc311d0b7d3522e2c5c83236c2c3a0aa10202c616a6987c1ce4d349d1b0e4cdcbb9e74a19f64e4ead2b7a127cdafef81161c867afbe1438a4e02da3
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  /Gemfile.lock
4
4
  /_yardoc/
5
5
  /coverage/
6
- /doc/
7
6
  /pkg/
8
7
  /spec/reports/
9
8
  /tmp/
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.0.2
data/.yardopts ADDED
@@ -0,0 +1,7 @@
1
+ --plugin tomdoc
2
+ --private
3
+ --output-dir=docs
4
+ --hide-void-return
5
+ --title "Orthodox"
6
+ --markup=markdown
7
+ --markup-provider=redcarpet
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Orthodox
2
2
 
3
- Replacement Rails generators for Katana apps.
3
+ Better Rails generators for modern apps
4
4
 
5
5
  ## Installation
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'orthodox', github: "katanacode/orthodox"
10
+ gem 'orthodox', github: "bodacious/orthodox"
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -214,7 +214,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
214
214
 
215
215
  ## Contributing
216
216
 
217
- Bug reports and pull requests are welcome on GitHub at https://github.com/KatanaCode/orthodox.
217
+ Bug reports and pull requests are welcome on GitHub at https://github.com/bodacious/orthodox.
218
218
 
219
219
  ## License
220
220
 
data/dummy/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.2
1
+ 2.7.2
data/dummy/Gemfile CHANGED
@@ -1,14 +1,14 @@
1
1
  source 'https://rubygems.org'
2
2
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
3
 
4
- ruby '2.6.2'
4
+ ruby '2.7.2'
5
5
 
6
6
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
7
7
  gem 'rails', '~> 5.2.0'
8
8
  # Use sqlite3 as the database for Active Record
9
9
  gem 'sqlite3'
10
10
  # Use Puma as the app server
11
- gem 'puma', '~> 4.3'
11
+ gem 'puma', '~> 5.0'
12
12
  # Use SCSS for stylesheets
13
13
  gem 'sass-rails', '~> 5.0'
14
14
  # Use Uglifier as compressor for JavaScript assets
data/dummy/Gemfile.lock CHANGED
@@ -1,74 +1,74 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- orthodox (0.2.1)
4
+ orthodox (0.3.5)
5
5
  rails (>= 3.0.0)
6
6
  slim-rails
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.2.2.1)
12
- actionpack (= 5.2.2.1)
11
+ actioncable (5.2.6)
12
+ actionpack (= 5.2.6)
13
13
  nio4r (~> 2.0)
14
14
  websocket-driver (>= 0.6.1)
15
- actionmailer (5.2.2.1)
16
- actionpack (= 5.2.2.1)
17
- actionview (= 5.2.2.1)
18
- activejob (= 5.2.2.1)
15
+ actionmailer (5.2.6)
16
+ actionpack (= 5.2.6)
17
+ actionview (= 5.2.6)
18
+ activejob (= 5.2.6)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.2.2.1)
22
- actionview (= 5.2.2.1)
23
- activesupport (= 5.2.2.1)
24
- rack (~> 2.0)
21
+ actionpack (5.2.6)
22
+ actionview (= 5.2.6)
23
+ activesupport (= 5.2.6)
24
+ rack (~> 2.0, >= 2.0.8)
25
25
  rack-test (>= 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.2.2.1)
29
- activesupport (= 5.2.2.1)
28
+ actionview (5.2.6)
29
+ activesupport (= 5.2.6)
30
30
  builder (~> 3.1)
31
31
  erubi (~> 1.4)
32
32
  rails-dom-testing (~> 2.0)
33
33
  rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
- activejob (5.2.2.1)
35
- activesupport (= 5.2.2.1)
34
+ activejob (5.2.6)
35
+ activesupport (= 5.2.6)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.2.2.1)
38
- activesupport (= 5.2.2.1)
39
- activerecord (5.2.2.1)
40
- activemodel (= 5.2.2.1)
41
- activesupport (= 5.2.2.1)
37
+ activemodel (5.2.6)
38
+ activesupport (= 5.2.6)
39
+ activerecord (5.2.6)
40
+ activemodel (= 5.2.6)
41
+ activesupport (= 5.2.6)
42
42
  arel (>= 9.0)
43
- activestorage (5.2.2.1)
44
- actionpack (= 5.2.2.1)
45
- activerecord (= 5.2.2.1)
46
- marcel (~> 0.3.1)
47
- activesupport (5.2.2.1)
43
+ activestorage (5.2.6)
44
+ actionpack (= 5.2.6)
45
+ activerecord (= 5.2.6)
46
+ marcel (~> 1.0.0)
47
+ activesupport (5.2.6)
48
48
  concurrent-ruby (~> 1.0, >= 1.0.2)
49
49
  i18n (>= 0.7, < 2)
50
50
  minitest (~> 5.1)
51
51
  tzinfo (~> 1.1)
52
- addressable (2.5.2)
53
- public_suffix (>= 2.0.2, < 4.0)
54
- archive-zip (0.11.0)
52
+ addressable (2.8.0)
53
+ public_suffix (>= 2.0.2, < 5.0)
54
+ archive-zip (0.12.0)
55
55
  io-like (~> 0.3.0)
56
56
  arel (9.0.0)
57
- bindex (0.5.0)
58
- bootsnap (1.3.0)
57
+ bindex (0.8.1)
58
+ bootsnap (1.9.1)
59
59
  msgpack (~> 1.0)
60
- builder (3.2.3)
61
- byebug (10.0.2)
62
- capybara (3.3.1)
60
+ builder (3.2.4)
61
+ byebug (11.1.3)
62
+ capybara (3.35.3)
63
63
  addressable
64
64
  mini_mime (>= 0.1.3)
65
65
  nokogiri (~> 1.8)
66
66
  rack (>= 1.6.0)
67
67
  rack-test (>= 0.6.3)
68
- xpath (~> 3.1)
69
- childprocess (0.9.0)
70
- ffi (~> 1.0, >= 1.0.11)
71
- chromedriver-helper (1.2.0)
68
+ regexp_parser (>= 1.5, < 3.0)
69
+ xpath (~> 3.2)
70
+ childprocess (3.0.0)
71
+ chromedriver-helper (2.1.1)
72
72
  archive-zip (~> 0.10)
73
73
  nokogiri (~> 1.8)
74
74
  coffee-rails (4.2.2)
@@ -78,130 +78,128 @@ GEM
78
78
  coffee-script-source
79
79
  execjs
80
80
  coffee-script-source (1.12.2)
81
- concurrent-ruby (1.1.5)
82
- crass (1.0.5)
83
- erubi (1.8.0)
84
- execjs (2.7.0)
85
- ffi (1.9.25)
86
- globalid (0.4.2)
87
- activesupport (>= 4.2.0)
88
- i18n (1.6.0)
81
+ concurrent-ruby (1.1.9)
82
+ crass (1.0.6)
83
+ erubi (1.10.0)
84
+ execjs (2.8.1)
85
+ ffi (1.15.4)
86
+ globalid (0.5.2)
87
+ activesupport (>= 5.0)
88
+ i18n (1.8.10)
89
89
  concurrent-ruby (~> 1.0)
90
- io-like (0.3.0)
91
- jbuilder (2.7.0)
92
- activesupport (>= 4.2.0)
93
- multi_json (>= 1.2)
90
+ io-like (0.3.1)
91
+ jbuilder (2.11.2)
92
+ activesupport (>= 5.0.0)
94
93
  listen (3.1.5)
95
94
  rb-fsevent (~> 0.9, >= 0.9.4)
96
95
  rb-inotify (~> 0.9, >= 0.9.7)
97
96
  ruby_dep (~> 1.2)
98
- loofah (2.3.1)
97
+ loofah (2.12.0)
99
98
  crass (~> 1.0.2)
100
99
  nokogiri (>= 1.5.9)
101
100
  mail (2.7.1)
102
101
  mini_mime (>= 0.1.1)
103
- marcel (0.3.3)
104
- mimemagic (~> 0.3.2)
105
- method_source (0.9.2)
106
- mimemagic (0.3.3)
107
- mini_mime (1.0.1)
108
- mini_portile2 (2.4.0)
109
- minitest (5.11.3)
110
- msgpack (1.2.4)
111
- multi_json (1.13.1)
112
- nio4r (2.3.1)
113
- nokogiri (1.10.5)
114
- mini_portile2 (~> 2.4.0)
115
- public_suffix (3.0.2)
116
- puma (4.3.1)
102
+ marcel (1.0.2)
103
+ method_source (1.0.0)
104
+ mini_mime (1.1.1)
105
+ mini_portile2 (2.6.1)
106
+ minitest (5.14.4)
107
+ msgpack (1.4.2)
108
+ nio4r (2.5.8)
109
+ nokogiri (1.12.5)
110
+ mini_portile2 (~> 2.6.1)
111
+ racc (~> 1.4)
112
+ public_suffix (4.0.6)
113
+ puma (5.5.0)
117
114
  nio4r (~> 2.0)
118
- rack (2.0.6)
115
+ racc (1.5.2)
116
+ rack (2.2.3)
119
117
  rack-test (1.1.0)
120
118
  rack (>= 1.0, < 3)
121
- rails (5.2.2.1)
122
- actioncable (= 5.2.2.1)
123
- actionmailer (= 5.2.2.1)
124
- actionpack (= 5.2.2.1)
125
- actionview (= 5.2.2.1)
126
- activejob (= 5.2.2.1)
127
- activemodel (= 5.2.2.1)
128
- activerecord (= 5.2.2.1)
129
- activestorage (= 5.2.2.1)
130
- activesupport (= 5.2.2.1)
119
+ rails (5.2.6)
120
+ actioncable (= 5.2.6)
121
+ actionmailer (= 5.2.6)
122
+ actionpack (= 5.2.6)
123
+ actionview (= 5.2.6)
124
+ activejob (= 5.2.6)
125
+ activemodel (= 5.2.6)
126
+ activerecord (= 5.2.6)
127
+ activestorage (= 5.2.6)
128
+ activesupport (= 5.2.6)
131
129
  bundler (>= 1.3.0)
132
- railties (= 5.2.2.1)
130
+ railties (= 5.2.6)
133
131
  sprockets-rails (>= 2.0.0)
134
132
  rails-dom-testing (2.0.3)
135
133
  activesupport (>= 4.2.0)
136
134
  nokogiri (>= 1.6)
137
- rails-html-sanitizer (1.0.4)
138
- loofah (~> 2.2, >= 2.2.2)
139
- railties (5.2.2.1)
140
- actionpack (= 5.2.2.1)
141
- activesupport (= 5.2.2.1)
135
+ rails-html-sanitizer (1.4.2)
136
+ loofah (~> 2.3)
137
+ railties (5.2.6)
138
+ actionpack (= 5.2.6)
139
+ activesupport (= 5.2.6)
142
140
  method_source
143
141
  rake (>= 0.8.7)
144
142
  thor (>= 0.19.0, < 2.0)
145
- rake (12.3.2)
146
- rb-fsevent (0.10.3)
147
- rb-inotify (0.9.10)
148
- ffi (>= 0.5.0, < 2)
143
+ rake (13.0.6)
144
+ rb-fsevent (0.11.0)
145
+ rb-inotify (0.10.1)
146
+ ffi (~> 1.0)
147
+ regexp_parser (2.1.1)
149
148
  ruby_dep (1.5.0)
150
- rubyzip (1.3.0)
151
- sass (3.5.6)
149
+ rubyzip (2.3.2)
150
+ sass (3.7.4)
152
151
  sass-listen (~> 4.0.0)
153
152
  sass-listen (4.0.0)
154
153
  rb-fsevent (~> 0.9, >= 0.9.4)
155
154
  rb-inotify (~> 0.9, >= 0.9.7)
156
- sass-rails (5.0.7)
157
- railties (>= 4.0.0, < 6)
155
+ sass-rails (5.1.0)
156
+ railties (>= 5.2.0)
158
157
  sass (~> 3.1)
159
158
  sprockets (>= 2.8, < 4.0)
160
159
  sprockets-rails (>= 2.0, < 4.0)
161
160
  tilt (>= 1.1, < 3)
162
- selenium-webdriver (3.13.0)
163
- childprocess (~> 0.5)
164
- rubyzip (~> 1.2)
165
- slim (4.0.1)
161
+ selenium-webdriver (3.142.7)
162
+ childprocess (>= 0.5, < 4.0)
163
+ rubyzip (>= 1.2.2)
164
+ slim (4.1.0)
166
165
  temple (>= 0.7.6, < 0.9)
167
166
  tilt (>= 2.0.6, < 2.1)
168
- slim-rails (3.2.0)
167
+ slim-rails (3.3.0)
169
168
  actionpack (>= 3.1)
170
169
  railties (>= 3.1)
171
170
  slim (>= 3.0, < 5.0)
172
- spring (2.0.2)
173
- activesupport (>= 4.2)
171
+ spring (2.1.1)
174
172
  spring-watcher-listen (2.0.1)
175
173
  listen (>= 2.7, < 4.0)
176
174
  spring (>= 1.2, < 3.0)
177
175
  sprockets (3.7.2)
178
176
  concurrent-ruby (~> 1.0)
179
177
  rack (> 1, < 3)
180
- sprockets-rails (3.2.1)
178
+ sprockets-rails (3.2.2)
181
179
  actionpack (>= 4.0)
182
180
  activesupport (>= 4.0)
183
181
  sprockets (>= 3.0.0)
184
- sqlite3 (1.3.13)
185
- temple (0.8.1)
186
- thor (0.20.3)
182
+ sqlite3 (1.4.2)
183
+ temple (0.8.2)
184
+ thor (1.1.0)
187
185
  thread_safe (0.3.6)
188
- tilt (2.0.8)
189
- turbolinks (5.1.1)
190
- turbolinks-source (~> 5.1)
191
- turbolinks-source (5.1.0)
192
- tzinfo (1.2.5)
186
+ tilt (2.0.10)
187
+ turbolinks (5.2.1)
188
+ turbolinks-source (~> 5.2)
189
+ turbolinks-source (5.2.0)
190
+ tzinfo (1.2.9)
193
191
  thread_safe (~> 0.1)
194
- uglifier (4.1.12)
192
+ uglifier (4.2.0)
195
193
  execjs (>= 0.3.0, < 3)
196
- web-console (3.6.2)
194
+ web-console (3.7.0)
197
195
  actionview (>= 5.0)
198
196
  activemodel (>= 5.0)
199
197
  bindex (>= 0.4.0)
200
198
  railties (>= 5.0)
201
- websocket-driver (0.7.0)
199
+ websocket-driver (0.7.5)
202
200
  websocket-extensions (>= 0.1.0)
203
- websocket-extensions (0.1.3)
204
- xpath (3.1.0)
201
+ websocket-extensions (0.1.5)
202
+ xpath (3.2.0)
205
203
  nokogiri (~> 1.8)
206
204
 
207
205
  PLATFORMS
@@ -216,7 +214,7 @@ DEPENDENCIES
216
214
  jbuilder (~> 2.5)
217
215
  listen (>= 3.0.5, < 3.2)
218
216
  orthodox!
219
- puma (~> 4.3)
217
+ puma (~> 5.0)
220
218
  rails (~> 5.2.0)
221
219
  sass-rails (~> 5.0)
222
220
  selenium-webdriver
@@ -229,7 +227,7 @@ DEPENDENCIES
229
227
  web-console (>= 3.3.0)
230
228
 
231
229
  RUBY VERSION
232
- ruby 2.6.2p47
230
+ ruby 2.7.2p137
233
231
 
234
232
  BUNDLED WITH
235
- 1.17.2
233
+ 1.17.3