lib/where.rb in where-0.0.1 vs lib/where.rb in where-0.0.2

- old
+ new

@@ -1,14 +1,14 @@ +require "where/version" require 'where/base' require 'where/address' require 'where/ip_address' -module Where - def self.is(address = "") - address ||= "" - if address.match(/^(\d{1,3}\.){3}\d{1,3}$/) - Where::IpAddress.geocode address +module Where + def self.is(address = "", opts={}) + if address.to_s.match(/^(\d{1,3}\.){3}\d{1,3}$/) + Where::IpAddress.geocode(address, opts) else - Where::Address.geocode address - end + Where::Address.geocode(address, opts) + end end -end \ No newline at end of file +end