firebug 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/action_dispatch/session/code_igniter_store.rb +5 -1
- data/lib/firebug/configuration.rb +2 -0
- data/lib/firebug/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef6c8ae1e1881ea7e83acd34654b9bb9c04f986f
|
4
|
+
data.tar.gz: e71bb0ec5f5befe7b41ea12eb7cbb0510fecb3ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d4baa0cc89ea7ab978b78e8a293b16770c1c643fa090d19a76021b2f52cc99237768bd8e13279f16d2e61da2f0412ca0ed78d57570a6698165a47fe4d38df0a
|
7
|
+
data.tar.gz: aa51002e6552cfbe37f8b36278265508c73b8bf132db3f070bb053fcaecc1c1b0d300025dd94ae415dd92a4c4424548d7ce49ec2957f2cbc7b705e3c9b8d20d3
|
data/Gemfile.lock
CHANGED
@@ -76,8 +76,12 @@ module ActionDispatch
|
|
76
76
|
# @return [Firebug::Session]
|
77
77
|
def find_session_model(req, sid=nil)
|
78
78
|
if sid
|
79
|
-
|
79
|
+
p = { session_id: sid }
|
80
|
+
p[:user_agent] = req.user_agent if Firebug.configuration.match_user_agent
|
81
|
+
model = Firebug::Session.find_by(p)
|
80
82
|
return model if model
|
83
|
+
# use a different session ID in case the reason for not finding the record is because the user_agent
|
84
|
+
# didn't match.
|
81
85
|
sid = generate_sid
|
82
86
|
end
|
83
87
|
|
@@ -6,11 +6,13 @@ module Firebug
|
|
6
6
|
# @attr [String] key the encryption key used to encrypt and decrypt cookies.
|
7
7
|
# @attr [String] table_name the name of the sessions table.
|
8
8
|
# @attr [Boolean] truncate_useragent truncate the user-agent to 120 characters.
|
9
|
+
# @attr [Boolean] match_user_agent use the user-agent in addition to the session ID.
|
9
10
|
class Configuration
|
10
11
|
attr_reader :table_name
|
11
12
|
|
12
13
|
attr_accessor :key
|
13
14
|
attr_accessor :truncate_useragent
|
15
|
+
attr_accessor :match_user_agent
|
14
16
|
|
15
17
|
# Sets the table name for +Firebug::Session+
|
16
18
|
#
|
data/lib/firebug/version.rb
CHANGED