mongo_session_store 3.2.0 → 3.2.2

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 (140) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +100 -0
  3. data/.github/workflows/danger-comment.yml +11 -0
  4. data/.github/workflows/danger.yml +45 -0
  5. data/.rubocop.yml +4 -4
  6. data/CHANGELOG.md +9 -2
  7. data/Dangerfile +5 -1
  8. data/Gemfile +2 -0
  9. data/Gemfile.danger +5 -0
  10. data/README.md +30 -7
  11. data/RELEASING.md +37 -0
  12. data/Rakefile +4 -4
  13. data/docker-compose.yml +5 -0
  14. data/gemfiles/rails-5.1-mongoid.gemfile +1 -1
  15. data/gemfiles/rails-6.0-mongo.gemfile +12 -0
  16. data/gemfiles/rails-6.0-mongoid.gemfile +12 -0
  17. data/gemfiles/rails-8.1-mongo.gemfile +14 -0
  18. data/gemfiles/rails-8.1-mongoid.gemfile +14 -0
  19. data/lib/mongo_session_store/mongo_store_base.rb +2 -1
  20. data/lib/mongo_session_store/mongoid_store.rb +1 -0
  21. data/lib/mongo_session_store/version.rb +1 -1
  22. data/mongo_session_store.gemspec +4 -7
  23. data/script/test +20 -0
  24. data/script/test_inner +19 -0
  25. data/script/testenv +6 -0
  26. data/spec/integrations/devise_spec.rb +2 -2
  27. data/spec/integrations/rack_spec.rb +19 -0
  28. data/spec/rails_helper.rb +3 -0
  29. data/spec/spec_helper.rb +4 -2
  30. data/spec/support/apps/rails_5.0_app/config/routes.rb +1 -0
  31. data/spec/support/apps/rails_5.1_app/config/routes.rb +1 -0
  32. data/spec/support/apps/rails_5.2_app/config/routes.rb +1 -0
  33. data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/Rakefile +2 -2
  34. data/spec/support/apps/rails_6.0_app/app/controllers/application_controller.rb +3 -0
  35. data/spec/support/apps/rails_6.0_app/app/models/application_record.rb +3 -0
  36. data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/app/models/user.rb +2 -2
  37. data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/app/views/layouts/application.html.erb +1 -1
  38. data/spec/support/apps/rails_6.0_app/bin/rails +4 -0
  39. data/spec/support/apps/rails_6.0_app/bin/setup +33 -0
  40. data/spec/support/apps/rails_6.0_app/config/application.rb +17 -0
  41. data/spec/support/apps/rails_6.0_app/config/boot.rb +3 -0
  42. data/spec/support/apps/rails_6.0_app/config/credentials.yml.enc +1 -0
  43. data/spec/support/apps/rails_6.0_app/config/database.yml +31 -0
  44. data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/config/environment.rb +1 -1
  45. data/spec/support/apps/rails_6.0_app/config/environments/development.rb +47 -0
  46. data/spec/support/apps/rails_6.0_app/config/environments/test.rb +38 -0
  47. data/spec/support/apps/rails_6.0_app/config/initializers/cookies_serializer.rb +5 -0
  48. data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/config/initializers/devise.rb +79 -34
  49. data/spec/support/apps/rails_6.0_app/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/spec/support/apps/rails_6.0_app/config/initializers/wrap_parameters.rb +14 -0
  51. data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/config/locales/devise.en.yml +22 -16
  52. data/spec/support/apps/{rails_4.1_app → rails_6.0_app}/config/locales/en.yml +11 -1
  53. data/spec/support/apps/rails_6.0_app/config/master.key +1 -0
  54. data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/config/routes.rb +1 -0
  55. data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/config.ru +2 -1
  56. data/spec/support/apps/{rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb → rails_6.0_app/db/migrate/20200427115501_add_devise_users.rb} +1 -1
  57. data/spec/support/apps/rails_6.0_app/db/schema.rb +23 -0
  58. data/spec/support/apps/rails_6.0_app/db/seeds.rb +7 -0
  59. data/spec/support/rack_app.rb +16 -0
  60. metadata +107 -235
  61. data/.travis.yml +0 -95
  62. data/gemfiles/rails-4.0-mongo.gemfile +0 -9
  63. data/gemfiles/rails-4.0-mongoid.gemfile +0 -9
  64. data/gemfiles/rails-4.1-mongo.gemfile +0 -9
  65. data/gemfiles/rails-4.1-mongoid.gemfile +0 -9
  66. data/gemfiles/rails-4.2-mongo.gemfile +0 -9
  67. data/gemfiles/rails-4.2-mongoid.gemfile +0 -9
  68. data/spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb +0 -5
  69. data/spec/support/apps/rails_4.0_app/app/models/user.rb +0 -5
  70. data/spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb +0 -17
  71. data/spec/support/apps/rails_4.0_app/bin/bundle +0 -3
  72. data/spec/support/apps/rails_4.0_app/bin/rails +0 -4
  73. data/spec/support/apps/rails_4.0_app/bin/rake +0 -4
  74. data/spec/support/apps/rails_4.0_app/config/application.rb +0 -11
  75. data/spec/support/apps/rails_4.0_app/config/boot.rb +0 -4
  76. data/spec/support/apps/rails_4.0_app/config/database.yml +0 -11
  77. data/spec/support/apps/rails_4.0_app/config/environment.rb +0 -5
  78. data/spec/support/apps/rails_4.0_app/config/environments/development.rb +0 -12
  79. data/spec/support/apps/rails_4.0_app/config/environments/test.rb +0 -19
  80. data/spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb +0 -12
  81. data/spec/support/apps/rails_4.0_app/config/initializers/session_store.rb +0 -1
  82. data/spec/support/apps/rails_4.0_app/config/locales/en.yml +0 -23
  83. data/spec/support/apps/rails_4.0_app/config/mongo.yml +0 -11
  84. data/spec/support/apps/rails_4.0_app/config/mongoid.yml +0 -13
  85. data/spec/support/apps/rails_4.0_app/config/routes.rb +0 -4
  86. data/spec/support/apps/rails_4.0_app/config.ru +0 -4
  87. data/spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb +0 -11
  88. data/spec/support/apps/rails_4.0_app/db/schema.rb +0 -25
  89. data/spec/support/apps/rails_4.1_app/Rakefile +0 -3
  90. data/spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb +0 -5
  91. data/spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb +0 -2
  92. data/spec/support/apps/rails_4.1_app/app/models/user.rb +0 -5
  93. data/spec/support/apps/rails_4.1_app/app/views/home/index.html.erb +0 -9
  94. data/spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb +0 -17
  95. data/spec/support/apps/rails_4.1_app/bin/bundle +0 -3
  96. data/spec/support/apps/rails_4.1_app/bin/rails +0 -4
  97. data/spec/support/apps/rails_4.1_app/bin/rake +0 -4
  98. data/spec/support/apps/rails_4.1_app/config/application.rb +0 -11
  99. data/spec/support/apps/rails_4.1_app/config/boot.rb +0 -4
  100. data/spec/support/apps/rails_4.1_app/config/database.yml +0 -11
  101. data/spec/support/apps/rails_4.1_app/config/environment.rb +0 -5
  102. data/spec/support/apps/rails_4.1_app/config/environments/development.rb +0 -12
  103. data/spec/support/apps/rails_4.1_app/config/environments/test.rb +0 -19
  104. data/spec/support/apps/rails_4.1_app/config/initializers/devise.rb +0 -254
  105. data/spec/support/apps/rails_4.1_app/config/locales/devise.en.yml +0 -59
  106. data/spec/support/apps/rails_4.1_app/config/mongo.yml +0 -11
  107. data/spec/support/apps/rails_4.1_app/config/mongoid.yml +0 -13
  108. data/spec/support/apps/rails_4.1_app/config/routes.rb +0 -4
  109. data/spec/support/apps/rails_4.1_app/config/secrets.yml +0 -22
  110. data/spec/support/apps/rails_4.1_app/config.ru +0 -2
  111. data/spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb +0 -11
  112. data/spec/support/apps/rails_4.1_app/db/schema.rb +0 -25
  113. data/spec/support/apps/rails_4.1_app/lib/assets/.keep +0 -0
  114. data/spec/support/apps/rails_4.1_app/lib/tasks/.keep +0 -0
  115. data/spec/support/apps/rails_4.1_app/log/.keep +0 -0
  116. data/spec/support/apps/rails_4.2_app/Rakefile +0 -2
  117. data/spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb +0 -5
  118. data/spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb +0 -2
  119. data/spec/support/apps/rails_4.2_app/app/views/home/index.html.erb +0 -9
  120. data/spec/support/apps/rails_4.2_app/bin/bundle +0 -3
  121. data/spec/support/apps/rails_4.2_app/bin/rails +0 -8
  122. data/spec/support/apps/rails_4.2_app/config/application.rb +0 -11
  123. data/spec/support/apps/rails_4.2_app/config/boot.rb +0 -3
  124. data/spec/support/apps/rails_4.2_app/config/database.yml +0 -11
  125. data/spec/support/apps/rails_4.2_app/config/environments/development.rb +0 -12
  126. data/spec/support/apps/rails_4.2_app/config/environments/test.rb +0 -19
  127. data/spec/support/apps/rails_4.2_app/config/initializers/devise.rb +0 -254
  128. data/spec/support/apps/rails_4.2_app/config/initializers/session_store.rb +0 -1
  129. data/spec/support/apps/rails_4.2_app/config/locales/en.yml +0 -23
  130. data/spec/support/apps/rails_4.2_app/config/secrets.yml +0 -22
  131. data/spec/support/apps/rails_4.2_app/db/schema.rb +0 -25
  132. /data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/app/controllers/home_controller.rb +0 -0
  133. /data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/app/views/home/index.html.erb +0 -0
  134. /data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/bin/rake +0 -0
  135. /data/spec/support/apps/{rails_4.1_app → rails_6.0_app}/config/initializers/session_store.rb +0 -0
  136. /data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/config/mongo.yml +0 -0
  137. /data/spec/support/apps/{rails_4.2_app → rails_6.0_app}/config/mongoid.yml +0 -0
  138. /data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/lib/assets/.keep +0 -0
  139. /data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/lib/tasks/.keep +0 -0
  140. /data/spec/support/apps/{rails_4.0_app → rails_6.0_app}/log/.keep +0 -0
@@ -0,0 +1,7 @@
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 rails db:seed command (or created alongside the database with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)
@@ -0,0 +1,16 @@
1
+ class MyApp
2
+ def call(_env)
3
+ [
4
+ 200,
5
+ { "Content-Type" => "text/html" },
6
+ ["Hello Rack app!"]
7
+ ]
8
+ end
9
+ end
10
+
11
+ MyAppWrapped = Rack::Builder.new do |builder|
12
+ if defined?(Rack::Session::Cookie)
13
+ builder.use Rack::Session::Cookie, :secret => "Very secret secret"
14
+ end
15
+ builder.run MyApp.new
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_session_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Bruijn
@@ -9,10 +9,10 @@ authors:
9
9
  - Nicolas Mérouze
10
10
  - Tony Pitale
11
11
  - Chris Brickley
12
- autorequire:
12
+ autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2019-04-26 00:00:00.000000000 Z
15
+ date: 2026-10-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: actionpack
@@ -42,119 +42,80 @@ dependencies:
42
42
  - - "~>"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '2.0'
45
- - !ruby/object:Gem::Dependency
46
- name: rspec-rails
47
- requirement: !ruby/object:Gem::Requirement
48
- requirements:
49
- - - "~>"
50
- - !ruby/object:Gem::Version
51
- version: '3.6'
52
- type: :development
53
- prerelease: false
54
- version_requirements: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - "~>"
57
- - !ruby/object:Gem::Version
58
- version: '3.6'
59
45
  - !ruby/object:Gem::Dependency
60
46
  name: capybara
61
47
  requirement: !ruby/object:Gem::Requirement
62
48
  requirements:
63
- - - "~>"
64
- - !ruby/object:Gem::Version
65
- version: 2.15.0
66
- type: :development
67
- prerelease: false
68
- version_requirements: !ruby/object:Gem::Requirement
69
- requirements:
70
- - - "~>"
71
- - !ruby/object:Gem::Version
72
- version: 2.15.0
73
- - !ruby/object:Gem::Dependency
74
- name: pry
75
- requirement: !ruby/object:Gem::Requirement
76
- requirements:
77
- - - "~>"
49
+ - - ">="
78
50
  - !ruby/object:Gem::Version
79
- version: '0.10'
51
+ version: '2.15'
80
52
  type: :development
81
53
  prerelease: false
82
54
  version_requirements: !ruby/object:Gem::Requirement
83
55
  requirements:
84
- - - "~>"
56
+ - - ">="
85
57
  - !ruby/object:Gem::Version
86
- version: '0.10'
58
+ version: '2.15'
87
59
  - !ruby/object:Gem::Dependency
88
60
  name: rake
89
61
  requirement: !ruby/object:Gem::Requirement
90
62
  requirements:
91
- - - "~>"
92
- - !ruby/object:Gem::Version
93
- version: '11'
94
- type: :development
95
- prerelease: false
96
- version_requirements: !ruby/object:Gem::Requirement
97
- requirements:
98
- - - "~>"
99
- - !ruby/object:Gem::Version
100
- version: '11'
101
- - !ruby/object:Gem::Dependency
102
- name: rubocop
103
- requirement: !ruby/object:Gem::Requirement
104
- requirements:
105
- - - '='
63
+ - - ">="
106
64
  - !ruby/object:Gem::Version
107
- version: 0.45.0
65
+ version: '0'
108
66
  type: :development
109
67
  prerelease: false
110
68
  version_requirements: !ruby/object:Gem::Requirement
111
69
  requirements:
112
- - - '='
70
+ - - ">="
113
71
  - !ruby/object:Gem::Version
114
- version: 0.45.0
72
+ version: '0'
115
73
  - !ruby/object:Gem::Dependency
116
- name: mongoid-danger
74
+ name: rspec-rails
117
75
  requirement: !ruby/object:Gem::Requirement
118
76
  requirements:
119
- - - "~>"
77
+ - - ">="
120
78
  - !ruby/object:Gem::Version
121
- version: 0.1.0
79
+ version: '4.0'
122
80
  type: :development
123
81
  prerelease: false
124
82
  version_requirements: !ruby/object:Gem::Requirement
125
83
  requirements:
126
- - - "~>"
84
+ - - ">="
127
85
  - !ruby/object:Gem::Version
128
- version: 0.1.0
129
- description:
86
+ version: '4.0'
87
+ description:
130
88
  email:
131
89
  - tom@tomdebruijn.com
132
90
  executables: []
133
91
  extensions: []
134
92
  extra_rdoc_files: []
135
93
  files:
94
+ - ".github/workflows/ci.yml"
95
+ - ".github/workflows/danger-comment.yml"
96
+ - ".github/workflows/danger.yml"
136
97
  - ".gitignore"
137
98
  - ".rspec"
138
99
  - ".rubocop.yml"
139
- - ".travis.yml"
140
100
  - CHANGELOG.md
141
101
  - Dangerfile
142
102
  - Gemfile
103
+ - Gemfile.danger
143
104
  - LICENSE
144
105
  - README.md
106
+ - RELEASING.md
145
107
  - Rakefile
146
- - gemfiles/rails-4.0-mongo.gemfile
147
- - gemfiles/rails-4.0-mongoid.gemfile
148
- - gemfiles/rails-4.1-mongo.gemfile
149
- - gemfiles/rails-4.1-mongoid.gemfile
150
- - gemfiles/rails-4.2-mongo.gemfile
151
- - gemfiles/rails-4.2-mongoid.gemfile
108
+ - docker-compose.yml
152
109
  - gemfiles/rails-5.0-mongo.gemfile
153
110
  - gemfiles/rails-5.0-mongoid.gemfile
154
111
  - gemfiles/rails-5.1-mongo.gemfile
155
112
  - gemfiles/rails-5.1-mongoid.gemfile
156
113
  - gemfiles/rails-5.2-mongo.gemfile
157
114
  - gemfiles/rails-5.2-mongoid.gemfile
115
+ - gemfiles/rails-6.0-mongo.gemfile
116
+ - gemfiles/rails-6.0-mongoid.gemfile
117
+ - gemfiles/rails-8.1-mongo.gemfile
118
+ - gemfiles/rails-8.1-mongoid.gemfile
158
119
  - lib/mongo_session_store.rb
159
120
  - lib/mongo_session_store/mongo_store.rb
160
121
  - lib/mongo_session_store/mongo_store_base.rb
@@ -162,8 +123,12 @@ files:
162
123
  - lib/mongo_session_store/version.rb
163
124
  - mongo_session_store.gemspec
164
125
  - perf/benchmark.rb
126
+ - script/test
127
+ - script/test_inner
128
+ - script/testenv
165
129
  - spec/.rubocop.yml
166
130
  - spec/integrations/devise_spec.rb
131
+ - spec/integrations/rack_spec.rb
167
132
  - spec/lib/mongo_session_store/mongo_store/session_spec.rb
168
133
  - spec/lib/mongo_session_store/mongo_store_base_spec.rb
169
134
  - spec/lib/mongo_session_store/mongo_store_spec.rb
@@ -172,89 +137,6 @@ files:
172
137
  - spec/lib/mongo_session_store_spec.rb
173
138
  - spec/rails_helper.rb
174
139
  - spec/spec_helper.rb
175
- - spec/support/apps/rails_4.0_app/Rakefile
176
- - spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb
177
- - spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb
178
- - spec/support/apps/rails_4.0_app/app/models/user.rb
179
- - spec/support/apps/rails_4.0_app/app/views/home/index.html.erb
180
- - spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb
181
- - spec/support/apps/rails_4.0_app/bin/bundle
182
- - spec/support/apps/rails_4.0_app/bin/rails
183
- - spec/support/apps/rails_4.0_app/bin/rake
184
- - spec/support/apps/rails_4.0_app/config.ru
185
- - spec/support/apps/rails_4.0_app/config/application.rb
186
- - spec/support/apps/rails_4.0_app/config/boot.rb
187
- - spec/support/apps/rails_4.0_app/config/database.yml
188
- - spec/support/apps/rails_4.0_app/config/environment.rb
189
- - spec/support/apps/rails_4.0_app/config/environments/development.rb
190
- - spec/support/apps/rails_4.0_app/config/environments/test.rb
191
- - spec/support/apps/rails_4.0_app/config/initializers/devise.rb
192
- - spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb
193
- - spec/support/apps/rails_4.0_app/config/initializers/session_store.rb
194
- - spec/support/apps/rails_4.0_app/config/locales/devise.en.yml
195
- - spec/support/apps/rails_4.0_app/config/locales/en.yml
196
- - spec/support/apps/rails_4.0_app/config/mongo.yml
197
- - spec/support/apps/rails_4.0_app/config/mongoid.yml
198
- - spec/support/apps/rails_4.0_app/config/routes.rb
199
- - spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb
200
- - spec/support/apps/rails_4.0_app/db/schema.rb
201
- - spec/support/apps/rails_4.0_app/lib/assets/.keep
202
- - spec/support/apps/rails_4.0_app/lib/tasks/.keep
203
- - spec/support/apps/rails_4.0_app/log/.keep
204
- - spec/support/apps/rails_4.1_app/Rakefile
205
- - spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb
206
- - spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb
207
- - spec/support/apps/rails_4.1_app/app/models/user.rb
208
- - spec/support/apps/rails_4.1_app/app/views/home/index.html.erb
209
- - spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb
210
- - spec/support/apps/rails_4.1_app/bin/bundle
211
- - spec/support/apps/rails_4.1_app/bin/rails
212
- - spec/support/apps/rails_4.1_app/bin/rake
213
- - spec/support/apps/rails_4.1_app/config.ru
214
- - spec/support/apps/rails_4.1_app/config/application.rb
215
- - spec/support/apps/rails_4.1_app/config/boot.rb
216
- - spec/support/apps/rails_4.1_app/config/database.yml
217
- - spec/support/apps/rails_4.1_app/config/environment.rb
218
- - spec/support/apps/rails_4.1_app/config/environments/development.rb
219
- - spec/support/apps/rails_4.1_app/config/environments/test.rb
220
- - spec/support/apps/rails_4.1_app/config/initializers/devise.rb
221
- - spec/support/apps/rails_4.1_app/config/initializers/session_store.rb
222
- - spec/support/apps/rails_4.1_app/config/locales/devise.en.yml
223
- - spec/support/apps/rails_4.1_app/config/locales/en.yml
224
- - spec/support/apps/rails_4.1_app/config/mongo.yml
225
- - spec/support/apps/rails_4.1_app/config/mongoid.yml
226
- - spec/support/apps/rails_4.1_app/config/routes.rb
227
- - spec/support/apps/rails_4.1_app/config/secrets.yml
228
- - spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb
229
- - spec/support/apps/rails_4.1_app/db/schema.rb
230
- - spec/support/apps/rails_4.1_app/lib/assets/.keep
231
- - spec/support/apps/rails_4.1_app/lib/tasks/.keep
232
- - spec/support/apps/rails_4.1_app/log/.keep
233
- - spec/support/apps/rails_4.2_app/Rakefile
234
- - spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb
235
- - spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb
236
- - spec/support/apps/rails_4.2_app/app/models/user.rb
237
- - spec/support/apps/rails_4.2_app/app/views/home/index.html.erb
238
- - spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb
239
- - spec/support/apps/rails_4.2_app/bin/bundle
240
- - spec/support/apps/rails_4.2_app/bin/rails
241
- - spec/support/apps/rails_4.2_app/bin/rake
242
- - spec/support/apps/rails_4.2_app/config.ru
243
- - spec/support/apps/rails_4.2_app/config/application.rb
244
- - spec/support/apps/rails_4.2_app/config/boot.rb
245
- - spec/support/apps/rails_4.2_app/config/database.yml
246
- - spec/support/apps/rails_4.2_app/config/environment.rb
247
- - spec/support/apps/rails_4.2_app/config/environments/development.rb
248
- - spec/support/apps/rails_4.2_app/config/environments/test.rb
249
- - spec/support/apps/rails_4.2_app/config/initializers/devise.rb
250
- - spec/support/apps/rails_4.2_app/config/initializers/session_store.rb
251
- - spec/support/apps/rails_4.2_app/config/locales/en.yml
252
- - spec/support/apps/rails_4.2_app/config/mongo.yml
253
- - spec/support/apps/rails_4.2_app/config/mongoid.yml
254
- - spec/support/apps/rails_4.2_app/config/routes.rb
255
- - spec/support/apps/rails_4.2_app/config/secrets.yml
256
- - spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb
257
- - spec/support/apps/rails_4.2_app/db/schema.rb
258
140
  - spec/support/apps/rails_5.0_app/Rakefile
259
141
  - spec/support/apps/rails_5.0_app/app/controllers/application_controller.rb
260
142
  - spec/support/apps/rails_5.0_app/app/controllers/home_controller.rb
@@ -342,13 +224,49 @@ files:
342
224
  - spec/support/apps/rails_5.2_app/db/migrate/20140301171212_add_devise_users.rb
343
225
  - spec/support/apps/rails_5.2_app/db/schema.rb
344
226
  - spec/support/apps/rails_5.2_app/log/.keep
227
+ - spec/support/apps/rails_6.0_app/Rakefile
228
+ - spec/support/apps/rails_6.0_app/app/controllers/application_controller.rb
229
+ - spec/support/apps/rails_6.0_app/app/controllers/home_controller.rb
230
+ - spec/support/apps/rails_6.0_app/app/models/application_record.rb
231
+ - spec/support/apps/rails_6.0_app/app/models/user.rb
232
+ - spec/support/apps/rails_6.0_app/app/views/home/index.html.erb
233
+ - spec/support/apps/rails_6.0_app/app/views/layouts/application.html.erb
234
+ - spec/support/apps/rails_6.0_app/bin/rails
235
+ - spec/support/apps/rails_6.0_app/bin/rake
236
+ - spec/support/apps/rails_6.0_app/bin/setup
237
+ - spec/support/apps/rails_6.0_app/config.ru
238
+ - spec/support/apps/rails_6.0_app/config/application.rb
239
+ - spec/support/apps/rails_6.0_app/config/boot.rb
240
+ - spec/support/apps/rails_6.0_app/config/credentials.yml.enc
241
+ - spec/support/apps/rails_6.0_app/config/database.yml
242
+ - spec/support/apps/rails_6.0_app/config/environment.rb
243
+ - spec/support/apps/rails_6.0_app/config/environments/development.rb
244
+ - spec/support/apps/rails_6.0_app/config/environments/test.rb
245
+ - spec/support/apps/rails_6.0_app/config/initializers/cookies_serializer.rb
246
+ - spec/support/apps/rails_6.0_app/config/initializers/devise.rb
247
+ - spec/support/apps/rails_6.0_app/config/initializers/filter_parameter_logging.rb
248
+ - spec/support/apps/rails_6.0_app/config/initializers/session_store.rb
249
+ - spec/support/apps/rails_6.0_app/config/initializers/wrap_parameters.rb
250
+ - spec/support/apps/rails_6.0_app/config/locales/devise.en.yml
251
+ - spec/support/apps/rails_6.0_app/config/locales/en.yml
252
+ - spec/support/apps/rails_6.0_app/config/master.key
253
+ - spec/support/apps/rails_6.0_app/config/mongo.yml
254
+ - spec/support/apps/rails_6.0_app/config/mongoid.yml
255
+ - spec/support/apps/rails_6.0_app/config/routes.rb
256
+ - spec/support/apps/rails_6.0_app/db/migrate/20200427115501_add_devise_users.rb
257
+ - spec/support/apps/rails_6.0_app/db/schema.rb
258
+ - spec/support/apps/rails_6.0_app/db/seeds.rb
259
+ - spec/support/apps/rails_6.0_app/lib/assets/.keep
260
+ - spec/support/apps/rails_6.0_app/lib/tasks/.keep
261
+ - spec/support/apps/rails_6.0_app/log/.keep
345
262
  - spec/support/helpers/session_id_helper.rb
346
263
  - spec/support/helpers/test_database_helper.rb
264
+ - spec/support/rack_app.rb
347
265
  homepage: http://github.com/mongoid/mongo_session_store
348
266
  licenses:
349
267
  - MIT
350
268
  metadata: {}
351
- post_install_message:
269
+ post_install_message:
352
270
  rdoc_options: []
353
271
  require_paths:
354
272
  - lib
@@ -363,13 +281,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
363
281
  - !ruby/object:Gem::Version
364
282
  version: '0'
365
283
  requirements: []
366
- rubygems_version: 3.0.2
367
- signing_key:
284
+ rubygems_version: 3.5.16
285
+ signing_key:
368
286
  specification_version: 4
369
287
  summary: Rails session stores for Mongoid, or any other ODM. Rails 4 compatible.
370
288
  test_files:
371
289
  - perf/benchmark.rb
372
290
  - spec/integrations/devise_spec.rb
291
+ - spec/integrations/rack_spec.rb
373
292
  - spec/lib/mongo_session_store/mongo_store/session_spec.rb
374
293
  - spec/lib/mongo_session_store/mongo_store_base_spec.rb
375
294
  - spec/lib/mongo_session_store/mongo_store_spec.rb
@@ -378,89 +297,6 @@ test_files:
378
297
  - spec/lib/mongo_session_store_spec.rb
379
298
  - spec/rails_helper.rb
380
299
  - spec/spec_helper.rb
381
- - spec/support/apps/rails_4.0_app/Rakefile
382
- - spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb
383
- - spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb
384
- - spec/support/apps/rails_4.0_app/app/models/user.rb
385
- - spec/support/apps/rails_4.0_app/app/views/home/index.html.erb
386
- - spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb
387
- - spec/support/apps/rails_4.0_app/bin/bundle
388
- - spec/support/apps/rails_4.0_app/bin/rails
389
- - spec/support/apps/rails_4.0_app/bin/rake
390
- - spec/support/apps/rails_4.0_app/config.ru
391
- - spec/support/apps/rails_4.0_app/config/application.rb
392
- - spec/support/apps/rails_4.0_app/config/boot.rb
393
- - spec/support/apps/rails_4.0_app/config/database.yml
394
- - spec/support/apps/rails_4.0_app/config/environment.rb
395
- - spec/support/apps/rails_4.0_app/config/environments/development.rb
396
- - spec/support/apps/rails_4.0_app/config/environments/test.rb
397
- - spec/support/apps/rails_4.0_app/config/initializers/devise.rb
398
- - spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb
399
- - spec/support/apps/rails_4.0_app/config/initializers/session_store.rb
400
- - spec/support/apps/rails_4.0_app/config/locales/devise.en.yml
401
- - spec/support/apps/rails_4.0_app/config/locales/en.yml
402
- - spec/support/apps/rails_4.0_app/config/mongo.yml
403
- - spec/support/apps/rails_4.0_app/config/mongoid.yml
404
- - spec/support/apps/rails_4.0_app/config/routes.rb
405
- - spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb
406
- - spec/support/apps/rails_4.0_app/db/schema.rb
407
- - spec/support/apps/rails_4.0_app/lib/assets/.keep
408
- - spec/support/apps/rails_4.0_app/lib/tasks/.keep
409
- - spec/support/apps/rails_4.0_app/log/.keep
410
- - spec/support/apps/rails_4.1_app/Rakefile
411
- - spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb
412
- - spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb
413
- - spec/support/apps/rails_4.1_app/app/models/user.rb
414
- - spec/support/apps/rails_4.1_app/app/views/home/index.html.erb
415
- - spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb
416
- - spec/support/apps/rails_4.1_app/bin/bundle
417
- - spec/support/apps/rails_4.1_app/bin/rails
418
- - spec/support/apps/rails_4.1_app/bin/rake
419
- - spec/support/apps/rails_4.1_app/config.ru
420
- - spec/support/apps/rails_4.1_app/config/application.rb
421
- - spec/support/apps/rails_4.1_app/config/boot.rb
422
- - spec/support/apps/rails_4.1_app/config/database.yml
423
- - spec/support/apps/rails_4.1_app/config/environment.rb
424
- - spec/support/apps/rails_4.1_app/config/environments/development.rb
425
- - spec/support/apps/rails_4.1_app/config/environments/test.rb
426
- - spec/support/apps/rails_4.1_app/config/initializers/devise.rb
427
- - spec/support/apps/rails_4.1_app/config/initializers/session_store.rb
428
- - spec/support/apps/rails_4.1_app/config/locales/devise.en.yml
429
- - spec/support/apps/rails_4.1_app/config/locales/en.yml
430
- - spec/support/apps/rails_4.1_app/config/mongo.yml
431
- - spec/support/apps/rails_4.1_app/config/mongoid.yml
432
- - spec/support/apps/rails_4.1_app/config/routes.rb
433
- - spec/support/apps/rails_4.1_app/config/secrets.yml
434
- - spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb
435
- - spec/support/apps/rails_4.1_app/db/schema.rb
436
- - spec/support/apps/rails_4.1_app/lib/assets/.keep
437
- - spec/support/apps/rails_4.1_app/lib/tasks/.keep
438
- - spec/support/apps/rails_4.1_app/log/.keep
439
- - spec/support/apps/rails_4.2_app/Rakefile
440
- - spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb
441
- - spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb
442
- - spec/support/apps/rails_4.2_app/app/models/user.rb
443
- - spec/support/apps/rails_4.2_app/app/views/home/index.html.erb
444
- - spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb
445
- - spec/support/apps/rails_4.2_app/bin/bundle
446
- - spec/support/apps/rails_4.2_app/bin/rails
447
- - spec/support/apps/rails_4.2_app/bin/rake
448
- - spec/support/apps/rails_4.2_app/config.ru
449
- - spec/support/apps/rails_4.2_app/config/application.rb
450
- - spec/support/apps/rails_4.2_app/config/boot.rb
451
- - spec/support/apps/rails_4.2_app/config/database.yml
452
- - spec/support/apps/rails_4.2_app/config/environment.rb
453
- - spec/support/apps/rails_4.2_app/config/environments/development.rb
454
- - spec/support/apps/rails_4.2_app/config/environments/test.rb
455
- - spec/support/apps/rails_4.2_app/config/initializers/devise.rb
456
- - spec/support/apps/rails_4.2_app/config/initializers/session_store.rb
457
- - spec/support/apps/rails_4.2_app/config/locales/en.yml
458
- - spec/support/apps/rails_4.2_app/config/mongo.yml
459
- - spec/support/apps/rails_4.2_app/config/mongoid.yml
460
- - spec/support/apps/rails_4.2_app/config/routes.rb
461
- - spec/support/apps/rails_4.2_app/config/secrets.yml
462
- - spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb
463
- - spec/support/apps/rails_4.2_app/db/schema.rb
464
300
  - spec/support/apps/rails_5.0_app/Rakefile
465
301
  - spec/support/apps/rails_5.0_app/app/controllers/application_controller.rb
466
302
  - spec/support/apps/rails_5.0_app/app/controllers/home_controller.rb
@@ -548,5 +384,41 @@ test_files:
548
384
  - spec/support/apps/rails_5.2_app/db/migrate/20140301171212_add_devise_users.rb
549
385
  - spec/support/apps/rails_5.2_app/db/schema.rb
550
386
  - spec/support/apps/rails_5.2_app/log/.keep
387
+ - spec/support/apps/rails_6.0_app/Rakefile
388
+ - spec/support/apps/rails_6.0_app/app/controllers/application_controller.rb
389
+ - spec/support/apps/rails_6.0_app/app/controllers/home_controller.rb
390
+ - spec/support/apps/rails_6.0_app/app/models/application_record.rb
391
+ - spec/support/apps/rails_6.0_app/app/models/user.rb
392
+ - spec/support/apps/rails_6.0_app/app/views/home/index.html.erb
393
+ - spec/support/apps/rails_6.0_app/app/views/layouts/application.html.erb
394
+ - spec/support/apps/rails_6.0_app/bin/rails
395
+ - spec/support/apps/rails_6.0_app/bin/rake
396
+ - spec/support/apps/rails_6.0_app/bin/setup
397
+ - spec/support/apps/rails_6.0_app/config.ru
398
+ - spec/support/apps/rails_6.0_app/config/application.rb
399
+ - spec/support/apps/rails_6.0_app/config/boot.rb
400
+ - spec/support/apps/rails_6.0_app/config/credentials.yml.enc
401
+ - spec/support/apps/rails_6.0_app/config/database.yml
402
+ - spec/support/apps/rails_6.0_app/config/environment.rb
403
+ - spec/support/apps/rails_6.0_app/config/environments/development.rb
404
+ - spec/support/apps/rails_6.0_app/config/environments/test.rb
405
+ - spec/support/apps/rails_6.0_app/config/initializers/cookies_serializer.rb
406
+ - spec/support/apps/rails_6.0_app/config/initializers/devise.rb
407
+ - spec/support/apps/rails_6.0_app/config/initializers/filter_parameter_logging.rb
408
+ - spec/support/apps/rails_6.0_app/config/initializers/session_store.rb
409
+ - spec/support/apps/rails_6.0_app/config/initializers/wrap_parameters.rb
410
+ - spec/support/apps/rails_6.0_app/config/locales/devise.en.yml
411
+ - spec/support/apps/rails_6.0_app/config/locales/en.yml
412
+ - spec/support/apps/rails_6.0_app/config/master.key
413
+ - spec/support/apps/rails_6.0_app/config/mongo.yml
414
+ - spec/support/apps/rails_6.0_app/config/mongoid.yml
415
+ - spec/support/apps/rails_6.0_app/config/routes.rb
416
+ - spec/support/apps/rails_6.0_app/db/migrate/20200427115501_add_devise_users.rb
417
+ - spec/support/apps/rails_6.0_app/db/schema.rb
418
+ - spec/support/apps/rails_6.0_app/db/seeds.rb
419
+ - spec/support/apps/rails_6.0_app/lib/assets/.keep
420
+ - spec/support/apps/rails_6.0_app/lib/tasks/.keep
421
+ - spec/support/apps/rails_6.0_app/log/.keep
551
422
  - spec/support/helpers/session_id_helper.rb
552
423
  - spec/support/helpers/test_database_helper.rb
424
+ - spec/support/rack_app.rb
data/.travis.yml DELETED
@@ -1,95 +0,0 @@
1
- branches:
2
- only:
3
- - master
4
- - develop
5
- language: ruby
6
-
7
- cache: bundler
8
-
9
- rvm:
10
- - 2.1.10
11
- - 2.3.8
12
- - 2.4.5
13
- - 2.5.5
14
- - 2.6.3
15
-
16
- gemfile:
17
- - gemfiles/rails-4.0-mongo.gemfile
18
- - gemfiles/rails-4.0-mongoid.gemfile
19
- - gemfiles/rails-4.1-mongo.gemfile
20
- - gemfiles/rails-4.1-mongoid.gemfile
21
- - gemfiles/rails-4.2-mongo.gemfile
22
- - gemfiles/rails-4.2-mongoid.gemfile
23
- - gemfiles/rails-5.0-mongo.gemfile
24
- - gemfiles/rails-5.0-mongoid.gemfile
25
- - gemfiles/rails-5.1-mongo.gemfile
26
- - gemfiles/rails-5.1-mongoid.gemfile
27
- - gemfiles/rails-5.2-mongo.gemfile
28
- - gemfiles/rails-5.2-mongoid.gemfile
29
-
30
- matrix:
31
- fast_finish: true
32
- include:
33
- - rvm: 2.5.5
34
- gemfile: gemfiles/rails-5.2-mongo.gemfile
35
- script: bundle exec rubocop
36
- - rvm: 2.5.5
37
- gemfile: gemfiles/rails-5.2-mongo.gemfile
38
- script: bundle exec danger
39
- exclude:
40
- - rvm: 2.1.10
41
- gemfile: gemfiles/rails-5.0-mongo.gemfile
42
- - rvm: 2.1.10
43
- gemfile: gemfiles/rails-5.0-mongoid.gemfile
44
- - rvm: 2.1.10
45
- gemfile: gemfiles/rails-5.1-mongo.gemfile
46
- - rvm: 2.1.10
47
- gemfile: gemfiles/rails-5.1-mongoid.gemfile
48
- - rvm: 2.1.10
49
- gemfile: gemfiles/rails-5.2-mongo.gemfile
50
- - rvm: 2.1.10
51
- gemfile: gemfiles/rails-5.2-mongoid.gemfile
52
- - rvm: 2.4.5
53
- gemfile: gemfiles/rails-4.0-mongo.gemfile
54
- - rvm: 2.4.5
55
- gemfile: gemfiles/rails-4.0-mongoid.gemfile
56
- - rvm: 2.4.5
57
- gemfile: gemfiles/rails-4.1-mongo.gemfile
58
- - rvm: 2.4.5
59
- gemfile: gemfiles/rails-4.1-mongoid.gemfile
60
- - rvm: 2.5.5
61
- gemfile: gemfiles/rails-4.0-mongo.gemfile
62
- - rvm: 2.5.5
63
- gemfile: gemfiles/rails-4.0-mongoid.gemfile
64
- - rvm: 2.5.5
65
- gemfile: gemfiles/rails-4.1-mongo.gemfile
66
- - rvm: 2.5.5
67
- gemfile: gemfiles/rails-4.1-mongoid.gemfile
68
- - rvm: 2.5.5
69
- gemfile: gemfiles/rails-4.2-mongo.gemfile
70
- - rvm: 2.5.5
71
- gemfile: gemfiles/rails-4.2-mongoid.gemfile
72
- - rvm: 2.6.3
73
- gemfile: gemfiles/rails-4.0-mongo.gemfile
74
- - rvm: 2.6.3
75
- gemfile: gemfiles/rails-4.0-mongoid.gemfile
76
- - rvm: 2.6.3
77
- gemfile: gemfiles/rails-4.1-mongo.gemfile
78
- - rvm: 2.6.3
79
- gemfile: gemfiles/rails-4.1-mongoid.gemfile
80
- - rvm: 2.6.3
81
- gemfile: gemfiles/rails-4.2-mongo.gemfile
82
- - rvm: 2.6.3
83
- gemfile: gemfiles/rails-4.2-mongoid.gemfile
84
-
85
- services: mongodb
86
-
87
- addons:
88
- apt:
89
- sources:
90
- - mongodb-3.2-precise
91
- packages:
92
- - mongodb-org-server
93
-
94
- script:
95
- - bundle exec rake test
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "mongo"
4
-
5
- gem "rails", "~> 4.0.0"
6
- gem "devise", "~> 3.5"
7
- gem "sqlite3", "~> 1.3.6"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "mongoid"
4
-
5
- gem "rails", "~> 4.0.0"
6
- gem "devise", "~> 3.5"
7
- gem "sqlite3", "~> 1.3.6"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "mongo"
4
-
5
- gem "rails", "~> 4.1.0"
6
- gem "devise", Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.1") ? "3.5.10" : ">= 4.2"
7
- gem "sqlite3", "~> 1.3.6"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "mongoid"
4
-
5
- gem "rails", "~> 4.1.0"
6
- gem "devise", Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.1") ? "3.5.10" : ">= 4.2"
7
- gem "sqlite3", "~> 1.3.6"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "mongo"
4
-
5
- gem "rails", "~> 4.2.8"
6
- gem "devise", Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.1") ? "3.5.10" : ">= 4.2"
7
- gem "sqlite3", "~> 1.3.6"
8
-
9
- gemspec :path => "../"
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem "mongoid"
4
-
5
- gem "rails", "~> 4.2.8"
6
- gem "devise", Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.1") ? "3.5.10" : ">= 4.2"
7
- gem "sqlite3", "~> 1.3.6"
8
-
9
- gemspec :path => "../"
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,5 +0,0 @@
1
- class User < ActiveRecord::Base
2
- # Include default devise modules. Others available are:
3
- # :confirmable, :lockable, :timeoutable and :omniauthable
4
- devise :database_authenticatable, :registerable
5
- end