Sha256: e4f87e07ebd11f85e69e5dada799064ae71f9189d6806c062524977db149f708
Contents?: true
Size: 446 Bytes
Versions: 10
Compression:
Stored size: 446 Bytes
Contents
require 'sham_rack' ShamRack.at("airbrake.io") do |env| xml = env['rack.input'].read puts "Recieved the following exception:\n#{xml}" response = <<-end_xml <?xml version="1.0" encoding="UTF-8"?> <notice> <error-id type="integer">3799307</error-id> <url>http://sample.airbrake.io/errors/3799307/notices/643732254</url> <id type="integer">643732254</id> </notice> end_xml ["200 OK", { "Content-type" => "text/xml" }, response] end
Version data entries
10 entries across 5 versions & 1 rubygems