Sha256: b871ce15080afbae340b11a6cd411402d36a99055cf5fabe4b6392ff44f3cba7

Contents?: true

Size: 693 Bytes

Versions: 2

Compression:

Stored size: 693 Bytes

Contents

require 'colorize'
require 'stringio'
require 'rake'
require 'rack/test'
require 'rasti/web'

require 'rasti/web/api_doc/request'
require 'rasti/web/api_doc/response'
require 'rasti/web/api_doc/task'
require 'rasti/web/api_doc/tracker'
require 'rasti/web/api_doc/version'

module Rasti
  module Web
    module ApiDoc
      
      def self.tracker
        @tracker
      end

      def self.tracker=(tracker)
        @tracker = tracker
      end

    end
  end
end

module Rack
  class MockSession

    alias_method :__request__, :request
    
    def request(uri, env)
      response = __request__ uri, env
      Rasti::Web::ApiDoc.tracker.track env, response
      response
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rasti-web-api_doc-0.1.1 lib/rasti/web/api_doc.rb
rasti-web-api_doc-0.1.0 lib/rasti/web/api_doc.rb