asciidoctor 1.5.6.2 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of asciidoctor might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.adoc +330 -143
- data/README-fr.adoc +441 -0
- data/README-jp.adoc +418 -0
- data/README-zh_CN.adoc +430 -0
- data/README.adoc +454 -0
- data/Rakefile +57 -0
- data/asciidoctor.gemspec +7 -1
- data/data/locale/attributes-ar.adoc +22 -0
- data/data/locale/attributes-bg.adoc +22 -0
- data/data/locale/attributes-ca.adoc +22 -0
- data/data/locale/attributes-cs.adoc +22 -0
- data/data/locale/attributes-da.adoc +22 -0
- data/data/locale/attributes-de.adoc +22 -0
- data/data/locale/attributes-en.adoc +23 -0
- data/data/locale/attributes-es.adoc +22 -0
- data/data/locale/attributes-fa.adoc +22 -0
- data/data/locale/attributes-fi.adoc +22 -0
- data/data/locale/attributes-fr.adoc +22 -0
- data/data/locale/attributes-hu.adoc +22 -0
- data/data/locale/attributes-id.adoc +22 -0
- data/data/locale/attributes-it.adoc +22 -0
- data/data/locale/attributes-ja.adoc +22 -0
- data/data/locale/attributes-kr.adoc +22 -0
- data/data/locale/attributes-nb.adoc +22 -0
- data/data/locale/attributes-nl.adoc +22 -0
- data/data/locale/attributes-nn.adoc +22 -0
- data/data/locale/attributes-pl.adoc +22 -0
- data/data/locale/attributes-pt.adoc +22 -0
- data/data/locale/attributes-pt_BR.adoc +22 -0
- data/data/locale/attributes-ro.adoc +22 -0
- data/data/locale/attributes-ru.adoc +22 -0
- data/data/locale/attributes-sr.adoc +22 -0
- data/data/locale/attributes-sr_Latn.adoc +22 -0
- data/data/locale/attributes-tr.adoc +22 -0
- data/data/locale/attributes-uk.adoc +22 -0
- data/data/locale/attributes-zh_CN.adoc +22 -0
- data/data/locale/attributes-zh_TW.adoc +22 -0
- data/data/locale/attributes.adoc +8 -649
- data/data/stylesheets/asciidoctor-default.css +77 -72
- data/features/xref.feature +366 -7
- data/lib/asciidoctor.rb +107 -93
- data/lib/asciidoctor/abstract_block.rb +247 -239
- data/lib/asciidoctor/abstract_node.rb +56 -58
- data/lib/asciidoctor/block.rb +3 -3
- data/lib/asciidoctor/callouts.rb +1 -1
- data/lib/asciidoctor/cli/invoker.rb +36 -9
- data/lib/asciidoctor/cli/options.rb +63 -25
- data/lib/asciidoctor/converter.rb +23 -13
- data/lib/asciidoctor/converter/base.rb +4 -0
- data/lib/asciidoctor/converter/docbook45.rb +16 -9
- data/lib/asciidoctor/converter/docbook5.rb +115 -97
- data/lib/asciidoctor/converter/factory.rb +29 -31
- data/lib/asciidoctor/converter/html5.rb +229 -192
- data/lib/asciidoctor/converter/manpage.rb +72 -50
- data/lib/asciidoctor/converter/template.rb +12 -12
- data/lib/asciidoctor/core_ext.rb +5 -1
- data/lib/asciidoctor/core_ext/1.8.7/base64/strict_encode64.rb +6 -0
- data/lib/asciidoctor/document.rb +168 -77
- data/lib/asciidoctor/extensions.rb +79 -47
- data/lib/asciidoctor/helpers.rb +33 -11
- data/lib/asciidoctor/inline.rb +3 -2
- data/lib/asciidoctor/list.rb +2 -1
- data/lib/asciidoctor/logging.rb +122 -0
- data/lib/asciidoctor/parser.rb +406 -382
- data/lib/asciidoctor/path_resolver.rb +169 -162
- data/lib/asciidoctor/reader.rb +166 -121
- data/lib/asciidoctor/section.rb +45 -28
- data/lib/asciidoctor/stylesheets.rb +13 -5
- data/lib/asciidoctor/substitutors.rb +328 -254
- data/lib/asciidoctor/table.rb +105 -48
- data/lib/asciidoctor/timings.rb +34 -6
- data/lib/asciidoctor/version.rb +1 -1
- data/man/asciidoctor.1 +41 -23
- data/man/asciidoctor.adoc +14 -8
- data/test/api_test.rb +1004 -0
- data/test/attributes_test.rb +241 -50
- data/test/blocks_test.rb +549 -124
- data/test/converter_test.rb +170 -78
- data/test/document_test.rb +208 -767
- data/test/extensions_test.rb +188 -53
- data/test/fixtures/custom-backends/slim/html5/block_paragraph.html.slim +1 -1
- data/test/fixtures/custom-backends/slim/html5/block_sidebar.html.slim +1 -1
- data/test/fixtures/file-with-missing-include.adoc +1 -0
- data/test/fixtures/include-file.jsx +8 -0
- data/test/fixtures/lists.adoc +96 -0
- data/test/fixtures/other-chapters.adoc +11 -0
- data/test/fixtures/outer-include.adoc +5 -0
- data/test/fixtures/sample.asciidoc +5 -1
- data/test/fixtures/subdir/index.adoc +3 -0
- data/test/fixtures/subdir/inner-include.adoc +3 -0
- data/test/fixtures/subdir/middle-include.adoc +5 -0
- data/test/fixtures/tagged-class-enclosed.rb +0 -1
- data/test/fixtures/unclosed-tag.adoc +3 -0
- data/test/fixtures/unexpected-end-tag.adoc +4 -0
- data/test/invoker_test.rb +101 -40
- data/test/links_test.rb +266 -72
- data/test/lists_test.rb +243 -45
- data/test/logger_test.rb +211 -0
- data/test/manpage_test.rb +124 -6
- data/test/options_test.rb +46 -1
- data/test/paragraphs_test.rb +23 -10
- data/test/parser_test.rb +30 -1
- data/test/paths_test.rb +115 -33
- data/test/preamble_test.rb +1 -1
- data/test/reader_test.rb +337 -81
- data/test/sections_test.rb +656 -72
- data/test/substitutions_test.rb +182 -57
- data/test/tables_test.rb +324 -57
- data/test/test_helper.rb +77 -32
- data/test/text_test.rb +7 -7
- metadata +67 -3
    
        data/test/test_helper.rb
    CHANGED
    
    | @@ -1,5 +1,6 @@ | |
| 1 1 | 
             
            # encoding: UTF-8
         | 
| 2 | 
            -
             | 
| 2 | 
            +
            ASCIIDOCTOR_TEST_DIR = File.expand_path File.dirname __FILE__
         | 
| 3 | 
            +
            ASCIIDOCTOR_PROJECT_DIR = File.dirname ASCIIDOCTOR_TEST_DIR
         | 
| 3 4 | 
             
            Dir.chdir ASCIIDOCTOR_PROJECT_DIR
         | 
| 4 5 |  | 
| 5 6 | 
             
            if RUBY_VERSION < '1.9'
         | 
| @@ -12,6 +13,7 @@ require File.join(ASCIIDOCTOR_PROJECT_DIR, 'lib', 'asciidoctor') | |
| 12 13 |  | 
| 13 14 | 
             
            require 'socket'
         | 
| 14 15 | 
             
            require 'nokogiri'
         | 
| 16 | 
            +
            require 'tempfile'
         | 
| 15 17 | 
             
            require 'tmpdir'
         | 
| 16 18 |  | 
| 17 19 | 
             
            autoload :FileUtils, 'fileutils'
         | 
| @@ -31,7 +33,7 @@ class Minitest::Test | |
| 31 33 | 
             
              end
         | 
| 32 34 |  | 
| 33 35 | 
             
              def disk_root
         | 
| 34 | 
            -
                 | 
| 36 | 
            +
                %(#{windows? ? ASCIIDOCTOR_PROJECT_DIR.split('/')[0] : ''}/)
         | 
| 35 37 | 
             
              end
         | 
| 36 38 |  | 
| 37 39 | 
             
              def empty_document options = {}
         | 
| @@ -60,29 +62,20 @@ class Minitest::Test | |
| 60 62 | 
             
                fixture_path(name)
         | 
| 61 63 | 
             
              end
         | 
| 62 64 |  | 
| 63 | 
            -
              def  | 
| 64 | 
            -
                 | 
| 65 | 
            +
              def testdir
         | 
| 66 | 
            +
                ASCIIDOCTOR_TEST_DIR
         | 
| 65 67 | 
             
              end
         | 
| 66 68 |  | 
| 67 | 
            -
              def  | 
| 68 | 
            -
                 | 
| 69 | 
            +
              def fixturedir
         | 
| 70 | 
            +
                File.join testdir, 'fixtures'
         | 
| 69 71 | 
             
              end
         | 
| 70 72 |  | 
| 71 | 
            -
              def  | 
| 72 | 
            -
                 | 
| 73 | 
            -
             | 
| 74 | 
            -
                exps = expressions.map { |e|
         | 
| 75 | 
            -
                  e.respond_to?(:call) ? e : lambda { eval(e, block.binding) }
         | 
| 76 | 
            -
                }
         | 
| 77 | 
            -
                before = exps.map { |e| e.call }
         | 
| 78 | 
            -
             | 
| 79 | 
            -
                yield
         | 
| 73 | 
            +
              def fixture_path name
         | 
| 74 | 
            +
                File.join fixturedir, name
         | 
| 75 | 
            +
              end
         | 
| 80 76 |  | 
| 81 | 
            -
             | 
| 82 | 
            -
             | 
| 83 | 
            -
                  error  = "#{message}.\n#{error}" if message
         | 
| 84 | 
            -
                  assert_equal(before[i] + difference, e.call, error)
         | 
| 85 | 
            -
                end
         | 
| 77 | 
            +
              def example_document(name, opts = {})
         | 
| 78 | 
            +
                document_from_string IO.read(sample_doc_path(name)), opts
         | 
| 86 79 | 
             
              end
         | 
| 87 80 |  | 
| 88 81 | 
             
              def xmlnodes_at_css(css, content, count = nil)
         | 
| @@ -143,6 +136,35 @@ class Minitest::Test | |
| 143 136 | 
             
                end
         | 
| 144 137 | 
             
              end
         | 
| 145 138 |  | 
| 139 | 
            +
              def assert_message logger, severity, expected_message, kind = String, idx = nil
         | 
| 140 | 
            +
                unless idx
         | 
| 141 | 
            +
                  assert_equal 1, logger.messages.size
         | 
| 142 | 
            +
                  idx = 0
         | 
| 143 | 
            +
                end
         | 
| 144 | 
            +
                message = logger.messages[idx]
         | 
| 145 | 
            +
                assert_equal severity, message[:severity]
         | 
| 146 | 
            +
                assert_kind_of kind, message[:message]
         | 
| 147 | 
            +
                if kind == String
         | 
| 148 | 
            +
                  actual_message = message[:message]
         | 
| 149 | 
            +
                else
         | 
| 150 | 
            +
                  refute_nil message[:message][:source_location]
         | 
| 151 | 
            +
                  actual_message = message[:message].inspect
         | 
| 152 | 
            +
                end
         | 
| 153 | 
            +
                if expected_message.start_with? '~'
         | 
| 154 | 
            +
                  assert_includes actual_message, expected_message[1..-1]
         | 
| 155 | 
            +
                else
         | 
| 156 | 
            +
                  assert_equal expected_message, actual_message
         | 
| 157 | 
            +
                end
         | 
| 158 | 
            +
              end
         | 
| 159 | 
            +
             | 
| 160 | 
            +
              def assert_messages logger, expected_messages
         | 
| 161 | 
            +
                assert_equal expected_messages.size, logger.messages.size
         | 
| 162 | 
            +
                expected_messages.each_with_index do |expected_message_details, idx|
         | 
| 163 | 
            +
                  severity, expected_message, kind = expected_message_details
         | 
| 164 | 
            +
                  assert_message logger, severity, expected_message, (kind || String), idx
         | 
| 165 | 
            +
                end
         | 
| 166 | 
            +
              end
         | 
| 167 | 
            +
             | 
| 146 168 | 
             
              def xmldoc_from_string(content)
         | 
| 147 169 | 
             
                if content.match(RE_XMLNS_ATTRIBUTE)
         | 
| 148 170 | 
             
                  Nokogiri::XML::Document.parse(content)
         | 
| @@ -173,10 +195,10 @@ class Minitest::Test | |
| 173 195 | 
             
              def render_string(src, opts = {})
         | 
| 174 196 | 
             
                keep_namespaces = opts.delete(:keep_namespaces)
         | 
| 175 197 | 
             
                if keep_namespaces
         | 
| 176 | 
            -
                  document_from_string(src, opts). | 
| 198 | 
            +
                  document_from_string(src, opts).convert
         | 
| 177 199 | 
             
                else
         | 
| 178 200 | 
             
                  # this is required because nokogiri is ignorant
         | 
| 179 | 
            -
                  result = document_from_string(src, opts). | 
| 201 | 
            +
                  result = document_from_string(src, opts).convert
         | 
| 180 202 | 
             
                  result = result.sub(RE_XMLNS_ATTRIBUTE, '') if result
         | 
| 181 203 | 
             
                  result
         | 
| 182 204 | 
             
                end
         | 
| @@ -184,12 +206,12 @@ class Minitest::Test | |
| 184 206 |  | 
| 185 207 | 
             
              def render_embedded_string(src, opts = {})
         | 
| 186 208 | 
             
                opts[:header_footer] = false
         | 
| 187 | 
            -
                document_from_string(src, opts). | 
| 209 | 
            +
                document_from_string(src, opts).convert
         | 
| 188 210 | 
             
              end
         | 
| 189 211 |  | 
| 190 212 | 
             
              def render_inline_string(src, opts = {})
         | 
| 191 213 | 
             
                opts[:doctype] = :inline
         | 
| 192 | 
            -
                document_from_string(src, opts). | 
| 214 | 
            +
                document_from_string(src, opts).convert
         | 
| 193 215 | 
             
              end
         | 
| 194 216 |  | 
| 195 217 | 
             
              def parse_header_metadata(source, doc = nil)
         | 
| @@ -211,7 +233,6 @@ class Minitest::Test | |
| 211 233 | 
             
                end
         | 
| 212 234 | 
             
                if (template_dir = ENV['TEMPLATE_DIR'])
         | 
| 213 235 | 
             
                  opts[:template_dir] = template_dir unless opts.has_key? :template_dir
         | 
| 214 | 
            -
                  #opts[:template_dir] = File.join(File.dirname(__FILE__), '..', '..', 'asciidoctor-backends', 'erb') unless opts.has_key? :template_dir
         | 
| 215 236 | 
             
                end
         | 
| 216 237 | 
             
                nil
         | 
| 217 238 | 
             
              end
         | 
| @@ -230,14 +251,13 @@ class Minitest::Test | |
| 230 251 | 
             
              end
         | 
| 231 252 |  | 
| 232 253 | 
             
              def invoke_cli_with_filenames(argv = [], filenames = [], &block)
         | 
| 233 | 
            -
             | 
| 234 254 | 
             
                filepaths = Array.new
         | 
| 235 255 |  | 
| 236 | 
            -
                filenames.each { | 
| 237 | 
            -
                  if filenames.nil | 
| 238 | 
            -
                    filepaths | 
| 256 | 
            +
                filenames.each {|filename|
         | 
| 257 | 
            +
                  if filenames.nil? || ::Pathname.new(filename).absolute?
         | 
| 258 | 
            +
                    filepaths << filename
         | 
| 239 259 | 
             
                  else
         | 
| 240 | 
            -
                    filepaths | 
| 260 | 
            +
                    filepaths << (fixture_path filename)
         | 
| 241 261 | 
             
                  end
         | 
| 242 262 | 
             
                }
         | 
| 243 263 |  | 
| @@ -255,7 +275,7 @@ class Minitest::Test | |
| 255 275 | 
             
                if filename.nil? || filename == '-' || ::Pathname.new(filename).absolute?
         | 
| 256 276 | 
             
                  filepath = filename
         | 
| 257 277 | 
             
                else
         | 
| 258 | 
            -
                  filepath =  | 
| 278 | 
            +
                  filepath = fixture_path filename
         | 
| 259 279 | 
             
                end
         | 
| 260 280 | 
             
                invoker = Asciidoctor::Cli::Invoker.new(argv + [filepath])
         | 
| 261 281 | 
             
                if buffers
         | 
| @@ -268,9 +288,14 @@ class Minitest::Test | |
| 268 288 | 
             
              def redirect_streams
         | 
| 269 289 | 
             
                old_stdout, $stdout = $stdout, (tmp_stdout = ::StringIO.new)
         | 
| 270 290 | 
             
                old_stderr, $stderr = $stderr, (tmp_stderr = ::StringIO.new)
         | 
| 291 | 
            +
                old_logger = Asciidoctor::LoggerManager.logger
         | 
| 292 | 
            +
                old_logger_level = old_logger.level
         | 
| 293 | 
            +
                new_logger = (Asciidoctor::LoggerManager.logger = Asciidoctor::Logger.new $stderr)
         | 
| 294 | 
            +
                new_logger.level = old_logger_level
         | 
| 271 295 | 
             
                yield tmp_stdout, tmp_stderr
         | 
| 272 296 | 
             
              ensure
         | 
| 273 297 | 
             
                $stdout, $stderr = old_stdout, old_stderr
         | 
| 298 | 
            +
                Asciidoctor::LoggerManager.logger = old_logger
         | 
| 274 299 | 
             
              end
         | 
| 275 300 |  | 
| 276 301 | 
             
              def resolve_localhost
         | 
| @@ -278,9 +303,29 @@ class Minitest::Test | |
| 278 303 | 
             
                    Socket.ip_address_list.find {|addr| addr.ipv4? }.ip_address
         | 
| 279 304 | 
             
              end
         | 
| 280 305 |  | 
| 306 | 
            +
              def using_memory_logger
         | 
| 307 | 
            +
                old_logger = Asciidoctor::LoggerManager.logger
         | 
| 308 | 
            +
                memory_logger = Asciidoctor::MemoryLogger.new
         | 
| 309 | 
            +
                begin
         | 
| 310 | 
            +
                  Asciidoctor::LoggerManager.logger = memory_logger
         | 
| 311 | 
            +
                  yield memory_logger
         | 
| 312 | 
            +
                ensure
         | 
| 313 | 
            +
                  Asciidoctor::LoggerManager.logger = old_logger
         | 
| 314 | 
            +
                end
         | 
| 315 | 
            +
              end
         | 
| 316 | 
            +
             | 
| 317 | 
            +
              def in_verbose_mode
         | 
| 318 | 
            +
                begin
         | 
| 319 | 
            +
                  old_verbose, $VERBOSE = $VERBOSE, true
         | 
| 320 | 
            +
                  yield
         | 
| 321 | 
            +
                ensure
         | 
| 322 | 
            +
                  $VERBOSE = old_verbose
         | 
| 323 | 
            +
                end
         | 
| 324 | 
            +
              end
         | 
| 325 | 
            +
             | 
| 281 326 | 
             
              def using_test_webserver host = resolve_localhost, port = 9876
         | 
| 282 327 | 
             
                server = TCPServer.new host, port
         | 
| 283 | 
            -
                base_dir =  | 
| 328 | 
            +
                base_dir = testdir
         | 
| 284 329 | 
             
                t = Thread.new do
         | 
| 285 330 | 
             
                  while (session = server.accept)
         | 
| 286 331 | 
             
                    request = session.gets
         | 
    
        data/test/text_test.rb
    CHANGED
    
    | @@ -6,25 +6,25 @@ end | |
| 6 6 |  | 
| 7 7 | 
             
            context "Text" do
         | 
| 8 8 | 
             
              test "proper encoding to handle utf8 characters in document using html backend" do
         | 
| 9 | 
            -
                output = example_document(:encoding). | 
| 9 | 
            +
                output = example_document(:encoding).convert
         | 
| 10 10 | 
             
                assert_xpath '//p', output, 4
         | 
| 11 11 | 
             
                assert_xpath '//a', output, 1
         | 
| 12 12 | 
             
              end
         | 
| 13 13 |  | 
| 14 14 | 
             
              test "proper encoding to handle utf8 characters in embedded document using html backend" do
         | 
| 15 | 
            -
                output = example_document(:encoding, :header_footer => false). | 
| 15 | 
            +
                output = example_document(:encoding, :header_footer => false).convert
         | 
| 16 16 | 
             
                assert_xpath '//p', output, 4
         | 
| 17 17 | 
             
                assert_xpath '//a', output, 1
         | 
| 18 18 | 
             
              end
         | 
| 19 19 |  | 
| 20 20 | 
             
              test "proper encoding to handle utf8 characters in document using docbook45 backend" do
         | 
| 21 | 
            -
                output = example_document(:encoding, :attributes => {'backend' => 'docbook45', 'xmlns' => ''}). | 
| 21 | 
            +
                output = example_document(:encoding, :attributes => {'backend' => 'docbook45', 'xmlns' => ''}).convert
         | 
| 22 22 | 
             
                assert_xpath '//xmlns:simpara', output, 4
         | 
| 23 23 | 
             
                assert_xpath '//xmlns:ulink', output, 1
         | 
| 24 24 | 
             
              end
         | 
| 25 25 |  | 
| 26 26 | 
             
              test "proper encoding to handle utf8 characters in embedded document using docbook45 backend" do
         | 
| 27 | 
            -
                output = example_document(:encoding, :header_footer => false, :attributes => {'backend' => 'docbook45'}). | 
| 27 | 
            +
                output = example_document(:encoding, :header_footer => false, :attributes => {'backend' => 'docbook45'}).convert
         | 
| 28 28 | 
             
                assert_xpath '//simpara', output, 4
         | 
| 29 29 | 
             
                assert_xpath '//ulink', output, 1
         | 
| 30 30 | 
             
              end
         | 
| @@ -37,17 +37,17 @@ context "Text" do | |
| 37 37 | 
             
                doc = empty_document
         | 
| 38 38 | 
             
                reader = Asciidoctor::PreprocessorReader.new doc, input, nil, :normalize => true
         | 
| 39 39 | 
             
                block = Asciidoctor::Parser.next_block(reader, doc)
         | 
| 40 | 
            -
                assert_xpath '//pre', block. | 
| 40 | 
            +
                assert_xpath '//pre', block.convert.gsub(/^\s*\n/, ''), 1
         | 
| 41 41 | 
             
              end
         | 
| 42 42 |  | 
| 43 43 | 
             
              test 'proper encoding to handle utf8 characters from included file' do
         | 
| 44 44 | 
             
                input = <<-EOS
         | 
| 45 45 | 
             
            include::fixtures/encoding.asciidoc[tags=romé]
         | 
| 46 46 | 
             
                EOS
         | 
| 47 | 
            -
                doc = empty_safe_document :base_dir =>  | 
| 47 | 
            +
                doc = empty_safe_document :base_dir => testdir
         | 
| 48 48 | 
             
                reader = Asciidoctor::PreprocessorReader.new doc, input, nil, :normalize => true
         | 
| 49 49 | 
             
                block = Asciidoctor::Parser.next_block(reader, doc)
         | 
| 50 | 
            -
                output = block. | 
| 50 | 
            +
                output = block.convert
         | 
| 51 51 | 
             
                assert_css '.paragraph', output, 1
         | 
| 52 52 | 
             
              end
         | 
| 53 53 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: asciidoctor
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.5. | 
| 4 | 
            +
              version: 1.5.7
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Dan Allen
         | 
| @@ -13,7 +13,7 @@ authors: | |
| 13 13 | 
             
            autorequire: 
         | 
| 14 14 | 
             
            bindir: bin
         | 
| 15 15 | 
             
            cert_chain: []
         | 
| 16 | 
            -
            date: 2018-03 | 
| 16 | 
            +
            date: 2018-05-03 00:00:00.000000000 Z
         | 
| 17 17 | 
             
            dependencies:
         | 
| 18 18 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 19 19 | 
             
              name: asciimath
         | 
| @@ -201,10 +201,44 @@ files: | |
| 201 201 | 
             
            - CONTRIBUTING.adoc
         | 
| 202 202 | 
             
            - Gemfile
         | 
| 203 203 | 
             
            - LICENSE
         | 
| 204 | 
            +
            - README-fr.adoc
         | 
| 205 | 
            +
            - README-jp.adoc
         | 
| 206 | 
            +
            - README-zh_CN.adoc
         | 
| 207 | 
            +
            - README.adoc
         | 
| 204 208 | 
             
            - Rakefile
         | 
| 205 209 | 
             
            - asciidoctor.gemspec
         | 
| 206 210 | 
             
            - bin/asciidoctor
         | 
| 207 211 | 
             
            - bin/asciidoctor-safe
         | 
| 212 | 
            +
            - data/locale/attributes-ar.adoc
         | 
| 213 | 
            +
            - data/locale/attributes-bg.adoc
         | 
| 214 | 
            +
            - data/locale/attributes-ca.adoc
         | 
| 215 | 
            +
            - data/locale/attributes-cs.adoc
         | 
| 216 | 
            +
            - data/locale/attributes-da.adoc
         | 
| 217 | 
            +
            - data/locale/attributes-de.adoc
         | 
| 218 | 
            +
            - data/locale/attributes-en.adoc
         | 
| 219 | 
            +
            - data/locale/attributes-es.adoc
         | 
| 220 | 
            +
            - data/locale/attributes-fa.adoc
         | 
| 221 | 
            +
            - data/locale/attributes-fi.adoc
         | 
| 222 | 
            +
            - data/locale/attributes-fr.adoc
         | 
| 223 | 
            +
            - data/locale/attributes-hu.adoc
         | 
| 224 | 
            +
            - data/locale/attributes-id.adoc
         | 
| 225 | 
            +
            - data/locale/attributes-it.adoc
         | 
| 226 | 
            +
            - data/locale/attributes-ja.adoc
         | 
| 227 | 
            +
            - data/locale/attributes-kr.adoc
         | 
| 228 | 
            +
            - data/locale/attributes-nb.adoc
         | 
| 229 | 
            +
            - data/locale/attributes-nl.adoc
         | 
| 230 | 
            +
            - data/locale/attributes-nn.adoc
         | 
| 231 | 
            +
            - data/locale/attributes-pl.adoc
         | 
| 232 | 
            +
            - data/locale/attributes-pt.adoc
         | 
| 233 | 
            +
            - data/locale/attributes-pt_BR.adoc
         | 
| 234 | 
            +
            - data/locale/attributes-ro.adoc
         | 
| 235 | 
            +
            - data/locale/attributes-ru.adoc
         | 
| 236 | 
            +
            - data/locale/attributes-sr.adoc
         | 
| 237 | 
            +
            - data/locale/attributes-sr_Latn.adoc
         | 
| 238 | 
            +
            - data/locale/attributes-tr.adoc
         | 
| 239 | 
            +
            - data/locale/attributes-uk.adoc
         | 
| 240 | 
            +
            - data/locale/attributes-zh_CN.adoc
         | 
| 241 | 
            +
            - data/locale/attributes-zh_TW.adoc
         | 
| 208 242 | 
             
            - data/locale/attributes.adoc
         | 
| 209 243 | 
             
            - data/stylesheets/asciidoctor-default.css
         | 
| 210 244 | 
             
            - data/stylesheets/coderay-asciidoctor.css
         | 
| @@ -232,6 +266,7 @@ files: | |
| 232 266 | 
             
            - lib/asciidoctor/converter/manpage.rb
         | 
| 233 267 | 
             
            - lib/asciidoctor/converter/template.rb
         | 
| 234 268 | 
             
            - lib/asciidoctor/core_ext.rb
         | 
| 269 | 
            +
            - lib/asciidoctor/core_ext/1.8.7/base64/strict_encode64.rb
         | 
| 235 270 | 
             
            - lib/asciidoctor/core_ext/1.8.7/hash/key.rb
         | 
| 236 271 | 
             
            - lib/asciidoctor/core_ext/1.8.7/io/binread.rb
         | 
| 237 272 | 
             
            - lib/asciidoctor/core_ext/1.8.7/io/write.rb
         | 
| @@ -247,6 +282,7 @@ files: | |
| 247 282 | 
             
            - lib/asciidoctor/helpers.rb
         | 
| 248 283 | 
             
            - lib/asciidoctor/inline.rb
         | 
| 249 284 | 
             
            - lib/asciidoctor/list.rb
         | 
| 285 | 
            +
            - lib/asciidoctor/logging.rb
         | 
| 250 286 | 
             
            - lib/asciidoctor/parser.rb
         | 
| 251 287 | 
             
            - lib/asciidoctor/path_resolver.rb
         | 
| 252 288 | 
             
            - lib/asciidoctor/reader.rb
         | 
| @@ -258,6 +294,7 @@ files: | |
| 258 294 | 
             
            - lib/asciidoctor/version.rb
         | 
| 259 295 | 
             
            - man/asciidoctor.1
         | 
| 260 296 | 
             
            - man/asciidoctor.adoc
         | 
| 297 | 
            +
            - test/api_test.rb
         | 
| 261 298 | 
             
            - test/attributes_test.rb
         | 
| 262 299 | 
             
            - test/blocks_test.rb
         | 
| 263 300 | 
             
            - test/converter_test.rb
         | 
| @@ -288,25 +325,36 @@ files: | |
| 288 325 | 
             
            - test/fixtures/docinfo.xml
         | 
| 289 326 | 
             
            - test/fixtures/dot.gif
         | 
| 290 327 | 
             
            - test/fixtures/encoding.asciidoc
         | 
| 328 | 
            +
            - test/fixtures/file-with-missing-include.adoc
         | 
| 291 329 | 
             
            - test/fixtures/grandchild-include.adoc
         | 
| 292 330 | 
             
            - test/fixtures/hello-asciidoctor.pdf
         | 
| 293 331 | 
             
            - test/fixtures/include-file.asciidoc
         | 
| 332 | 
            +
            - test/fixtures/include-file.jsx
         | 
| 294 333 | 
             
            - test/fixtures/include-file.ml
         | 
| 295 334 | 
             
            - test/fixtures/include-file.xml
         | 
| 335 | 
            +
            - test/fixtures/lists.adoc
         | 
| 296 336 | 
             
            - test/fixtures/master.adoc
         | 
| 297 337 | 
             
            - test/fixtures/mismatched-end-tag.adoc
         | 
| 338 | 
            +
            - test/fixtures/other-chapters.adoc
         | 
| 339 | 
            +
            - test/fixtures/outer-include.adoc
         | 
| 298 340 | 
             
            - test/fixtures/parent-include-restricted.adoc
         | 
| 299 341 | 
             
            - test/fixtures/parent-include.adoc
         | 
| 300 342 | 
             
            - test/fixtures/sample.asciidoc
         | 
| 301 343 | 
             
            - test/fixtures/stylesheets/custom.css
         | 
| 344 | 
            +
            - test/fixtures/subdir/index.adoc
         | 
| 345 | 
            +
            - test/fixtures/subdir/inner-include.adoc
         | 
| 346 | 
            +
            - test/fixtures/subdir/middle-include.adoc
         | 
| 302 347 | 
             
            - test/fixtures/subs-docinfo.html
         | 
| 303 348 | 
             
            - test/fixtures/subs.adoc
         | 
| 304 349 | 
             
            - test/fixtures/tagged-class-enclosed.rb
         | 
| 305 350 | 
             
            - test/fixtures/tagged-class.rb
         | 
| 306 351 | 
             
            - test/fixtures/tip.gif
         | 
| 352 | 
            +
            - test/fixtures/unclosed-tag.adoc
         | 
| 353 | 
            +
            - test/fixtures/unexpected-end-tag.adoc
         | 
| 307 354 | 
             
            - test/invoker_test.rb
         | 
| 308 355 | 
             
            - test/links_test.rb
         | 
| 309 356 | 
             
            - test/lists_test.rb
         | 
| 357 | 
            +
            - test/logger_test.rb
         | 
| 310 358 | 
             
            - test/manpage_test.rb
         | 
| 311 359 | 
             
            - test/options_test.rb
         | 
| 312 360 | 
             
            - test/paragraphs_test.rb
         | 
| @@ -322,7 +370,11 @@ files: | |
| 322 370 | 
             
            homepage: http://asciidoctor.org
         | 
| 323 371 | 
             
            licenses:
         | 
| 324 372 | 
             
            - MIT
         | 
| 325 | 
            -
            metadata: | 
| 373 | 
            +
            metadata:
         | 
| 374 | 
            +
              bug_tracker_uri: https://github.com/asciidoctor/asciidoctor/issues
         | 
| 375 | 
            +
              changelog_uri: https://github.com/asciidoctor/asciidoctor/blob/master/CHANGELOG.adoc
         | 
| 376 | 
            +
              mailing_list_uri: http://discuss.asciidoctor.org
         | 
| 377 | 
            +
              source_code_uri: https://github.com/asciidoctor/asciidoctor
         | 
| 326 378 | 
             
            post_install_message: 
         | 
| 327 379 | 
             
            rdoc_options:
         | 
| 328 380 | 
             
            - "--charset=UTF-8"
         | 
| @@ -351,6 +403,7 @@ test_files: | |
| 351 403 | 
             
            - features/step_definitions.rb
         | 
| 352 404 | 
             
            - features/text_formatting.feature
         | 
| 353 405 | 
             
            - features/xref.feature
         | 
| 406 | 
            +
            - test/api_test.rb
         | 
| 354 407 | 
             
            - test/attributes_test.rb
         | 
| 355 408 | 
             
            - test/blocks_test.rb
         | 
| 356 409 | 
             
            - test/converter_test.rb
         | 
| @@ -381,25 +434,36 @@ test_files: | |
| 381 434 | 
             
            - test/fixtures/docinfo.xml
         | 
| 382 435 | 
             
            - test/fixtures/dot.gif
         | 
| 383 436 | 
             
            - test/fixtures/encoding.asciidoc
         | 
| 437 | 
            +
            - test/fixtures/file-with-missing-include.adoc
         | 
| 384 438 | 
             
            - test/fixtures/grandchild-include.adoc
         | 
| 385 439 | 
             
            - test/fixtures/hello-asciidoctor.pdf
         | 
| 386 440 | 
             
            - test/fixtures/include-file.asciidoc
         | 
| 441 | 
            +
            - test/fixtures/include-file.jsx
         | 
| 387 442 | 
             
            - test/fixtures/include-file.ml
         | 
| 388 443 | 
             
            - test/fixtures/include-file.xml
         | 
| 444 | 
            +
            - test/fixtures/lists.adoc
         | 
| 389 445 | 
             
            - test/fixtures/master.adoc
         | 
| 390 446 | 
             
            - test/fixtures/mismatched-end-tag.adoc
         | 
| 447 | 
            +
            - test/fixtures/other-chapters.adoc
         | 
| 448 | 
            +
            - test/fixtures/outer-include.adoc
         | 
| 391 449 | 
             
            - test/fixtures/parent-include-restricted.adoc
         | 
| 392 450 | 
             
            - test/fixtures/parent-include.adoc
         | 
| 393 451 | 
             
            - test/fixtures/sample.asciidoc
         | 
| 394 452 | 
             
            - test/fixtures/stylesheets/custom.css
         | 
| 453 | 
            +
            - test/fixtures/subdir/index.adoc
         | 
| 454 | 
            +
            - test/fixtures/subdir/inner-include.adoc
         | 
| 455 | 
            +
            - test/fixtures/subdir/middle-include.adoc
         | 
| 395 456 | 
             
            - test/fixtures/subs-docinfo.html
         | 
| 396 457 | 
             
            - test/fixtures/subs.adoc
         | 
| 397 458 | 
             
            - test/fixtures/tagged-class-enclosed.rb
         | 
| 398 459 | 
             
            - test/fixtures/tagged-class.rb
         | 
| 399 460 | 
             
            - test/fixtures/tip.gif
         | 
| 461 | 
            +
            - test/fixtures/unclosed-tag.adoc
         | 
| 462 | 
            +
            - test/fixtures/unexpected-end-tag.adoc
         | 
| 400 463 | 
             
            - test/invoker_test.rb
         | 
| 401 464 | 
             
            - test/links_test.rb
         | 
| 402 465 | 
             
            - test/lists_test.rb
         | 
| 466 | 
            +
            - test/logger_test.rb
         | 
| 403 467 | 
             
            - test/manpage_test.rb
         | 
| 404 468 | 
             
            - test/options_test.rb
         | 
| 405 469 | 
             
            - test/paragraphs_test.rb
         |