Sha256: a6bc7d24edf824ca3fffc5b97b31bef4e23cbaa366226a9fe0624403c7e728e3

Contents?: true

Size: 468 Bytes

Versions: 14

Compression:

Stored size: 468 Bytes

Contents

module Rack
  class Recorder
    def initialize(app)
      @_app = app
      
      @@filepath ||= begin
        puts "Yo.  Starting app..."
        puts "Would ask you for a test name or recording path here."
        'something'
      end
    end
    
    def call(env)
      code, headers, body = @_app.call(env)
      
      puts "OK, that was fun."
      puts "Would save some request and response data here."
      
      [ code, headers, body ]
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
kiss-1.8.9 lib/kiss/rack/recorder.rb
kiss-1.8.8 lib/kiss/rack/recorder.rb
kiss-1.8.7 lib/kiss/rack/recorder.rb
kiss-1.8.6 lib/kiss/rack/recorder.rb
kiss-1.8.5 lib/kiss/rack/recorder.rb
kiss-1.8.4 lib/kiss/rack/recorder.rb
kiss-1.8.3 lib/kiss/rack/recorder.rb
kiss-1.8.2 lib/kiss/rack/recorder.rb
kiss-1.8.1 lib/kiss/rack/recorder.rb
kiss-1.8 lib/kiss/rack/recorder.rb
kiss-1.7.4 lib/kiss/rack/recorder.rb
kiss-1.7.2 lib/kiss/rack/recorder.rb
kiss-1.7.1 lib/kiss/rack/recorder.rb
kiss-1.7 lib/kiss/rack/recorder.rb