mongo_session_store 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +6 -0
  3. data/CHANGELOG.md +6 -2
  4. data/gemfiles/rails-5.0-mongo.gemfile +9 -0
  5. data/gemfiles/rails-5.0-mongoid.gemfile +9 -0
  6. data/lib/mongo_session_store/mongo_store_base.rb +21 -5
  7. data/lib/mongo_session_store/version.rb +1 -1
  8. data/mongo_session_store.gemspec +1 -1
  9. data/spec/lib/mongo_session_store/mongo_store_base_spec.rb +7 -5
  10. data/spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb +1 -3
  11. data/spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb +1 -3
  12. data/spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb +1 -3
  13. data/spec/support/apps/rails_5.0_app/Rakefile +6 -0
  14. data/spec/support/apps/rails_5.0_app/app/controllers/application_controller.rb +3 -0
  15. data/spec/support/apps/rails_5.0_app/app/controllers/home_controller.rb +2 -0
  16. data/spec/support/apps/rails_5.0_app/app/models/application_record.rb +3 -0
  17. data/spec/support/apps/rails_5.0_app/app/models/user.rb +5 -0
  18. data/spec/support/apps/rails_5.0_app/app/views/home/index.html.erb +10 -0
  19. data/spec/support/apps/rails_5.0_app/app/views/layouts/application.html.erb +15 -0
  20. data/spec/support/apps/rails_5.0_app/bin/bundle +3 -0
  21. data/spec/support/apps/rails_5.0_app/bin/rails +4 -0
  22. data/spec/support/apps/rails_5.0_app/bin/rake +4 -0
  23. data/spec/support/apps/rails_5.0_app/bin/setup +34 -0
  24. data/spec/support/apps/rails_5.0_app/bin/update +29 -0
  25. data/spec/support/apps/rails_5.0_app/config.ru +5 -0
  26. data/spec/support/apps/rails_5.0_app/config/application.rb +11 -0
  27. data/spec/support/apps/rails_5.0_app/config/boot.rb +5 -0
  28. data/spec/support/apps/rails_5.0_app/config/database.yml +11 -0
  29. data/spec/support/apps/rails_5.0_app/config/environment.rb +5 -0
  30. data/spec/support/apps/rails_5.0_app/config/environments/development.rb +12 -0
  31. data/spec/support/apps/rails_5.0_app/config/environments/test.rb +19 -0
  32. data/spec/support/apps/rails_5.0_app/config/initializers/devise.rb +254 -0
  33. data/spec/support/apps/rails_5.0_app/config/initializers/session_store.rb +1 -0
  34. data/spec/support/apps/rails_5.0_app/config/locales/en.yml +23 -0
  35. data/spec/support/apps/rails_5.0_app/config/mongo.yml +11 -0
  36. data/spec/support/apps/rails_5.0_app/config/mongoid.yml +13 -0
  37. data/spec/support/apps/rails_5.0_app/config/routes.rb +4 -0
  38. data/spec/support/apps/rails_5.0_app/config/secrets.yml +22 -0
  39. data/spec/support/apps/rails_5.0_app/db/migrate/20140301171212_add_devise_users.rb +11 -0
  40. data/spec/support/apps/rails_5.0_app/db/schema.rb +23 -0
  41. data/spec/support/apps/{rails_4.0_app/public/favicon.ico → rails_5.0_app/log/.keep} +0 -0
  42. metadata +64 -30
  43. data/spec/support/apps/rails_4.0_app/db/seeds.rb +0 -7
  44. data/spec/support/apps/rails_4.0_app/public/404.html +0 -58
  45. data/spec/support/apps/rails_4.0_app/public/422.html +0 -58
  46. data/spec/support/apps/rails_4.0_app/public/500.html +0 -57
  47. data/spec/support/apps/rails_4.0_app/public/robots.txt +0 -5
  48. data/spec/support/apps/rails_4.1_app/db/seeds.rb +0 -7
  49. data/spec/support/apps/rails_4.1_app/public/404.html +0 -67
  50. data/spec/support/apps/rails_4.1_app/public/422.html +0 -67
  51. data/spec/support/apps/rails_4.1_app/public/500.html +0 -66
  52. data/spec/support/apps/rails_4.1_app/public/favicon.ico +0 -0
  53. data/spec/support/apps/rails_4.1_app/public/robots.txt +0 -5
  54. data/spec/support/apps/rails_4.2_app/db/seeds.rb +0 -7
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-agent: *
5
- # Disallow: /
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
@@ -1,5 +0,0 @@
1
- # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
2
- #
3
- # To ban all spiders from the entire site uncomment the next two lines:
4
- # User-agent: *
5
- # Disallow: /
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)