Sha256: 851b64778e52d77553eb138a67c8b4d0bdc8746b895abb32e5a919a4dbb3fc4f

Contents?: true

Size: 390 Bytes

Versions: 29

Compression:

Stored size: 390 Bytes

Contents

class IPSocket
  def self.getaddress(host)
    case host
    when *%w{ buy-computer.us.bsb.empty.us chinaaircatering.com.bsb.empty.us
             206.230.42.212.opm.blitzed.us }
      "127.0.0.2"
    when *%w{ bofh.org.uk.multi.surbl.org www.bofh.org.uk.multi.surbl.org }
      "10.10.10.10"
    else
      raise SocketError.new("getaddrinfo: Name or service not known")
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
typo-5.4.4 test/mocks/test/dns_mock.rb
typo-5.4.3 test/mocks/test/dns_mock.rb
typo-5.4.2 test/mocks/test/dns_mock.rb
typo-5.4.1 test/mocks/test/dns_mock.rb
typo-5.4 test/mocks/test/dns_mock.rb
typo-3.99.0 test/mocks/test/dns_mock.rb
typo-3.99.3 test/mocks/test/dns_mock.rb
typo-3.99.1 test/mocks/test/dns_mock.rb
typo-3.99.2 test/mocks/test/dns_mock.rb
typo-4.0.1 test/mocks/test/dns_mock.rb
typo-4.0.0 test/mocks/test/dns_mock.rb
typo-3.99.4 test/mocks/test/dns_mock.rb
typo-4.0.2 test/mocks/test/dns_mock.rb
typo-4.1.1 test/mocks/test/dns_mock.rb
typo-4.0.3 test/mocks/test/dns_mock.rb
typo-5.0.2 test/mocks/test/dns_mock.rb
typo-4.1 test/mocks/test/dns_mock.rb
typo-5.0.1 test/mocks/test/dns_mock.rb
typo-5.0.3.98.1 test/mocks/test/dns_mock.rb
typo-5.0 test/mocks/test/dns_mock.rb