firebug 0.1.3 → 0.1.4
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 +1 -4
- data/lib/firebug/configuration.rb +1 -11
- 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: 69cfa23d0d545d5872bdb14c5a7765e2805d6d37
|
4
|
+
data.tar.gz: '09242ef207f5c2576f67413a6f3fc939899d36ba'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87db7bd612ad76f69302c83705d35bc30de23cbbb587b163f03ca687540e0e2869435d9b9d7b04d931708425336906637aff1b808bf3ba6ed40f2ac82868f2d
|
7
|
+
data.tar.gz: 8de211aadea06efc8a5dd6976175fdc5b64f507eb3b7ed9b24687d07f4fd4cb92a8866fae2ecb20db82a23335107db250d452233ef6aada4e94510f7bd886497
|
data/Gemfile.lock
CHANGED
@@ -76,10 +76,7 @@ module ActionDispatch
|
|
76
76
|
# @return [Firebug::Session]
|
77
77
|
def find_session_model(req, sid=nil)
|
78
78
|
if sid
|
79
|
-
|
80
|
-
p[:ip_address] = req.ip if Firebug.configuration.match_ip
|
81
|
-
p[:user_agent] = req.user_agent if Firebug.configuration.match_useragent
|
82
|
-
model = Firebug::Session.find_by(p)
|
79
|
+
model = Firebug::Session.find_by(session_id: sid)
|
83
80
|
return model if model
|
84
81
|
sid = generate_sid
|
85
82
|
end
|
@@ -5,22 +5,12 @@ module Firebug
|
|
5
5
|
#
|
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
|
-
# @attr [Boolean] truncate_useragent
|
9
|
-
# @attr [Boolean] match_useragent
|
10
|
-
# @attr [Boolean] match_ip
|
8
|
+
# @attr [Boolean] truncate_useragent truncate the user-agent to 120 characters.
|
11
9
|
class Configuration
|
12
10
|
attr_reader :table_name
|
13
11
|
|
14
12
|
attr_accessor :key
|
15
13
|
attr_accessor :truncate_useragent
|
16
|
-
attr_accessor :match_useragent
|
17
|
-
attr_accessor :match_ip
|
18
|
-
|
19
|
-
# def initialize
|
20
|
-
# @truncate_useragent = false
|
21
|
-
# @match_useragent = false
|
22
|
-
# @match_ip = false
|
23
|
-
# end
|
24
14
|
|
25
15
|
# Sets the table name for +Firebug::Session+
|
26
16
|
#
|
data/lib/firebug/version.rb
CHANGED