summaryrefslogtreecommitdiff
path: root/lib/asciidoctor
diff options
context:
space:
mode:
Diffstat (limited to 'lib/asciidoctor')
-rw-r--r--lib/asciidoctor/interdoc_reftext.rb11
-rw-r--r--lib/asciidoctor/interdoc_reftext/version.rb2
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