Sha256: 8b19866c824197928123dbd2fc0ecb17c6ff3bed0a9fdfb551fb72c871fb7eee
Contents?: true
Size: 406 Bytes
Versions: 4
Compression:
Stored size: 406 Bytes
Contents
require 'sham_rack' Airbrake.configuration.logger = Logger.new STDOUT if defined?(Airbrake) ShamRack.at("api.airbrake.io") do |env| response = <<-end_xml <notice> <id>b6817316-9c45-ed26-45eb-780dbb86aadb</id> <url>http://airbrake.io/locate/b6817316-9c45-ed26-45eb-780dbb86aadb</url> </notice> Request: #{env["rack.input"].read} end_xml ["200 OK", { "Content-type" => "text/xml" }, [response]] end
Version data entries
4 entries across 4 versions & 1 rubygems