mongo_session_store 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -0
- data/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/Rakefile +4 -4
- data/gemfiles/rails-6.0-mongo.gemfile +9 -0
- data/gemfiles/rails-6.0-mongoid.gemfile +9 -0
- data/lib/mongo_session_store/mongo_store_base.rb +1 -1
- data/lib/mongo_session_store/version.rb +1 -1
- data/spec/integrations/rack_spec.rb +19 -0
- data/spec/rails_helper.rb +1 -0
- data/spec/support/apps/rails_4.0_app/config/routes.rb +1 -0
- data/spec/support/apps/rails_4.1_app/config/routes.rb +1 -0
- data/spec/support/apps/rails_4.2_app/config/routes.rb +1 -0
- data/spec/support/apps/rails_5.0_app/config/routes.rb +1 -0
- data/spec/support/apps/rails_5.1_app/config/routes.rb +1 -0
- data/spec/support/apps/rails_5.2_app/config/routes.rb +1 -0
- data/spec/support/apps/rails_6.0_app/Rakefile +6 -0
- data/spec/support/apps/rails_6.0_app/app/controllers/application_controller.rb +3 -0
- data/spec/support/apps/rails_6.0_app/app/controllers/home_controller.rb +2 -0
- data/spec/support/apps/rails_6.0_app/app/models/application_record.rb +3 -0
- data/spec/support/apps/rails_6.0_app/app/models/user.rb +5 -0
- data/spec/support/apps/rails_6.0_app/app/views/home/index.html.erb +9 -0
- data/spec/support/apps/rails_6.0_app/app/views/layouts/application.html.erb +15 -0
- data/spec/support/apps/rails_6.0_app/bin/rails +4 -0
- data/spec/support/apps/rails_6.0_app/bin/rake +4 -0
- data/spec/support/apps/rails_6.0_app/bin/setup +33 -0
- data/spec/support/apps/rails_6.0_app/config.ru +5 -0
- data/spec/support/apps/rails_6.0_app/config/application.rb +17 -0
- data/spec/support/apps/rails_6.0_app/config/boot.rb +3 -0
- data/spec/support/apps/rails_6.0_app/config/credentials.yml.enc +1 -0
- data/spec/support/apps/rails_6.0_app/config/database.yml +25 -0
- data/spec/support/apps/rails_6.0_app/config/environment.rb +5 -0
- data/spec/support/apps/rails_6.0_app/config/environments/development.rb +47 -0
- data/spec/support/apps/rails_6.0_app/config/environments/test.rb +38 -0
- data/spec/support/apps/rails_6.0_app/config/initializers/cookies_serializer.rb +5 -0
- data/spec/support/apps/rails_6.0_app/config/initializers/devise.rb +299 -0
- data/spec/support/apps/rails_6.0_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/support/apps/rails_6.0_app/config/initializers/session_store.rb +1 -0
- data/spec/support/apps/rails_6.0_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/support/apps/rails_6.0_app/config/locales/devise.en.yml +65 -0
- data/spec/support/apps/rails_6.0_app/config/locales/en.yml +33 -0
- data/spec/support/apps/rails_6.0_app/config/master.key +1 -0
- data/spec/support/apps/rails_6.0_app/config/mongo.yml +11 -0
- data/spec/support/apps/rails_6.0_app/config/mongoid.yml +13 -0
- data/spec/support/apps/rails_6.0_app/config/routes.rb +5 -0
- data/spec/support/apps/rails_6.0_app/db/migrate/20200427115501_add_devise_users.rb +11 -0
- data/spec/support/apps/rails_6.0_app/db/schema.rb +23 -0
- data/spec/support/apps/rails_6.0_app/db/seeds.rb +7 -0
- data/spec/support/apps/rails_6.0_app/lib/assets/.keep +0 -0
- data/spec/support/apps/rails_6.0_app/lib/tasks/.keep +0 -0
- data/spec/support/apps/rails_6.0_app/log/.keep +0 -0
- data/spec/support/rack_app.rb +14 -0
- metadata +79 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36be9eaa92de394d6043638ea782f956dc46229268b6c66b78e8a67679aa1a11
|
4
|
+
data.tar.gz: f0120d1d11b913549e187b5e33348c1ef0d69c7d353976849c5e0b47205cb303
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cef75325cc7d8d12a0a2b46dc3642e4d37ea0e411e33632bcd4943783ca7b9051ccd8d4d87bdc203924596c1b744a8bea343d3081a87ce7dded073c424e3f7f
|
7
|
+
data.tar.gz: 38d8cf76247a7ad29171d53c20b547aea36c057a1665953eecf33a581f6eb48c19678a40c8dd83787f23d7c55effee60401c28c4c0e917ba28a479185a857ea4
|
data/.travis.yml
CHANGED
@@ -26,6 +26,8 @@ gemfile:
|
|
26
26
|
- gemfiles/rails-5.1-mongoid.gemfile
|
27
27
|
- gemfiles/rails-5.2-mongo.gemfile
|
28
28
|
- gemfiles/rails-5.2-mongoid.gemfile
|
29
|
+
- gemfiles/rails-6.0-mongo.gemfile
|
30
|
+
- gemfiles/rails-6.0-mongoid.gemfile
|
29
31
|
|
30
32
|
matrix:
|
31
33
|
fast_finish: true
|
@@ -49,6 +51,14 @@ matrix:
|
|
49
51
|
gemfile: gemfiles/rails-5.2-mongo.gemfile
|
50
52
|
- rvm: 2.1.10
|
51
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
|
52
62
|
- rvm: 2.4.5
|
53
63
|
gemfile: gemfiles/rails-4.0-mongo.gemfile
|
54
64
|
- rvm: 2.4.5
|
@@ -57,6 +67,10 @@ matrix:
|
|
57
67
|
gemfile: gemfiles/rails-4.1-mongo.gemfile
|
58
68
|
- rvm: 2.4.5
|
59
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
|
60
74
|
- rvm: 2.5.5
|
61
75
|
gemfile: gemfiles/rails-4.0-mongo.gemfile
|
62
76
|
- rvm: 2.5.5
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,11 @@
|
|
4
4
|
|
5
5
|
* Your contribution here.
|
6
6
|
|
7
|
+
## 3.2.1
|
8
|
+
|
9
|
+
* [#45](https://github.com/mongoid/mongo_session_store/pull/45): Add Rails 6.0 to test setup - [@tombruijn](https://github.com/tombruijn).
|
10
|
+
* [#46](https://github.com/mongoid/mongo_session_store/pull/46): Fix Rack::Session::Cookie middleware bug - [@streetlogics](https://github.com/streetlogics) & [@tombruijn](https://github.com/tombruijn).
|
11
|
+
|
7
12
|
## 3.2.0
|
8
13
|
|
9
14
|
* [#32](https://github.com/mongoid/mongo_session_store/pull/32): Add Rails 5.1 support - [@tombruijn](https://github.com/tombruijn).
|
data/README.md
CHANGED
@@ -94,6 +94,8 @@ BUNDLE_GEMFILE=gemfiles/rails-5.1-mongo.gemfile bundle exec rake
|
|
94
94
|
BUNDLE_GEMFILE=gemfiles/rails-5.1-mongoid.gemfile bundle exec rake
|
95
95
|
BUNDLE_GEMFILE=gemfiles/rails-5.2-mongo.gemfile bundle exec rake
|
96
96
|
BUNDLE_GEMFILE=gemfiles/rails-5.2-mongoid.gemfile bundle exec rake
|
97
|
+
BUNDLE_GEMFILE=gemfiles/rails-6.0-mongo.gemfile bundle exec rake
|
98
|
+
BUNDLE_GEMFILE=gemfiles/rails-6.0-mongoid.gemfile bundle exec rake
|
97
99
|
```
|
98
100
|
|
99
101
|
### Performance benchmark
|
data/Rakefile
CHANGED
@@ -39,10 +39,10 @@ task :release do
|
|
39
39
|
raise "$EDITOR should be set" unless ENV["EDITOR"]
|
40
40
|
|
41
41
|
def build_and_push_gem
|
42
|
-
puts
|
43
|
-
|
44
|
-
puts
|
45
|
-
|
42
|
+
puts "# Building gem"
|
43
|
+
system "gem build #{GEMSPEC_NAME}.gemspec"
|
44
|
+
puts "# Publishing Gem"
|
45
|
+
system "gem push #{GEM_NAME}-#{gem_version}.gem"
|
46
46
|
end
|
47
47
|
|
48
48
|
def update_repo
|
@@ -46,7 +46,7 @@ module ActionDispatch
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def find_or_initialize_session(id)
|
49
|
-
existing_session = (id && session_class.where(:_id => id).first)
|
49
|
+
existing_session = (id && session_class.where(:_id => id.to_s).first)
|
50
50
|
session = existing_session if existing_session
|
51
51
|
session ||= session_class.new(:_id => generate_sid)
|
52
52
|
[session._id, session]
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require "rails_helper"
|
2
|
+
|
3
|
+
describe "Rack app", :type => :request do
|
4
|
+
it "works with a mounted Rack app using Rack::Session" do
|
5
|
+
if Gem.loaded_specs["rack"].version < Gem::Version.new("2.0.0")
|
6
|
+
# Fails on trying to stringify the Rack::Session::Id object. Unrelated to
|
7
|
+
# this gem's code.
|
8
|
+
#
|
9
|
+
# NoMethodError:
|
10
|
+
# undefined method `each' for #<ActionDispatch::Request::Session:...>
|
11
|
+
#
|
12
|
+
# Skip spec setup for older Rack versions.
|
13
|
+
skip "Incompatible Rack version"
|
14
|
+
end
|
15
|
+
|
16
|
+
get "/rack_test"
|
17
|
+
expect(response.body.squish).to eql("Hello Rack app!")
|
18
|
+
end
|
19
|
+
end
|
data/spec/rails_helper.rb
CHANGED
@@ -0,0 +1,9 @@
|
|
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 %>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'fileutils'
|
3
|
+
|
4
|
+
# path to your application root.
|
5
|
+
APP_ROOT = File.expand_path('..', __dir__)
|
6
|
+
|
7
|
+
def system!(*args)
|
8
|
+
system(*args) || abort("\n== Command #{args} failed ==")
|
9
|
+
end
|
10
|
+
|
11
|
+
FileUtils.chdir APP_ROOT do
|
12
|
+
# This script is a way to setup or update your development environment automatically.
|
13
|
+
# This script is idempotent, so that you can run it at anytime and get an expectable outcome.
|
14
|
+
# Add necessary setup steps to this file.
|
15
|
+
|
16
|
+
puts '== Installing dependencies =='
|
17
|
+
system! 'gem install bundler --conservative'
|
18
|
+
system('bundle check') || system!('bundle install')
|
19
|
+
|
20
|
+
# puts "\n== Copying sample files =="
|
21
|
+
# unless File.exist?('config/database.yml')
|
22
|
+
# FileUtils.cp 'config/database.yml.sample', 'config/database.yml'
|
23
|
+
# end
|
24
|
+
|
25
|
+
puts "\n== Preparing database =="
|
26
|
+
system! 'bin/rails db:prepare'
|
27
|
+
|
28
|
+
puts "\n== Removing old logs and tempfiles =="
|
29
|
+
system! 'bin/rails log:clear tmp:clear'
|
30
|
+
|
31
|
+
puts "\n== Restarting application server =="
|
32
|
+
system! 'bin/rails restart'
|
33
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require_relative 'boot'
|
2
|
+
|
3
|
+
require "active_model/railtie"
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_view/railtie"
|
7
|
+
|
8
|
+
# Require the gems listed in Gemfile, including any gems
|
9
|
+
# you've limited to :test, :development, or :production.
|
10
|
+
Bundler.require(*Rails.groups)
|
11
|
+
|
12
|
+
module Rails60App
|
13
|
+
class Application < Rails::Application
|
14
|
+
config.load_defaults 6.0
|
15
|
+
config.generators.system_tests = nil
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
zgiCn1x7CnSOIdb28q/qf9+IUL/DReQMZheOw/z3Jw126vMXmOgPAxlgF1coRpiQM1SJov9e+x2qdMV7v1XPoP5j7Fx+OihptIJkLBX3jBllqo6RU7rCG3G0e3n55NTX88y68PqiGi9gJjtITHl1n46dI49WcFubUn0WqIBcwngpHciWOU/EuSEl16nMQuupB6hUM7MEt70TynYKxV4xWA0N5K52Vp4n6xtG83J+jc+KmGd1su+Dn0PUnml15r0Gw47PLjUiyFfAvGnjWkd552l/2ga14zMOUXDadQhj6zhchbUDwpBWjH5aFWqz35ybHGaUgxFPMOuZXEN4esVqo7hGXJnnrr+GtootYMZzVvRP8M23hKwKesOp9zTokoKQAyLgRJPzwn1WDzbmj0/cb7IqvfCpjVRyYIXZ--njTP2mkB3sqImwao--o6xwiGZwEktvYPYSNZ+saw==
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# SQLite. Versions 3.8.0 and up are supported.
|
2
|
+
# gem install sqlite3
|
3
|
+
#
|
4
|
+
# Ensure the SQLite 3 gem is defined in your Gemfile
|
5
|
+
# gem 'sqlite3'
|
6
|
+
#
|
7
|
+
default: &default
|
8
|
+
adapter: sqlite3
|
9
|
+
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
development:
|
13
|
+
<<: *default
|
14
|
+
database: db/development.sqlite3
|
15
|
+
|
16
|
+
# Warning: The database defined as "test" will be erased and
|
17
|
+
# re-generated from your development database when you run "rake".
|
18
|
+
# Do not set this db to the same as development or production.
|
19
|
+
test:
|
20
|
+
<<: *default
|
21
|
+
database: db/test.sqlite3
|
22
|
+
|
23
|
+
production:
|
24
|
+
<<: *default
|
25
|
+
database: db/production.sqlite3
|
@@ -0,0 +1,47 @@
|
|
1
|
+
Rails.application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
|
15
|
+
# Enable/disable caching. By default caching is disabled.
|
16
|
+
# Run rails dev:cache to toggle caching.
|
17
|
+
if Rails.root.join('tmp', 'caching-dev.txt').exist?
|
18
|
+
config.action_controller.perform_caching = true
|
19
|
+
config.action_controller.enable_fragment_cache_logging = true
|
20
|
+
|
21
|
+
config.cache_store = :memory_store
|
22
|
+
config.public_file_server.headers = {
|
23
|
+
'Cache-Control' => "public, max-age=#{2.days.to_i}"
|
24
|
+
}
|
25
|
+
else
|
26
|
+
config.action_controller.perform_caching = false
|
27
|
+
|
28
|
+
config.cache_store = :null_store
|
29
|
+
end
|
30
|
+
|
31
|
+
# Print deprecation notices to the Rails logger.
|
32
|
+
config.active_support.deprecation = :log
|
33
|
+
|
34
|
+
# Raise an error on page load if there are pending migrations.
|
35
|
+
config.active_record.migration_error = :page_load
|
36
|
+
|
37
|
+
# Highlight code that triggered database queries in logs.
|
38
|
+
config.active_record.verbose_query_logs = true
|
39
|
+
|
40
|
+
|
41
|
+
# Raises error for missing translations.
|
42
|
+
# config.action_view.raise_on_missing_translations = true
|
43
|
+
|
44
|
+
# Use an evented file watcher to asynchronously detect changes in source code,
|
45
|
+
# routes, locales, etc. This feature depends on the listen gem.
|
46
|
+
# config.file_watcher = ActiveSupport::EventedFileUpdateChecker
|
47
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# The test environment is used exclusively to run your application's
|
2
|
+
# test suite. You never need to work with it otherwise. Remember that
|
3
|
+
# your test database is "scratch space" for the test suite and is wiped
|
4
|
+
# and recreated between test runs. Don't rely on the data there!
|
5
|
+
|
6
|
+
Rails.application.configure do
|
7
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
8
|
+
|
9
|
+
config.cache_classes = false
|
10
|
+
|
11
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
12
|
+
# just for the purpose of running a single test. If you are using a tool that
|
13
|
+
# preloads Rails for running tests, you may have to set it to true.
|
14
|
+
config.eager_load = false
|
15
|
+
|
16
|
+
# Configure public file server for tests with Cache-Control for performance.
|
17
|
+
config.public_file_server.enabled = true
|
18
|
+
config.public_file_server.headers = {
|
19
|
+
'Cache-Control' => "public, max-age=#{1.hour.to_i}"
|
20
|
+
}
|
21
|
+
|
22
|
+
# Show full error reports and disable caching.
|
23
|
+
config.consider_all_requests_local = true
|
24
|
+
config.action_controller.perform_caching = false
|
25
|
+
config.cache_store = :null_store
|
26
|
+
|
27
|
+
# Raise exceptions instead of rendering exception templates.
|
28
|
+
config.action_dispatch.show_exceptions = false
|
29
|
+
|
30
|
+
# Disable request forgery protection in test environment.
|
31
|
+
config.action_controller.allow_forgery_protection = false
|
32
|
+
|
33
|
+
# Print deprecation notices to the stderr.
|
34
|
+
config.active_support.deprecation = :stderr
|
35
|
+
|
36
|
+
# Raises error for missing translations.
|
37
|
+
# config.action_view.raise_on_missing_translations = true
|
38
|
+
end
|
@@ -0,0 +1,299 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Use this hook to configure devise mailer, warden hooks and so forth.
|
4
|
+
# Many of these configuration options can be set straight in your model.
|
5
|
+
Devise.setup do |config|
|
6
|
+
# The secret key used by Devise. Devise uses this key to generate
|
7
|
+
# random tokens. Changing this key will render invalid all existing
|
8
|
+
# confirmation, reset password and unlock tokens in the database.
|
9
|
+
# Devise will use the `secret_key_base` as its `secret_key`
|
10
|
+
# by default. You can change it below and use your own secret key.
|
11
|
+
# config.secret_key = '3ce894ad0871a4451814ca5019bba2ac2fedffd32bddc34c102b695baeff79b5c31f26d3fe758f96ef4bbb155325755aa13fae472470c0b0c71f378195dac0a2'
|
12
|
+
|
13
|
+
# ==> Controller configuration
|
14
|
+
# Configure the parent class to the devise controllers.
|
15
|
+
# config.parent_controller = 'DeviseController'
|
16
|
+
|
17
|
+
# ==> Mailer Configuration
|
18
|
+
# Configure the e-mail address which will be shown in Devise::Mailer,
|
19
|
+
# note that it will be overwritten if you use your own mailer class
|
20
|
+
# with default "from" parameter.
|
21
|
+
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
22
|
+
|
23
|
+
# Configure the class responsible to send e-mails.
|
24
|
+
# config.mailer = 'Devise::Mailer'
|
25
|
+
|
26
|
+
# Configure the parent class responsible to send e-mails.
|
27
|
+
# config.parent_mailer = 'ActionMailer::Base'
|
28
|
+
|
29
|
+
# ==> ORM configuration
|
30
|
+
# Load and configure the ORM. Supports :active_record (default) and
|
31
|
+
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
32
|
+
# available as additional gems.
|
33
|
+
require 'devise/orm/active_record'
|
34
|
+
|
35
|
+
# ==> Configuration for any authentication mechanism
|
36
|
+
# Configure which keys are used when authenticating a user. The default is
|
37
|
+
# just :email. You can configure it to use [:username, :subdomain], so for
|
38
|
+
# authenticating a user, both parameters are required. Remember that those
|
39
|
+
# parameters are used only when authenticating and not when retrieving from
|
40
|
+
# session. If you need permissions, you should implement that in a before filter.
|
41
|
+
# You can also supply a hash where the value is a boolean determining whether
|
42
|
+
# or not authentication should be aborted when the value is not present.
|
43
|
+
# config.authentication_keys = [:email]
|
44
|
+
|
45
|
+
# Configure parameters from the request object used for authentication. Each entry
|
46
|
+
# given should be a request method and it will automatically be passed to the
|
47
|
+
# find_for_authentication method and considered in your model lookup. For instance,
|
48
|
+
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
49
|
+
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
50
|
+
# config.request_keys = []
|
51
|
+
|
52
|
+
# Configure which authentication keys should be case-insensitive.
|
53
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
54
|
+
# to authenticate or find a user. Default is :email.
|
55
|
+
config.case_insensitive_keys = [:email]
|
56
|
+
|
57
|
+
# Configure which authentication keys should have whitespace stripped.
|
58
|
+
# These keys will have whitespace before and after removed upon creating or
|
59
|
+
# modifying a user and when used to authenticate or find a user. Default is :email.
|
60
|
+
config.strip_whitespace_keys = [:email]
|
61
|
+
|
62
|
+
# Tell if authentication through request.params is enabled. True by default.
|
63
|
+
# It can be set to an array that will enable params authentication only for the
|
64
|
+
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
65
|
+
# enable it only for database (email + password) authentication.
|
66
|
+
# config.params_authenticatable = true
|
67
|
+
|
68
|
+
# Tell if authentication through HTTP Auth is enabled. False by default.
|
69
|
+
# It can be set to an array that will enable http authentication only for the
|
70
|
+
# given strategies, for example, `config.http_authenticatable = [:database]` will
|
71
|
+
# enable it only for database authentication. The supported strategies are:
|
72
|
+
# :database = Support basic authentication with authentication key + password
|
73
|
+
# config.http_authenticatable = false
|
74
|
+
|
75
|
+
# If 401 status code should be returned for AJAX requests. True by default.
|
76
|
+
# config.http_authenticatable_on_xhr = true
|
77
|
+
|
78
|
+
# The realm used in Http Basic Authentication. 'Application' by default.
|
79
|
+
# config.http_authentication_realm = 'Application'
|
80
|
+
|
81
|
+
# It will change confirmation, password recovery and other workflows
|
82
|
+
# to behave the same regardless if the e-mail provided was right or wrong.
|
83
|
+
# Does not affect registerable.
|
84
|
+
# config.paranoid = true
|
85
|
+
|
86
|
+
# By default Devise will store the user in session. You can skip storage for
|
87
|
+
# particular strategies by setting this option.
|
88
|
+
# Notice that if you are skipping storage for all authentication paths, you
|
89
|
+
# may want to disable generating routes to Devise's sessions controller by
|
90
|
+
# passing skip: :sessions to `devise_for` in your config/routes.rb
|
91
|
+
config.skip_session_storage = [:http_auth]
|
92
|
+
|
93
|
+
# By default, Devise cleans up the CSRF token on authentication to
|
94
|
+
# avoid CSRF token fixation attacks. This means that, when using AJAX
|
95
|
+
# requests for sign in and sign up, you need to get a new CSRF token
|
96
|
+
# from the server. You can disable this option at your own risk.
|
97
|
+
# config.clean_up_csrf_token_on_authentication = true
|
98
|
+
|
99
|
+
# When false, Devise will not attempt to reload routes on eager load.
|
100
|
+
# This can reduce the time taken to boot the app but if your application
|
101
|
+
# requires the Devise mappings to be loaded during boot time the application
|
102
|
+
# won't boot properly.
|
103
|
+
# config.reload_routes = true
|
104
|
+
|
105
|
+
# ==> Configuration for :database_authenticatable
|
106
|
+
# For bcrypt, this is the cost for hashing the password and defaults to 11. If
|
107
|
+
# using other algorithms, it sets how many times you want the password to be hashed.
|
108
|
+
#
|
109
|
+
# Limiting the stretches to just one in testing will increase the performance of
|
110
|
+
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
111
|
+
# a value less than 10 in other environments. Note that, for bcrypt (the default
|
112
|
+
# algorithm), the cost increases exponentially with the number of stretches (e.g.
|
113
|
+
# a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
|
114
|
+
config.stretches = Rails.env.test? ? 1 : 11
|
115
|
+
|
116
|
+
# Set up a pepper to generate the hashed password.
|
117
|
+
# config.pepper = 'd64b4cef910bb0e6168bcedc12d73b2b4e1419fff4de5058dfd43ded50beb2b917ce5e538731e146c3ef3661372966c65886253ca967ce3719802a943838690d'
|
118
|
+
|
119
|
+
# Send a notification to the original email when the user's email is changed.
|
120
|
+
# config.send_email_changed_notification = false
|
121
|
+
|
122
|
+
# Send a notification email when the user's password is changed.
|
123
|
+
# config.send_password_change_notification = false
|
124
|
+
|
125
|
+
# ==> Configuration for :confirmable
|
126
|
+
# A period that the user is allowed to access the website even without
|
127
|
+
# confirming their account. For instance, if set to 2.days, the user will be
|
128
|
+
# able to access the website for two days without confirming their account,
|
129
|
+
# access will be blocked just in the third day.
|
130
|
+
# You can also set it to nil, which will allow the user to access the website
|
131
|
+
# without confirming their account.
|
132
|
+
# Default is 0.days, meaning the user cannot access the website without
|
133
|
+
# confirming their account.
|
134
|
+
# config.allow_unconfirmed_access_for = 2.days
|
135
|
+
|
136
|
+
# A period that the user is allowed to confirm their account before their
|
137
|
+
# token becomes invalid. For example, if set to 3.days, the user can confirm
|
138
|
+
# their account within 3 days after the mail was sent, but on the fourth day
|
139
|
+
# their account can't be confirmed with the token any more.
|
140
|
+
# Default is nil, meaning there is no restriction on how long a user can take
|
141
|
+
# before confirming their account.
|
142
|
+
# config.confirm_within = 3.days
|
143
|
+
|
144
|
+
# If true, requires any email changes to be confirmed (exactly the same way as
|
145
|
+
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
146
|
+
# db field (see migrations). Until confirmed, new email is stored in
|
147
|
+
# unconfirmed_email column, and copied to email column on successful confirmation.
|
148
|
+
config.reconfirmable = true
|
149
|
+
|
150
|
+
# Defines which key will be used when confirming an account
|
151
|
+
# config.confirmation_keys = [:email]
|
152
|
+
|
153
|
+
# ==> Configuration for :rememberable
|
154
|
+
# The time the user will be remembered without asking for credentials again.
|
155
|
+
# config.remember_for = 2.weeks
|
156
|
+
|
157
|
+
# Invalidates all the remember me tokens when the user signs out.
|
158
|
+
config.expire_all_remember_me_on_sign_out = true
|
159
|
+
|
160
|
+
# If true, extends the user's remember period when remembered via cookie.
|
161
|
+
# config.extend_remember_period = false
|
162
|
+
|
163
|
+
# Options to be passed to the created cookie. For instance, you can set
|
164
|
+
# secure: true in order to force SSL only cookies.
|
165
|
+
# config.rememberable_options = {}
|
166
|
+
|
167
|
+
# ==> Configuration for :validatable
|
168
|
+
# Range for password length.
|
169
|
+
config.password_length = 6..128
|
170
|
+
|
171
|
+
# Email regex used to validate email formats. It simply asserts that
|
172
|
+
# one (and only one) @ exists in the given string. This is mainly
|
173
|
+
# to give user feedback and not to assert the e-mail validity.
|
174
|
+
config.email_regexp = /\A[^@\s]+@[^@\s]+\z/
|
175
|
+
|
176
|
+
# ==> Configuration for :timeoutable
|
177
|
+
# The time you want to timeout the user session without activity. After this
|
178
|
+
# time the user will be asked for credentials again. Default is 30 minutes.
|
179
|
+
# config.timeout_in = 30.minutes
|
180
|
+
|
181
|
+
# ==> Configuration for :lockable
|
182
|
+
# Defines which strategy will be used to lock an account.
|
183
|
+
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
184
|
+
# :none = No lock strategy. You should handle locking by yourself.
|
185
|
+
# config.lock_strategy = :failed_attempts
|
186
|
+
|
187
|
+
# Defines which key will be used when locking and unlocking an account
|
188
|
+
# config.unlock_keys = [:email]
|
189
|
+
|
190
|
+
# Defines which strategy will be used to unlock an account.
|
191
|
+
# :email = Sends an unlock link to the user email
|
192
|
+
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
193
|
+
# :both = Enables both strategies
|
194
|
+
# :none = No unlock strategy. You should handle unlocking by yourself.
|
195
|
+
# config.unlock_strategy = :both
|
196
|
+
|
197
|
+
# Number of authentication tries before locking an account if lock_strategy
|
198
|
+
# is failed attempts.
|
199
|
+
# config.maximum_attempts = 20
|
200
|
+
|
201
|
+
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
202
|
+
# config.unlock_in = 1.hour
|
203
|
+
|
204
|
+
# Warn on the last attempt before the account is locked.
|
205
|
+
# config.last_attempt_warning = true
|
206
|
+
|
207
|
+
# ==> Configuration for :recoverable
|
208
|
+
#
|
209
|
+
# Defines which key will be used when recovering the password for an account
|
210
|
+
# config.reset_password_keys = [:email]
|
211
|
+
|
212
|
+
# Time interval you can reset your password with a reset password key.
|
213
|
+
# Don't put a too small interval or your users won't have the time to
|
214
|
+
# change their passwords.
|
215
|
+
config.reset_password_within = 6.hours
|
216
|
+
|
217
|
+
# When set to false, does not sign a user in automatically after their password is
|
218
|
+
# reset. Defaults to true, so a user is signed in automatically after a reset.
|
219
|
+
# config.sign_in_after_reset_password = true
|
220
|
+
|
221
|
+
# ==> Configuration for :encryptable
|
222
|
+
# Allow you to use another hashing or encryption algorithm besides bcrypt (default).
|
223
|
+
# You can use :sha1, :sha512 or algorithms from others authentication tools as
|
224
|
+
# :clearance_sha1, :authlogic_sha512 (then you should set stretches above to 20
|
225
|
+
# for default behavior) and :restful_authentication_sha1 (then you should set
|
226
|
+
# stretches to 10, and copy REST_AUTH_SITE_KEY to pepper).
|
227
|
+
#
|
228
|
+
# Require the `devise-encryptable` gem when using anything other than bcrypt
|
229
|
+
# config.encryptor = :sha512
|
230
|
+
|
231
|
+
# ==> Scopes configuration
|
232
|
+
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
233
|
+
# "users/sessions/new". It's turned off by default because it's slower if you
|
234
|
+
# are using only default views.
|
235
|
+
# config.scoped_views = false
|
236
|
+
|
237
|
+
# Configure the default scope given to Warden. By default it's the first
|
238
|
+
# devise role declared in your routes (usually :user).
|
239
|
+
# config.default_scope = :user
|
240
|
+
|
241
|
+
# Set this configuration to false if you want /users/sign_out to sign out
|
242
|
+
# only the current scope. By default, Devise signs out all scopes.
|
243
|
+
# config.sign_out_all_scopes = true
|
244
|
+
|
245
|
+
# ==> Navigation configuration
|
246
|
+
# Lists the formats that should be treated as navigational. Formats like
|
247
|
+
# :html, should redirect to the sign in page when the user does not have
|
248
|
+
# access, but formats like :xml or :json, should return 401.
|
249
|
+
#
|
250
|
+
# If you have any extra navigational formats, like :iphone or :mobile, you
|
251
|
+
# should add them to the navigational formats lists.
|
252
|
+
#
|
253
|
+
# The "*/*" below is required to match Internet Explorer requests.
|
254
|
+
# config.navigational_formats = ['*/*', :html]
|
255
|
+
|
256
|
+
# The default HTTP method used to sign out a resource. Default is :delete.
|
257
|
+
config.sign_out_via = :delete
|
258
|
+
|
259
|
+
# ==> OmniAuth
|
260
|
+
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
261
|
+
# up on your models and hooks.
|
262
|
+
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
|
263
|
+
|
264
|
+
# ==> Warden configuration
|
265
|
+
# If you want to use other strategies, that are not supported by Devise, or
|
266
|
+
# change the failure app, you can configure them inside the config.warden block.
|
267
|
+
#
|
268
|
+
# config.warden do |manager|
|
269
|
+
# manager.intercept_401 = false
|
270
|
+
# manager.default_strategies(scope: :user).unshift :some_external_strategy
|
271
|
+
# end
|
272
|
+
|
273
|
+
# ==> Mountable engine configurations
|
274
|
+
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
275
|
+
# is mountable, there are some extra configurations to be taken into account.
|
276
|
+
# The following options are available, assuming the engine is mounted as:
|
277
|
+
#
|
278
|
+
# mount MyEngine, at: '/my_engine'
|
279
|
+
#
|
280
|
+
# The router that invoked `devise_for`, in the example above, would be:
|
281
|
+
# config.router_name = :my_engine
|
282
|
+
#
|
283
|
+
# When using OmniAuth, Devise cannot automatically set OmniAuth path,
|
284
|
+
# so you need to do it manually. For the users scope, it would be:
|
285
|
+
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
286
|
+
|
287
|
+
# ==> Turbolinks configuration
|
288
|
+
# If your app is using Turbolinks, Turbolinks::Controller needs to be included to make redirection work correctly:
|
289
|
+
#
|
290
|
+
# ActiveSupport.on_load(:devise_failure_app) do
|
291
|
+
# include Turbolinks::Controller
|
292
|
+
# end
|
293
|
+
|
294
|
+
# ==> Configuration for :registerable
|
295
|
+
|
296
|
+
# When set to false, does not sign a user in automatically after their password is
|
297
|
+
# changed. Defaults to true, so a user is signed in automatically after changing a password.
|
298
|
+
# config.sign_in_after_change_password = true
|
299
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Rails.application.config.session_store :"#{mongo_orm}_store"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
+
|
3
|
+
en:
|
4
|
+
devise:
|
5
|
+
confirmations:
|
6
|
+
confirmed: "Your email address has been successfully confirmed."
|
7
|
+
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
8
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
|
9
|
+
failure:
|
10
|
+
already_authenticated: "You are already signed in."
|
11
|
+
inactive: "Your account is not activated yet."
|
12
|
+
invalid: "Invalid %{authentication_keys} or password."
|
13
|
+
locked: "Your account is locked."
|
14
|
+
last_attempt: "You have one more attempt before your account is locked."
|
15
|
+
not_found_in_database: "Invalid %{authentication_keys} or password."
|
16
|
+
timeout: "Your session expired. Please sign in again to continue."
|
17
|
+
unauthenticated: "You need to sign in or sign up before continuing."
|
18
|
+
unconfirmed: "You have to confirm your email address before continuing."
|
19
|
+
mailer:
|
20
|
+
confirmation_instructions:
|
21
|
+
subject: "Confirmation instructions"
|
22
|
+
reset_password_instructions:
|
23
|
+
subject: "Reset password instructions"
|
24
|
+
unlock_instructions:
|
25
|
+
subject: "Unlock instructions"
|
26
|
+
email_changed:
|
27
|
+
subject: "Email Changed"
|
28
|
+
password_change:
|
29
|
+
subject: "Password Changed"
|
30
|
+
omniauth_callbacks:
|
31
|
+
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
32
|
+
success: "Successfully authenticated from %{kind} account."
|
33
|
+
passwords:
|
34
|
+
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
35
|
+
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
36
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
37
|
+
updated: "Your password has been changed successfully. You are now signed in."
|
38
|
+
updated_not_active: "Your password has been changed successfully."
|
39
|
+
registrations:
|
40
|
+
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
41
|
+
signed_up: "Welcome! You have signed up successfully."
|
42
|
+
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
43
|
+
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
44
|
+
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
45
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirmation link to confirm your new email address."
|
46
|
+
updated: "Your account has been updated successfully."
|
47
|
+
updated_but_not_signed_in: "Your account has been updated successfully, but since your password was changed, you need to sign in again"
|
48
|
+
sessions:
|
49
|
+
signed_in: "Signed in successfully."
|
50
|
+
signed_out: "Signed out successfully."
|
51
|
+
already_signed_out: "Signed out successfully."
|
52
|
+
unlocks:
|
53
|
+
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
54
|
+
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
55
|
+
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
56
|
+
errors:
|
57
|
+
messages:
|
58
|
+
already_confirmed: "was already confirmed, please try signing in"
|
59
|
+
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
60
|
+
expired: "has expired, please request a new one"
|
61
|
+
not_found: "not found"
|
62
|
+
not_locked: "was not locked"
|
63
|
+
not_saved:
|
64
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
65
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
@@ -0,0 +1,33 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
hello: "Hello world"
|
@@ -0,0 +1 @@
|
|
1
|
+
1ff9c60b166743878658e17106e718db
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class AddDeviseUsers < ActiveRecord::Migration[6.0]
|
2
|
+
def change
|
3
|
+
create_table(:users) do |t|
|
4
|
+
t.string :email, :null => false, :default => ""
|
5
|
+
t.string :encrypted_password, :null => false, :default => ""
|
6
|
+
t.timestamps
|
7
|
+
end
|
8
|
+
|
9
|
+
add_index :users, :email, :unique => true
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# This file is auto-generated from the current state of the database. Instead
|
2
|
+
# of editing this file, please use the migrations feature of Active Record to
|
3
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
4
|
+
#
|
5
|
+
# This file is the source Rails uses to define your schema when running `rails
|
6
|
+
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2020_04_27_115501) do
|
14
|
+
|
15
|
+
create_table "users", force: :cascade do |t|
|
16
|
+
t.string "email", default: "", null: false
|
17
|
+
t.string "encrypted_password", default: "", null: false
|
18
|
+
t.datetime "created_at", precision: 6, null: false
|
19
|
+
t.datetime "updated_at", precision: 6, null: false
|
20
|
+
t.index ["email"], name: "index_users_on_email", unique: true
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
@@ -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)
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
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
|
+
builder.use Rack::Session::Cookie, :secret => "Very secret secret"
|
13
|
+
builder.run MyApp.new
|
14
|
+
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.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Bruijn
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date:
|
15
|
+
date: 2020-04-27 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: actionpack
|
@@ -155,6 +155,8 @@ files:
|
|
155
155
|
- gemfiles/rails-5.1-mongoid.gemfile
|
156
156
|
- gemfiles/rails-5.2-mongo.gemfile
|
157
157
|
- gemfiles/rails-5.2-mongoid.gemfile
|
158
|
+
- gemfiles/rails-6.0-mongo.gemfile
|
159
|
+
- gemfiles/rails-6.0-mongoid.gemfile
|
158
160
|
- lib/mongo_session_store.rb
|
159
161
|
- lib/mongo_session_store/mongo_store.rb
|
160
162
|
- lib/mongo_session_store/mongo_store_base.rb
|
@@ -164,6 +166,7 @@ files:
|
|
164
166
|
- perf/benchmark.rb
|
165
167
|
- spec/.rubocop.yml
|
166
168
|
- spec/integrations/devise_spec.rb
|
169
|
+
- spec/integrations/rack_spec.rb
|
167
170
|
- spec/lib/mongo_session_store/mongo_store/session_spec.rb
|
168
171
|
- spec/lib/mongo_session_store/mongo_store_base_spec.rb
|
169
172
|
- spec/lib/mongo_session_store/mongo_store_spec.rb
|
@@ -342,8 +345,44 @@ files:
|
|
342
345
|
- spec/support/apps/rails_5.2_app/db/migrate/20140301171212_add_devise_users.rb
|
343
346
|
- spec/support/apps/rails_5.2_app/db/schema.rb
|
344
347
|
- spec/support/apps/rails_5.2_app/log/.keep
|
348
|
+
- spec/support/apps/rails_6.0_app/Rakefile
|
349
|
+
- spec/support/apps/rails_6.0_app/app/controllers/application_controller.rb
|
350
|
+
- spec/support/apps/rails_6.0_app/app/controllers/home_controller.rb
|
351
|
+
- spec/support/apps/rails_6.0_app/app/models/application_record.rb
|
352
|
+
- spec/support/apps/rails_6.0_app/app/models/user.rb
|
353
|
+
- spec/support/apps/rails_6.0_app/app/views/home/index.html.erb
|
354
|
+
- spec/support/apps/rails_6.0_app/app/views/layouts/application.html.erb
|
355
|
+
- spec/support/apps/rails_6.0_app/bin/rails
|
356
|
+
- spec/support/apps/rails_6.0_app/bin/rake
|
357
|
+
- spec/support/apps/rails_6.0_app/bin/setup
|
358
|
+
- spec/support/apps/rails_6.0_app/config.ru
|
359
|
+
- spec/support/apps/rails_6.0_app/config/application.rb
|
360
|
+
- spec/support/apps/rails_6.0_app/config/boot.rb
|
361
|
+
- spec/support/apps/rails_6.0_app/config/credentials.yml.enc
|
362
|
+
- spec/support/apps/rails_6.0_app/config/database.yml
|
363
|
+
- spec/support/apps/rails_6.0_app/config/environment.rb
|
364
|
+
- spec/support/apps/rails_6.0_app/config/environments/development.rb
|
365
|
+
- spec/support/apps/rails_6.0_app/config/environments/test.rb
|
366
|
+
- spec/support/apps/rails_6.0_app/config/initializers/cookies_serializer.rb
|
367
|
+
- spec/support/apps/rails_6.0_app/config/initializers/devise.rb
|
368
|
+
- spec/support/apps/rails_6.0_app/config/initializers/filter_parameter_logging.rb
|
369
|
+
- spec/support/apps/rails_6.0_app/config/initializers/session_store.rb
|
370
|
+
- spec/support/apps/rails_6.0_app/config/initializers/wrap_parameters.rb
|
371
|
+
- spec/support/apps/rails_6.0_app/config/locales/devise.en.yml
|
372
|
+
- spec/support/apps/rails_6.0_app/config/locales/en.yml
|
373
|
+
- spec/support/apps/rails_6.0_app/config/master.key
|
374
|
+
- spec/support/apps/rails_6.0_app/config/mongo.yml
|
375
|
+
- spec/support/apps/rails_6.0_app/config/mongoid.yml
|
376
|
+
- spec/support/apps/rails_6.0_app/config/routes.rb
|
377
|
+
- spec/support/apps/rails_6.0_app/db/migrate/20200427115501_add_devise_users.rb
|
378
|
+
- spec/support/apps/rails_6.0_app/db/schema.rb
|
379
|
+
- spec/support/apps/rails_6.0_app/db/seeds.rb
|
380
|
+
- spec/support/apps/rails_6.0_app/lib/assets/.keep
|
381
|
+
- spec/support/apps/rails_6.0_app/lib/tasks/.keep
|
382
|
+
- spec/support/apps/rails_6.0_app/log/.keep
|
345
383
|
- spec/support/helpers/session_id_helper.rb
|
346
384
|
- spec/support/helpers/test_database_helper.rb
|
385
|
+
- spec/support/rack_app.rb
|
347
386
|
homepage: http://github.com/mongoid/mongo_session_store
|
348
387
|
licenses:
|
349
388
|
- MIT
|
@@ -363,13 +402,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
363
402
|
- !ruby/object:Gem::Version
|
364
403
|
version: '0'
|
365
404
|
requirements: []
|
366
|
-
rubygems_version: 3.
|
405
|
+
rubygems_version: 3.1.2
|
367
406
|
signing_key:
|
368
407
|
specification_version: 4
|
369
408
|
summary: Rails session stores for Mongoid, or any other ODM. Rails 4 compatible.
|
370
409
|
test_files:
|
371
410
|
- perf/benchmark.rb
|
372
411
|
- spec/integrations/devise_spec.rb
|
412
|
+
- spec/integrations/rack_spec.rb
|
373
413
|
- spec/lib/mongo_session_store/mongo_store/session_spec.rb
|
374
414
|
- spec/lib/mongo_session_store/mongo_store_base_spec.rb
|
375
415
|
- spec/lib/mongo_session_store/mongo_store_spec.rb
|
@@ -548,5 +588,41 @@ test_files:
|
|
548
588
|
- spec/support/apps/rails_5.2_app/db/migrate/20140301171212_add_devise_users.rb
|
549
589
|
- spec/support/apps/rails_5.2_app/db/schema.rb
|
550
590
|
- spec/support/apps/rails_5.2_app/log/.keep
|
591
|
+
- spec/support/apps/rails_6.0_app/Rakefile
|
592
|
+
- spec/support/apps/rails_6.0_app/app/controllers/application_controller.rb
|
593
|
+
- spec/support/apps/rails_6.0_app/app/controllers/home_controller.rb
|
594
|
+
- spec/support/apps/rails_6.0_app/app/models/application_record.rb
|
595
|
+
- spec/support/apps/rails_6.0_app/app/models/user.rb
|
596
|
+
- spec/support/apps/rails_6.0_app/app/views/home/index.html.erb
|
597
|
+
- spec/support/apps/rails_6.0_app/app/views/layouts/application.html.erb
|
598
|
+
- spec/support/apps/rails_6.0_app/bin/rails
|
599
|
+
- spec/support/apps/rails_6.0_app/bin/rake
|
600
|
+
- spec/support/apps/rails_6.0_app/bin/setup
|
601
|
+
- spec/support/apps/rails_6.0_app/config.ru
|
602
|
+
- spec/support/apps/rails_6.0_app/config/application.rb
|
603
|
+
- spec/support/apps/rails_6.0_app/config/boot.rb
|
604
|
+
- spec/support/apps/rails_6.0_app/config/credentials.yml.enc
|
605
|
+
- spec/support/apps/rails_6.0_app/config/database.yml
|
606
|
+
- spec/support/apps/rails_6.0_app/config/environment.rb
|
607
|
+
- spec/support/apps/rails_6.0_app/config/environments/development.rb
|
608
|
+
- spec/support/apps/rails_6.0_app/config/environments/test.rb
|
609
|
+
- spec/support/apps/rails_6.0_app/config/initializers/cookies_serializer.rb
|
610
|
+
- spec/support/apps/rails_6.0_app/config/initializers/devise.rb
|
611
|
+
- spec/support/apps/rails_6.0_app/config/initializers/filter_parameter_logging.rb
|
612
|
+
- spec/support/apps/rails_6.0_app/config/initializers/session_store.rb
|
613
|
+
- spec/support/apps/rails_6.0_app/config/initializers/wrap_parameters.rb
|
614
|
+
- spec/support/apps/rails_6.0_app/config/locales/devise.en.yml
|
615
|
+
- spec/support/apps/rails_6.0_app/config/locales/en.yml
|
616
|
+
- spec/support/apps/rails_6.0_app/config/master.key
|
617
|
+
- spec/support/apps/rails_6.0_app/config/mongo.yml
|
618
|
+
- spec/support/apps/rails_6.0_app/config/mongoid.yml
|
619
|
+
- spec/support/apps/rails_6.0_app/config/routes.rb
|
620
|
+
- spec/support/apps/rails_6.0_app/db/migrate/20200427115501_add_devise_users.rb
|
621
|
+
- spec/support/apps/rails_6.0_app/db/schema.rb
|
622
|
+
- spec/support/apps/rails_6.0_app/db/seeds.rb
|
623
|
+
- spec/support/apps/rails_6.0_app/lib/assets/.keep
|
624
|
+
- spec/support/apps/rails_6.0_app/lib/tasks/.keep
|
625
|
+
- spec/support/apps/rails_6.0_app/log/.keep
|
551
626
|
- spec/support/helpers/session_id_helper.rb
|
552
627
|
- spec/support/helpers/test_database_helper.rb
|
628
|
+
- spec/support/rack_app.rb
|