Sha256: cb5c0295027eb51065aa126d3f7d863ddb2f6196204c45ca825deb2cae3697d3

Contents?: true

Size: 333 Bytes

Versions: 4

Compression:

Stored size: 333 Bytes

Contents

require 'sham_rack'

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

Version Path
airbrake-3.1.10 features/support/airbrake_shim.rb.template
airbrake-3.1.9 features/support/airbrake_shim.rb.template
airbrake-3.1.8 features/support/airbrake_shim.rb.template
airbrake-3.1.7 features/support/airbrake_shim.rb.template