honkster-redis-store 0.3.11 → 0.3.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/rack/session/redis.rb +9 -1
  3. metadata +16 -11
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.11
1
+ 0.3.12
@@ -7,7 +7,15 @@ module Rack
7
7
  def initialize(app, options = {})
8
8
  super
9
9
  @mutex = Mutex.new
10
- @pool = RedisFactory.create options[:redis_server] || @default_options[:redis_server]
10
+ servers = [options[:servers]].flatten.compact.map do |server_options|
11
+ {
12
+ :namespace => 'rack:session',
13
+ :host => 'localhost',
14
+ :port => '6379',
15
+ :db => 0
16
+ }.update(RedisFactory.convert_to_redis_client_options(server_options))
17
+ end
18
+ @pool = RedisFactory.create(*servers) || @default_options[:redis_server]
11
19
  end
12
20
 
13
21
  def generate_sid
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honkster-redis-store
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 11
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 3
8
- - 11
9
- version: 0.3.11
9
+ - 12
10
+ version: 0.3.12
10
11
  platform: ruby
11
12
  authors:
12
13
  - Luca Guidi
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-23 00:00:00 -07:00
18
+ date: 2010-07-03 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -72,35 +73,39 @@ rdoc_options:
72
73
  require_paths:
73
74
  - lib
74
75
  required_ruby_version: !ruby/object:Gem::Requirement
76
+ none: false
75
77
  requirements:
76
78
  - - ">="
77
79
  - !ruby/object:Gem::Version
80
+ hash: 3
78
81
  segments:
79
82
  - 0
80
83
  version: "0"
81
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
+ none: false
82
86
  requirements:
83
87
  - - ">="
84
88
  - !ruby/object:Gem::Version
89
+ hash: 3
85
90
  segments:
86
91
  - 0
87
92
  version: "0"
88
93
  requirements: []
89
94
 
90
95
  rubyforge_project:
91
- rubygems_version: 1.3.6
96
+ rubygems_version: 1.3.7
92
97
  signing_key:
93
98
  specification_version: 3
94
99
  summary: Rack::Session, Rack::Cache and cache Redis stores for Ruby web frameworks.
95
100
  test_files:
96
- - spec/spec_helper.rb
97
- - spec/cache/sinatra/redis_store_spec.rb
98
- - spec/cache/merb/redis_store_spec.rb
99
- - spec/cache/rails/redis_session_store_spec.rb
100
- - spec/cache/rails/redis_store_spec.rb
101
+ - spec/rack/session/redis_spec.rb
101
102
  - spec/rack/cache/metastore/redis_spec.rb
102
103
  - spec/rack/cache/entitystore/redis_spec.rb
103
- - spec/rack/session/redis_spec.rb
104
- - spec/redis/marshaled_redis_spec.rb
105
104
  - spec/redis/distributed_marshaled_redis_spec.rb
106
105
  - spec/redis/redis_factory_spec.rb
106
+ - spec/redis/marshaled_redis_spec.rb
107
+ - spec/cache/sinatra/redis_store_spec.rb
108
+ - spec/cache/rails/redis_store_spec.rb
109
+ - spec/cache/rails/redis_session_store_spec.rb
110
+ - spec/cache/merb/redis_store_spec.rb
111
+ - spec/spec_helper.rb