diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-08-12 12:42:36 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-08-12 16:09:36 +0200 |
commit | 6e5548ef9a522dfc9705d552a7444eeb613ac31f (patch) | |
tree | 80fd092d1cdb6eebec197d768b8f11f8f9f4e531 /lib | |
parent | 3e3d1cc187282102ad2e8484122a7838724a52d3 (diff) |
Add special API for JS, don't register implicitly after require
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asciidoctor/interdoc_reftext.rb | 11 | ||||
-rw-r--r-- | lib/asciidoctor/interdoc_reftext/version.rb | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/lib/asciidoctor/interdoc_reftext.rb b/lib/asciidoctor/interdoc_reftext.rb index dc884cb..165bd13 100644 --- a/lib/asciidoctor/interdoc_reftext.rb +++ b/lib/asciidoctor/interdoc_reftext.rb @@ -1,9 +1,12 @@ # frozen_string_literal: true -require 'asciidoctor' unless RUBY_PLATFORM == 'opal' -require 'asciidoctor/extensions' unless RUBY_PLATFORM == 'opal' require 'asciidoctor/interdoc_reftext/version' require 'asciidoctor/interdoc_reftext/processor' -Asciidoctor::Extensions.register do - treeprocessor Asciidoctor::InterdocReftext::Processor +unless RUBY_PLATFORM == 'opal' + require 'asciidoctor' + require 'asciidoctor/extensions' + + Asciidoctor::Extensions.register do + treeprocessor Asciidoctor::InterdocReftext::Processor + end end diff --git a/lib/asciidoctor/interdoc_reftext/version.rb b/lib/asciidoctor/interdoc_reftext/version.rb index 2913b0e..d52fde6 100644 --- a/lib/asciidoctor/interdoc_reftext/version.rb +++ b/lib/asciidoctor/interdoc_reftext/version.rb @@ -3,6 +3,6 @@ module Asciidoctor module InterdocReftext # Version of the asciidoctor-interdoc-reftext gem. - VERSION = '0.3.0'.freeze + VERSION = '0.3.0' end end |