mongo_session_store 2.0.0 → 3.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.rspec +1 -0
- data/.rubocop.yml +43 -0
- data/.travis.yml +37 -0
- data/CHANGELOG.md +49 -0
- data/Dangerfile +1 -0
- data/Gemfile +3 -0
- data/LICENSE +23 -0
- data/README.md +106 -43
- data/Rakefile +90 -0
- data/gemfiles/rails-4.0-mongo.gemfile +9 -0
- data/gemfiles/rails-4.0-mongoid.gemfile +9 -0
- data/gemfiles/rails-4.1-mongo.gemfile +9 -0
- data/gemfiles/rails-4.1-mongoid.gemfile +9 -0
- data/gemfiles/rails-4.2-mongo.gemfile +9 -0
- data/gemfiles/rails-4.2-mongoid.gemfile +9 -0
- data/lib/mongo_session_store.rb +27 -1
- data/lib/mongo_session_store/mongo_store.rb +102 -0
- data/lib/mongo_session_store/mongo_store_base.rb +65 -0
- data/lib/mongo_session_store/mongoid_store.rb +52 -0
- data/lib/mongo_session_store/version.rb +3 -0
- data/mongo_session_store.gemspec +25 -0
- data/perf/benchmark.rb +101 -0
- data/spec/.rubocop.yml +4 -0
- data/spec/integrations/devise_spec.rb +109 -0
- data/spec/lib/mongo_session_store/mongo_store/session_spec.rb +247 -0
- data/spec/lib/mongo_session_store/mongo_store_base_spec.rb +269 -0
- data/spec/lib/mongo_session_store/mongo_store_spec.rb +13 -0
- data/spec/lib/mongo_session_store/mongoid_store/session_spec.rb +82 -0
- data/spec/lib/mongo_session_store/mongoid_store_spec.rb +13 -0
- data/spec/lib/mongo_session_store_spec.rb +64 -0
- data/spec/rails_helper.rb +19 -0
- data/spec/spec_helper.rb +53 -0
- data/spec/support/apps/rails_4.0_app/Rakefile +6 -0
- data/spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb +5 -0
- data/spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb +4 -0
- data/spec/support/apps/rails_4.0_app/app/models/user.rb +5 -0
- data/spec/support/apps/rails_4.0_app/app/views/home/index.html.erb +10 -0
- data/spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb +17 -0
- data/spec/support/apps/rails_4.0_app/bin/bundle +3 -0
- data/spec/support/apps/rails_4.0_app/bin/rails +4 -0
- data/spec/support/apps/rails_4.0_app/bin/rake +4 -0
- data/spec/support/apps/rails_4.0_app/config.ru +4 -0
- data/spec/support/apps/rails_4.0_app/config/application.rb +11 -0
- data/spec/support/apps/rails_4.0_app/config/boot.rb +4 -0
- data/spec/support/apps/rails_4.0_app/config/database.yml +11 -0
- data/spec/support/apps/rails_4.0_app/config/environment.rb +5 -0
- data/spec/support/apps/rails_4.0_app/config/environments/development.rb +12 -0
- data/spec/support/apps/rails_4.0_app/config/environments/test.rb +19 -0
- data/spec/support/apps/rails_4.0_app/config/initializers/devise.rb +254 -0
- data/spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb +12 -0
- data/spec/support/apps/rails_4.0_app/config/initializers/session_store.rb +1 -0
- data/spec/support/apps/rails_4.0_app/config/locales/devise.en.yml +59 -0
- data/spec/support/apps/rails_4.0_app/config/locales/en.yml +23 -0
- data/spec/support/apps/rails_4.0_app/config/mongo.yml +11 -0
- data/spec/support/apps/rails_4.0_app/config/mongoid.yml +13 -0
- data/spec/support/apps/rails_4.0_app/config/routes.rb +4 -0
- data/spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb +11 -0
- data/spec/support/apps/rails_4.0_app/db/schema.rb +25 -0
- data/spec/support/apps/rails_4.0_app/db/seeds.rb +7 -0
- 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.0_app/public/404.html +58 -0
- data/spec/support/apps/rails_4.0_app/public/422.html +58 -0
- data/spec/support/apps/rails_4.0_app/public/500.html +57 -0
- data/spec/support/apps/rails_4.0_app/public/favicon.ico +0 -0
- data/spec/support/apps/rails_4.0_app/public/robots.txt +5 -0
- data/spec/support/apps/rails_4.1_app/Rakefile +3 -0
- data/spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb +5 -0
- data/spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb +4 -0
- data/spec/support/apps/rails_4.1_app/app/models/user.rb +5 -0
- data/spec/support/apps/rails_4.1_app/app/views/home/index.html.erb +10 -0
- data/spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb +17 -0
- data/spec/support/apps/rails_4.1_app/bin/bundle +3 -0
- data/spec/support/apps/rails_4.1_app/bin/rails +4 -0
- data/spec/support/apps/rails_4.1_app/bin/rake +4 -0
- data/spec/support/apps/rails_4.1_app/config.ru +2 -0
- data/spec/support/apps/rails_4.1_app/config/application.rb +11 -0
- data/spec/support/apps/rails_4.1_app/config/boot.rb +4 -0
- data/spec/support/apps/rails_4.1_app/config/database.yml +11 -0
- data/spec/support/apps/rails_4.1_app/config/environment.rb +5 -0
- data/spec/support/apps/rails_4.1_app/config/environments/development.rb +12 -0
- data/spec/support/apps/rails_4.1_app/config/environments/test.rb +19 -0
- data/spec/support/apps/rails_4.1_app/config/initializers/devise.rb +254 -0
- data/spec/support/apps/rails_4.1_app/config/initializers/session_store.rb +1 -0
- data/spec/support/apps/rails_4.1_app/config/locales/devise.en.yml +59 -0
- data/spec/support/apps/rails_4.1_app/config/locales/en.yml +23 -0
- data/spec/support/apps/rails_4.1_app/config/mongo.yml +11 -0
- data/spec/support/apps/rails_4.1_app/config/mongoid.yml +13 -0
- data/spec/support/apps/rails_4.1_app/config/routes.rb +4 -0
- data/spec/support/apps/rails_4.1_app/config/secrets.yml +22 -0
- data/spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb +11 -0
- data/spec/support/apps/rails_4.1_app/db/schema.rb +25 -0
- data/spec/support/apps/rails_4.1_app/db/seeds.rb +7 -0
- 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.1_app/public/404.html +67 -0
- data/spec/support/apps/rails_4.1_app/public/422.html +67 -0
- data/spec/support/apps/rails_4.1_app/public/500.html +66 -0
- data/spec/support/apps/rails_4.1_app/public/favicon.ico +0 -0
- data/spec/support/apps/rails_4.1_app/public/robots.txt +5 -0
- data/spec/support/apps/rails_4.2_app/Rakefile +2 -0
- data/spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb +5 -0
- data/spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb +4 -0
- data/spec/support/apps/rails_4.2_app/app/models/user.rb +5 -0
- data/spec/support/apps/rails_4.2_app/app/views/home/index.html.erb +10 -0
- data/spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb +15 -0
- data/spec/support/apps/rails_4.2_app/bin/bundle +3 -0
- data/spec/support/apps/rails_4.2_app/bin/rails +8 -0
- data/spec/support/apps/rails_4.2_app/bin/rake +4 -0
- data/spec/support/apps/rails_4.2_app/config.ru +4 -0
- data/spec/support/apps/rails_4.2_app/config/application.rb +11 -0
- data/spec/support/apps/rails_4.2_app/config/boot.rb +3 -0
- data/spec/support/apps/rails_4.2_app/config/database.yml +11 -0
- data/spec/support/apps/rails_4.2_app/config/environment.rb +5 -0
- data/spec/support/apps/rails_4.2_app/config/environments/development.rb +12 -0
- data/spec/support/apps/rails_4.2_app/config/environments/test.rb +19 -0
- data/spec/support/apps/rails_4.2_app/config/initializers/devise.rb +254 -0
- data/spec/support/apps/rails_4.2_app/config/initializers/session_store.rb +1 -0
- data/spec/support/apps/rails_4.2_app/config/locales/en.yml +23 -0
- data/spec/support/apps/rails_4.2_app/config/mongo.yml +11 -0
- data/spec/support/apps/rails_4.2_app/config/mongoid.yml +13 -0
- data/spec/support/apps/rails_4.2_app/config/routes.rb +4 -0
- data/spec/support/apps/rails_4.2_app/config/secrets.yml +22 -0
- data/spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb +11 -0
- data/spec/support/apps/rails_4.2_app/db/schema.rb +25 -0
- data/spec/support/apps/rails_4.2_app/db/seeds.rb +7 -0
- data/spec/support/helpers/session_id_helper.rb +5 -0
- data/spec/support/helpers/test_database_helper.rb +22 -0
- metadata +360 -92
- data/lib/mongo_session_store/mongo_mapper.rb +0 -60
- data/lib/mongo_session_store/mongoid.rb +0 -59
@@ -0,0 +1 @@
|
|
1
|
+
Rails.application.config.session_store :"#{mongo_orm}_store"
|
@@ -0,0 +1,23 @@
|
|
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
|
+
# To learn more, please read the Rails Internationalization guide
|
20
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
21
|
+
|
22
|
+
en:
|
23
|
+
hello: "Hello world"
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure the secrets in this file are kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
|
13
|
+
development:
|
14
|
+
secret_key_base: f572c56330979d77b1f486dfc2cc38990a79eade97da6680e956c0b57967abc3b87759491959283d95f8377a56d30401f8ddac4575c5e1148150a16f09be7c1d
|
15
|
+
|
16
|
+
test:
|
17
|
+
secret_key_base: cc274453aa400d96444af8c114d32dada6359a8703c7e390e84149f007e1d16aee99b9a6de1a294db718a57317baa54bd57a0bca424bc30d8d15b521c2ccec5d
|
18
|
+
|
19
|
+
# Do not keep production secrets in the repository,
|
20
|
+
# instead read values from the environment.
|
21
|
+
production:
|
22
|
+
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
class AddDeviseUsers < ActiveRecord::Migration
|
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,25 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20140301171212) do
|
15
|
+
|
16
|
+
create_table "users", force: true do |t|
|
17
|
+
t.string "email", default: "", null: false
|
18
|
+
t.string "encrypted_password", default: "", null: false
|
19
|
+
t.datetime "created_at"
|
20
|
+
t.datetime "updated_at"
|
21
|
+
end
|
22
|
+
|
23
|
+
add_index "users", ["email"], name: "index_users_on_email", unique: true
|
24
|
+
|
25
|
+
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 rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module TestDatabaseHelper
|
2
|
+
module_function
|
3
|
+
|
4
|
+
def test_database
|
5
|
+
case mongo_orm
|
6
|
+
when "mongoid"
|
7
|
+
MongoidStore::Session.mongo_client
|
8
|
+
when "mongo"
|
9
|
+
Mongo::Client
|
10
|
+
.new(["127.0.0.1:27017"], :database => test_database_name)
|
11
|
+
.database
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def drop_collections_in(database)
|
16
|
+
database.collections.select { |c| c.name !~ /^system/ }.each(&:drop)
|
17
|
+
end
|
18
|
+
|
19
|
+
def test_database_name
|
20
|
+
"test_database"
|
21
|
+
end
|
22
|
+
end
|
metadata
CHANGED
@@ -1,117 +1,385 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_session_store
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease: false
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 2.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 3.0.0.beta.1
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
6
|
+
authors:
|
7
|
+
- Tom de Bruijn
|
8
|
+
- Brian Hempel
|
9
|
+
- Nicolas Mérouze
|
14
10
|
- Tony Pitale
|
15
11
|
- Chris Brickley
|
16
12
|
autorequire:
|
17
13
|
bindir: bin
|
18
14
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
dependencies:
|
23
|
-
- !ruby/object:Gem::Dependency
|
15
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
24
18
|
name: actionpack
|
19
|
+
requirement: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - "~>"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '4.0'
|
24
|
+
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - "~>"
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '4.0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: mongo
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - "~>"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.0'
|
36
38
|
type: :runtime
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: mongo_mapper-rails3
|
40
39
|
prerelease: false
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - "~>"
|
43
|
+
- !ruby/object:Gem::Version
|
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'
|
52
|
+
type: :development
|
53
|
+
prerelease: false
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - "~>"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '3'
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: pry
|
61
|
+
requirement: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - "~>"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '0.10'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0.10'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rake
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '11'
|
52
80
|
type: :development
|
53
|
-
version_requirements: *id002
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: mongoid
|
56
81
|
prerelease: false
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '11'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: rubocop
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - '='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.45.0
|
67
94
|
type: :development
|
68
|
-
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - '='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.45.0
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: mongoid-danger
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - "~>"
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 0.1.0
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - "~>"
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 0.1.0
|
69
115
|
description:
|
70
|
-
email:
|
116
|
+
email:
|
117
|
+
- tom@tomdebruijn.com
|
71
118
|
executables: []
|
72
|
-
|
73
119
|
extensions: []
|
74
|
-
|
75
|
-
|
76
|
-
-
|
77
|
-
|
120
|
+
extra_rdoc_files: []
|
121
|
+
files:
|
122
|
+
- ".gitignore"
|
123
|
+
- ".rspec"
|
124
|
+
- ".rubocop.yml"
|
125
|
+
- ".travis.yml"
|
126
|
+
- CHANGELOG.md
|
127
|
+
- Dangerfile
|
128
|
+
- Gemfile
|
129
|
+
- LICENSE
|
78
130
|
- README.md
|
131
|
+
- Rakefile
|
132
|
+
- gemfiles/rails-4.0-mongo.gemfile
|
133
|
+
- gemfiles/rails-4.0-mongoid.gemfile
|
134
|
+
- gemfiles/rails-4.1-mongo.gemfile
|
135
|
+
- gemfiles/rails-4.1-mongoid.gemfile
|
136
|
+
- gemfiles/rails-4.2-mongo.gemfile
|
137
|
+
- gemfiles/rails-4.2-mongoid.gemfile
|
79
138
|
- lib/mongo_session_store.rb
|
80
|
-
- lib/mongo_session_store/
|
81
|
-
- lib/mongo_session_store/
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
139
|
+
- lib/mongo_session_store/mongo_store.rb
|
140
|
+
- lib/mongo_session_store/mongo_store_base.rb
|
141
|
+
- lib/mongo_session_store/mongoid_store.rb
|
142
|
+
- lib/mongo_session_store/version.rb
|
143
|
+
- mongo_session_store.gemspec
|
144
|
+
- perf/benchmark.rb
|
145
|
+
- spec/.rubocop.yml
|
146
|
+
- spec/integrations/devise_spec.rb
|
147
|
+
- spec/lib/mongo_session_store/mongo_store/session_spec.rb
|
148
|
+
- spec/lib/mongo_session_store/mongo_store_base_spec.rb
|
149
|
+
- spec/lib/mongo_session_store/mongo_store_spec.rb
|
150
|
+
- spec/lib/mongo_session_store/mongoid_store/session_spec.rb
|
151
|
+
- spec/lib/mongo_session_store/mongoid_store_spec.rb
|
152
|
+
- spec/lib/mongo_session_store_spec.rb
|
153
|
+
- spec/rails_helper.rb
|
154
|
+
- spec/spec_helper.rb
|
155
|
+
- spec/support/apps/rails_4.0_app/Rakefile
|
156
|
+
- spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb
|
157
|
+
- spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb
|
158
|
+
- spec/support/apps/rails_4.0_app/app/models/user.rb
|
159
|
+
- spec/support/apps/rails_4.0_app/app/views/home/index.html.erb
|
160
|
+
- spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb
|
161
|
+
- spec/support/apps/rails_4.0_app/bin/bundle
|
162
|
+
- spec/support/apps/rails_4.0_app/bin/rails
|
163
|
+
- spec/support/apps/rails_4.0_app/bin/rake
|
164
|
+
- spec/support/apps/rails_4.0_app/config.ru
|
165
|
+
- spec/support/apps/rails_4.0_app/config/application.rb
|
166
|
+
- spec/support/apps/rails_4.0_app/config/boot.rb
|
167
|
+
- spec/support/apps/rails_4.0_app/config/database.yml
|
168
|
+
- spec/support/apps/rails_4.0_app/config/environment.rb
|
169
|
+
- spec/support/apps/rails_4.0_app/config/environments/development.rb
|
170
|
+
- spec/support/apps/rails_4.0_app/config/environments/test.rb
|
171
|
+
- spec/support/apps/rails_4.0_app/config/initializers/devise.rb
|
172
|
+
- spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb
|
173
|
+
- spec/support/apps/rails_4.0_app/config/initializers/session_store.rb
|
174
|
+
- spec/support/apps/rails_4.0_app/config/locales/devise.en.yml
|
175
|
+
- spec/support/apps/rails_4.0_app/config/locales/en.yml
|
176
|
+
- spec/support/apps/rails_4.0_app/config/mongo.yml
|
177
|
+
- spec/support/apps/rails_4.0_app/config/mongoid.yml
|
178
|
+
- spec/support/apps/rails_4.0_app/config/routes.rb
|
179
|
+
- spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb
|
180
|
+
- spec/support/apps/rails_4.0_app/db/schema.rb
|
181
|
+
- spec/support/apps/rails_4.0_app/db/seeds.rb
|
182
|
+
- spec/support/apps/rails_4.0_app/lib/assets/.keep
|
183
|
+
- spec/support/apps/rails_4.0_app/lib/tasks/.keep
|
184
|
+
- spec/support/apps/rails_4.0_app/log/.keep
|
185
|
+
- spec/support/apps/rails_4.0_app/public/404.html
|
186
|
+
- spec/support/apps/rails_4.0_app/public/422.html
|
187
|
+
- spec/support/apps/rails_4.0_app/public/500.html
|
188
|
+
- spec/support/apps/rails_4.0_app/public/favicon.ico
|
189
|
+
- spec/support/apps/rails_4.0_app/public/robots.txt
|
190
|
+
- spec/support/apps/rails_4.1_app/Rakefile
|
191
|
+
- spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb
|
192
|
+
- spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb
|
193
|
+
- spec/support/apps/rails_4.1_app/app/models/user.rb
|
194
|
+
- spec/support/apps/rails_4.1_app/app/views/home/index.html.erb
|
195
|
+
- spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb
|
196
|
+
- spec/support/apps/rails_4.1_app/bin/bundle
|
197
|
+
- spec/support/apps/rails_4.1_app/bin/rails
|
198
|
+
- spec/support/apps/rails_4.1_app/bin/rake
|
199
|
+
- spec/support/apps/rails_4.1_app/config.ru
|
200
|
+
- spec/support/apps/rails_4.1_app/config/application.rb
|
201
|
+
- spec/support/apps/rails_4.1_app/config/boot.rb
|
202
|
+
- spec/support/apps/rails_4.1_app/config/database.yml
|
203
|
+
- spec/support/apps/rails_4.1_app/config/environment.rb
|
204
|
+
- spec/support/apps/rails_4.1_app/config/environments/development.rb
|
205
|
+
- spec/support/apps/rails_4.1_app/config/environments/test.rb
|
206
|
+
- spec/support/apps/rails_4.1_app/config/initializers/devise.rb
|
207
|
+
- spec/support/apps/rails_4.1_app/config/initializers/session_store.rb
|
208
|
+
- spec/support/apps/rails_4.1_app/config/locales/devise.en.yml
|
209
|
+
- spec/support/apps/rails_4.1_app/config/locales/en.yml
|
210
|
+
- spec/support/apps/rails_4.1_app/config/mongo.yml
|
211
|
+
- spec/support/apps/rails_4.1_app/config/mongoid.yml
|
212
|
+
- spec/support/apps/rails_4.1_app/config/routes.rb
|
213
|
+
- spec/support/apps/rails_4.1_app/config/secrets.yml
|
214
|
+
- spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb
|
215
|
+
- spec/support/apps/rails_4.1_app/db/schema.rb
|
216
|
+
- spec/support/apps/rails_4.1_app/db/seeds.rb
|
217
|
+
- spec/support/apps/rails_4.1_app/lib/assets/.keep
|
218
|
+
- spec/support/apps/rails_4.1_app/lib/tasks/.keep
|
219
|
+
- spec/support/apps/rails_4.1_app/log/.keep
|
220
|
+
- spec/support/apps/rails_4.1_app/public/404.html
|
221
|
+
- spec/support/apps/rails_4.1_app/public/422.html
|
222
|
+
- spec/support/apps/rails_4.1_app/public/500.html
|
223
|
+
- spec/support/apps/rails_4.1_app/public/favicon.ico
|
224
|
+
- spec/support/apps/rails_4.1_app/public/robots.txt
|
225
|
+
- spec/support/apps/rails_4.2_app/Rakefile
|
226
|
+
- spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb
|
227
|
+
- spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb
|
228
|
+
- spec/support/apps/rails_4.2_app/app/models/user.rb
|
229
|
+
- spec/support/apps/rails_4.2_app/app/views/home/index.html.erb
|
230
|
+
- spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb
|
231
|
+
- spec/support/apps/rails_4.2_app/bin/bundle
|
232
|
+
- spec/support/apps/rails_4.2_app/bin/rails
|
233
|
+
- spec/support/apps/rails_4.2_app/bin/rake
|
234
|
+
- spec/support/apps/rails_4.2_app/config.ru
|
235
|
+
- spec/support/apps/rails_4.2_app/config/application.rb
|
236
|
+
- spec/support/apps/rails_4.2_app/config/boot.rb
|
237
|
+
- spec/support/apps/rails_4.2_app/config/database.yml
|
238
|
+
- spec/support/apps/rails_4.2_app/config/environment.rb
|
239
|
+
- spec/support/apps/rails_4.2_app/config/environments/development.rb
|
240
|
+
- spec/support/apps/rails_4.2_app/config/environments/test.rb
|
241
|
+
- spec/support/apps/rails_4.2_app/config/initializers/devise.rb
|
242
|
+
- spec/support/apps/rails_4.2_app/config/initializers/session_store.rb
|
243
|
+
- spec/support/apps/rails_4.2_app/config/locales/en.yml
|
244
|
+
- spec/support/apps/rails_4.2_app/config/mongo.yml
|
245
|
+
- spec/support/apps/rails_4.2_app/config/mongoid.yml
|
246
|
+
- spec/support/apps/rails_4.2_app/config/routes.rb
|
247
|
+
- spec/support/apps/rails_4.2_app/config/secrets.yml
|
248
|
+
- spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb
|
249
|
+
- spec/support/apps/rails_4.2_app/db/schema.rb
|
250
|
+
- spec/support/apps/rails_4.2_app/db/seeds.rb
|
251
|
+
- spec/support/helpers/session_id_helper.rb
|
252
|
+
- spec/support/helpers/test_database_helper.rb
|
253
|
+
homepage: http://github.com/mongoid/mongo_session_store
|
254
|
+
licenses:
|
255
|
+
- MIT
|
256
|
+
metadata: {}
|
86
257
|
post_install_message:
|
87
|
-
rdoc_options:
|
88
|
-
|
89
|
-
require_paths:
|
258
|
+
rdoc_options: []
|
259
|
+
require_paths:
|
90
260
|
- lib
|
91
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
-
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
hash: 3
|
97
|
-
segments:
|
98
|
-
- 0
|
99
|
-
version: "0"
|
100
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
|
-
requirements:
|
261
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
103
263
|
- - ">="
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '1.9'
|
266
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
267
|
+
requirements:
|
268
|
+
- - ">"
|
269
|
+
- !ruby/object:Gem::Version
|
270
|
+
version: 1.3.1
|
109
271
|
requirements: []
|
110
|
-
|
111
272
|
rubyforge_project:
|
112
|
-
rubygems_version:
|
273
|
+
rubygems_version: 2.6.10
|
113
274
|
signing_key:
|
114
|
-
specification_version:
|
115
|
-
summary: Rails session
|
116
|
-
test_files:
|
117
|
-
|
275
|
+
specification_version: 4
|
276
|
+
summary: Rails session stores for Mongoid, or any other ODM. Rails 4 compatible.
|
277
|
+
test_files:
|
278
|
+
- perf/benchmark.rb
|
279
|
+
- spec/integrations/devise_spec.rb
|
280
|
+
- spec/lib/mongo_session_store/mongo_store/session_spec.rb
|
281
|
+
- spec/lib/mongo_session_store/mongo_store_base_spec.rb
|
282
|
+
- spec/lib/mongo_session_store/mongo_store_spec.rb
|
283
|
+
- spec/lib/mongo_session_store/mongoid_store/session_spec.rb
|
284
|
+
- spec/lib/mongo_session_store/mongoid_store_spec.rb
|
285
|
+
- spec/lib/mongo_session_store_spec.rb
|
286
|
+
- spec/rails_helper.rb
|
287
|
+
- spec/spec_helper.rb
|
288
|
+
- spec/support/apps/rails_4.0_app/Rakefile
|
289
|
+
- spec/support/apps/rails_4.0_app/app/controllers/application_controller.rb
|
290
|
+
- spec/support/apps/rails_4.0_app/app/controllers/home_controller.rb
|
291
|
+
- spec/support/apps/rails_4.0_app/app/models/user.rb
|
292
|
+
- spec/support/apps/rails_4.0_app/app/views/home/index.html.erb
|
293
|
+
- spec/support/apps/rails_4.0_app/app/views/layouts/application.html.erb
|
294
|
+
- spec/support/apps/rails_4.0_app/bin/bundle
|
295
|
+
- spec/support/apps/rails_4.0_app/bin/rails
|
296
|
+
- spec/support/apps/rails_4.0_app/bin/rake
|
297
|
+
- spec/support/apps/rails_4.0_app/config.ru
|
298
|
+
- spec/support/apps/rails_4.0_app/config/application.rb
|
299
|
+
- spec/support/apps/rails_4.0_app/config/boot.rb
|
300
|
+
- spec/support/apps/rails_4.0_app/config/database.yml
|
301
|
+
- spec/support/apps/rails_4.0_app/config/environment.rb
|
302
|
+
- spec/support/apps/rails_4.0_app/config/environments/development.rb
|
303
|
+
- spec/support/apps/rails_4.0_app/config/environments/test.rb
|
304
|
+
- spec/support/apps/rails_4.0_app/config/initializers/devise.rb
|
305
|
+
- spec/support/apps/rails_4.0_app/config/initializers/secret_token.rb
|
306
|
+
- spec/support/apps/rails_4.0_app/config/initializers/session_store.rb
|
307
|
+
- spec/support/apps/rails_4.0_app/config/locales/devise.en.yml
|
308
|
+
- spec/support/apps/rails_4.0_app/config/locales/en.yml
|
309
|
+
- spec/support/apps/rails_4.0_app/config/mongo.yml
|
310
|
+
- spec/support/apps/rails_4.0_app/config/mongoid.yml
|
311
|
+
- spec/support/apps/rails_4.0_app/config/routes.rb
|
312
|
+
- spec/support/apps/rails_4.0_app/db/migrate/20140301171212_add_devise_users.rb
|
313
|
+
- spec/support/apps/rails_4.0_app/db/schema.rb
|
314
|
+
- spec/support/apps/rails_4.0_app/db/seeds.rb
|
315
|
+
- spec/support/apps/rails_4.0_app/lib/assets/.keep
|
316
|
+
- spec/support/apps/rails_4.0_app/lib/tasks/.keep
|
317
|
+
- spec/support/apps/rails_4.0_app/log/.keep
|
318
|
+
- spec/support/apps/rails_4.0_app/public/404.html
|
319
|
+
- spec/support/apps/rails_4.0_app/public/422.html
|
320
|
+
- spec/support/apps/rails_4.0_app/public/500.html
|
321
|
+
- spec/support/apps/rails_4.0_app/public/favicon.ico
|
322
|
+
- spec/support/apps/rails_4.0_app/public/robots.txt
|
323
|
+
- spec/support/apps/rails_4.1_app/Rakefile
|
324
|
+
- spec/support/apps/rails_4.1_app/app/controllers/application_controller.rb
|
325
|
+
- spec/support/apps/rails_4.1_app/app/controllers/home_controller.rb
|
326
|
+
- spec/support/apps/rails_4.1_app/app/models/user.rb
|
327
|
+
- spec/support/apps/rails_4.1_app/app/views/home/index.html.erb
|
328
|
+
- spec/support/apps/rails_4.1_app/app/views/layouts/application.html.erb
|
329
|
+
- spec/support/apps/rails_4.1_app/bin/bundle
|
330
|
+
- spec/support/apps/rails_4.1_app/bin/rails
|
331
|
+
- spec/support/apps/rails_4.1_app/bin/rake
|
332
|
+
- spec/support/apps/rails_4.1_app/config.ru
|
333
|
+
- spec/support/apps/rails_4.1_app/config/application.rb
|
334
|
+
- spec/support/apps/rails_4.1_app/config/boot.rb
|
335
|
+
- spec/support/apps/rails_4.1_app/config/database.yml
|
336
|
+
- spec/support/apps/rails_4.1_app/config/environment.rb
|
337
|
+
- spec/support/apps/rails_4.1_app/config/environments/development.rb
|
338
|
+
- spec/support/apps/rails_4.1_app/config/environments/test.rb
|
339
|
+
- spec/support/apps/rails_4.1_app/config/initializers/devise.rb
|
340
|
+
- spec/support/apps/rails_4.1_app/config/initializers/session_store.rb
|
341
|
+
- spec/support/apps/rails_4.1_app/config/locales/devise.en.yml
|
342
|
+
- spec/support/apps/rails_4.1_app/config/locales/en.yml
|
343
|
+
- spec/support/apps/rails_4.1_app/config/mongo.yml
|
344
|
+
- spec/support/apps/rails_4.1_app/config/mongoid.yml
|
345
|
+
- spec/support/apps/rails_4.1_app/config/routes.rb
|
346
|
+
- spec/support/apps/rails_4.1_app/config/secrets.yml
|
347
|
+
- spec/support/apps/rails_4.1_app/db/migrate/20140301171212_add_devise_users.rb
|
348
|
+
- spec/support/apps/rails_4.1_app/db/schema.rb
|
349
|
+
- spec/support/apps/rails_4.1_app/db/seeds.rb
|
350
|
+
- spec/support/apps/rails_4.1_app/lib/assets/.keep
|
351
|
+
- spec/support/apps/rails_4.1_app/lib/tasks/.keep
|
352
|
+
- spec/support/apps/rails_4.1_app/log/.keep
|
353
|
+
- spec/support/apps/rails_4.1_app/public/404.html
|
354
|
+
- spec/support/apps/rails_4.1_app/public/422.html
|
355
|
+
- spec/support/apps/rails_4.1_app/public/500.html
|
356
|
+
- spec/support/apps/rails_4.1_app/public/favicon.ico
|
357
|
+
- spec/support/apps/rails_4.1_app/public/robots.txt
|
358
|
+
- spec/support/apps/rails_4.2_app/Rakefile
|
359
|
+
- spec/support/apps/rails_4.2_app/app/controllers/application_controller.rb
|
360
|
+
- spec/support/apps/rails_4.2_app/app/controllers/home_controller.rb
|
361
|
+
- spec/support/apps/rails_4.2_app/app/models/user.rb
|
362
|
+
- spec/support/apps/rails_4.2_app/app/views/home/index.html.erb
|
363
|
+
- spec/support/apps/rails_4.2_app/app/views/layouts/application.html.erb
|
364
|
+
- spec/support/apps/rails_4.2_app/bin/bundle
|
365
|
+
- spec/support/apps/rails_4.2_app/bin/rails
|
366
|
+
- spec/support/apps/rails_4.2_app/bin/rake
|
367
|
+
- spec/support/apps/rails_4.2_app/config.ru
|
368
|
+
- spec/support/apps/rails_4.2_app/config/application.rb
|
369
|
+
- spec/support/apps/rails_4.2_app/config/boot.rb
|
370
|
+
- spec/support/apps/rails_4.2_app/config/database.yml
|
371
|
+
- spec/support/apps/rails_4.2_app/config/environment.rb
|
372
|
+
- spec/support/apps/rails_4.2_app/config/environments/development.rb
|
373
|
+
- spec/support/apps/rails_4.2_app/config/environments/test.rb
|
374
|
+
- spec/support/apps/rails_4.2_app/config/initializers/devise.rb
|
375
|
+
- spec/support/apps/rails_4.2_app/config/initializers/session_store.rb
|
376
|
+
- spec/support/apps/rails_4.2_app/config/locales/en.yml
|
377
|
+
- spec/support/apps/rails_4.2_app/config/mongo.yml
|
378
|
+
- spec/support/apps/rails_4.2_app/config/mongoid.yml
|
379
|
+
- spec/support/apps/rails_4.2_app/config/routes.rb
|
380
|
+
- spec/support/apps/rails_4.2_app/config/secrets.yml
|
381
|
+
- spec/support/apps/rails_4.2_app/db/migrate/20140301171212_add_devise_users.rb
|
382
|
+
- spec/support/apps/rails_4.2_app/db/schema.rb
|
383
|
+
- spec/support/apps/rails_4.2_app/db/seeds.rb
|
384
|
+
- spec/support/helpers/session_id_helper.rb
|
385
|
+
- spec/support/helpers/test_database_helper.rb
|