encrypted_cookie_store-instructure 1.2.9 → 1.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c623b83539884573e341f5df449d67d33777ee548755e4bc8c19fbad21eec80
4
- data.tar.gz: 6126c12a19802fc7dca0fdd7a9c9e6385e4323652f4d165978f1da3e4cc9873f
3
+ metadata.gz: 44e8e9c22b52c1f858c4ee2e4f534d9dec068fe6898b00559e46a23283d59888
4
+ data.tar.gz: d4a29f6a3d0cfdc0c65ba956ee15db1b265f60714fb3c92c538bca7acd034632
5
5
  SHA512:
6
- metadata.gz: feabd49558716a620cadb60be123d69d7e17cfa9209ce085c380fe3ea16522111cfd0e2eb99f29a6859c01f90a681bcf9ea5377415db9f2b2c570ecc9af79ec8
7
- data.tar.gz: cb8ad4b8dde5c083313dc8d98598ff7e6ba79a31b6b9de3729051729c3560536150beb2bb22ec2db0ecccd8feda8db2863ab6be099ef7fe4238d47a6d05a0571
6
+ metadata.gz: 35f3a792a8fc67693a5766de6262872b5c1dae9397e4c6ec2631c07c338615cf4a3334f68f6c837536affbe1f5af84a392d2834aa18befee5b395131b9406a10
7
+ data.tar.gz: '0841f067b75cfa77bc30ba48ca8c681592099bccf75ff4d3e8894a7d371aa57e4c96f9682b60f4247a337a54c3ddca4fd8473e27d64dfc797e5684fc18e1a05b'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{encrypted_cookie_store-instructure}
3
- s.version = "1.2.9"
3
+ s.version = "1.2.10"
4
4
 
5
5
  s.authors = ["Cody Cutrer", "Jacob Fugal", "James Williams"]
6
6
  s.date = %q{2013-12-20}
@@ -108,8 +108,16 @@ 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('timestamp')
112
- marshal(session_data, options)
111
+ if session_data.is_a?(::ActionDispatch::Session::CookieStore::SessionId)
112
+ session_id = session_data
113
+ session_data = session_data.cookie_value
114
+ session_data.delete('timestamp')
115
+ session_id.instance_variable_set(:@cookie_value, marshal(session_data, options)) # swap out the cookie value
116
+ session_id
117
+ else
118
+ session_data.delete('timestamp')
119
+ marshal(session_data, options)
120
+ end
113
121
  end
114
122
  RUBY
115
123
 
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.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer