Sha256: a6fe7e01825d8a0f5392ef9e65e75eda7fe857f29c15de6b312cc8272ed77f79

Contents?: true

Size: 305 Bytes

Versions: 7

Compression:

Stored size: 305 Bytes

Contents

require 'rack'
require 'yaml'

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

7 entries across 7 versions & 1 rubygems

Version Path
fake_sqs-0.4.3 lib/fake_sqs/show_output.rb
fake_sqs-0.4.2 lib/fake_sqs/show_output.rb
fake_sqs-0.4.1 lib/fake_sqs/show_output.rb
fake_sqs-0.4.0 lib/fake_sqs/show_output.rb
fake_sqs-0.3.1 lib/fake_sqs/show_output.rb
fake_sqs-0.3.0 lib/fake_sqs/show_output.rb
fake_sqs-0.2.0 lib/fake_sqs/show_output.rb