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.
@@ -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
@@ -1,5 +1,3 @@
1
- *.gem
2
- .bundle
3
1
  Gemfile.lock
4
- pkg/*
5
- tmp/*
2
+ *.gem
3
+ tmp/
@@ -0,0 +1,14 @@
1
+ language: ruby
2
+ script: 'bundle exec rake'
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - ruby-head
7
+ - rbx-19mode
8
+ - jruby-19mode
9
+ - jruby-head
10
+
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: jruby-head
14
+ - rvm: ruby-head
data/Gemfile CHANGED
@@ -1,8 +1,18 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
- gem 'redis-store', '~> 1.1.0', :path => File.expand_path('../../redis-store', __FILE__)
5
- gem 'redis-rack', '~> 1.4.0', :path => File.expand_path('../../redis-rack', __FILE__)
6
- gem 'redis-activesupport', '3.2.3', :path => File.expand_path('../../redis-activesupport', __FILE__)
7
- gem 'redis-actionpack', '3.2.3', :path => File.expand_path('../../redis-actionpack', __FILE__)
8
- gem 'SystemTimer', :platform => :mri_18
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__. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces.
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
- ## Redis Installation
5
+ ## Installation
6
6
 
7
- ### Option 1: Homebrew
8
-
9
- MacOS X users should use [Homebrew](https://github.com/mxcl/homebrew) to install Redis:
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
- # Gemfile
26
- gem 'redis-rails'
27
-
28
- ### Cache Store:
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
- # config/environments/production.rb
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
- ### Session Store:
21
+ ```ruby
22
+ # config/initializers/session_store.rb
23
+ MyApplication::Application.config.session_store :redis_store
24
+ ```
34
25
 
35
- # config/initializers/session_store.rb
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
- ### HTTP Cache
39
-
40
- # config.ru
41
- require 'rack'
42
- require 'rack/cache'
43
- require 'redis-rack-cache'
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
- git clone git://github.com/jodosha/redis-store.git
56
- cd redis-store/redis-rails
57
- gem install bundler --pre # required version: 1.1.rc
58
- bundle exec rake
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
- (c) 2009 - 2011 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
55
+ 2009 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
data/Rakefile CHANGED
@@ -1,7 +1,4 @@
1
- require 'bundler'
2
- Bundler.setup
1
+ require 'bundler/setup'
3
2
  require 'rake'
4
3
  require 'bundler/gem_tasks'
5
-
6
- load 'tasks/redis.tasks.rb'
7
- task :default => 'redis:test:suite'
4
+ require 'redis-store/testing/tasks'
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module Rails
3
- VERSION = '3.2.3'
3
+ VERSION = '3.2.4'
4
4
  end
5
5
  end
@@ -1,30 +1,31 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "redis-rails/version"
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+ require 'redis-rails/version'
4
4
 
5
5
  Gem::Specification.new do |s|
6
- s.name = "redis-rails"
6
+ s.name = 'redis-rails'
7
7
  s.version = Redis::Rails::VERSION
8
- s.authors = ["Luca Guidi", "Matt Horan"]
9
- s.email = ["me@lucaguidi.com"]
10
- s.homepage = "http://jodosha.github.com/redis-store"
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 = "redis-rails"
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 = ["lib"]
20
+ s.require_paths = ['lib']
20
21
 
21
- s.add_dependency 'redis-store', '~> 1.1.0'
22
- s.add_dependency 'redis-activesupport', '~> 3.2.3'
23
- s.add_dependency 'redis-actionpack', '~> 3.2.3'
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', '~> 0.9.2.2'
26
- s.add_development_dependency 'bundler', '~> 1.1.rc'
27
- s.add_development_dependency 'mocha', '~> 0.10.0'
28
- s.add_development_dependency 'minitest', '~> 2.8.0'
29
- s.add_development_dependency 'purdytest', '~> 1.0.0'
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
@@ -1,7 +1,7 @@
1
1
  require 'test_helper'
2
2
 
3
3
  describe Redis::Rails::VERSION do
4
- it "must be equal to 3.2.3" do
5
- Redis::Rails::VERSION.must_equal '3.2.3'
4
+ it 'returns current version' do
5
+ Redis::Rails::VERSION.must_equal '3.2.4'
6
6
  end
7
7
  end
@@ -1,6 +1,4 @@
1
- Bundler.setup
2
- gem 'minitest'
3
- require 'minitest/spec'
1
+ require 'bundler/setup'
4
2
  require 'minitest/autorun'
5
- require 'mocha'
3
+ require 'mocha/setup'
6
4
  require 'redis-rails'
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.3
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: 2012-04-02 00:00:00.000000000 Z
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: &70356633056680 !ruby/object:Gem::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.0
19
+ version: 1.1.4
23
20
  type: :runtime
24
21
  prerelease: false
25
- version_requirements: *70356633056680
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: &70356633056140 !ruby/object:Gem::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.3
33
+ version: 3.2.4
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70356633056140
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: &70356633055640 !ruby/object:Gem::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.3
47
+ version: 3.2.4
45
48
  type: :runtime
46
49
  prerelease: false
47
- version_requirements: *70356633055640
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: &70356633055160 !ruby/object:Gem::Requirement
51
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
52
58
  requirements:
53
59
  - - ~>
54
60
  - !ruby/object:Gem::Version
55
- version: 0.9.2.2
61
+ version: '10'
56
62
  type: :development
57
63
  prerelease: false
58
- version_requirements: *70356633055160
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: &70356633054660 !ruby/object:Gem::Requirement
62
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
63
72
  requirements:
64
73
  - - ~>
65
74
  - !ruby/object:Gem::Version
66
- version: 1.1.rc
75
+ version: '1.3'
67
76
  type: :development
68
77
  prerelease: false
69
- version_requirements: *70356633054660
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: &70356633054160 !ruby/object:Gem::Requirement
73
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
74
86
  requirements:
75
87
  - - ~>
76
88
  - !ruby/object:Gem::Version
77
- version: 0.10.0
89
+ version: 0.14.0
78
90
  type: :development
79
91
  prerelease: false
80
- version_requirements: *70356633054160
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: &70356633053540 !ruby/object:Gem::Requirement
84
- none: false
99
+ requirement: !ruby/object:Gem::Requirement
85
100
  requirements:
86
101
  - - ~>
87
102
  - !ruby/object:Gem::Version
88
- version: 2.8.0
103
+ version: '4.2'
89
104
  type: :development
90
105
  prerelease: false
91
- version_requirements: *70356633053540
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: 1.0.0
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: *70356633052920
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://jodosha.github.com/redis-store
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: 1.8.15
164
+ rubygems_version: 2.0.3
142
165
  signing_key:
143
- specification_version: 3
166
+ specification_version: 4
144
167
  summary: Redis for Ruby on Rails
145
168
  test_files:
146
169
  - test/redis-rails/version_test.rb