encrypted_cookie_store-instructure 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/encrypted_cookie_store-instructure.gemspec +1 -1
- data/lib/encrypted_cookie_store.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e37a6b9bf0aa55dcbbfdf8a52686fd6b2349cc56
|
4
|
+
data.tar.gz: 113ab2ca7905cf04e330770efa2a893ea6fed6cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2938713706c615ac71568ea954fa9afef63bdd96d4820a66d8f2c677cbbd89a60c77e018e296c2795a24ecbaa5d35d2f4b8477f4496882d0f28da996cc73f12
|
7
|
+
data.tar.gz: 897cd87b74af3d3e8d601105f9adde64fed1ce4e4d33d31541e09c121d52bbe2c8526df4491a5889839097b2bf24f0e14aca2e89c852eff7f98a5f5aeae4623d
|
@@ -97,7 +97,7 @@ module ActionDispatch
|
|
97
97
|
data.stringify_keys!
|
98
98
|
end
|
99
99
|
data ||= {}
|
100
|
-
set_header(req, 'encrypted_cookie_store.original_cookie', data.deep_dup.except(
|
100
|
+
set_header(req, 'encrypted_cookie_store.original_cookie', data.deep_dup.except('timestamp'))
|
101
101
|
data
|
102
102
|
end
|
103
103
|
set_header(req, k, v)
|
@@ -108,7 +108,7 @@ module ActionDispatch
|
|
108
108
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
109
109
|
def #{write_session}(req, sid, session_data, options)
|
110
110
|
session_data = super
|
111
|
-
session_data.delete(
|
111
|
+
session_data.delete('timestamp')
|
112
112
|
marshal(session_data, options)
|
113
113
|
end
|
114
114
|
RUBY
|
@@ -124,7 +124,7 @@ module ActionDispatch
|
|
124
124
|
end
|
125
125
|
|
126
126
|
def session_changed?(req, session)
|
127
|
-
(session || {}).to_hash.stringify_keys.except(
|
127
|
+
(session || {}).to_hash.stringify_keys.except('timestamp') != (get_header(req, 'encrypted_cookie_store.original_cookie') || {})
|
128
128
|
end
|
129
129
|
|
130
130
|
def refresh_session?(req, options)
|
@@ -183,7 +183,7 @@ module ActionDispatch
|
|
183
183
|
@logger.error("Could not unmarshal session_data: #{session_data.inspect}") if @logger
|
184
184
|
end
|
185
185
|
|
186
|
-
loaded_data[
|
186
|
+
loaded_data['timestamp'] = timestamp if loaded_data && timestamp
|
187
187
|
loaded_data
|
188
188
|
else
|
189
189
|
nil
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: encrypted_cookie_store-instructure
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cody Cutrer
|
@@ -104,7 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
requirements: []
|
106
106
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.
|
107
|
+
rubygems_version: 2.6.13
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: EncryptedCookieStore for Ruby on Rails 4.2
|