Sha256: 17dcd88dd1bfbf87f45469f91114767bc15a65dd4602cddc1f105dac4da88969

Contents?: true

Size: 422 Bytes

Versions: 2

Compression:

Stored size: 422 Bytes

Contents

require 'sham_rack'

Pulse.configuration.logger = Logger.new STDOUT if defined?(Pulse)

ShamRack.at("errors.projectlocker.com") do |env|
  response = <<-end_xml
<notice>
<id>b6817316-9c45-ed26-45eb-780dbb86aadb</id>
<url>http://errors.projectlocker.com/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

2 entries across 2 versions & 1 rubygems

Version Path
projectlocker_pulse-1.0.0 features/support/projectlocker_pulse_shim.rb.template
projectlocker_pulse-0.2.1 features/support/projectlocker_pulse_shim.rb.template