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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef6c8ae1e1881ea7e83acd34654b9bb9c04f986f
4
- data.tar.gz: e71bb0ec5f5befe7b41ea12eb7cbb0510fecb3ba
3
+ metadata.gz: b34fdb57151c4e165b5b7a5b5cc4c7342a0da589
4
+ data.tar.gz: 50d6a8e6c124c072b44423a2cfc4eae8301764a0
5
5
  SHA512:
6
- metadata.gz: 7d4baa0cc89ea7ab978b78e8a293b16770c1c643fa090d19a76021b2f52cc99237768bd8e13279f16d2e61da2f0412ca0ed78d57570a6698165a47fe4d38df0a
7
- data.tar.gz: aa51002e6552cfbe37f8b36278265508c73b8bf132db3f070bb053fcaecc1c1b0d300025dd94ae415dd92a4c4424548d7ce49ec2957f2cbc7b705e3c9b8d20d3
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.5)
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.1)
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.10.3)
54
- nokogiri (1.8.1)
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.3)
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.4)
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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firebug
4
- VERSION = '0.1.5'
4
+ VERSION = '0.1.6'
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Frase