encrypted_cookie_store-instructure 1.2.5 → 1.2.6
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 +2 -2
- 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: f1b7aff6c8074b413e1a4d0551fcab85ccaf6732
|
4
|
+
data.tar.gz: b94f627a07f1ce9d92148b725036a6cab33ca077
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd4fc6a3d423ba3a30537848f7cf14cdcfff77c9f4b2366e66d2317b9b9bddc9994710075fbcd37c7e659f4818b859c1b474e3be4e04fce3b3fb65ccc12df04a
|
7
|
+
data.tar.gz: 7cd4977213ccdbc0f2ac8008413bcc254743f67be5c7ec7f92403d95f0d1589f53079d7fcf20a3edcfcda518db40fbf10de7c2af342bedc47f9eaa9b81e5d764
|
@@ -129,7 +129,7 @@ module ActionDispatch
|
|
129
129
|
|
130
130
|
def refresh_session?(req, options)
|
131
131
|
if options[:expire_after] && options[:refresh_interval] && time = timestamp(req)
|
132
|
-
Time.now.utc.to_i > time + options[:refresh_interval]
|
132
|
+
Time.now.utc.to_i > time + options[:refresh_interval].to_i
|
133
133
|
else
|
134
134
|
false
|
135
135
|
end
|
@@ -173,7 +173,7 @@ module ActionDispatch
|
|
173
173
|
session_data = inflate(session_data) if compressed
|
174
174
|
return nil unless digest == hmac_digest(iv, session_data, timestamp)
|
175
175
|
if options[:expire_after]
|
176
|
-
return nil unless timestamp && Time.now.utc.to_i <= timestamp + options[:expire_after]
|
176
|
+
return nil unless timestamp && Time.now.utc.to_i <= timestamp + options[:expire_after].to_i
|
177
177
|
end
|
178
178
|
|
179
179
|
loaded_data = 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.6
|
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.5.1
|
108
108
|
signing_key:
|
109
109
|
specification_version: 4
|
110
110
|
summary: EncryptedCookieStore for Ruby on Rails 4.2
|