firebug 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -6
- data/lib/action_dispatch/session/code_igniter_store.rb +2 -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: b34fdb57151c4e165b5b7a5b5cc4c7342a0da589
|
4
|
+
data.tar.gz: 50d6a8e6c124c072b44423a2cfc4eae8301764a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d461bcb580ea5e8ccfade10dd98f9b213eae4aa0bfe5a0de8036e5b5a15cc7141e5808743851546d7543b2558f75c0be8488020fd4a4e88b10ea4164ab2a6e7b
|
7
|
+
data.tar.gz: 5812cc7d749c8597524067a390b475e4ad4744f31ce3f4b9252fee8757d4c7dcb90f3c9a8197de87273b67f09e5de7d1befff299b48965510cf761eae584a0e8
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
firebug (0.1.
|
4
|
+
firebug (0.1.6)
|
5
5
|
actionpack (~> 5.0)
|
6
6
|
activerecord (~> 5.0)
|
7
7
|
ruby-mcrypt (~> 0.2)
|
@@ -42,7 +42,7 @@ GEM
|
|
42
42
|
diff-lcs (1.3)
|
43
43
|
docile (1.1.5)
|
44
44
|
erubi (1.7.0)
|
45
|
-
i18n (0.9.
|
45
|
+
i18n (0.9.3)
|
46
46
|
concurrent-ruby (~> 1.0)
|
47
47
|
json (2.1.0)
|
48
48
|
loofah (2.1.1)
|
@@ -50,8 +50,8 @@ GEM
|
|
50
50
|
nokogiri (>= 1.5.9)
|
51
51
|
method_source (0.9.0)
|
52
52
|
mini_portile2 (2.3.0)
|
53
|
-
minitest (5.
|
54
|
-
nokogiri (1.8.
|
53
|
+
minitest (5.11.3)
|
54
|
+
nokogiri (1.8.2)
|
55
55
|
mini_portile2 (~> 2.3.0)
|
56
56
|
parallel (1.12.0)
|
57
57
|
parser (2.4.0.2)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
pry (0.11.3)
|
61
61
|
coderay (~> 1.1.0)
|
62
62
|
method_source (~> 0.9.0)
|
63
|
-
rack (2.0.
|
63
|
+
rack (2.0.4)
|
64
64
|
rack-test (0.8.2)
|
65
65
|
rack (>= 1.0, < 3)
|
66
66
|
rails-dom-testing (2.0.3)
|
@@ -104,7 +104,7 @@ GEM
|
|
104
104
|
simplecov-html (0.10.2)
|
105
105
|
sqlite3 (1.3.13)
|
106
106
|
thread_safe (0.3.6)
|
107
|
-
tzinfo (1.2.
|
107
|
+
tzinfo (1.2.5)
|
108
108
|
thread_safe (~> 0.1)
|
109
109
|
unicode-display_width (1.3.0)
|
110
110
|
|
@@ -78,10 +78,11 @@ module ActionDispatch
|
|
78
78
|
if sid
|
79
79
|
p = { session_id: sid }
|
80
80
|
p[:user_agent] = req.user_agent if Firebug.configuration.match_user_agent
|
81
|
+
p[:ip_address] = req.remote_ip if Firebug.configuration.match_ip_address
|
81
82
|
model = Firebug::Session.find_by(p)
|
82
83
|
return model if model
|
83
84
|
# use a different session ID in case the reason for not finding the record is because the user_agent
|
84
|
-
# didn't match.
|
85
|
+
# or ip_address didn't match.
|
85
86
|
sid = generate_sid
|
86
87
|
end
|
87
88
|
|
@@ -7,12 +7,14 @@ module Firebug
|
|
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
9
|
# @attr [Boolean] match_user_agent use the user-agent in addition to the session ID.
|
10
|
+
# @attr [Boolean] match_ip_address use the remote ip address in addition to the session ID.
|
10
11
|
class Configuration
|
11
12
|
attr_reader :table_name
|
12
13
|
|
13
14
|
attr_accessor :key
|
14
15
|
attr_accessor :truncate_useragent
|
15
16
|
attr_accessor :match_user_agent
|
17
|
+
attr_accessor :match_ip_address
|
16
18
|
|
17
19
|
# Sets the table name for +Firebug::Session+
|
18
20
|
#
|
data/lib/firebug/version.rb
CHANGED