bin/asciidoctor in asciidoctor-1.5.2 vs bin/asciidoctor in asciidoctor-1.5.3

- old
+ new

@@ -1,9 +1,13 @@ #!/usr/bin/env ruby require 'rubygems' if RUBY_VERSION < '1.9' -require File.join File.dirname(__FILE__), '../lib/asciidoctor' +if File.exist?(asciidoctor_lib_path = File.join(File.dirname(__FILE__), '../lib/asciidoctor')) + require asciidoctor_lib_path +else + require 'asciidoctor' +end require 'asciidoctor/cli' invoker = Asciidoctor::Cli::Invoker.new ARGV GC.start invoker.invoke!