def ping
      return true unless Pingr.mode == :live
      uri     = URI.parse("http://#{search_engine}.com/#{ping_path}")
      http    = Net::HTTP.new(uri.host, uri.port)
      request = Net::HTTP::Get.new(uri.request_uri)
      response = http.request(request)
      if response.code.to_s =~ /200|301/
        logger.info "Pinged #{search_engine} Successfully - #{Time.now}"
        return true
      else
        logger.warn "Error pinging #{search_engine}! (response code: #{response.code})- #{Time.now}"
        return false
      end
    end
def ping
      return true unless Pingr.mode == :live
      uri     = URI.parse("http://#{search_engine}.com/#{ping_path}")
      http    = Net::HTTP.new(uri.host, uri.port)
      request = Net::HTTP::Get.new(uri.request_uri)
      response = http.request(request)
      if response.code.to_s =~ /200|301/
        logger.info "Pinged #{search_engine} Successfully - #{Time.now}"
        return true
      else
        logger.warn "Error pinging #{search_engine}! (response code: #{response.code})- #{Time.now}"
        return false
      end
    end
Public: Perform the ping request (if in :live mode)
 Logs the success/failure of the ping in logger.

 Returns true if ping was a success
 Returns false if ping was not successful