Sha256: 1efa72b65df49412f2bab52d7d56c3e103920c6b8eb07c8aff1c3db8888a2daf

Contents?: true

Size: 297 Bytes

Versions: 9

Compression:

Stored size: 297 Bytes

Contents

require 'rack/request'

module FakeSQS
  class ShowOutput

    def initialize(app)
      @app = app
    end

    def call(env)
      request = Rack::Request.new(env)
      result = @app.call(env)
      puts request.params.to_yaml
      puts
      puts *result.last
      result
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fake_sqs-0.1.0 lib/fake_sqs/show_output.rb
fake_sqs-0.0.11 lib/fake_sqs/show_output.rb
fake_sqs-0.0.10 lib/fake_sqs/show_output.rb
fake_sqs-0.0.9 lib/fake_sqs/show_output.rb
fake_sqs-0.0.8 lib/fake_sqs/show_output.rb
fake_sqs-0.0.7 lib/fake_sqs/show_output.rb
fake_sqs-0.0.6 lib/fake_sqs/show_output.rb
fake_sqs-0.0.5 lib/fake_sqs/show_output.rb
fake_sqs-0.0.4 lib/fake_sqs/show_output.rb