encrypted_cookie_store-instructure 1.2.9 → 1.2.12

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: 6101a0d3a94f6945a0587c0f6344938707f13c8c92cbbc7ffdf1a760269525ec
4
+ data.tar.gz: 6b63528fdda969e0f35ff40e1f03c9b2085d1c557d627025a90ea9484345862c
5
5
  SHA512:
6
- metadata.gz: feabd49558716a620cadb60be123d69d7e17cfa9209ce085c380fe3ea16522111cfd0e2eb99f29a6859c01f90a681bcf9ea5377415db9f2b2c570ecc9af79ec8
7
- data.tar.gz: cb8ad4b8dde5c083313dc8d98598ff7e6ba79a31b6b9de3729051729c3560536150beb2bb22ec2db0ecccd8feda8db2863ab6be099ef7fe4238d47a6d05a0571
6
+ metadata.gz: 8d19ed7c019f7975e9ecbdf403f27030eb81990a3e1529af02cff4450ac5da07c2a9c7595583e0133a3a284bf45a32505f6b363b14b38099fbe60956dda1c15f
7
+ data.tar.gz: 017a673b688c3fe7f86073aebe1e734bc76c6911ac08548919287c1b9f5973d08d3c2b2ecfcb2d6a3419b3cb301302229024d1f308e38736de9be248b5ac27aa
@@ -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.12"
4
4
 
5
5
  s.authors = ["Cody Cutrer", "Jacob Fugal", "James Williams"]
6
6
  s.date = %q{2013-12-20}
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.summary = %q{EncryptedCookieStore for Ruby on Rails 4.2}
19
19
  s.description = %q{A secure version of Rails' built in CookieStore}
20
20
 
21
- s.add_dependency "actionpack", ">= 4.2", "< 6.1"
21
+ s.add_dependency "actionpack", ">= 4.2", "< 7.1"
22
22
 
23
23
  s.add_development_dependency "rake"
24
24
  s.add_development_dependency "rspec-rails", "~> 3.5"
@@ -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,13 +1,13 @@
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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Cutrer
8
8
  - Jacob Fugal
9
9
  - James Williams
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
  date: 2013-12-20 00:00:00.000000000 Z
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '4.2'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '6.1'
24
+ version: '7.1'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '4.2'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '6.1'
34
+ version: '7.1'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rake
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -75,7 +75,7 @@ dependencies:
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  description: A secure version of Rails' built in CookieStore
78
- email:
78
+ email:
79
79
  executables: []
80
80
  extensions: []
81
81
  extra_rdoc_files:
@@ -88,7 +88,7 @@ files:
88
88
  homepage: http://github.com/ccutrer/encrypted_cookie_store
89
89
  licenses: []
90
90
  metadata: {}
91
- post_install_message:
91
+ post_install_message:
92
92
  rdoc_options: []
93
93
  require_paths:
94
94
  - lib
@@ -103,8 +103,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubygems_version: 3.0.3
107
- signing_key:
106
+ rubygems_version: 3.1.4
107
+ signing_key:
108
108
  specification_version: 4
109
109
  summary: EncryptedCookieStore for Ruby on Rails 4.2
110
110
  test_files: []