diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 14:44:15 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 14:44:15 +0000 |
commit | d7f792c6cf5f9dab870d0205de1a174863ca6a12 (patch) | |
tree | 5e85ad75b27ccd31c798e259e880864d865ce4c3 /lib/custodian/util/bytemark.rb | |
parent | 69acb34d89e05637f04531f4ba8903f1dd887383 (diff) |
Updated to test for more whitespace issues.
Diffstat (limited to 'lib/custodian/util/bytemark.rb')
-rw-r--r-- | lib/custodian/util/bytemark.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/util/bytemark.rb b/lib/custodian/util/bytemark.rb index 99079a1..c23b082 100644 --- a/lib/custodian/util/bytemark.rb +++ b/lib/custodian/util/bytemark.rb @@ -20,7 +20,7 @@ module Custodian # These are used to test if an alert refers to a machine outwith our # network. # - BYTEMARK_RANGES = %w(80.68.80.0/20 89.16.160.0/19 212.110.160.0/19 46.43.0.0/18 91.223.58.0/24 213.138.96.0/19 5.153.224.0/21 5.28.58.0/24 2001:41c8::/29 2001:41c9::/32).collect{|i| IPAddr.new(i)} + BYTEMARK_RANGES = %w(80.68.80.0/20 89.16.160.0/19 212.110.160.0/19 46.43.0.0/18 91.223.58.0/24 213.138.96.0/19 5.153.224.0/21 5.28.58.0/24 2001:41c8::/29 2001:41c9::/32).collect { |i| IPAddr.new(i) } # @@ -29,7 +29,7 @@ module Custodian def self.inside?(target) inside = false - if BYTEMARK_RANGES.any?{|range| range.include?(IPAddr.new(target))} + if BYTEMARK_RANGES.any? { |range| range.include?(IPAddr.new(target)) } inside = true end |