Sha256: 185983496dc9319c492a7224b7e21ba273db32993f96ece6f0b86afbf56047e6

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

# Needed because running outside Gem
# XXX Is there a better way to deal with this?
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))

require "yard-rest-plugin/base_helper"

YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/../templates'
# TODO: Check ruby version and support ruby 1.9 in future
YARD::Parser::SourceParser.parser_type = :ruby18

# Define custom tags
YARD::Tags::Library.define_tag("URL for Service", :url)
YARD::Tags::Library.define_tag("Topic for Service", :topic)
YARD::Tags::Library.define_tag("Arguments", :argument, :with_types_and_name)
YARD::Tags::Library.define_tag("Example Request", :example_request)
YARD::Tags::Library.define_tag("Request Fields", :request_field, :with_types_and_name)
YARD::Tags::Library.define_tag("Example Response", :example_response)
YARD::Tags::Library.define_tag("Response Fields", :response_field, :with_types_and_name)
YARD::Tags::Library.define_tag("Headers", :header, :with_name)
YARD::Tags::Library.define_tag("Response codes", :response_code, :with_name)
YARD::Tags::Library.define_tag("Image", :image)
YARD::Tags::Library.define_tag("Overall", :overall)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yard-rest-plugin-0.2.5 lib/yard-rest-plugin.rb
yard-rest-plugin-0.2.4 lib/yard-rest-plugin.rb