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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a2a2fd3d79386783aa0f21d22a577b8934056e7
4
- data.tar.gz: 47a3aaeedff3d94049ce2014ba54a245483ed70b
3
+ metadata.gz: 69cfa23d0d545d5872bdb14c5a7765e2805d6d37
4
+ data.tar.gz: '09242ef207f5c2576f67413a6f3fc939899d36ba'
5
5
  SHA512:
6
- metadata.gz: de438fafb3676ba56c7221d43ac79ea3f8386ea232ac3672596c18790d81a72daafc22226d38a788ddde17352d9b1f6575f63de93c9e1456cd78270605ee27f2
7
- data.tar.gz: 68134f6ea67a632c06aae0c7b4ec8611cb59e0b8f1acf22afeaabd91c963ba9150cfe0cf133d06f4769d27209450133347d2d37dfe9a2426d6dfc1d9f6d701bf
6
+ metadata.gz: b87db7bd612ad76f69302c83705d35bc30de23cbbb587b163f03ca687540e0e2869435d9b9d7b04d931708425336906637aff1b808bf3ba6ed40f2ac82868f2d
7
+ data.tar.gz: 8de211aadea06efc8a5dd6976175fdc5b64f507eb3b7ed9b24687d07f4fd4cb92a8866fae2ecb20db82a23335107db250d452233ef6aada4e94510f7bd886497
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- firebug (0.1.3)
4
+ firebug (0.1.4)
5
5
  actionpack (~> 5.0)
6
6
  activerecord (~> 5.0)
7
7
  ruby-mcrypt (~> 0.2)
@@ -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
- p = { session_id: sid }
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
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Firebug
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Frase