Sha256: eddf00ab8331f294a8b7f151b99cfe625a640425bb5f1d4f303ff2e964fbae08

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

require 'colorin'
require 'stringio'
require 'rake'
require 'rake/tasklib'
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

1 entries across 1 versions & 1 rubygems

Version Path
rasti-web-api_doc-1.1.0 lib/rasti/web/api_doc.rb