auth-centric-firewall 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4aaee64523ce2fb36940c58636c981e7f698308eb0a5728d84c6f61a0bf8cda
4
- data.tar.gz: 557e0a2fd78b20ba19be9127fa491e973658c5cc54709cb67d88055a1120e881
3
+ metadata.gz: ca995973ab2610a6ace9e674dcaa91da867fbb2a2fe970fa7b74eda6cd783642
4
+ data.tar.gz: cd90ab38577f939d0610b138784e5b1b9a4052e97195f0e5c392b84a0cdb1dbf
5
5
  SHA512:
6
- metadata.gz: '04978392b67959a7f1b6176c991f22dacfd740a4249daa0694ff5ec467bfdf16bbf7f2b2066ec717b281e7cb420af3d1a74f083abaa67da7fd3d7ca6cf34f39c'
7
- data.tar.gz: c72a5c8482d39c22ef23d8c68194295c49ea843ac75576808668a1b01bc74bd3ca28381b2cdb30f302c826a6f7a609974f42e9249691f9547dde288bc9846b2c
6
+ metadata.gz: ec9f2e8d1ad101dc2dc3f5ff61e0c75fe6651b05158d8eeb3561b9b14ca2b31c718c198ea99e467709e42240ac9ce640fc091f9a0c40d07cf74181c156e5bcfb
7
+ data.tar.gz: ffee61e70899f713db3bc698c24162f06f463d8d12f60fe90c06f647dd7f172c063a5cbd81126848725f0ae513e5d5fc05511a4b038f876c9088f2344cc24726
@@ -21,7 +21,7 @@ module Auth
21
21
  end
22
22
 
23
23
  def ip(request)
24
- @ip ||= InternetProtocol.new(request).ip
24
+ @ip ||= ::Auth::Centric::Firewall::InternetProtocol.new(request).ip
25
25
  end
26
26
  end
27
27
  end
@@ -5,6 +5,8 @@ module Auth
5
5
  module Firewall
6
6
  # Takes the incoming request and extracts
7
7
  class CaptureRequest
8
+ include ::Auth::Centric::Common::Settings
9
+
8
10
  def initialize(request)
9
11
  @request = request
10
12
  nil
@@ -12,7 +12,7 @@ module Auth
12
12
  end
13
13
 
14
14
  def ip
15
- return @ip unless @ip.blank?
15
+ return @ip unless @ip.nil?
16
16
 
17
17
  @ip = @request.env['HTTP_X_REAL_IP'] || @request.env['HTTP_X_FORWARDED_FOR'] || @request.remote_ip
18
18
  return @ip unless @ip.include?(',')
@@ -3,7 +3,7 @@
3
3
  module Auth
4
4
  module Centric
5
5
  module Firewall
6
- VERSION = '0.2.4'
6
+ VERSION = '0.2.5'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auth-centric-firewall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saimon Lovell