redis-rails 3.2.4 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -2
- data/Gemfile +11 -11
- data/README.md +21 -34
- data/Rakefile +5 -2
- data/lib/redis-rails/version.rb +1 -1
- data/redis-rails.gemspec +11 -13
- data/test/redis-rails/version_test.rb +1 -1
- metadata +9 -25
- data/.travis.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb1407ec107ab559e756f66f1fec960b9815e037
|
4
|
+
data.tar.gz: e22c7a912f4c0bb974cf5c35715874880593b1db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9ee4ca7ae3a6a5d9b4c7577ca5a42c2e435f08f3f38e83c0da9eff4f910e16f28ca80fcfbee188e955ba0fc34b361971fd568ff748168b7e56dd15175066f3e
|
7
|
+
data.tar.gz: 84f7c3bfd292e747985d811f76d948b5321a3036ac6cc1f9126a3275e382226688259af80813aaf52b9f52b21021df692405441e8142627a2fbf9dc16ce03120
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
gemspec
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
gem 'redis-store', '~> 1.1.0', path: '../redis-store'
|
5
|
+
gem 'redis-rack', '~> 1.5.0', path: '../redis-rack'
|
6
|
+
gem 'redis-activesupport', '4.0.0', path: '../redis-activesupport'
|
7
|
+
gem 'redis-actionpack', '4.0.0', path: '../redis-actionpack'
|
7
8
|
|
8
|
-
|
9
|
-
gem 'redis-rack', '~> 1.4.4', path: gem_path
|
10
|
-
end
|
9
|
+
version = ENV["RAILS_VERSION"] || "4"
|
11
10
|
|
12
|
-
|
13
|
-
|
11
|
+
rails = case version
|
12
|
+
when "master"
|
13
|
+
{:github => "rails/rails"}
|
14
|
+
else
|
15
|
+
"~> #{version}.0"
|
14
16
|
end
|
15
17
|
|
16
|
-
|
17
|
-
gem 'redis-actionpack', '~> 3.2.4', path: gem_path
|
18
|
-
end
|
18
|
+
gem "rails", rails
|
data/README.md
CHANGED
@@ -1,55 +1,42 @@
|
|
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__. See the main [redis-store readme](https://github.com/
|
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/jodosha/redis-store) for general guidelines.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
|
8
|
-
#
|
9
|
-
gem 'redis-rails' # Will install several other redis-* gems
|
10
|
-
```
|
7
|
+
# Gemfile
|
8
|
+
gem 'redis-rails' # Will install several other redis- gems
|
11
9
|
|
12
|
-
|
10
|
+
### Usage
|
13
11
|
|
14
|
-
|
15
|
-
|
16
|
-
config
|
17
|
-
|
12
|
+
For Rails 3.2:
|
13
|
+
|
14
|
+
# config/application.rb
|
15
|
+
config.cache_store = :redis_store, "redis://localhost:6379/0/cache", { expires_in: 90.minutes }
|
18
16
|
|
19
17
|
Configuration values at the end are optional. If you want to use Redis as a backend for sessions, you will also need to set:
|
20
18
|
|
21
|
-
|
22
|
-
|
23
|
-
MyApplication::Application.config.session_store :redis_store
|
24
|
-
```
|
19
|
+
# config/initializers/session_store.rb
|
20
|
+
MyApplication::Application.config.session_store :redis_store
|
25
21
|
|
26
22
|
And if you would like to use Redis as a rack-cache backend for HTTP caching:
|
27
23
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
34
|
-
```
|
24
|
+
# config/environments/production.rb
|
25
|
+
config.action_dispatch.rack_cache = {
|
26
|
+
metastore: "redis://localhost:6379/1/metastore",
|
27
|
+
entitystore: "redis://localhost:6379/1/entitystore"
|
28
|
+
}
|
35
29
|
|
36
30
|
## Running tests
|
37
31
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
bundle install
|
44
|
-
bundle exec rake
|
45
|
-
```
|
32
|
+
gem install bundler
|
33
|
+
git clone git://github.com/jodosha/redis-store.git
|
34
|
+
cd redis-store/redis-rails
|
35
|
+
bundle install
|
36
|
+
bundle exec rake
|
46
37
|
|
47
38
|
If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake`
|
48
39
|
|
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
|
-
|
53
40
|
## Copyright
|
54
41
|
|
55
|
-
2009 -
|
42
|
+
(c) 2009 - 2011 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,31 +1,29 @@
|
|
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'
|
14
13
|
|
15
|
-
s.rubyforge_project =
|
14
|
+
s.rubyforge_project = "redis-rails"
|
16
15
|
|
17
16
|
s.files = `git ls-files`.split("\n")
|
18
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
-
s.require_paths = [
|
19
|
+
s.require_paths = ["lib"]
|
21
20
|
|
22
|
-
s.add_dependency 'redis-store', '~> 1.1.
|
23
|
-
s.add_dependency 'redis-activesupport', '~>
|
24
|
-
s.add_dependency 'redis-actionpack', '~>
|
21
|
+
s.add_dependency 'redis-store', '~> 1.1.0'
|
22
|
+
s.add_dependency 'redis-activesupport', '~> 4'
|
23
|
+
s.add_dependency 'redis-actionpack', '~> 4'
|
25
24
|
|
26
25
|
s.add_development_dependency 'rake', '~> 10'
|
27
26
|
s.add_development_dependency 'bundler', '~> 1.3'
|
28
27
|
s.add_development_dependency 'mocha', '~> 0.14.0'
|
29
28
|
s.add_development_dependency 'minitest', '~> 4.2'
|
30
|
-
s.add_development_dependency 'redis-store-testing'
|
31
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redis-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luca Guidi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: redis-store
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.1.
|
19
|
+
version: 1.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.1.
|
26
|
+
version: 1.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redis-activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: redis-actionpack
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '4'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '4'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
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'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - '>='
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
description: Redis for Ruby on Rails
|
126
112
|
email:
|
127
113
|
- me@lucaguidi.com
|
@@ -130,7 +116,6 @@ extensions: []
|
|
130
116
|
extra_rdoc_files: []
|
131
117
|
files:
|
132
118
|
- .gitignore
|
133
|
-
- .travis.yml
|
134
119
|
- Gemfile
|
135
120
|
- MIT-LICENSE
|
136
121
|
- README.md
|
@@ -142,8 +127,7 @@ files:
|
|
142
127
|
- test/redis_rails_test.rb
|
143
128
|
- test/test_helper.rb
|
144
129
|
homepage: http://redis-store.org/redis-rails
|
145
|
-
licenses:
|
146
|
-
- MIT
|
130
|
+
licenses: []
|
147
131
|
metadata: {}
|
148
132
|
post_install_message:
|
149
133
|
rdoc_options: []
|