firebug 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/action_dispatch/session/code_igniter_store.rb +3 -3
- data/lib/firebug/session.rb +3 -2
- data/lib/firebug/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d65fd3b75a4aa0f879d00b233901b875fb66386c5b183573592e57d26e666846
|
4
|
+
data.tar.gz: f816a2292a86d4cfea778e46ea091c61a56a46833cddf90f730afdb3728de203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719d8bcbed085ff6d53087ed8a1945a63c8ff49e2fe7072386b3f58c68fd440cd09e7a356affe904390a0cc2f813aedf94a6aff2a859dc8a04e4d97e10568501
|
7
|
+
data.tar.gz: 4e8200ae3a85ec5ceb9bc94158bd18969a84fb6cb874b1e25ccfc7667cf3039ccfe3f05be6137ebb51e417aec794f7dea9b0df0f26a5a07fff2b925fa04ca1eb
|
data/CHANGELOG.md
CHANGED
@@ -9,7 +9,7 @@ module ActionDispatch # :nodoc:
|
|
9
9
|
class CodeIgniterStore < AbstractStore
|
10
10
|
# The key name used to store the session model in the request env.
|
11
11
|
SESSION_RECORD_KEY = 'rack.session.record'
|
12
|
-
# The request env hash key
|
12
|
+
# The request env hash key has the logger instance.
|
13
13
|
ACTION_DISPATCH_LOGGER_KEY = 'action_dispatch.logger'
|
14
14
|
|
15
15
|
# @param [Object] app
|
@@ -84,7 +84,7 @@ module ActionDispatch # :nodoc:
|
|
84
84
|
return false unless model.update(model_params)
|
85
85
|
|
86
86
|
req.env[SESSION_RECORD_KEY] = model
|
87
|
-
# Return the encrypted cookie format of the data. Rack sets this value as the cookie in the response
|
87
|
+
# Return the encrypted cookie format of the data. Rack sets this value as the cookie in the response.
|
88
88
|
model.cookie_data
|
89
89
|
end
|
90
90
|
end
|
@@ -106,7 +106,7 @@ module ActionDispatch # :nodoc:
|
|
106
106
|
return if options[:drop]
|
107
107
|
|
108
108
|
req.env[SESSION_RECORD_KEY] = nil
|
109
|
-
# Generate a new one and return
|
109
|
+
# Generate a new one and return its ID
|
110
110
|
find_session_model(req).tap { |s| s.save if options[:renew] }.session_id
|
111
111
|
end
|
112
112
|
end
|
data/lib/firebug/session.rb
CHANGED
@@ -7,13 +7,14 @@ module Firebug
|
|
7
7
|
class Session < ActiveRecord::Base
|
8
8
|
self.table_name = 'default_ci_sessions'
|
9
9
|
|
10
|
-
# @return [
|
10
|
+
# @return [Hash, Array]
|
11
11
|
def user_data
|
12
12
|
Firebug.unserialize(super || '')
|
13
13
|
end
|
14
14
|
|
15
|
-
# @param [
|
15
|
+
# @param [Hash] value
|
16
16
|
def user_data=(value)
|
17
|
+
value.transform_values! { |v| v.respond_to?(:public_id) ? v.public_id : v }
|
17
18
|
super(Firebug.serialize(value))
|
18
19
|
end
|
19
20
|
|
data/lib/firebug/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Frase
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|