encrypted_cookie_store-instructure 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f89b1c6d21327a35c7f603fe7ef94caf7483a97
4
- data.tar.gz: cd915eea6a24c7f2b9d0404fb1991613f1ef1259
3
+ metadata.gz: 278cd87cbfbfc67736a38355d9c70356bf4d61d8
4
+ data.tar.gz: 6265bb93accfee6fc47d1836dce00feb10eaa545
5
5
  SHA512:
6
- metadata.gz: 57b4a57058b1ac6f677b6ef9cb2c7483d92644770e6dcda0c2dfd08fd5e5fe83bc7a014c22400ab4f8088acaab2987c5f548480b6e0c5cc24ec3aeb75f6c686a
7
- data.tar.gz: 70596999daf83475118bd2c97a24e83708f7d5e9ad218012d76c1461d3ecff5d04ae049c87c354eafcf66a0e92c198025d876793e201f2b78f8feb68433bfbf4
6
+ metadata.gz: 2882f167f5b6defdb3b927ba2296c7048082512f9bff867b83461e4f77c7cc7e88d1a77cf997713d7ec0aecbcae27fda02e0632fc937023a143739d34acb65ac
7
+ data.tar.gz: 85e2d8388031b8508d00291f367f46291c0ec47fcbd746aefb8ddcb7c54cb3abdd943dc4f73c395cfdbd7d616dc875b860b5728006d014e92224d2bef5c3f3e4
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{encrypted_cookie_store-instructure}
3
- s.version = "1.1.2"
3
+ s.version = "1.1.3"
4
4
 
5
5
  s.authors = ["Cody Cutrer", "Jacob Fugal", "James Williams"]
6
6
  s.date = %q{2013-12-20}
@@ -119,7 +119,7 @@ module ActionDispatch
119
119
  end
120
120
  encrypted_session_data = @data_cipher.update(compressed_session_data) << @data_cipher.final
121
121
  timestamp = Time.now.utc.to_i if expire_after(options)
122
- digest = OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new(@digest), @secret, session_data + timestamp.to_s)
122
+ digest = OpenSSL::HMAC.digest(OpenSSL::Digest.new(@digest), @secret, session_data + timestamp.to_s)
123
123
 
124
124
  result = "#{base64(iv)}#{compressed_session_data == session_data ? '.' : ' '}#{base64(encrypted_session_data)}.#{base64(digest)}"
125
125
  result << ".#{base64([timestamp].pack('N'))}" if expire_after(options)
@@ -141,7 +141,7 @@ module ActionDispatch
141
141
  @data_cipher.iv = iv
142
142
  session_data = @data_cipher.update(encrypted_session_data) << @data_cipher.final
143
143
  session_data = inflate(session_data) if compressed
144
- return nil unless digest == OpenSSL::HMAC.digest(OpenSSL::Digest::Digest.new(@digest), @secret, session_data + timestamp.to_s)
144
+ return nil unless digest == OpenSSL::HMAC.digest(OpenSSL::Digest.new(@digest), @secret, session_data + timestamp.to_s)
145
145
  if expire_after(options)
146
146
  return nil unless timestamp && Time.now.utc.to_i <= timestamp + expire_after(options)
147
147
  end
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.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.2.0
115
+ rubygems_version: 2.3.0
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: EncryptedCookieStore for Ruby on Rails 3.2