Sha256: d7745434712804223bf6512708498c6d26066471232357e12857e6c8527e0e5d

Contents?: true

Size: 716 Bytes

Versions: 3

Compression:

Stored size: 716 Bytes

Contents

require 'colorize'
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

3 entries across 3 versions & 1 rubygems

Version Path
rasti-web-api_doc-1.0.1 lib/rasti/web/api_doc.rb
rasti-web-api_doc-1.0.0 lib/rasti/web/api_doc.rb
rasti-web-api_doc-0.1.2 lib/rasti/web/api_doc.rb