mongoid_session_store 1.0.0.beta1 → 1.0.0.beta2
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.
- data/README.rdoc +7 -2
- data/VERSION +1 -1
- data/lib/mongoid_session_store/railtie.rb +17 -0
- data/lib/mongoid_session_store/railties/sessions.rake +10 -0
- data/lib/mongoid_session_store.rb +2 -0
- data/mongoid_session_store.gemspec +4 -2
- metadata +5 -3
data/README.rdoc
CHANGED
@@ -11,13 +11,18 @@ This gem only works with rails 3 and mongoid 2.0
|
|
11
11
|
|
12
12
|
In your Gemfile:
|
13
13
|
|
14
|
-
gem "mongoid"
|
14
|
+
gem "mongoid", :git => "http://github.com/mongoid/mongoid.git"
|
15
|
+
gem "bson_ext", "1.0.4"
|
15
16
|
gem "mongoid_session_store"
|
16
17
|
|
17
18
|
In the session_store initializer (config/initializers/session_store.rb):
|
18
|
-
require 'mongoid_session_store/mongoid_store'
|
19
19
|
Example::Application.config.session_store :mongoid_store
|
20
20
|
|
21
|
+
== Rake Tasks
|
22
|
+
Mongoid Session Store comes with a rake task to clear out the sessions it stores in mongoDB
|
23
|
+
|
24
|
+
rake db:mongoid:sessions:clear
|
25
|
+
|
21
26
|
== Note on Patches/Pull Requests
|
22
27
|
|
23
28
|
* Fork the project.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
1
|
+
1.0.0.beta2
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'mongoid_session_store'
|
2
|
+
require "rails"
|
3
|
+
|
4
|
+
module MongoidSessionStore
|
5
|
+
|
6
|
+
class Railtie < Rails::Railtie
|
7
|
+
rake_tasks do
|
8
|
+
load "mongoid_session_store/railties/sessions.rake"
|
9
|
+
end
|
10
|
+
|
11
|
+
initializer "setup mongoid session store" do |app|
|
12
|
+
require 'mongoid_session_store/mongoid_store'
|
13
|
+
app.config.session_store :mongoid_store
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongoid_session_store}
|
8
|
-
s.version = "1.0.0.
|
8
|
+
s.version = "1.0.0.beta2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Fitzgerald"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-30}
|
13
13
|
s.description = %q{store rails 3 sessions in mongoDB}
|
14
14
|
s.email = %q{ryan@gymlogr.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -28,6 +28,8 @@ Gem::Specification.new do |s|
|
|
28
28
|
"example/.gitignore",
|
29
29
|
"lib/mongoid_session_store.rb",
|
30
30
|
"lib/mongoid_session_store/mongoid_store.rb",
|
31
|
+
"lib/mongoid_session_store/railtie.rb",
|
32
|
+
"lib/mongoid_session_store/railties/sessions.rake",
|
31
33
|
"mongoid_session_store.gemspec",
|
32
34
|
"test/helper.rb",
|
33
35
|
"test/test_mongoid_session_store.rb"
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.0.
|
9
|
+
- beta2
|
10
|
+
version: 1.0.0.beta2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Fitzgerald
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-30 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -84,6 +84,8 @@ files:
|
|
84
84
|
- example/.gitignore
|
85
85
|
- lib/mongoid_session_store.rb
|
86
86
|
- lib/mongoid_session_store/mongoid_store.rb
|
87
|
+
- lib/mongoid_session_store/railtie.rb
|
88
|
+
- lib/mongoid_session_store/railties/sessions.rake
|
87
89
|
- mongoid_session_store.gemspec
|
88
90
|
- test/helper.rb
|
89
91
|
- test/test_mongoid_session_store.rb
|