encrypted_cookie_store-instructure 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{encrypted_cookie_store-instructure}
|
3
|
-
s.version = "1.0.
|
3
|
+
s.version = "1.0.4"
|
4
4
|
|
5
5
|
s.authors = ["Cody Cutrer", "Jacob Fugal"]
|
6
|
-
s.date = %q{
|
6
|
+
s.date = %q{2013-05-02}
|
7
7
|
s.extra_rdoc_files = [
|
8
8
|
"LICENSE.txt"
|
9
9
|
]
|
@@ -28,7 +28,7 @@ class EncryptedCookieStore < ActionController::Session::CookieStore
|
|
28
28
|
old_session_data, raw_old_session_data, old_timestamp = all_unpacked_cookie_data(env)
|
29
29
|
# make sure we have a deep copy
|
30
30
|
old_session_data = Marshal.load(raw_old_session_data) if raw_old_session_data
|
31
|
-
env['encrypted_cookie_store.session_refreshed_at'] ||= session_refreshed_at(old_timestamp
|
31
|
+
env['encrypted_cookie_store.session_refreshed_at'] ||= session_refreshed_at(old_timestamp)
|
32
32
|
|
33
33
|
status, headers, body = @app.call(env)
|
34
34
|
|
@@ -134,9 +134,8 @@ private
|
|
134
134
|
all_unpacked_cookie_data(env).first
|
135
135
|
end
|
136
136
|
|
137
|
-
def session_refreshed_at(timestamp
|
138
|
-
|
139
|
-
Time.at(timestamp).utc - expire_after if timestamp && expire_after
|
137
|
+
def session_refreshed_at(timestamp)
|
138
|
+
Time.at(timestamp).utc if timestamp
|
140
139
|
end
|
141
140
|
|
142
141
|
# To prevent users from using an insecure encryption key like "Password" we make sure that the
|
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.0.
|
4
|
+
version: 1.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-05-02 00:00:00.000000000 Z
|
14
14
|
dependencies: []
|
15
15
|
description: A secure version of Rails' built in CookieStore
|
16
16
|
email:
|