mongo_session_store 3.2.1 → 3.3.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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +136 -0
- data/.github/workflows/danger-comment.yml +17 -0
- data/.github/workflows/danger.yml +53 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +15 -6
- data/.rubocop_todo.yml +195 -0
- data/CHANGELOG.md +20 -13
- data/Dangerfile +5 -1
- data/Gemfile +2 -0
- data/Gemfile.danger +5 -0
- data/README.md +71 -9
- data/RELEASING.md +37 -0
- data/docker-compose.yml +5 -0
- data/gemfiles/rails-5.1-mongoid.gemfile +1 -1
- data/gemfiles/rails-6.0-mongo.gemfile +4 -1
- data/gemfiles/rails-6.0-mongoid.gemfile +4 -1
- data/gemfiles/rails-8.1-mongo.gemfile +15 -0
- data/gemfiles/rails-8.1-mongoid.gemfile +15 -0
- data/gemfiles/rails-current-mongo.gemfile +16 -0
- data/gemfiles/rails-current-mongoid.gemfile +3 -0
- data/lib/mongo_session_store/mongo_store.rb +1 -1
- data/lib/mongo_session_store/mongo_store_base.rb +7 -0
- data/lib/mongo_session_store/mongoid_store.rb +1 -0
- data/lib/mongo_session_store/version.rb +1 -1
- data/mongo_session_store.gemspec +4 -7
- data/script/test +20 -0
- data/script/test_inner +19 -0
- data/script/testenv +6 -0
- data/spec/.rubocop.yml +1 -1
- data/spec/integrations/devise_spec.rb +2 -2
- data/spec/lib/mongo_session_store/legacy_serialization_spec.rb +17 -0
- data/spec/lib/mongo_session_store/serialization_spec.rb +36 -0
- data/spec/lib/mongo_session_store/stale_sessions_spec.rb +77 -0
- data/spec/lib/mongo_session_store/version_spec.rb +8 -0
- data/spec/rails_helper.rb +4 -0
- data/spec/spec_helper.rb +14 -2
- data/spec/support/apps/rails_6.0_app/config/database.yml +9 -3
- data/spec/support/apps/rails_6.0_app/config/environments/test.rb +1 -1
- data/spec/support/helpers/test_database_helper.rb +1 -3
- data/spec/support/rack_app.rb +3 -1
- metadata +42 -235
- data/.travis.yml +0 -109
- data/gemfiles/rails-4.0-mongo.gemfile +0 -9
- data/gemfiles/rails-4.0-mongoid.gemfile +0 -9
- data/gemfiles/rails-4.1-mongo.gemfile +0 -9
- data/gemfiles/rails-4.1-mongoid.gemfile +0 -9
- data/gemfiles/rails-4.2-mongo.gemfile +0 -9
- data/gemfiles/rails-4.2-mongoid.gemfile +0 -9
- data/spec/support/apps/rails_4.0_app/Rakefile +0 -6
- data/spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb +0 -5
- data/spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb +0 -2
- data/spec/support/apps/rails_4.0_app/app/models/user.rb +0 -5
- data/spec/support/apps/rails_4.0_app/app/views/home/index.html.erb +0 -9
- data/spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb +0 -17
- data/spec/support/apps/rails_4.0_app/bin/bundle +0 -3
- data/spec/support/apps/rails_4.0_app/bin/rails +0 -4
- data/spec/support/apps/rails_4.0_app/bin/rake +0 -4
- data/spec/support/apps/rails_4.0_app/config/application.rb +0 -11
- data/spec/support/apps/rails_4.0_app/config/boot.rb +0 -4
- data/spec/support/apps/rails_4.0_app/config/database.yml +0 -11
- data/spec/support/apps/rails_4.0_app/config/environment.rb +0 -5
- data/spec/support/apps/rails_4.0_app/config/environments/development.rb +0 -12
- data/spec/support/apps/rails_4.0_app/config/environments/test.rb +0 -19
- data/spec/support/apps/rails_4.0_app/config/initializers/devise.rb +0 -254
- data/spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb +0 -12
- data/spec/support/apps/rails_4.0_app/config/initializers/session_store.rb +0 -1
- data/spec/support/apps/rails_4.0_app/config/locales/devise.en.yml +0 -59
- data/spec/support/apps/rails_4.0_app/config/locales/en.yml +0 -23
- data/spec/support/apps/rails_4.0_app/config/mongo.yml +0 -11
- data/spec/support/apps/rails_4.0_app/config/mongoid.yml +0 -13
- data/spec/support/apps/rails_4.0_app/config/routes.rb +0 -5
- data/spec/support/apps/rails_4.0_app/config.ru +0 -4
- data/spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb +0 -11
- data/spec/support/apps/rails_4.0_app/db/schema.rb +0 -25
- data/spec/support/apps/rails_4.0_app/lib/assets/.keep +0 -0
- data/spec/support/apps/rails_4.0_app/lib/tasks/.keep +0 -0
- data/spec/support/apps/rails_4.0_app/log/.keep +0 -0
- data/spec/support/apps/rails_4.1_app/Rakefile +0 -3
- data/spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb +0 -5
- data/spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb +0 -2
- data/spec/support/apps/rails_4.1_app/app/models/user.rb +0 -5
- data/spec/support/apps/rails_4.1_app/app/views/home/index.html.erb +0 -9
- data/spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb +0 -17
- data/spec/support/apps/rails_4.1_app/bin/bundle +0 -3
- data/spec/support/apps/rails_4.1_app/bin/rails +0 -4
- data/spec/support/apps/rails_4.1_app/bin/rake +0 -4
- data/spec/support/apps/rails_4.1_app/config/application.rb +0 -11
- data/spec/support/apps/rails_4.1_app/config/boot.rb +0 -4
- data/spec/support/apps/rails_4.1_app/config/database.yml +0 -11
- data/spec/support/apps/rails_4.1_app/config/environment.rb +0 -5
- data/spec/support/apps/rails_4.1_app/config/environments/development.rb +0 -12
- data/spec/support/apps/rails_4.1_app/config/environments/test.rb +0 -19
- data/spec/support/apps/rails_4.1_app/config/initializers/devise.rb +0 -254
- data/spec/support/apps/rails_4.1_app/config/initializers/session_store.rb +0 -1
- data/spec/support/apps/rails_4.1_app/config/locales/devise.en.yml +0 -59
- data/spec/support/apps/rails_4.1_app/config/locales/en.yml +0 -23
- data/spec/support/apps/rails_4.1_app/config/mongo.yml +0 -11
- data/spec/support/apps/rails_4.1_app/config/mongoid.yml +0 -13
- data/spec/support/apps/rails_4.1_app/config/routes.rb +0 -5
- data/spec/support/apps/rails_4.1_app/config/secrets.yml +0 -22
- data/spec/support/apps/rails_4.1_app/config.ru +0 -2
- data/spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb +0 -11
- data/spec/support/apps/rails_4.1_app/db/schema.rb +0 -25
- data/spec/support/apps/rails_4.1_app/lib/assets/.keep +0 -0
- data/spec/support/apps/rails_4.1_app/lib/tasks/.keep +0 -0
- data/spec/support/apps/rails_4.1_app/log/.keep +0 -0
- data/spec/support/apps/rails_4.2_app/Rakefile +0 -2
- data/spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb +0 -5
- data/spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb +0 -2
- data/spec/support/apps/rails_4.2_app/app/models/user.rb +0 -5
- data/spec/support/apps/rails_4.2_app/app/views/home/index.html.erb +0 -9
- data/spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb +0 -15
- data/spec/support/apps/rails_4.2_app/bin/bundle +0 -3
- data/spec/support/apps/rails_4.2_app/bin/rails +0 -8
- data/spec/support/apps/rails_4.2_app/bin/rake +0 -4
- data/spec/support/apps/rails_4.2_app/config/application.rb +0 -11
- data/spec/support/apps/rails_4.2_app/config/boot.rb +0 -3
- data/spec/support/apps/rails_4.2_app/config/database.yml +0 -11
- data/spec/support/apps/rails_4.2_app/config/environment.rb +0 -5
- data/spec/support/apps/rails_4.2_app/config/environments/development.rb +0 -12
- data/spec/support/apps/rails_4.2_app/config/environments/test.rb +0 -19
- data/spec/support/apps/rails_4.2_app/config/initializers/devise.rb +0 -254
- data/spec/support/apps/rails_4.2_app/config/initializers/session_store.rb +0 -1
- data/spec/support/apps/rails_4.2_app/config/locales/en.yml +0 -23
- data/spec/support/apps/rails_4.2_app/config/mongo.yml +0 -11
- data/spec/support/apps/rails_4.2_app/config/mongoid.yml +0 -13
- data/spec/support/apps/rails_4.2_app/config/routes.rb +0 -5
- data/spec/support/apps/rails_4.2_app/config/secrets.yml +0 -22
- data/spec/support/apps/rails_4.2_app/config.ru +0 -4
- data/spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb +0 -11
- data/spec/support/apps/rails_4.2_app/db/schema.rb +0 -25
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.
|
|
4
|
+
version: 3.3.0
|
|
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:
|
|
15
|
+
date: 2026-10-18 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: actionpack
|
|
@@ -42,113 +42,71 @@ 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: '
|
|
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: '
|
|
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
|
|
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
|
|
72
|
+
version: '0'
|
|
115
73
|
- !ruby/object:Gem::Dependency
|
|
116
|
-
name:
|
|
74
|
+
name: rspec-rails
|
|
117
75
|
requirement: !ruby/object:Gem::Requirement
|
|
118
76
|
requirements:
|
|
119
|
-
- - "
|
|
77
|
+
- - ">="
|
|
120
78
|
- !ruby/object:Gem::Version
|
|
121
|
-
version:
|
|
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:
|
|
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
|
-
- ".
|
|
100
|
+
- ".rubocop_todo.yml"
|
|
140
101
|
- CHANGELOG.md
|
|
141
102
|
- Dangerfile
|
|
142
103
|
- Gemfile
|
|
104
|
+
- Gemfile.danger
|
|
143
105
|
- LICENSE
|
|
144
106
|
- README.md
|
|
107
|
+
- RELEASING.md
|
|
145
108
|
- Rakefile
|
|
146
|
-
-
|
|
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
|
|
109
|
+
- docker-compose.yml
|
|
152
110
|
- gemfiles/rails-5.0-mongo.gemfile
|
|
153
111
|
- gemfiles/rails-5.0-mongoid.gemfile
|
|
154
112
|
- gemfiles/rails-5.1-mongo.gemfile
|
|
@@ -157,6 +115,10 @@ files:
|
|
|
157
115
|
- gemfiles/rails-5.2-mongoid.gemfile
|
|
158
116
|
- gemfiles/rails-6.0-mongo.gemfile
|
|
159
117
|
- gemfiles/rails-6.0-mongoid.gemfile
|
|
118
|
+
- gemfiles/rails-8.1-mongo.gemfile
|
|
119
|
+
- gemfiles/rails-8.1-mongoid.gemfile
|
|
120
|
+
- gemfiles/rails-current-mongo.gemfile
|
|
121
|
+
- gemfiles/rails-current-mongoid.gemfile
|
|
160
122
|
- lib/mongo_session_store.rb
|
|
161
123
|
- lib/mongo_session_store/mongo_store.rb
|
|
162
124
|
- lib/mongo_session_store/mongo_store_base.rb
|
|
@@ -164,100 +126,24 @@ files:
|
|
|
164
126
|
- lib/mongo_session_store/version.rb
|
|
165
127
|
- mongo_session_store.gemspec
|
|
166
128
|
- perf/benchmark.rb
|
|
129
|
+
- script/test
|
|
130
|
+
- script/test_inner
|
|
131
|
+
- script/testenv
|
|
167
132
|
- spec/.rubocop.yml
|
|
168
133
|
- spec/integrations/devise_spec.rb
|
|
169
134
|
- spec/integrations/rack_spec.rb
|
|
135
|
+
- spec/lib/mongo_session_store/legacy_serialization_spec.rb
|
|
170
136
|
- spec/lib/mongo_session_store/mongo_store/session_spec.rb
|
|
171
137
|
- spec/lib/mongo_session_store/mongo_store_base_spec.rb
|
|
172
138
|
- spec/lib/mongo_session_store/mongo_store_spec.rb
|
|
173
139
|
- spec/lib/mongo_session_store/mongoid_store/session_spec.rb
|
|
174
140
|
- spec/lib/mongo_session_store/mongoid_store_spec.rb
|
|
141
|
+
- spec/lib/mongo_session_store/serialization_spec.rb
|
|
142
|
+
- spec/lib/mongo_session_store/stale_sessions_spec.rb
|
|
143
|
+
- spec/lib/mongo_session_store/version_spec.rb
|
|
175
144
|
- spec/lib/mongo_session_store_spec.rb
|
|
176
145
|
- spec/rails_helper.rb
|
|
177
146
|
- spec/spec_helper.rb
|
|
178
|
-
- spec/support/apps/rails_4.0_app/Rakefile
|
|
179
|
-
- spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb
|
|
180
|
-
- spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb
|
|
181
|
-
- spec/support/apps/rails_4.0_app/app/models/user.rb
|
|
182
|
-
- spec/support/apps/rails_4.0_app/app/views/home/index.html.erb
|
|
183
|
-
- spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb
|
|
184
|
-
- spec/support/apps/rails_4.0_app/bin/bundle
|
|
185
|
-
- spec/support/apps/rails_4.0_app/bin/rails
|
|
186
|
-
- spec/support/apps/rails_4.0_app/bin/rake
|
|
187
|
-
- spec/support/apps/rails_4.0_app/config.ru
|
|
188
|
-
- spec/support/apps/rails_4.0_app/config/application.rb
|
|
189
|
-
- spec/support/apps/rails_4.0_app/config/boot.rb
|
|
190
|
-
- spec/support/apps/rails_4.0_app/config/database.yml
|
|
191
|
-
- spec/support/apps/rails_4.0_app/config/environment.rb
|
|
192
|
-
- spec/support/apps/rails_4.0_app/config/environments/development.rb
|
|
193
|
-
- spec/support/apps/rails_4.0_app/config/environments/test.rb
|
|
194
|
-
- spec/support/apps/rails_4.0_app/config/initializers/devise.rb
|
|
195
|
-
- spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb
|
|
196
|
-
- spec/support/apps/rails_4.0_app/config/initializers/session_store.rb
|
|
197
|
-
- spec/support/apps/rails_4.0_app/config/locales/devise.en.yml
|
|
198
|
-
- spec/support/apps/rails_4.0_app/config/locales/en.yml
|
|
199
|
-
- spec/support/apps/rails_4.0_app/config/mongo.yml
|
|
200
|
-
- spec/support/apps/rails_4.0_app/config/mongoid.yml
|
|
201
|
-
- spec/support/apps/rails_4.0_app/config/routes.rb
|
|
202
|
-
- spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb
|
|
203
|
-
- spec/support/apps/rails_4.0_app/db/schema.rb
|
|
204
|
-
- spec/support/apps/rails_4.0_app/lib/assets/.keep
|
|
205
|
-
- spec/support/apps/rails_4.0_app/lib/tasks/.keep
|
|
206
|
-
- spec/support/apps/rails_4.0_app/log/.keep
|
|
207
|
-
- spec/support/apps/rails_4.1_app/Rakefile
|
|
208
|
-
- spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb
|
|
209
|
-
- spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb
|
|
210
|
-
- spec/support/apps/rails_4.1_app/app/models/user.rb
|
|
211
|
-
- spec/support/apps/rails_4.1_app/app/views/home/index.html.erb
|
|
212
|
-
- spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb
|
|
213
|
-
- spec/support/apps/rails_4.1_app/bin/bundle
|
|
214
|
-
- spec/support/apps/rails_4.1_app/bin/rails
|
|
215
|
-
- spec/support/apps/rails_4.1_app/bin/rake
|
|
216
|
-
- spec/support/apps/rails_4.1_app/config.ru
|
|
217
|
-
- spec/support/apps/rails_4.1_app/config/application.rb
|
|
218
|
-
- spec/support/apps/rails_4.1_app/config/boot.rb
|
|
219
|
-
- spec/support/apps/rails_4.1_app/config/database.yml
|
|
220
|
-
- spec/support/apps/rails_4.1_app/config/environment.rb
|
|
221
|
-
- spec/support/apps/rails_4.1_app/config/environments/development.rb
|
|
222
|
-
- spec/support/apps/rails_4.1_app/config/environments/test.rb
|
|
223
|
-
- spec/support/apps/rails_4.1_app/config/initializers/devise.rb
|
|
224
|
-
- spec/support/apps/rails_4.1_app/config/initializers/session_store.rb
|
|
225
|
-
- spec/support/apps/rails_4.1_app/config/locales/devise.en.yml
|
|
226
|
-
- spec/support/apps/rails_4.1_app/config/locales/en.yml
|
|
227
|
-
- spec/support/apps/rails_4.1_app/config/mongo.yml
|
|
228
|
-
- spec/support/apps/rails_4.1_app/config/mongoid.yml
|
|
229
|
-
- spec/support/apps/rails_4.1_app/config/routes.rb
|
|
230
|
-
- spec/support/apps/rails_4.1_app/config/secrets.yml
|
|
231
|
-
- spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb
|
|
232
|
-
- spec/support/apps/rails_4.1_app/db/schema.rb
|
|
233
|
-
- spec/support/apps/rails_4.1_app/lib/assets/.keep
|
|
234
|
-
- spec/support/apps/rails_4.1_app/lib/tasks/.keep
|
|
235
|
-
- spec/support/apps/rails_4.1_app/log/.keep
|
|
236
|
-
- spec/support/apps/rails_4.2_app/Rakefile
|
|
237
|
-
- spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb
|
|
238
|
-
- spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb
|
|
239
|
-
- spec/support/apps/rails_4.2_app/app/models/user.rb
|
|
240
|
-
- spec/support/apps/rails_4.2_app/app/views/home/index.html.erb
|
|
241
|
-
- spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb
|
|
242
|
-
- spec/support/apps/rails_4.2_app/bin/bundle
|
|
243
|
-
- spec/support/apps/rails_4.2_app/bin/rails
|
|
244
|
-
- spec/support/apps/rails_4.2_app/bin/rake
|
|
245
|
-
- spec/support/apps/rails_4.2_app/config.ru
|
|
246
|
-
- spec/support/apps/rails_4.2_app/config/application.rb
|
|
247
|
-
- spec/support/apps/rails_4.2_app/config/boot.rb
|
|
248
|
-
- spec/support/apps/rails_4.2_app/config/database.yml
|
|
249
|
-
- spec/support/apps/rails_4.2_app/config/environment.rb
|
|
250
|
-
- spec/support/apps/rails_4.2_app/config/environments/development.rb
|
|
251
|
-
- spec/support/apps/rails_4.2_app/config/environments/test.rb
|
|
252
|
-
- spec/support/apps/rails_4.2_app/config/initializers/devise.rb
|
|
253
|
-
- spec/support/apps/rails_4.2_app/config/initializers/session_store.rb
|
|
254
|
-
- spec/support/apps/rails_4.2_app/config/locales/en.yml
|
|
255
|
-
- spec/support/apps/rails_4.2_app/config/mongo.yml
|
|
256
|
-
- spec/support/apps/rails_4.2_app/config/mongoid.yml
|
|
257
|
-
- spec/support/apps/rails_4.2_app/config/routes.rb
|
|
258
|
-
- spec/support/apps/rails_4.2_app/config/secrets.yml
|
|
259
|
-
- spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb
|
|
260
|
-
- spec/support/apps/rails_4.2_app/db/schema.rb
|
|
261
147
|
- spec/support/apps/rails_5.0_app/Rakefile
|
|
262
148
|
- spec/support/apps/rails_5.0_app/app/controllers/application_controller.rb
|
|
263
149
|
- spec/support/apps/rails_5.0_app/app/controllers/home_controller.rb
|
|
@@ -387,7 +273,7 @@ homepage: http://github.com/mongoid/mongo_session_store
|
|
|
387
273
|
licenses:
|
|
388
274
|
- MIT
|
|
389
275
|
metadata: {}
|
|
390
|
-
post_install_message:
|
|
276
|
+
post_install_message:
|
|
391
277
|
rdoc_options: []
|
|
392
278
|
require_paths:
|
|
393
279
|
- lib
|
|
@@ -402,105 +288,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
402
288
|
- !ruby/object:Gem::Version
|
|
403
289
|
version: '0'
|
|
404
290
|
requirements: []
|
|
405
|
-
rubygems_version: 3.
|
|
406
|
-
signing_key:
|
|
291
|
+
rubygems_version: 3.5.16
|
|
292
|
+
signing_key:
|
|
407
293
|
specification_version: 4
|
|
408
294
|
summary: Rails session stores for Mongoid, or any other ODM. Rails 4 compatible.
|
|
409
295
|
test_files:
|
|
410
296
|
- perf/benchmark.rb
|
|
411
297
|
- spec/integrations/devise_spec.rb
|
|
412
298
|
- spec/integrations/rack_spec.rb
|
|
299
|
+
- spec/lib/mongo_session_store/legacy_serialization_spec.rb
|
|
413
300
|
- spec/lib/mongo_session_store/mongo_store/session_spec.rb
|
|
414
301
|
- spec/lib/mongo_session_store/mongo_store_base_spec.rb
|
|
415
302
|
- spec/lib/mongo_session_store/mongo_store_spec.rb
|
|
416
303
|
- spec/lib/mongo_session_store/mongoid_store/session_spec.rb
|
|
417
304
|
- spec/lib/mongo_session_store/mongoid_store_spec.rb
|
|
305
|
+
- spec/lib/mongo_session_store/serialization_spec.rb
|
|
306
|
+
- spec/lib/mongo_session_store/stale_sessions_spec.rb
|
|
307
|
+
- spec/lib/mongo_session_store/version_spec.rb
|
|
418
308
|
- spec/lib/mongo_session_store_spec.rb
|
|
419
309
|
- spec/rails_helper.rb
|
|
420
310
|
- spec/spec_helper.rb
|
|
421
|
-
- spec/support/apps/rails_4.0_app/Rakefile
|
|
422
|
-
- spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb
|
|
423
|
-
- spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb
|
|
424
|
-
- spec/support/apps/rails_4.0_app/app/models/user.rb
|
|
425
|
-
- spec/support/apps/rails_4.0_app/app/views/home/index.html.erb
|
|
426
|
-
- spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb
|
|
427
|
-
- spec/support/apps/rails_4.0_app/bin/bundle
|
|
428
|
-
- spec/support/apps/rails_4.0_app/bin/rails
|
|
429
|
-
- spec/support/apps/rails_4.0_app/bin/rake
|
|
430
|
-
- spec/support/apps/rails_4.0_app/config.ru
|
|
431
|
-
- spec/support/apps/rails_4.0_app/config/application.rb
|
|
432
|
-
- spec/support/apps/rails_4.0_app/config/boot.rb
|
|
433
|
-
- spec/support/apps/rails_4.0_app/config/database.yml
|
|
434
|
-
- spec/support/apps/rails_4.0_app/config/environment.rb
|
|
435
|
-
- spec/support/apps/rails_4.0_app/config/environments/development.rb
|
|
436
|
-
- spec/support/apps/rails_4.0_app/config/environments/test.rb
|
|
437
|
-
- spec/support/apps/rails_4.0_app/config/initializers/devise.rb
|
|
438
|
-
- spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb
|
|
439
|
-
- spec/support/apps/rails_4.0_app/config/initializers/session_store.rb
|
|
440
|
-
- spec/support/apps/rails_4.0_app/config/locales/devise.en.yml
|
|
441
|
-
- spec/support/apps/rails_4.0_app/config/locales/en.yml
|
|
442
|
-
- spec/support/apps/rails_4.0_app/config/mongo.yml
|
|
443
|
-
- spec/support/apps/rails_4.0_app/config/mongoid.yml
|
|
444
|
-
- spec/support/apps/rails_4.0_app/config/routes.rb
|
|
445
|
-
- spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb
|
|
446
|
-
- spec/support/apps/rails_4.0_app/db/schema.rb
|
|
447
|
-
- spec/support/apps/rails_4.0_app/lib/assets/.keep
|
|
448
|
-
- spec/support/apps/rails_4.0_app/lib/tasks/.keep
|
|
449
|
-
- spec/support/apps/rails_4.0_app/log/.keep
|
|
450
|
-
- spec/support/apps/rails_4.1_app/Rakefile
|
|
451
|
-
- spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb
|
|
452
|
-
- spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb
|
|
453
|
-
- spec/support/apps/rails_4.1_app/app/models/user.rb
|
|
454
|
-
- spec/support/apps/rails_4.1_app/app/views/home/index.html.erb
|
|
455
|
-
- spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb
|
|
456
|
-
- spec/support/apps/rails_4.1_app/bin/bundle
|
|
457
|
-
- spec/support/apps/rails_4.1_app/bin/rails
|
|
458
|
-
- spec/support/apps/rails_4.1_app/bin/rake
|
|
459
|
-
- spec/support/apps/rails_4.1_app/config.ru
|
|
460
|
-
- spec/support/apps/rails_4.1_app/config/application.rb
|
|
461
|
-
- spec/support/apps/rails_4.1_app/config/boot.rb
|
|
462
|
-
- spec/support/apps/rails_4.1_app/config/database.yml
|
|
463
|
-
- spec/support/apps/rails_4.1_app/config/environment.rb
|
|
464
|
-
- spec/support/apps/rails_4.1_app/config/environments/development.rb
|
|
465
|
-
- spec/support/apps/rails_4.1_app/config/environments/test.rb
|
|
466
|
-
- spec/support/apps/rails_4.1_app/config/initializers/devise.rb
|
|
467
|
-
- spec/support/apps/rails_4.1_app/config/initializers/session_store.rb
|
|
468
|
-
- spec/support/apps/rails_4.1_app/config/locales/devise.en.yml
|
|
469
|
-
- spec/support/apps/rails_4.1_app/config/locales/en.yml
|
|
470
|
-
- spec/support/apps/rails_4.1_app/config/mongo.yml
|
|
471
|
-
- spec/support/apps/rails_4.1_app/config/mongoid.yml
|
|
472
|
-
- spec/support/apps/rails_4.1_app/config/routes.rb
|
|
473
|
-
- spec/support/apps/rails_4.1_app/config/secrets.yml
|
|
474
|
-
- spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb
|
|
475
|
-
- spec/support/apps/rails_4.1_app/db/schema.rb
|
|
476
|
-
- spec/support/apps/rails_4.1_app/lib/assets/.keep
|
|
477
|
-
- spec/support/apps/rails_4.1_app/lib/tasks/.keep
|
|
478
|
-
- spec/support/apps/rails_4.1_app/log/.keep
|
|
479
|
-
- spec/support/apps/rails_4.2_app/Rakefile
|
|
480
|
-
- spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb
|
|
481
|
-
- spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb
|
|
482
|
-
- spec/support/apps/rails_4.2_app/app/models/user.rb
|
|
483
|
-
- spec/support/apps/rails_4.2_app/app/views/home/index.html.erb
|
|
484
|
-
- spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb
|
|
485
|
-
- spec/support/apps/rails_4.2_app/bin/bundle
|
|
486
|
-
- spec/support/apps/rails_4.2_app/bin/rails
|
|
487
|
-
- spec/support/apps/rails_4.2_app/bin/rake
|
|
488
|
-
- spec/support/apps/rails_4.2_app/config.ru
|
|
489
|
-
- spec/support/apps/rails_4.2_app/config/application.rb
|
|
490
|
-
- spec/support/apps/rails_4.2_app/config/boot.rb
|
|
491
|
-
- spec/support/apps/rails_4.2_app/config/database.yml
|
|
492
|
-
- spec/support/apps/rails_4.2_app/config/environment.rb
|
|
493
|
-
- spec/support/apps/rails_4.2_app/config/environments/development.rb
|
|
494
|
-
- spec/support/apps/rails_4.2_app/config/environments/test.rb
|
|
495
|
-
- spec/support/apps/rails_4.2_app/config/initializers/devise.rb
|
|
496
|
-
- spec/support/apps/rails_4.2_app/config/initializers/session_store.rb
|
|
497
|
-
- spec/support/apps/rails_4.2_app/config/locales/en.yml
|
|
498
|
-
- spec/support/apps/rails_4.2_app/config/mongo.yml
|
|
499
|
-
- spec/support/apps/rails_4.2_app/config/mongoid.yml
|
|
500
|
-
- spec/support/apps/rails_4.2_app/config/routes.rb
|
|
501
|
-
- spec/support/apps/rails_4.2_app/config/secrets.yml
|
|
502
|
-
- spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb
|
|
503
|
-
- spec/support/apps/rails_4.2_app/db/schema.rb
|
|
504
311
|
- spec/support/apps/rails_5.0_app/Rakefile
|
|
505
312
|
- spec/support/apps/rails_5.0_app/app/controllers/application_controller.rb
|
|
506
313
|
- spec/support/apps/rails_5.0_app/app/controllers/home_controller.rb
|
data/.travis.yml
DELETED
|
@@ -1,109 +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
|
-
- gemfiles/rails-6.0-mongo.gemfile
|
|
30
|
-
- gemfiles/rails-6.0-mongoid.gemfile
|
|
31
|
-
|
|
32
|
-
matrix:
|
|
33
|
-
fast_finish: true
|
|
34
|
-
include:
|
|
35
|
-
- rvm: 2.5.5
|
|
36
|
-
gemfile: gemfiles/rails-5.2-mongo.gemfile
|
|
37
|
-
script: bundle exec rubocop
|
|
38
|
-
- rvm: 2.5.5
|
|
39
|
-
gemfile: gemfiles/rails-5.2-mongo.gemfile
|
|
40
|
-
script: bundle exec danger
|
|
41
|
-
exclude:
|
|
42
|
-
- rvm: 2.1.10
|
|
43
|
-
gemfile: gemfiles/rails-5.0-mongo.gemfile
|
|
44
|
-
- rvm: 2.1.10
|
|
45
|
-
gemfile: gemfiles/rails-5.0-mongoid.gemfile
|
|
46
|
-
- rvm: 2.1.10
|
|
47
|
-
gemfile: gemfiles/rails-5.1-mongo.gemfile
|
|
48
|
-
- rvm: 2.1.10
|
|
49
|
-
gemfile: gemfiles/rails-5.1-mongoid.gemfile
|
|
50
|
-
- rvm: 2.1.10
|
|
51
|
-
gemfile: gemfiles/rails-5.2-mongo.gemfile
|
|
52
|
-
- rvm: 2.1.10
|
|
53
|
-
gemfile: gemfiles/rails-5.2-mongoid.gemfile
|
|
54
|
-
- rvm: 2.1.10
|
|
55
|
-
gemfile: gemfiles/rails-6.0-mongo.gemfile
|
|
56
|
-
- rvm: 2.1.10
|
|
57
|
-
gemfile: gemfiles/rails-6.0-mongoid.gemfile
|
|
58
|
-
- rvm: 2.3.8
|
|
59
|
-
gemfile: gemfiles/rails-6.0-mongo.gemfile
|
|
60
|
-
- rvm: 2.3.8
|
|
61
|
-
gemfile: gemfiles/rails-6.0-mongoid.gemfile
|
|
62
|
-
- rvm: 2.4.5
|
|
63
|
-
gemfile: gemfiles/rails-4.0-mongo.gemfile
|
|
64
|
-
- rvm: 2.4.5
|
|
65
|
-
gemfile: gemfiles/rails-4.0-mongoid.gemfile
|
|
66
|
-
- rvm: 2.4.5
|
|
67
|
-
gemfile: gemfiles/rails-4.1-mongo.gemfile
|
|
68
|
-
- rvm: 2.4.5
|
|
69
|
-
gemfile: gemfiles/rails-4.1-mongoid.gemfile
|
|
70
|
-
- rvm: 2.4.5
|
|
71
|
-
gemfile: gemfiles/rails-6.0-mongo.gemfile
|
|
72
|
-
- rvm: 2.4.5
|
|
73
|
-
gemfile: gemfiles/rails-6.0-mongoid.gemfile
|
|
74
|
-
- rvm: 2.5.5
|
|
75
|
-
gemfile: gemfiles/rails-4.0-mongo.gemfile
|
|
76
|
-
- rvm: 2.5.5
|
|
77
|
-
gemfile: gemfiles/rails-4.0-mongoid.gemfile
|
|
78
|
-
- rvm: 2.5.5
|
|
79
|
-
gemfile: gemfiles/rails-4.1-mongo.gemfile
|
|
80
|
-
- rvm: 2.5.5
|
|
81
|
-
gemfile: gemfiles/rails-4.1-mongoid.gemfile
|
|
82
|
-
- rvm: 2.5.5
|
|
83
|
-
gemfile: gemfiles/rails-4.2-mongo.gemfile
|
|
84
|
-
- rvm: 2.5.5
|
|
85
|
-
gemfile: gemfiles/rails-4.2-mongoid.gemfile
|
|
86
|
-
- rvm: 2.6.3
|
|
87
|
-
gemfile: gemfiles/rails-4.0-mongo.gemfile
|
|
88
|
-
- rvm: 2.6.3
|
|
89
|
-
gemfile: gemfiles/rails-4.0-mongoid.gemfile
|
|
90
|
-
- rvm: 2.6.3
|
|
91
|
-
gemfile: gemfiles/rails-4.1-mongo.gemfile
|
|
92
|
-
- rvm: 2.6.3
|
|
93
|
-
gemfile: gemfiles/rails-4.1-mongoid.gemfile
|
|
94
|
-
- rvm: 2.6.3
|
|
95
|
-
gemfile: gemfiles/rails-4.2-mongo.gemfile
|
|
96
|
-
- rvm: 2.6.3
|
|
97
|
-
gemfile: gemfiles/rails-4.2-mongoid.gemfile
|
|
98
|
-
|
|
99
|
-
services: mongodb
|
|
100
|
-
|
|
101
|
-
addons:
|
|
102
|
-
apt:
|
|
103
|
-
sources:
|
|
104
|
-
- mongodb-3.2-precise
|
|
105
|
-
packages:
|
|
106
|
-
- mongodb-org-server
|
|
107
|
-
|
|
108
|
-
script:
|
|
109
|
-
- bundle exec rake test
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
You are signed
|
|
2
|
-
<% if user_signed_in? %>
|
|
3
|
-
in as <%= current_user.email %>.
|
|
4
|
-
<%= form_tag destroy_user_session_path, :method => :delete do %>
|
|
5
|
-
<%= button_tag "Sign out" %>
|
|
6
|
-
<% end %>
|
|
7
|
-
<% else %>
|
|
8
|
-
out. <%= link_to "Sign in", new_user_session_path %>
|
|
9
|
-
<% end %>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>Rails40App</title>
|
|
5
|
-
<%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
|
|
6
|
-
<%= javascript_include_tag "application", "data-turbolinks-track" => true %>
|
|
7
|
-
<%= csrf_meta_tags %>
|
|
8
|
-
</head>
|
|
9
|
-
<body>
|
|
10
|
-
|
|
11
|
-
<%= notice %>
|
|
12
|
-
<%= alert %>
|
|
13
|
-
|
|
14
|
-
<%= yield %>
|
|
15
|
-
|
|
16
|
-
</body>
|
|
17
|
-
</html>
|