diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2017-04-09 19:46:03 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-09 19:46:03 -0600 |
| commit | ee3528ced1b7bcac39736223bfd5518cccf25eb7 (patch) | |
| tree | 14e22cff19caa3d7aaf271de0681fe53619ee380 | |
| parent | e9947967c6ba9f287b0b8f6e8bf01518b79b915c (diff) | |
autoload extensions source file when Asciidoctor::Extensions is referenced (PR #2114)
| -rw-r--r-- | lib/asciidoctor.rb | 1 | ||||
| -rw-r--r-- | test/extensions_test.rb | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/lib/asciidoctor.rb b/lib/asciidoctor.rb index c786a4e0..8a5d6c16 100644 --- a/lib/asciidoctor.rb +++ b/lib/asciidoctor.rb @@ -1604,6 +1604,7 @@ module Asciidoctor else autoload :VERSION, 'asciidoctor/version' autoload :Timings, 'asciidoctor/timings' + autoload :Extensions, 'asciidoctor/extensions' end end diff --git a/test/extensions_test.rb b/test/extensions_test.rb index 9773b67d..3aa7e6e9 100644 --- a/test/extensions_test.rb +++ b/test/extensions_test.rb @@ -3,7 +3,6 @@ unless defined? ASCIIDOCTOR_PROJECT_DIR $: << File.dirname(__FILE__); $:.uniq! require 'test_helper' end -require 'asciidoctor/extensions' class SamplePreprocessor < Asciidoctor::Extensions::Preprocessor def process doc, reader |
