any_login 1.5.3 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/any_login/application.css +3 -0
  3. data/app/controllers/any_login/application_controller.rb +1 -9
  4. data/app/views/any_login/_any_login.html.erb +4 -4
  5. data/app/views/any_login/assets/_css.html.erb +101 -0
  6. data/app/views/any_login/assets/_js.html.erb +25 -0
  7. data/config/routes.rb +0 -2
  8. data/lib/any_login/helpers.rb +3 -1
  9. data/lib/any_login/providers/devise.rb +1 -1
  10. data/lib/any_login/version.rb +1 -1
  11. data/test/rails_apps/authlogic/db/development.sqlite3 +0 -0
  12. data/test/rails_apps/authlogic/db/test.sqlite3 +0 -0
  13. data/test/rails_apps/authlogic/db/test.sqlite3-shm +0 -0
  14. data/test/rails_apps/authlogic/db/test.sqlite3-wal +0 -0
  15. data/test/rails_apps/authlogic/log/development.log +438 -0
  16. data/test/rails_apps/authlogic/log/test.log +1144 -0
  17. data/test/rails_apps/authlogic/tmp/development_secret.txt +1 -0
  18. data/test/rails_apps/authlogic/tmp/local_secret.txt +1 -0
  19. data/test/rails_apps/clearance/config/environment.rb +1 -0
  20. data/test/rails_apps/clearance/db/development.sqlite3 +0 -0
  21. data/test/rails_apps/clearance/db/test.sqlite3 +0 -0
  22. data/test/rails_apps/clearance/db/test.sqlite3-shm +0 -0
  23. data/test/rails_apps/clearance/db/test.sqlite3-wal +0 -0
  24. data/test/rails_apps/clearance/log/development.log +388 -0
  25. data/test/rails_apps/clearance/log/test.log +1110 -0
  26. data/test/rails_apps/clearance/tmp/development_secret.txt +1 -0
  27. data/test/rails_apps/clearance/tmp/local_secret.txt +1 -0
  28. data/test/rails_apps/devise/db/development.sqlite3 +0 -0
  29. data/test/rails_apps/devise/db/schema.rb +4 -4
  30. data/test/rails_apps/devise/db/test.sqlite3 +0 -0
  31. data/test/rails_apps/devise/db/test.sqlite3-shm +0 -0
  32. data/test/rails_apps/devise/db/test.sqlite3-wal +0 -0
  33. data/test/rails_apps/devise/log/development.log +1081 -0
  34. data/test/rails_apps/devise/log/test.log +2120 -0
  35. data/test/rails_apps/devise/tmp/development_secret.txt +1 -0
  36. data/test/rails_apps/devise/tmp/local_secret.txt +1 -0
  37. data/test/rails_apps/sorcery/db/development.sqlite3 +0 -0
  38. data/test/rails_apps/sorcery/db/test.sqlite3 +0 -0
  39. data/test/rails_apps/sorcery/db/test.sqlite3-shm +0 -0
  40. data/test/rails_apps/sorcery/db/test.sqlite3-wal +0 -0
  41. data/test/rails_apps/sorcery/log/development.log +247 -0
  42. data/test/rails_apps/sorcery/log/test.log +532 -0
  43. data/test/rails_apps/sorcery/tmp/development_secret.txt +1 -0
  44. data/test/rails_apps/sorcery/tmp/local_secret.txt +1 -0
  45. data/test/test_helper_common.rb +2 -1
  46. metadata +86 -7
  47. data/app/assets/javascripts/any_login/application.js +0 -23
@@ -0,0 +1 @@
1
+ 92f35fc27ee337835dc573f9c74e0da236936b762bacf7f2c3c65ba1a06a570f34d1a65056f97ee246bcad5cb00e861bdcd372547807fe20892743923bc2b30f
@@ -0,0 +1 @@
1
+ 455696c203411a8a3ec349354c3ff57fa698807b05b62763037a768388a2d1127f3ae64348f90dc71673beebcc5e1c3186ba838d0a44200591146292ea5283ce
@@ -1,7 +1,6 @@
1
1
  require "rails/test_help"
2
2
  require 'capybara/rails'
3
3
  require 'capybara/minitest'
4
- require 'webdrivers/chromedriver'
5
4
 
6
5
  Rails.backtrace_cleaner.remove_silencers!
7
6
 
@@ -10,6 +9,8 @@ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
10
9
 
11
10
  Capybara.default_driver = :selenium_chrome_headless
12
11
  Capybara.server = :webrick
12
+ Dir.mkdir('log') unless File.exist?('log')
13
+ Selenium::WebDriver.logger.output = 'log/selenium.log'
13
14
 
14
15
  class ActionDispatch::IntegrationTest
15
16
  # Make the Capybara DSL available in all integration tests
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: any_login
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2024-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.0'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: appraisal
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: multi_xml
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.6.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.6.0
41
55
  description: Simply add this gem to your application and make your life easier with
42
56
  switching users.
43
57
  email:
@@ -48,10 +62,11 @@ extra_rdoc_files: []
48
62
  files:
49
63
  - MIT-LICENSE
50
64
  - Rakefile
51
- - app/assets/javascripts/any_login/application.js
52
65
  - app/assets/stylesheets/any_login/application.css
53
66
  - app/controllers/any_login/application_controller.rb
54
67
  - app/views/any_login/_any_login.html.erb
68
+ - app/views/any_login/assets/_css.html.erb
69
+ - app/views/any_login/assets/_js.html.erb
55
70
  - app/views/any_login/svg/_user.html.erb
56
71
  - config/routes.rb
57
72
  - lib/any_login.rb
@@ -107,15 +122,23 @@ files:
107
122
  - test/rails_apps/authlogic/config/locales/en.yml
108
123
  - test/rails_apps/authlogic/config/routes.rb
109
124
  - test/rails_apps/authlogic/config/storage.yml
125
+ - test/rails_apps/authlogic/db/development.sqlite3
110
126
  - test/rails_apps/authlogic/db/migrate/20150907190739_create_users.rb
111
127
  - test/rails_apps/authlogic/db/migrate/20150907190846_add_devise_to_users.rb
112
128
  - test/rails_apps/authlogic/db/migrate/20150928123254_change_users.rb
113
129
  - test/rails_apps/authlogic/db/migrate/20220825195914_populate_test_users.rb
114
130
  - test/rails_apps/authlogic/db/schema.rb
131
+ - test/rails_apps/authlogic/db/test.sqlite3
132
+ - test/rails_apps/authlogic/db/test.sqlite3-shm
133
+ - test/rails_apps/authlogic/db/test.sqlite3-wal
134
+ - test/rails_apps/authlogic/log/development.log
135
+ - test/rails_apps/authlogic/log/test.log
115
136
  - test/rails_apps/authlogic/public/404.html
116
137
  - test/rails_apps/authlogic/public/422.html
117
138
  - test/rails_apps/authlogic/public/500.html
118
139
  - test/rails_apps/authlogic/public/favicon.ico
140
+ - test/rails_apps/authlogic/tmp/development_secret.txt
141
+ - test/rails_apps/authlogic/tmp/local_secret.txt
119
142
  - test/rails_apps/clearance/Rakefile
120
143
  - test/rails_apps/clearance/app/assets/config/manifest.js
121
144
  - test/rails_apps/clearance/app/controllers/application_controller.rb
@@ -146,16 +169,24 @@ files:
146
169
  - test/rails_apps/clearance/config/locales/en.yml
147
170
  - test/rails_apps/clearance/config/routes.rb
148
171
  - test/rails_apps/clearance/config/storage.yml
172
+ - test/rails_apps/clearance/db/development.sqlite3
149
173
  - test/rails_apps/clearance/db/migrate/20150907190739_create_users.rb
150
174
  - test/rails_apps/clearance/db/migrate/20150907190846_add_devise_to_users.rb
151
175
  - test/rails_apps/clearance/db/migrate/20150909210357_populate_test_users.rb
152
176
  - test/rails_apps/clearance/db/migrate/20150928123254_change_users.rb
153
177
  - test/rails_apps/clearance/db/migrate/20151007170422_add_clearance_to_users.rb
154
178
  - test/rails_apps/clearance/db/schema.rb
179
+ - test/rails_apps/clearance/db/test.sqlite3
180
+ - test/rails_apps/clearance/db/test.sqlite3-shm
181
+ - test/rails_apps/clearance/db/test.sqlite3-wal
182
+ - test/rails_apps/clearance/log/development.log
183
+ - test/rails_apps/clearance/log/test.log
155
184
  - test/rails_apps/clearance/public/404.html
156
185
  - test/rails_apps/clearance/public/422.html
157
186
  - test/rails_apps/clearance/public/500.html
158
187
  - test/rails_apps/clearance/public/favicon.ico
188
+ - test/rails_apps/clearance/tmp/development_secret.txt
189
+ - test/rails_apps/clearance/tmp/local_secret.txt
159
190
  - test/rails_apps/devise/Rakefile
160
191
  - test/rails_apps/devise/app/assets/config/manifest.js
161
192
  - test/rails_apps/devise/app/controllers/application_controller.rb
@@ -185,14 +216,22 @@ files:
185
216
  - test/rails_apps/devise/config/locales/en.yml
186
217
  - test/rails_apps/devise/config/routes.rb
187
218
  - test/rails_apps/devise/config/storage.yml
219
+ - test/rails_apps/devise/db/development.sqlite3
188
220
  - test/rails_apps/devise/db/migrate/20150907190739_create_users.rb
189
221
  - test/rails_apps/devise/db/migrate/20150907190846_add_devise_to_users.rb
190
222
  - test/rails_apps/devise/db/migrate/20150909210357_populate_test_users.rb
191
223
  - test/rails_apps/devise/db/schema.rb
224
+ - test/rails_apps/devise/db/test.sqlite3
225
+ - test/rails_apps/devise/db/test.sqlite3-shm
226
+ - test/rails_apps/devise/db/test.sqlite3-wal
227
+ - test/rails_apps/devise/log/development.log
228
+ - test/rails_apps/devise/log/test.log
192
229
  - test/rails_apps/devise/public/404.html
193
230
  - test/rails_apps/devise/public/422.html
194
231
  - test/rails_apps/devise/public/500.html
195
232
  - test/rails_apps/devise/public/favicon.ico
233
+ - test/rails_apps/devise/tmp/development_secret.txt
234
+ - test/rails_apps/devise/tmp/local_secret.txt
196
235
  - test/rails_apps/sorcery/Rakefile
197
236
  - test/rails_apps/sorcery/app/assets/config/manifest.js
198
237
  - test/rails_apps/sorcery/app/controllers/application_controller.rb
@@ -222,16 +261,24 @@ files:
222
261
  - test/rails_apps/sorcery/config/locales/en.yml
223
262
  - test/rails_apps/sorcery/config/routes.rb
224
263
  - test/rails_apps/sorcery/config/storage.yml
264
+ - test/rails_apps/sorcery/db/development.sqlite3
225
265
  - test/rails_apps/sorcery/db/migrate/20150907190739_create_users.rb
226
266
  - test/rails_apps/sorcery/db/migrate/20150907190846_add_devise_to_users.rb
227
267
  - test/rails_apps/sorcery/db/migrate/20150909210357_add_role_to_users.rb
228
268
  - test/rails_apps/sorcery/db/migrate/20151019154558_sorcery_core.rb
229
269
  - test/rails_apps/sorcery/db/migrate/20220827040518_populate_test_users.rb
230
270
  - test/rails_apps/sorcery/db/schema.rb
271
+ - test/rails_apps/sorcery/db/test.sqlite3
272
+ - test/rails_apps/sorcery/db/test.sqlite3-shm
273
+ - test/rails_apps/sorcery/db/test.sqlite3-wal
274
+ - test/rails_apps/sorcery/log/development.log
275
+ - test/rails_apps/sorcery/log/test.log
231
276
  - test/rails_apps/sorcery/public/404.html
232
277
  - test/rails_apps/sorcery/public/422.html
233
278
  - test/rails_apps/sorcery/public/500.html
234
279
  - test/rails_apps/sorcery/public/favicon.ico
280
+ - test/rails_apps/sorcery/tmp/development_secret.txt
281
+ - test/rails_apps/sorcery/tmp/local_secret.txt
235
282
  - test/sorcery/integration/navigation_test.rb
236
283
  - test/sorcery/test_helper_sorcery.rb
237
284
  - test/test_helper_common.rb
@@ -247,14 +294,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
247
294
  requirements:
248
295
  - - ">="
249
296
  - !ruby/object:Gem::Version
250
- version: '2.7'
297
+ version: '3.0'
251
298
  required_rubygems_version: !ruby/object:Gem::Requirement
252
299
  requirements:
253
300
  - - ">="
254
301
  - !ruby/object:Gem::Version
255
302
  version: '0'
256
303
  requirements: []
257
- rubygems_version: 3.3.26
304
+ rubygems_version: 3.3.7
258
305
  signing_key:
259
306
  specification_version: 4
260
307
  summary: AnyLogin is created to speedup development process and allow developer's
@@ -300,15 +347,23 @@ test_files:
300
347
  - test/rails_apps/authlogic/config/routes.rb
301
348
  - test/rails_apps/authlogic/config/storage.yml
302
349
  - test/rails_apps/authlogic/config.ru
350
+ - test/rails_apps/authlogic/db/development.sqlite3
303
351
  - test/rails_apps/authlogic/db/migrate/20150907190739_create_users.rb
304
352
  - test/rails_apps/authlogic/db/migrate/20150907190846_add_devise_to_users.rb
305
353
  - test/rails_apps/authlogic/db/migrate/20150928123254_change_users.rb
306
354
  - test/rails_apps/authlogic/db/migrate/20220825195914_populate_test_users.rb
307
355
  - test/rails_apps/authlogic/db/schema.rb
356
+ - test/rails_apps/authlogic/db/test.sqlite3
357
+ - test/rails_apps/authlogic/db/test.sqlite3-shm
358
+ - test/rails_apps/authlogic/db/test.sqlite3-wal
359
+ - test/rails_apps/authlogic/log/development.log
360
+ - test/rails_apps/authlogic/log/test.log
308
361
  - test/rails_apps/authlogic/public/404.html
309
362
  - test/rails_apps/authlogic/public/422.html
310
363
  - test/rails_apps/authlogic/public/500.html
311
364
  - test/rails_apps/authlogic/public/favicon.ico
365
+ - test/rails_apps/authlogic/tmp/development_secret.txt
366
+ - test/rails_apps/authlogic/tmp/local_secret.txt
312
367
  - test/rails_apps/clearance/Rakefile
313
368
  - test/rails_apps/clearance/app/assets/config/manifest.js
314
369
  - test/rails_apps/clearance/app/controllers/application_controller.rb
@@ -339,16 +394,24 @@ test_files:
339
394
  - test/rails_apps/clearance/config/routes.rb
340
395
  - test/rails_apps/clearance/config/storage.yml
341
396
  - test/rails_apps/clearance/config.ru
397
+ - test/rails_apps/clearance/db/development.sqlite3
342
398
  - test/rails_apps/clearance/db/migrate/20150907190739_create_users.rb
343
399
  - test/rails_apps/clearance/db/migrate/20150907190846_add_devise_to_users.rb
344
400
  - test/rails_apps/clearance/db/migrate/20150909210357_populate_test_users.rb
345
401
  - test/rails_apps/clearance/db/migrate/20150928123254_change_users.rb
346
402
  - test/rails_apps/clearance/db/migrate/20151007170422_add_clearance_to_users.rb
347
403
  - test/rails_apps/clearance/db/schema.rb
404
+ - test/rails_apps/clearance/db/test.sqlite3
405
+ - test/rails_apps/clearance/db/test.sqlite3-shm
406
+ - test/rails_apps/clearance/db/test.sqlite3-wal
407
+ - test/rails_apps/clearance/log/development.log
408
+ - test/rails_apps/clearance/log/test.log
348
409
  - test/rails_apps/clearance/public/404.html
349
410
  - test/rails_apps/clearance/public/422.html
350
411
  - test/rails_apps/clearance/public/500.html
351
412
  - test/rails_apps/clearance/public/favicon.ico
413
+ - test/rails_apps/clearance/tmp/development_secret.txt
414
+ - test/rails_apps/clearance/tmp/local_secret.txt
352
415
  - test/rails_apps/devise/Rakefile
353
416
  - test/rails_apps/devise/app/assets/config/manifest.js
354
417
  - test/rails_apps/devise/app/controllers/application_controller.rb
@@ -378,14 +441,22 @@ test_files:
378
441
  - test/rails_apps/devise/config/routes.rb
379
442
  - test/rails_apps/devise/config/storage.yml
380
443
  - test/rails_apps/devise/config.ru
444
+ - test/rails_apps/devise/db/development.sqlite3
381
445
  - test/rails_apps/devise/db/migrate/20150907190739_create_users.rb
382
446
  - test/rails_apps/devise/db/migrate/20150907190846_add_devise_to_users.rb
383
447
  - test/rails_apps/devise/db/migrate/20150909210357_populate_test_users.rb
384
448
  - test/rails_apps/devise/db/schema.rb
449
+ - test/rails_apps/devise/db/test.sqlite3
450
+ - test/rails_apps/devise/db/test.sqlite3-shm
451
+ - test/rails_apps/devise/db/test.sqlite3-wal
452
+ - test/rails_apps/devise/log/development.log
453
+ - test/rails_apps/devise/log/test.log
385
454
  - test/rails_apps/devise/public/404.html
386
455
  - test/rails_apps/devise/public/422.html
387
456
  - test/rails_apps/devise/public/500.html
388
457
  - test/rails_apps/devise/public/favicon.ico
458
+ - test/rails_apps/devise/tmp/development_secret.txt
459
+ - test/rails_apps/devise/tmp/local_secret.txt
389
460
  - test/rails_apps/sorcery/Rakefile
390
461
  - test/rails_apps/sorcery/app/assets/config/manifest.js
391
462
  - test/rails_apps/sorcery/app/controllers/application_controller.rb
@@ -415,16 +486,24 @@ test_files:
415
486
  - test/rails_apps/sorcery/config/routes.rb
416
487
  - test/rails_apps/sorcery/config/storage.yml
417
488
  - test/rails_apps/sorcery/config.ru
489
+ - test/rails_apps/sorcery/db/development.sqlite3
418
490
  - test/rails_apps/sorcery/db/migrate/20150907190739_create_users.rb
419
491
  - test/rails_apps/sorcery/db/migrate/20150907190846_add_devise_to_users.rb
420
492
  - test/rails_apps/sorcery/db/migrate/20150909210357_add_role_to_users.rb
421
493
  - test/rails_apps/sorcery/db/migrate/20151019154558_sorcery_core.rb
422
494
  - test/rails_apps/sorcery/db/migrate/20220827040518_populate_test_users.rb
423
495
  - test/rails_apps/sorcery/db/schema.rb
496
+ - test/rails_apps/sorcery/db/test.sqlite3
497
+ - test/rails_apps/sorcery/db/test.sqlite3-shm
498
+ - test/rails_apps/sorcery/db/test.sqlite3-wal
499
+ - test/rails_apps/sorcery/log/development.log
500
+ - test/rails_apps/sorcery/log/test.log
424
501
  - test/rails_apps/sorcery/public/404.html
425
502
  - test/rails_apps/sorcery/public/422.html
426
503
  - test/rails_apps/sorcery/public/500.html
427
504
  - test/rails_apps/sorcery/public/favicon.ico
505
+ - test/rails_apps/sorcery/tmp/development_secret.txt
506
+ - test/rails_apps/sorcery/tmp/local_secret.txt
428
507
  - test/sorcery/integration/navigation_test.rb
429
508
  - test/sorcery/test_helper_sorcery.rb
430
509
  - test/test_helper_common.rb
@@ -1,23 +0,0 @@
1
- function submitOnChange() {
2
- document.getElementById('any_login_form').submit();
3
- }
4
-
5
- function elementExists(element) {
6
- return typeof (element) != 'undefined' && element != null;
7
- }
8
-
9
- function addChangeListenerTo(elementId) {
10
- let element = document.getElementById(elementId);
11
- if (elementExists(element)) {
12
- element.addEventListener("change", submitOnChange);
13
- }
14
- }
15
-
16
- function setupAnyLoginHandlers() {
17
- addChangeListenerTo("back_to_previous_id");
18
- addChangeListenerTo("selected_id");
19
- }
20
-
21
- ['DOMContentLoaded', 'turbolinks:load', 'turbo:load'].forEach(function(e) {
22
- window.addEventListener(e, setupAnyLoginHandlers);
23
- });