redis-actionpack 3.2.3 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -3
- data/.travis.yml +14 -0
- data/Gemfile +4 -4
- data/README.md +24 -47
- data/Rakefile +2 -6
- data/lib/redis/actionpack/version.rb +1 -1
- data/redis-actionpack.gemspec +18 -16
- data/test/dummy/config/application.rb +0 -18
- data/test/dummy/config/environments/test.rb +25 -0
- data/test/redis/actionpack/version_test.rb +2 -2
- data/test/test_helper.rb +6 -0
- metadata +99 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1dfe000d5aaa70847d1f8a4d39c890a9d8005997
|
4
|
+
data.tar.gz: 941180d2f2e10c03ce5dc884a447396bfa12de59
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d9b46ecd9376acbaa3de718ca97f5c0cd795662a4460e2b37661358e5490dc741bbc0a946ef6e30bd42f2228c50c5da369cc926671473a5fb07b0b8fb3e828ed
|
7
|
+
data.tar.gz: 0af23fcf1d50d3fb09d9eaf65e325b5762c9208c57ff4f4f0438adb0b9535b8d355e20e15f45cf3c5b67f5f9006f39d12f97dd3095183339dd8b0c346e4dcd1b
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gemspec
|
3
3
|
|
4
|
-
|
5
|
-
gem 'redis-
|
6
|
-
|
4
|
+
if ::File.directory?(gem_path = '../redis-store')
|
5
|
+
gem 'redis-store', '~> 1.1.0', path: gem_path
|
6
|
+
end
|
data/README.md
CHANGED
@@ -1,63 +1,40 @@
|
|
1
1
|
# Redis stores for ActionPack
|
2
2
|
|
3
|
-
__`redis-actionpack`__ provides a
|
3
|
+
__`redis-actionpack`__ provides a session store for __ActionPack__, specifically for __ActionDispatch__. See the main [redis-store readme](https://github.com/redis-store/redis-store) for general guidelines.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
brew install redis
|
12
|
-
|
13
|
-
### Option 2: From Source
|
14
|
-
|
15
|
-
Download and install Redis from [http://redis.io](http://redis.io/)
|
16
|
-
|
17
|
-
wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz
|
18
|
-
tar -zxf redis-2.4.5.tar.gz
|
19
|
-
mv redis-2.4.5 redis
|
20
|
-
cd redis
|
21
|
-
make
|
7
|
+
```ruby
|
8
|
+
# Gemfile
|
9
|
+
gem 'redis-actionpack'
|
10
|
+
```
|
22
11
|
|
23
12
|
## Usage
|
24
13
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
### Session Store: Ruby on Rails
|
29
|
-
|
30
|
-
# config/initializers/session_store.rb
|
31
|
-
MyApplication::Application.config.session_store :redis_store
|
32
|
-
|
33
|
-
### Session Store: Standalone
|
14
|
+
If you are using redis-store with Rails, consider using the [redis-rails gem](https://github.com/redis-store/redis-rails) instead.
|
15
|
+
For standalone usage:
|
34
16
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
# config.ru
|
40
|
-
require 'rack'
|
41
|
-
require 'rack/cache'
|
42
|
-
require 'redis-rack-cache'
|
43
|
-
|
44
|
-
use Rack::Cache,
|
45
|
-
:metastore => 'redis://localhost:6379/0/metastore',
|
46
|
-
:entitystore => 'redis://localhost:6380/0/entitystore'
|
47
|
-
|
48
|
-
#### Configuration
|
49
|
-
|
50
|
-
For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki).
|
17
|
+
```ruby
|
18
|
+
ActionController::Base.cache_store = ActionDispatch::Session::RedisSessionStore.new
|
19
|
+
```
|
51
20
|
|
52
21
|
## Running tests
|
53
22
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
23
|
+
```shell
|
24
|
+
gem install bundler
|
25
|
+
git clone git://github.com/redis-store/redis-actionpack.git
|
26
|
+
cd redis-actionpack
|
27
|
+
git checkout -t origin/3.2.x
|
28
|
+
bundle install
|
29
|
+
bundle exec rake
|
30
|
+
```
|
58
31
|
|
59
32
|
If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake`
|
60
33
|
|
34
|
+
## Status
|
35
|
+
|
36
|
+
[![Build Status](https://secure.travis-ci.org/redis-store/redis-actionpack.png?branch=3.2.x)](http://travis-ci.org/jodosha/redis-actionpack?branch=3.2.x)
|
37
|
+
|
61
38
|
## Copyright
|
62
39
|
|
63
|
-
|
40
|
+
2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
|
data/Rakefile
CHANGED
data/redis-actionpack.gemspec
CHANGED
@@ -1,32 +1,34 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path(
|
3
|
-
require
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'redis/actionpack/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'redis-actionpack'
|
7
7
|
s.version = Redis::ActionPack::VERSION
|
8
|
-
s.authors = [
|
9
|
-
s.email = [
|
10
|
-
s.homepage =
|
8
|
+
s.authors = ['Luca Guidi']
|
9
|
+
s.email = ['me@lucaguidi.com']
|
10
|
+
s.homepage = 'http://redis-store.org/redis-actionpack'
|
11
11
|
s.summary = %q{Redis session store for ActionPack}
|
12
12
|
s.description = %q{Redis session store for ActionPack}
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
|
-
s.rubyforge_project =
|
15
|
+
s.rubyforge_project = 'redis-actionpack'
|
15
16
|
|
16
17
|
s.files = `git ls-files`.split("\n")
|
17
18
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
-
s.require_paths = [
|
20
|
+
s.require_paths = ['lib']
|
20
21
|
|
21
|
-
s.add_runtime_dependency 'redis-store', '~> 1.1.
|
22
|
-
s.add_runtime_dependency 'redis-rack', '~> 1.4.
|
23
|
-
s.add_runtime_dependency 'actionpack', '~> 3.2.
|
22
|
+
s.add_runtime_dependency 'redis-store', '~> 1.1.4'
|
23
|
+
s.add_runtime_dependency 'redis-rack', '~> 1.4.4'
|
24
|
+
s.add_runtime_dependency 'actionpack', '~> 3.2.0'
|
24
25
|
|
25
|
-
s.add_development_dependency 'rake',
|
26
|
-
s.add_development_dependency 'bundler',
|
27
|
-
s.add_development_dependency '
|
28
|
-
s.add_development_dependency '
|
26
|
+
s.add_development_dependency 'rake', '~> 10'
|
27
|
+
s.add_development_dependency 'bundler', '~> 1.3'
|
28
|
+
s.add_development_dependency 'mocha', '~> 0.14.0'
|
29
|
+
s.add_development_dependency 'minitest', '~> 4.2'
|
30
|
+
s.add_development_dependency 'rails', '~> 3.2.0'
|
29
31
|
s.add_development_dependency 'tzinfo'
|
30
32
|
s.add_development_dependency 'mini_specunit'
|
31
|
-
s.add_development_dependency '
|
33
|
+
s.add_development_dependency 'redis-store-testing'
|
32
34
|
end
|
@@ -6,24 +6,6 @@ Bundler.require
|
|
6
6
|
|
7
7
|
module Dummy
|
8
8
|
class Application < Rails::Application
|
9
|
-
# Disable class caching for session auto-load test
|
10
|
-
config.cache_classes = false
|
11
|
-
|
12
|
-
# Log error messages when you accidentally call methods on nil
|
13
|
-
config.whiny_nils = true
|
14
|
-
|
15
|
-
# Show full error reports and disable caching
|
16
|
-
config.consider_all_requests_local = true
|
17
|
-
config.action_controller.perform_caching = false
|
18
|
-
|
19
|
-
# Raise exceptions instead of rendering exception templates
|
20
|
-
config.action_dispatch.show_exceptions = false
|
21
|
-
|
22
|
-
# Disable request forgery protection in test environment
|
23
|
-
config.action_controller.allow_forgery_protection = false
|
24
|
-
|
25
|
-
# Print deprecation notices to the stderr
|
26
|
-
config.active_support.deprecation = :stderr
|
27
9
|
end
|
28
10
|
end
|
29
11
|
|
@@ -0,0 +1,25 @@
|
|
1
|
+
Dummy::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = false
|
9
|
+
|
10
|
+
# Log error messages when you accidentally call methods on nil
|
11
|
+
config.whiny_nils = true
|
12
|
+
|
13
|
+
# Show full error reports and disable caching
|
14
|
+
config.consider_all_requests_local = true
|
15
|
+
config.action_controller.perform_caching = false
|
16
|
+
|
17
|
+
# Raise exceptions instead of rendering exception templates
|
18
|
+
config.action_dispatch.show_exceptions = false
|
19
|
+
|
20
|
+
# Disable request forgery protection in test environment
|
21
|
+
config.action_controller.allow_forgery_protection = false
|
22
|
+
|
23
|
+
# Print deprecation notices to the stderr
|
24
|
+
config.active_support.deprecation = :stderr
|
25
|
+
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,127 +1,169 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-actionpack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
5
|
-
prerelease:
|
4
|
+
version: 3.2.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Luca Guidi
|
9
|
-
- Matt Horan
|
10
8
|
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2013-08-29 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: redis-store
|
17
|
-
requirement:
|
18
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
17
|
- - ~>
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.1.
|
19
|
+
version: 1.1.4
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.1.4
|
26
27
|
- !ruby/object:Gem::Dependency
|
27
28
|
name: redis-rack
|
28
|
-
requirement:
|
29
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.4.
|
33
|
+
version: 1.4.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.4.4
|
37
41
|
- !ruby/object:Gem::Dependency
|
38
42
|
name: actionpack
|
39
|
-
requirement:
|
40
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
41
44
|
requirements:
|
42
45
|
- - ~>
|
43
46
|
- !ruby/object:Gem::Version
|
44
|
-
version: 3.2.
|
47
|
+
version: 3.2.0
|
45
48
|
type: :runtime
|
46
49
|
prerelease: false
|
47
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 3.2.0
|
48
55
|
- !ruby/object:Gem::Dependency
|
49
56
|
name: rake
|
50
|
-
requirement:
|
51
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
52
58
|
requirements:
|
53
59
|
- - ~>
|
54
60
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
61
|
+
version: '10'
|
56
62
|
type: :development
|
57
63
|
prerelease: false
|
58
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10'
|
59
69
|
- !ruby/object:Gem::Dependency
|
60
70
|
name: bundler
|
61
|
-
requirement:
|
62
|
-
none: false
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
63
72
|
requirements:
|
64
73
|
- - ~>
|
65
74
|
- !ruby/object:Gem::Version
|
66
|
-
version: 1.
|
75
|
+
version: '1.3'
|
67
76
|
type: :development
|
68
77
|
prerelease: false
|
69
|
-
version_requirements:
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.3'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: mocha
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.14.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.14.0
|
70
97
|
- !ruby/object:Gem::Dependency
|
71
98
|
name: minitest
|
72
|
-
requirement:
|
73
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
74
100
|
requirements:
|
75
101
|
- - ~>
|
76
102
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2
|
103
|
+
version: '4.2'
|
78
104
|
type: :development
|
79
105
|
prerelease: false
|
80
|
-
version_requirements:
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '4.2'
|
81
111
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
83
|
-
requirement:
|
84
|
-
none: false
|
112
|
+
name: rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
85
114
|
requirements:
|
86
115
|
- - ~>
|
87
116
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
117
|
+
version: 3.2.0
|
89
118
|
type: :development
|
90
119
|
prerelease: false
|
91
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 3.2.0
|
92
125
|
- !ruby/object:Gem::Dependency
|
93
126
|
name: tzinfo
|
94
|
-
requirement:
|
95
|
-
none: false
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
96
128
|
requirements:
|
97
|
-
- -
|
129
|
+
- - '>='
|
98
130
|
- !ruby/object:Gem::Version
|
99
131
|
version: '0'
|
100
132
|
type: :development
|
101
133
|
prerelease: false
|
102
|
-
version_requirements:
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
103
139
|
- !ruby/object:Gem::Dependency
|
104
140
|
name: mini_specunit
|
105
|
-
requirement:
|
106
|
-
none: false
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
107
142
|
requirements:
|
108
|
-
- -
|
143
|
+
- - '>='
|
109
144
|
- !ruby/object:Gem::Version
|
110
145
|
version: '0'
|
111
146
|
type: :development
|
112
147
|
prerelease: false
|
113
|
-
version_requirements:
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
114
153
|
- !ruby/object:Gem::Dependency
|
115
|
-
name:
|
116
|
-
requirement:
|
117
|
-
none: false
|
154
|
+
name: redis-store-testing
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
118
156
|
requirements:
|
119
|
-
- -
|
157
|
+
- - '>='
|
120
158
|
- !ruby/object:Gem::Version
|
121
159
|
version: '0'
|
122
160
|
type: :development
|
123
161
|
prerelease: false
|
124
|
-
version_requirements:
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '>='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
125
167
|
description: Redis session store for ActionPack
|
126
168
|
email:
|
127
169
|
- me@lucaguidi.com
|
@@ -130,6 +172,7 @@ extensions: []
|
|
130
172
|
extra_rdoc_files: []
|
131
173
|
files:
|
132
174
|
- .gitignore
|
175
|
+
- .travis.yml
|
133
176
|
- Gemfile
|
134
177
|
- MIT-LICENSE
|
135
178
|
- README.md
|
@@ -145,6 +188,7 @@ files:
|
|
145
188
|
- test/dummy/config/application.rb
|
146
189
|
- test/dummy/config/boot.rb
|
147
190
|
- test/dummy/config/environment.rb
|
191
|
+
- test/dummy/config/environments/test.rb
|
148
192
|
- test/dummy/config/initializers/secret_token.rb
|
149
193
|
- test/dummy/config/initializers/session_store.rb
|
150
194
|
- test/dummy/config/routes.rb
|
@@ -153,29 +197,29 @@ files:
|
|
153
197
|
- test/integration/redis_store_integration_test.rb
|
154
198
|
- test/redis/actionpack/version_test.rb
|
155
199
|
- test/test_helper.rb
|
156
|
-
homepage: http://
|
157
|
-
licenses:
|
200
|
+
homepage: http://redis-store.org/redis-actionpack
|
201
|
+
licenses:
|
202
|
+
- MIT
|
203
|
+
metadata: {}
|
158
204
|
post_install_message:
|
159
205
|
rdoc_options: []
|
160
206
|
require_paths:
|
161
207
|
- lib
|
162
208
|
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
-
none: false
|
164
209
|
requirements:
|
165
|
-
- -
|
210
|
+
- - '>='
|
166
211
|
- !ruby/object:Gem::Version
|
167
212
|
version: '0'
|
168
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
214
|
requirements:
|
171
|
-
- -
|
215
|
+
- - '>='
|
172
216
|
- !ruby/object:Gem::Version
|
173
217
|
version: '0'
|
174
218
|
requirements: []
|
175
219
|
rubyforge_project: redis-actionpack
|
176
|
-
rubygems_version:
|
220
|
+
rubygems_version: 2.0.3
|
177
221
|
signing_key:
|
178
|
-
specification_version:
|
222
|
+
specification_version: 4
|
179
223
|
summary: Redis session store for ActionPack
|
180
224
|
test_files:
|
181
225
|
- test/dummy/.gitignore
|
@@ -185,6 +229,7 @@ test_files:
|
|
185
229
|
- test/dummy/config/application.rb
|
186
230
|
- test/dummy/config/boot.rb
|
187
231
|
- test/dummy/config/environment.rb
|
232
|
+
- test/dummy/config/environments/test.rb
|
188
233
|
- test/dummy/config/initializers/secret_token.rb
|
189
234
|
- test/dummy/config/initializers/session_store.rb
|
190
235
|
- test/dummy/config/routes.rb
|