lib/asciidoctor/doctest.rb in asciidoctor-doctest-1.5.2.0 vs lib/asciidoctor/doctest.rb in asciidoctor-doctest-2.0.0.beta.1

- old
+ new

@@ -1,30 +1,27 @@ require 'pathname' module Asciidoctor module DocTest - BUILTIN_EXAMPLES_PATH = Pathname.new( + @examples_path = Pathname.new( '../../data/examples/asciidoc').expand_path(__dir__).to_s.freeze - @examples_path = [ BUILTIN_EXAMPLES_PATH ] - - class << self - # @return [Array<String>] paths of the directories where to look for the - # examples suites. Use +unshift+ to add your paths before the built-in - # reference input examples (default: +["{asciidoctor-doctest}/data/examples/asciidoc"]+). - attr_accessor :examples_path + # @return [Array<String>] paths of the built-in input examples. It always + # returns a new array. + def self.examples_path + [ @examples_path ] end end end # Allow to use shorten module name. DocTest = Asciidoctor::DocTest unless defined? DocTest require 'asciidoctor/doctest/version' -require 'asciidoctor/doctest/base_example' -require 'asciidoctor/doctest/base_examples_suite' +require 'asciidoctor/doctest/example' require 'asciidoctor/doctest/generator' -require 'asciidoctor/doctest/generator_task' -require 'asciidoctor/doctest/test' -require 'asciidoctor/doctest/asciidoc/examples_suite' -require 'asciidoctor/doctest/html/examples_suite' +require 'asciidoctor/doctest/rake_tasks' +require 'asciidoctor/doctest/test_reporter' +require 'asciidoctor/doctest/tester' +require 'asciidoctor/doctest/io' +require 'asciidoctor/doctest/html/converter'