Sha256: 2202bf47158c4e9b076ff8921c1fe06f2ac5eda948471a3c41e7ea114754c372

Contents?: true

Size: 1.64 KB

Versions: 7

Compression:

Stored size: 1.64 KB

Contents

require 'active_support/concern'
require 'active_support/core_ext/string'
require 'forwardable'

require 'dox/config'
require 'dox/dsl/attr_proxy'
require 'dox/dsl/action'
require 'dox/dsl/documentation'
require 'dox/dsl/resource_group'
require 'dox/dsl/resource'
require 'dox/dsl/syntax'
require 'dox/entities/action'
require 'dox/entities/example'
require 'dox/entities/resource_group'
require 'dox/entities/resource'
require 'dox/errors/file_not_found_error'
require 'dox/errors/folder_not_found_error'
require 'dox/errors/invalid_action_error'
require 'dox/errors/invalid_resource_error'
require 'dox/errors/invalid_resource_group_error'
require 'dox/formatter'
require 'dox/formatters/base'
require 'dox/formatters/json'
require 'dox/formatters/multipart'
require 'dox/formatters/plain'
require 'dox/formatters/xml'
require 'dox/printers/base_printer'
require 'dox/printers/action_printer'
require 'dox/printers/document_printer'
require 'dox/printers/example_request_printer'
require 'dox/printers/example_response_printer'
require 'dox/printers/resource_group_printer'
require 'dox/printers/resource_printer'
require 'dox/util/http'
require 'dox/version'

module Dox
  Error = Class.new(StandardError)

  def self.configure
    yield(config) if block_given?
  end

  def self.config
    @config ||= Dox::Config.new
  end

  DEFAULT_HEADERS_WHITELIST = ['Accept', 'Content-Type'].freeze
  def self.full_headers_whitelist
    (config.headers_whitelist.to_a + DEFAULT_HEADERS_WHITELIST).uniq
  end

  RSpec.configure do |config|
    config.after(:each, :dox) do |example|
      example.metadata[:request] = request
      example.metadata[:response] = response
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dox-2.3.0 lib/dox.rb
dox-2.2.0 lib/dox.rb
dox-2.1.0 lib/dox.rb
dox-2.0.0 lib/dox.rb
dox-2.0.0.beta3 lib/dox.rb
dox-2.0.0.beta2 lib/dox.rb
dox-2.0.0.beta1 lib/dox.rb