redis-session-store 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDg2OGU1YjUzMjA1OTgzOWQ3NzdkNDI2YWQ1NGNmZjBjNjQzMmE1Ng==
5
- data.tar.gz: !binary |-
6
- YzY5NDk0Y2U5ODIwYTIyMzlkZjM0ZDA4MDI0ZTk5ODNkNDNhNTJiNQ==
2
+ SHA1:
3
+ metadata.gz: 07ac9df763ffa56b77ca40c2327e6bd75437a738
4
+ data.tar.gz: 97e2c5169020108df208b3c96c182e705c0ef45c
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YzZlNTc1MDRhODY3ZmRlM2NmYjQwNjY5NWRkMjgwMzk2MmMwYWRlNTBmOGY2
10
- ZTljOGU4ODdlYjU2YTc3ZjdiOWQ3YmJiNTMwYzg5ZDkzMWZlM2E1YjYyNTcy
11
- M2Y4ZjMxNWRmMTQyZWY0MGM5ZGM0YmU0OTQ4ZGRjNzRlNmViNTc=
12
- data.tar.gz: !binary |-
13
- MGEyMGVmZWUyZDkxODMxN2UyM2Y2Y2Y4YWZiMzMwNDZhOTI0NWRkODg4ZjRi
14
- NjJjM2I0NWY3YWQ1NGFkNmM1Y2QxZmRiODZiZTMxZGZhZWQ2NzliY2JiY2E0
15
- OTczMjBkZjgwNGQyM2FlMjg2NzA1OWVjNmQ0YWY5YTM3YzQ5Yzc=
6
+ metadata.gz: e368674d0c51f31097c96eeff10a17467d10c8ac613269c731ee4d13197cc031a58bcdbe20081a67596c10b2d36bfb6890a024968f346b4e452640ff0739fd7d
7
+ data.tar.gz: 00ac5034ea3e1945362a616d7ad1a28e54c25dcc79ad5a45af0cb3f2fe9fdb5689f9b6c6b22ed056deedf191b3ef5dc09a1fd9e92cdb396806e4392e0551f7ec
@@ -1,7 +1,34 @@
1
1
  inherit_from: .rubocop_todo.yml
2
2
 
3
+ AllCops:
4
+ DisplayCopNames: true
5
+ Exclude:
6
+ - 'Rakefile'
7
+ - 'vendor/**/*'
8
+
3
9
  FileName:
4
10
  Enabled: false
5
11
 
6
12
  DoubleNegation:
7
13
  Enabled: false
14
+
15
+ Metrics/BlockLength:
16
+ Exclude:
17
+ - 'spec/**/*.rb'
18
+
19
+ Security/MarshalLoad:
20
+ Enabled: false
21
+
22
+ Style/FrozenStringLiteralComment:
23
+ Enabled: false
24
+
25
+ Style/PercentLiteralDelimiters:
26
+ Enabled: false
27
+
28
+ Style/SafeNavigation:
29
+ Enabled: false
30
+
31
+ Style/YodaCondition:
32
+ # temporary work around for rubocop bug 'An error occurred while Style/YodaCondition...' (v0.49.1)
33
+ Exclude:
34
+ - 'spec/redis_session_store_spec.rb'
@@ -3,10 +3,10 @@ sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
5
  - 2.3.1
6
- - jruby-9.1.1.0
6
+ - jruby-9.1.13.0
7
7
  matrix:
8
8
  allow_failures:
9
- - rvm: jruby-9.1.1.0
9
+ - rvm: jruby-9.1.13.0
10
10
  notifications:
11
11
  email: false
12
12
  deploy:
data/AUTHORS.md CHANGED
@@ -15,3 +15,5 @@ Redis Session Store authors
15
15
  - Olek Poplavsky
16
16
  - Tim Lossen
17
17
  - Todd Bealmear
18
+ - Aleksey Dashkevych
19
+ - Olle Jonsson
@@ -4,6 +4,11 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.9.2] - 2017-10-31
8
+ ### Changed
9
+ - Actionpack to 5.1
10
+ - Travis use jruby 9.1.13.0
11
+
7
12
  ## [0.9.1] - 2016-07-03
8
13
  ### Added
9
14
  - More specific runtime dependencies
@@ -3,14 +3,14 @@ require 'redis'
3
3
  # Redis session storage for Rails, and for Rails only. Derived from
4
4
  # the MemCacheStore code, simply dropping in Redis instead.
5
5
  class RedisSessionStore < ActionDispatch::Session::AbstractStore
6
- VERSION = '0.9.1'.freeze
6
+ VERSION = '0.9.2'.freeze
7
7
  # Rails 3.1 and beyond defines the constant elsewhere
8
8
  unless defined?(ENV_SESSION_OPTIONS_KEY)
9
- if Rack.release.split('.').first.to_i > 1
10
- ENV_SESSION_OPTIONS_KEY = Rack::RACK_SESSION_OPTIONS
11
- else
12
- ENV_SESSION_OPTIONS_KEY = Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY
13
- end
9
+ ENV_SESSION_OPTIONS_KEY = if Rack.release.split('.').first.to_i > 1
10
+ Rack::RACK_SESSION_OPTIONS
11
+ else
12
+ Rack::Session::Abstract::ENV_SESSION_OPTIONS_KEY
13
+ end
14
14
  end
15
15
 
16
16
  # ==== Options
@@ -103,7 +103,7 @@ class RedisSessionStore < ActionDispatch::Session::AbstractStore
103
103
  data = redis.get(prefixed(sid))
104
104
  begin
105
105
  data ? decode(data) : nil
106
- rescue => e
106
+ rescue StandardError => e
107
107
  destroy_session_from_sid(sid, drop: true)
108
108
  on_session_load_error.call(e, sid) if on_session_load_error
109
109
  nil
@@ -16,8 +16,8 @@ Gem::Specification.new do |gem|
16
16
  gem.version = File.read('lib/redis-session-store.rb')
17
17
  .match(/^ VERSION = '(.*)'/)[1]
18
18
 
19
+ gem.add_runtime_dependency 'actionpack', '>= 3', '< 5.2'
19
20
  gem.add_runtime_dependency 'redis', '~> 3'
20
- gem.add_runtime_dependency 'actionpack', '>= 3', '< 5.1'
21
21
 
22
22
  gem.add_development_dependency 'fakeredis', '~> 0.5'
23
23
  gem.add_development_dependency 'rake', '~> 11'
@@ -496,7 +496,7 @@ describe RedisSessionStore do
496
496
  end
497
497
 
498
498
  context 'when callable' do
499
- let(:options) { { :"#{h}" => ->(*) { !nil } } }
499
+ let(:options) { { :"#{h}" => ->(*) { true } } }
500
500
 
501
501
  it 'does not explode at init' do
502
502
  expect { store }.to_not raise_error
metadata CHANGED
@@ -1,117 +1,117 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis-session-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mathias Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-03 00:00:00.000000000 Z
11
+ date: 2017-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: redis
14
+ name: actionpack
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.2'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ~>
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.2'
27
33
  - !ruby/object:Gem::Dependency
28
- name: actionpack
34
+ name: redis
29
35
  requirement: !ruby/object:Gem::Requirement
30
36
  requirements:
31
- - - ! '>='
37
+ - - "~>"
32
38
  - !ruby/object:Gem::Version
33
39
  version: '3'
34
- - - <
35
- - !ruby/object:Gem::Version
36
- version: '5.1'
37
40
  type: :runtime
38
41
  prerelease: false
39
42
  version_requirements: !ruby/object:Gem::Requirement
40
43
  requirements:
41
- - - ! '>='
44
+ - - "~>"
42
45
  - !ruby/object:Gem::Version
43
46
  version: '3'
44
- - - <
45
- - !ruby/object:Gem::Version
46
- version: '5.1'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: fakeredis
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ~>
51
+ - - "~>"
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.5'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - ~>
58
+ - - "~>"
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0.5'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ~>
65
+ - - "~>"
66
66
  - !ruby/object:Gem::Version
67
67
  version: '11'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ~>
72
+ - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '11'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - ~>
79
+ - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '3'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ~>
86
+ - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '3'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rubocop
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
- - - ~>
93
+ - - "~>"
94
94
  - !ruby/object:Gem::Version
95
95
  version: '0.41'
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
- - - ~>
100
+ - - "~>"
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0.41'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: simplecov
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ~>
107
+ - - "~>"
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0.11'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - ~>
114
+ - - "~>"
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0.11'
117
117
  description: A drop-in replacement for e.g. MemCacheStore to store Rails sessions
@@ -125,12 +125,12 @@ extra_rdoc_files:
125
125
  - AUTHORS.md
126
126
  - CONTRIBUTING.md
127
127
  files:
128
- - .gitignore
129
- - .rspec
130
- - .rubocop.yml
131
- - .rubocop_todo.yml
132
- - .simplecov
133
- - .travis.yml
128
+ - ".gitignore"
129
+ - ".rspec"
130
+ - ".rubocop.yml"
131
+ - ".rubocop_todo.yml"
132
+ - ".simplecov"
133
+ - ".travis.yml"
134
134
  - AUTHORS.md
135
135
  - CHANGELOG.md
136
136
  - CODE_OF_CONDUCT.md
@@ -154,17 +154,17 @@ require_paths:
154
154
  - lib
155
155
  required_ruby_version: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ! '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  required_rubygems_version: !ruby/object:Gem::Requirement
161
161
  requirements:
162
- - - ! '>='
162
+ - - ">="
163
163
  - !ruby/object:Gem::Version
164
164
  version: '0'
165
165
  requirements: []
166
166
  rubyforge_project:
167
- rubygems_version: 2.4.5
167
+ rubygems_version: 2.6.14
168
168
  signing_key:
169
169
  specification_version: 4
170
170
  summary: A drop-in replacement for e.g. MemCacheStore to store Rails sessions (and