lib/moocher/ip.rb in moocher-0.1.1.5pre vs lib/moocher/ip.rb in moocher-0.1.1.6pre

- old
+ new

@@ -3,10 +3,10 @@ module Moocher module Ip def ip_blacklisted?(ipaddress) - return "IP Address doesn't seem to be valid." if IPAddress.valid? ipaddress + return "IP Address doesn't seem to be valid." if !(IPAddress.valid? ipaddress) base_url = 'https://api.moocher.io/badip/IPV4/' response = HTTParty.get(base_url + ipaddress) response.success? end end