firebug 0.1.2 → 0.1.3
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 +3 -3
- 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: 2a2a2fd3d79386783aa0f21d22a577b8934056e7
|
4
|
+
data.tar.gz: 47a3aaeedff3d94049ce2014ba54a245483ed70b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de438fafb3676ba56c7221d43ac79ea3f8386ea232ac3672596c18790d81a72daafc22226d38a788ddde17352d9b1f6575f63de93c9e1456cd78270605ee27f2
|
7
|
+
data.tar.gz: 68134f6ea67a632c06aae0c7b4ec8611cb59e0b8f1acf22afeaabd91c963ba9150cfe0cf133d06f4769d27209450133347d2d37dfe9a2426d6dfc1d9f6d701bf
|
data/Gemfile.lock
CHANGED
@@ -34,7 +34,7 @@ module ActionDispatch
|
|
34
34
|
model_params = {
|
35
35
|
session_id: model.session_id,
|
36
36
|
user_agent: req.user_agent || '', # user_agent can't be null
|
37
|
-
ip_address: req.
|
37
|
+
ip_address: req.remote_ip || '', # ip_address can't be null
|
38
38
|
user_data: session
|
39
39
|
}
|
40
40
|
# Returning false will cause Rack to output a warning.
|
@@ -81,14 +81,14 @@ module ActionDispatch
|
|
81
81
|
p[:user_agent] = req.user_agent if Firebug.configuration.match_useragent
|
82
82
|
model = Firebug::Session.find_by(p)
|
83
83
|
return model if model
|
84
|
-
|
84
|
+
sid = generate_sid
|
85
85
|
end
|
86
86
|
|
87
87
|
Firebug::Session.create!(
|
88
88
|
session_id: sid || generate_sid,
|
89
89
|
last_activity: Time.current.to_i,
|
90
90
|
user_agent: req.user_agent,
|
91
|
-
ip_address: req.
|
91
|
+
ip_address: req.remote_ip
|
92
92
|
)
|
93
93
|
end
|
94
94
|
end
|
data/lib/firebug/version.rb
CHANGED