rack_session_redis_store 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +19 -2
- data/lib/rack_session_redis_store/version.rb +1 -1
- metadata +6 -6
data/README.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# RackSessionRedisStore [![Build Status](https://travis-ci.org/SpringMT/rack_session_redis_store.png)](https://travis-ci.org/SpringMT/rack_session_redis_store)
|
2
2
|
|
3
|
+
RackSessionRedisStore is to manage session using redis.
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
For Rails.
|
7
|
+
|
8
|
+
In config/initializers/session_store.rb
|
9
|
+
|
10
|
+
~~~
|
11
|
+
# Be sure to restart your server when you modify this file.
|
12
|
+
require 'session/redis'
|
13
|
+
Cowork::Application.config.session_store RackSessionRedisStore::Session, key: '_session', host: '127.0.0.1'
|
14
|
+
|
15
|
+
# Use the database for sessions instead of the cookie-based default,
|
16
|
+
# which shouldn't be used to store highly confidential information
|
17
|
+
# (create the session table with "rails generate session_migration")
|
18
|
+
# Cowork::Application.config.session_store :active_record_store
|
19
|
+
~~~
|
20
|
+
|
21
|
+
|
3
22
|
## Installation
|
4
23
|
|
5
24
|
Add this line to your application's Gemfile:
|
@@ -14,8 +33,6 @@ Or install it yourself as:
|
|
14
33
|
|
15
34
|
$ gem install rack_session_redis_store
|
16
35
|
|
17
|
-
## Usage
|
18
|
-
|
19
36
|
## Contributing
|
20
37
|
|
21
38
|
1. Fork it
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack_session_redis_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|
16
|
-
requirement: &
|
16
|
+
requirement: &70288849168520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.4'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70288849168520
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: redis_json_serializer
|
27
|
-
requirement: &
|
27
|
+
requirement: &70288849167800 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70288849167800
|
36
36
|
description: ''
|
37
37
|
email:
|
38
38
|
- today.is.sky.blue.sky@gmail.com
|