Sha256: f21b827224bfb63689e50506960f86e3f51df4a55768bd97263bbb8c8a8f2792
Contents?: true
Size: 450 Bytes
Versions: 4
Compression:
Stored size: 450 Bytes
Contents
require 'sham_rack' ProjectlockerErrata.configuration.logger = Logger.new STDOUT if defined?(ProjectlockerErrata) 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
4 entries across 4 versions & 1 rubygems