Sha256: 1da70eb3a7d98d81e232e420eebe412699739ec47d4c6a2dad85d37a1896f2bb

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

require 'ostruct'
require 'rack/stripper'

class DummyWare

  def initialize(body)
    @body = body
  end

  def call(env)
    status = 200
    headers = {'Content-Type' => 'application/xml; charset=utf-8'}
    response = Rack::Response.new(@body, status, headers)
    response.to_a
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-stripper-1.1.1 spec/spec_helper.rb
rack-stripper-1.1.0 spec/spec_helper.rb
rack-stripper-1.0.1 spec/spec_helper.rb
rack-stripper-1.0.0 spec/spec_helper.rb