redis-rails 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 -4
- data/.travis.yml +14 -0
- data/Gemfile +16 -6
- data/README.md +36 -45
- data/Rakefile +2 -5
- data/lib/redis-rails/version.rb +1 -1
- data/redis-rails.gemspec +17 -16
- data/test/redis-rails/version_test.rb +2 -2
- data/test/test_helper.rb +2 -4
- metadata +69 -46
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bb38b09c3c385325e276d429b8c02d40fb8019a7
|
4
|
+
data.tar.gz: 2352a0d6ed338a4b9ba4d201d3bf793f3e14548b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8190c07bdb5c863f849607299e58947182a0f767a45d6a33878fbe8c345ce20c128d268a7188c985f395ccc09e974e536880040e10c04b4fcdc7bb08436b08ae
|
7
|
+
data.tar.gz: d87dddac9ba0abc6c6e6e21fffb06016655d47bc43ceeddb9ba507ecd90422c4d9207e1d1d215dd5d73f014cea53ed3312d6c40de15aceb9e268a6daf33d76e6
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/Gemfile
CHANGED
@@ -1,8 +1,18 @@
|
|
1
|
-
source
|
1
|
+
source 'https://rubygems.org'
|
2
2
|
gemspec
|
3
3
|
|
4
|
-
|
5
|
-
gem 'redis-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
if ::File.directory?(gem_path = '../redis-store')
|
5
|
+
gem 'redis-store', '~> 1.1.4', path: gem_path
|
6
|
+
end
|
7
|
+
|
8
|
+
if ::File.directory?(gem_path = '../redis-rack')
|
9
|
+
gem 'redis-rack', '~> 1.4.4', path: gem_path
|
10
|
+
end
|
11
|
+
|
12
|
+
if ::File.directory?(gem_path = '../redis-activesupport')
|
13
|
+
gem 'redis-activesupport', '~> 3.2.4', path: gem_path
|
14
|
+
end
|
15
|
+
|
16
|
+
if ::File.directory?(gem_path = '../redis-actionpack')
|
17
|
+
gem 'redis-actionpack', '~> 3.2.4', path: gem_path
|
18
|
+
end
|
data/README.md
CHANGED
@@ -1,64 +1,55 @@
|
|
1
1
|
# Redis stores for Ruby on Rails
|
2
2
|
|
3
|
-
__`redis-rails`__ provides a full set of stores (*Cache*, *Session*, *HTTP Cache*) for __Ruby on Rails__.
|
3
|
+
__`redis-rails`__ provides a full set of stores (*Cache*, *Session*, *HTTP Cache*) for __Ruby on Rails__. 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-rails' # Will install several other redis-* gems
|
10
|
+
```
|
22
11
|
|
23
12
|
## Usage
|
24
13
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
14
|
+
```ruby
|
15
|
+
# config/application.rb
|
16
|
+
config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
|
17
|
+
```
|
29
18
|
|
30
|
-
|
31
|
-
config.cache_store = :redis_store # { ... optional configuration ... }
|
19
|
+
Configuration values at the end are optional. If you want to use Redis as a backend for sessions, you will also need to set:
|
32
20
|
|
33
|
-
|
21
|
+
```ruby
|
22
|
+
# config/initializers/session_store.rb
|
23
|
+
MyApplication::Application.config.session_store :redis_store
|
24
|
+
```
|
34
25
|
|
35
|
-
|
36
|
-
MyApplication::Application.config.session_store :redis_store
|
26
|
+
And if you would like to use Redis as a rack-cache backend for HTTP caching:
|
37
27
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
use Rack::Cache,
|
46
|
-
:metastore => 'redis://localhost:6379/0/metastore',
|
47
|
-
:entitystore => 'redis://localhost:6380/0/entitystore'
|
48
|
-
|
49
|
-
#### Configuration
|
50
|
-
|
51
|
-
For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki).
|
28
|
+
```ruby
|
29
|
+
# config/environments/production.rb
|
30
|
+
config.action_dispatch.rack_cache = {
|
31
|
+
metastore: 'redis://localhost:6379/1/metastore',
|
32
|
+
entitystore: 'redis://localhost:6379/1/entitystore'
|
33
|
+
}
|
34
|
+
```
|
52
35
|
|
53
36
|
## Running tests
|
54
37
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
38
|
+
```shell
|
39
|
+
gem install bundler
|
40
|
+
git clone git://github.com/redis-store/redis-rails.git
|
41
|
+
cd redis-rails
|
42
|
+
git checkout -t origin/3.2.x
|
43
|
+
bundle install
|
44
|
+
bundle exec rake
|
45
|
+
```
|
59
46
|
|
60
47
|
If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake`
|
61
48
|
|
49
|
+
## Status
|
50
|
+
|
51
|
+
[![Build Status](https://secure.travis-ci.org/redis-store/redis-rails.png?branch=3.2.x)](http://travis-ci.org/jodosha/redis-rails?branch=3.2.x)
|
52
|
+
|
62
53
|
## Copyright
|
63
54
|
|
64
|
-
|
55
|
+
2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
|
data/Rakefile
CHANGED
data/lib/redis-rails/version.rb
CHANGED
data/redis-rails.gemspec
CHANGED
@@ -1,30 +1,31 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path(
|
3
|
-
require
|
2
|
+
$:.push File.expand_path('../lib', __FILE__)
|
3
|
+
require 'redis-rails/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
s.name =
|
6
|
+
s.name = 'redis-rails'
|
7
7
|
s.version = Redis::Rails::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-rails'
|
11
11
|
s.summary = %q{Redis for Ruby on Rails}
|
12
12
|
s.description = %q{Redis for Ruby on Rails}
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
|
-
s.rubyforge_project =
|
15
|
+
s.rubyforge_project = 'redis-rails'
|
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_dependency 'redis-store', '~> 1.1.
|
22
|
-
s.add_dependency 'redis-activesupport', '~> 3.2.
|
23
|
-
s.add_dependency 'redis-actionpack', '~> 3.2.
|
22
|
+
s.add_dependency 'redis-store', '~> 1.1.4'
|
23
|
+
s.add_dependency 'redis-activesupport', '~> 3.2.4'
|
24
|
+
s.add_dependency 'redis-actionpack', '~> 3.2.4'
|
24
25
|
|
25
|
-
s.add_development_dependency 'rake',
|
26
|
-
s.add_development_dependency 'bundler',
|
27
|
-
s.add_development_dependency 'mocha',
|
28
|
-
s.add_development_dependency 'minitest',
|
29
|
-
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 'redis-store-testing'
|
30
31
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,105 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-rails
|
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-activesupport
|
28
|
-
requirement:
|
29
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 3.2.
|
33
|
+
version: 3.2.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: 3.2.4
|
37
41
|
- !ruby/object:Gem::Dependency
|
38
42
|
name: redis-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.4
|
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.4
|
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'
|
70
83
|
- !ruby/object:Gem::Dependency
|
71
84
|
name: mocha
|
72
|
-
requirement:
|
73
|
-
none: false
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
74
86
|
requirements:
|
75
87
|
- - ~>
|
76
88
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
89
|
+
version: 0.14.0
|
78
90
|
type: :development
|
79
91
|
prerelease: false
|
80
|
-
version_requirements:
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.14.0
|
81
97
|
- !ruby/object:Gem::Dependency
|
82
98
|
name: minitest
|
83
|
-
requirement:
|
84
|
-
none: false
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
85
100
|
requirements:
|
86
101
|
- - ~>
|
87
102
|
- !ruby/object:Gem::Version
|
88
|
-
version: 2
|
103
|
+
version: '4.2'
|
89
104
|
type: :development
|
90
105
|
prerelease: false
|
91
|
-
version_requirements:
|
92
|
-
- !ruby/object:Gem::Dependency
|
93
|
-
name: purdytest
|
94
|
-
requirement: &70356633052920 !ruby/object:Gem::Requirement
|
95
|
-
none: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
107
|
requirements:
|
97
108
|
- - ~>
|
98
109
|
- !ruby/object:Gem::Version
|
99
|
-
version:
|
110
|
+
version: '4.2'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: redis-store-testing
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
100
118
|
type: :development
|
101
119
|
prerelease: false
|
102
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
103
125
|
description: Redis for Ruby on Rails
|
104
126
|
email:
|
105
127
|
- me@lucaguidi.com
|
@@ -108,6 +130,7 @@ extensions: []
|
|
108
130
|
extra_rdoc_files: []
|
109
131
|
files:
|
110
132
|
- .gitignore
|
133
|
+
- .travis.yml
|
111
134
|
- Gemfile
|
112
135
|
- MIT-LICENSE
|
113
136
|
- README.md
|
@@ -118,29 +141,29 @@ files:
|
|
118
141
|
- test/redis-rails/version_test.rb
|
119
142
|
- test/redis_rails_test.rb
|
120
143
|
- test/test_helper.rb
|
121
|
-
homepage: http://
|
122
|
-
licenses:
|
144
|
+
homepage: http://redis-store.org/redis-rails
|
145
|
+
licenses:
|
146
|
+
- MIT
|
147
|
+
metadata: {}
|
123
148
|
post_install_message:
|
124
149
|
rdoc_options: []
|
125
150
|
require_paths:
|
126
151
|
- lib
|
127
152
|
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
-
none: false
|
129
153
|
requirements:
|
130
|
-
- -
|
154
|
+
- - '>='
|
131
155
|
- !ruby/object:Gem::Version
|
132
156
|
version: '0'
|
133
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
|
-
none: false
|
135
158
|
requirements:
|
136
|
-
- -
|
159
|
+
- - '>='
|
137
160
|
- !ruby/object:Gem::Version
|
138
161
|
version: '0'
|
139
162
|
requirements: []
|
140
163
|
rubyforge_project: redis-rails
|
141
|
-
rubygems_version:
|
164
|
+
rubygems_version: 2.0.3
|
142
165
|
signing_key:
|
143
|
-
specification_version:
|
166
|
+
specification_version: 4
|
144
167
|
summary: Redis for Ruby on Rails
|
145
168
|
test_files:
|
146
169
|
- test/redis-rails/version_test.rb
|