redis-session-store 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 097d67a7b7dddb2f3b6d560c0dc3ac6c72c1adf2
4
- data.tar.gz: 4cf3ce2dc51d8788b6400efa2c48d12c1f932b3a
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Mjc5NmUwYjhlZjRlZDZkMTYxYmFmNDM2Mzg4ZTI1MmVkNzgxNjUxNA==
5
+ data.tar.gz: !binary |-
6
+ OGU1ZGZhYTU3MmYzZWRlMzAzOTdmMWE4NjdmMDQxMDlkMDExOTE2NQ==
5
7
  SHA512:
6
- metadata.gz: af6359ab62958e1542c55d93d7580343dfca3a00f8eef8c64c106b7213faea3f95341bdf0f8bf67a66682e86a22d897c901fedf53a8b049674a3aa6cef4a08de
7
- data.tar.gz: bcd85e2e6d0df1a78fc28cdaab2ff67d0adfbaa3db288d7d0a3d8efe1c948ea852c7943e8623728cee6e39949f15b252da35e8da6e12bd707e749d13ff326f1c
8
+ metadata.gz: !binary |-
9
+ OWFmYjQ1MTJlODFjZGUxM2RiZDBhYzRkYTczYzUyZTAxYjQxYmQ1ZjU1YjQ2
10
+ YzhjZjhiMjY1YzIzMDNkNjJkNTMzZGY2YWE5N2FhYTI2NzdlZjYwMTQzZjU5
11
+ YjU0M2E0ZGNlOTJhNzQ1ZWYwMzAwYWQwMGJiZjE0NDQwOTAyMDU=
12
+ data.tar.gz: !binary |-
13
+ Y2YwMGRjZWFhMGFhYjg5NGEzNTBkMDljOGI0NGNjYjcxNWRkZWIyYzEyNmJm
14
+ ODFjYjAyYjQxNWMxNzVlZTc1NDBhNWMwMmRhNGYzMTA1ZDVhNjBhY2Q3MGM1
15
+ OGQ3ZmYxODcwZjY5MmFiMzIwNDNlOWY1YzlmYWY2ZTEzZmE3NWE=
data/AUTHORS.md CHANGED
@@ -11,5 +11,6 @@ Redis Session Store authors
11
11
  - Justin McNally
12
12
  - Mathias Meyer
13
13
  - Michael Fields
14
+ - Michael Xavier
14
15
  - Olek Poplavsky
15
16
  - Tim Lossen
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  redis-session-store history
2
2
  ===========================
3
3
 
4
+ ## v0.6.6 (2014-04-08)
5
+
6
+ * Fix issue #37, use correct constant for `ENV_SESSION_OPTIONS_KEY` if not
7
+ passed.
8
+
4
9
  ## v0.6.5 (2014-04-04)
5
10
 
6
11
  * Fix issue #36, use setnx to get a new session id instead of get. This
@@ -4,7 +4,11 @@ require 'redis'
4
4
  # Redis session storage for Rails, and for Rails only. Derived from
5
5
  # the MemCacheStore code, simply dropping in Redis instead.
6
6
  class RedisSessionStore < ActionDispatch::Session::AbstractStore
7
- VERSION = '0.6.5'
7
+ VERSION = '0.6.6'
8
+ # Rails 3.1 and beyond defines the constant elsewhere
9
+ unless defined?(ENV_SESSION_OPTIONS_KEY)
10
+ ENV_SESSION_OPTIONS_KEY = Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY
11
+ end
8
12
 
9
13
  # ==== Options
10
14
  # * +:key+ - Same as with the other cookie stores, key name
data/spec/support.rb CHANGED
@@ -1,7 +1,17 @@
1
1
  # vim:fileencoding=utf-8
2
2
 
3
+ unless defined?(Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY)
4
+ module Rack # rubocop:disable Documentation
5
+ module Session
6
+ module Abstract # rubocop:disable Documentation
7
+ ENV_SESSION_OPTIONS_KEY = 'rack.session.options'.freeze
8
+ end
9
+ end
10
+ end
11
+ end
12
+
3
13
  unless defined?(ActionDispatch::Session::AbstractStore)
4
- module ActionDispatch
14
+ module ActionDispatch # rubocop:disable Documentation
5
15
  module Session
6
16
  class AbstractStore # rubocop:disable Documentation
7
17
  ENV_SESSION_OPTIONS_KEY = 'rack.session.options'.freeze
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-session-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-05 00:00:00.000000000 Z
11
+ date: 2014-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '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
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fakeredis
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: simplecov
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A drop-in replacement for e.g. MemCacheStore to store Rails sessions
@@ -105,11 +105,11 @@ extra_rdoc_files:
105
105
  - AUTHORS.md
106
106
  - CONTRIBUTING.md
107
107
  files:
108
- - ".gitignore"
109
- - ".rspec"
110
- - ".rubocop.yml"
111
- - ".simplecov"
112
- - ".travis.yml"
108
+ - .gitignore
109
+ - .rspec
110
+ - .rubocop.yml
111
+ - .simplecov
112
+ - .travis.yml
113
113
  - AUTHORS.md
114
114
  - CHANGELOG.md
115
115
  - CONTRIBUTING.md
@@ -132,12 +132,12 @@ require_paths:
132
132
  - lib
133
133
  required_ruby_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ">="
135
+ - - ! '>='
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
- - - ">="
140
+ - - ! '>='
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
@@ -148,4 +148,3 @@ specification_version: 4
148
148
  summary: A drop-in replacement for e.g. MemCacheStore to store Rails sessions (and
149
149
  Rails sessions only) in Redis.
150
150
  test_files: []
151
- has_rdoc: true