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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9b7e5a38a11f19b12b725b34131608c0d50dcb08
4
- data.tar.gz: f08c0c8f2d16339f16f831804bf80c0b53ee9fd8
3
+ metadata.gz: 2a2a2fd3d79386783aa0f21d22a577b8934056e7
4
+ data.tar.gz: 47a3aaeedff3d94049ce2014ba54a245483ed70b
5
5
  SHA512:
6
- metadata.gz: e3105c5c35e87cfde2c2aac891414e102088c9be65697713fb6a516e3c931153a71dcffbce01aa9edacf42e23333c276edbc7c643a296c25d32e915640ffcbd6
7
- data.tar.gz: 87a9b54347d05cfc0c86e814e5d2c026a106963b9ce8e33a2906fd0cba09d7b1ea3c2b6d794a99620c6dac2e63f5e9d42c6112c71a91ba34b39181296219e7b6
6
+ metadata.gz: de438fafb3676ba56c7221d43ac79ea3f8386ea232ac3672596c18790d81a72daafc22226d38a788ddde17352d9b1f6575f63de93c9e1456cd78270605ee27f2
7
+ data.tar.gz: 68134f6ea67a632c06aae0c7b4ec8611cb59e0b8f1acf22afeaabd91c963ba9150cfe0cf133d06f4769d27209450133347d2d37dfe9a2426d6dfc1d9f6d701bf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firebug (0.1.2)
4
+ firebug (0.1.3)
5
5
  actionpack (~> 5.0)
6
6
  activerecord (~> 5.0)
7
7
  ruby-mcrypt (~> 0.2)
@@ -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.ip || '', # ip_address can't be null
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
- p[:session_id] = generate_sid
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.ip
91
+ ip_address: req.remote_ip
92
92
  )
93
93
  end
94
94
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firebug
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: firebug
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Frase