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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb38b09c3c385325e276d429b8c02d40fb8019a7
4
- data.tar.gz: 2352a0d6ed338a4b9ba4d201d3bf793f3e14548b
3
+ metadata.gz: eb1407ec107ab559e756f66f1fec960b9815e037
4
+ data.tar.gz: e22c7a912f4c0bb974cf5c35715874880593b1db
5
5
  SHA512:
6
- metadata.gz: 8190c07bdb5c863f849607299e58947182a0f767a45d6a33878fbe8c345ce20c128d268a7188c985f395ccc09e974e536880040e10c04b4fcdc7bb08436b08ae
7
- data.tar.gz: d87dddac9ba0abc6c6e6e21fffb06016655d47bc43ceeddb9ba507ecd90422c4d9207e1d1d215dd5d73f014cea53ed3312d6c40de15aceb9e268a6daf33d76e6
6
+ metadata.gz: b9ee4ca7ae3a6a5d9b4c7577ca5a42c2e435f08f3f38e83c0da9eff4f910e16f28ca80fcfbee188e955ba0fc34b361971fd568ff748168b7e56dd15175066f3e
7
+ data.tar.gz: 84f7c3bfd292e747985d811f76d948b5321a3036ac6cc1f9126a3275e382226688259af80813aaf52b9f52b21021df692405441e8142627a2fbf9dc16ce03120
data/.gitignore CHANGED
@@ -1,3 +1,5 @@
1
- Gemfile.lock
2
1
  *.gem
3
- tmp/
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ tmp/*
data/Gemfile CHANGED
@@ -1,18 +1,18 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
- if ::File.directory?(gem_path = '../redis-store')
5
- gem 'redis-store', '~> 1.1.4', path: gem_path
6
- end
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
- if ::File.directory?(gem_path = '../redis-rack')
9
- gem 'redis-rack', '~> 1.4.4', path: gem_path
10
- end
9
+ version = ENV["RAILS_VERSION"] || "4"
11
10
 
12
- if ::File.directory?(gem_path = '../redis-activesupport')
13
- gem 'redis-activesupport', '~> 3.2.4', path: gem_path
11
+ rails = case version
12
+ when "master"
13
+ {:github => "rails/rails"}
14
+ else
15
+ "~> #{version}.0"
14
16
  end
15
17
 
16
- if ::File.directory?(gem_path = '../redis-actionpack')
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/redis-store/redis-store) for general guidelines.
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
- ```ruby
8
- # Gemfile
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
- ## Usage
10
+ ### Usage
13
11
 
14
- ```ruby
15
- # config/application.rb
16
- config.cache_store = :redis_store, 'redis://localhost:6379/0/cache', { expires_in: 90.minutes }
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
- ```ruby
22
- # config/initializers/session_store.rb
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
- ```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
- ```
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
- ```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
- ```
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 - 2013 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
42
+ (c) 2009 - 2011 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
data/Rakefile CHANGED
@@ -1,4 +1,7 @@
1
- require 'bundler/setup'
1
+ require 'bundler'
2
+ Bundler.setup
2
3
  require 'rake'
3
4
  require 'bundler/gem_tasks'
4
- require 'redis-store/testing/tasks'
5
+
6
+ load 'tasks/redis.tasks.rb'
7
+ task :default => 'redis:test:suite'
@@ -1,5 +1,5 @@
1
1
  class Redis
2
2
  module Rails
3
- VERSION = '3.2.4'
3
+ VERSION = '4.0.0'
4
4
  end
5
5
  end
@@ -1,31 +1,29 @@
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']
9
- s.email = ['me@lucaguidi.com']
10
- s.homepage = 'http://redis-store.org/redis-rails'
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 = 'redis-rails'
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 = ['lib']
19
+ s.require_paths = ["lib"]
21
20
 
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'
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
@@ -2,6 +2,6 @@ require 'test_helper'
2
2
 
3
3
  describe Redis::Rails::VERSION do
4
4
  it 'returns current version' do
5
- Redis::Rails::VERSION.must_equal '3.2.4'
5
+ Redis::Rails::VERSION.must_equal '4.0.0'
6
6
  end
7
7
  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: 3.2.4
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-29 00:00:00.000000000 Z
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.4
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.4
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: 3.2.4
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: 3.2.4
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: 3.2.4
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: 3.2.4
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: []
@@ -1,14 +0,0 @@
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