summaryrefslogtreecommitdiff
path: root/test/sections_test.rb
AgeCommit message (Collapse)Author
2024-02-19resolves #3602 move abstract inside info tag in DocBook output (PR #4508)Dan Allen
2023-05-06resolves #4450 consistently produce partintro as a compound open block (PR ↵Dan Allen
#4451)
2023-04-22resolves #4437 support notitle option on section as preferred alternative to ↵Dan Allen
untitled to hide title (PR #4440)
2022-10-27fix typo in test description in sections_test.rb (PR #4377)David M. Carr
2021-11-07add test to verify partintro can be defined using special sectionDan Allen
2021-10-18rename default branchDan Allen
2021-10-07resolves #4151 don't promote level-0 special section at start of document to ↵Dan Allen
document title (PR #4152)
2021-09-02resolves #4139 allow section ID to be unset using empty id attribute (PR #4150)Dan Allen
2021-09-01add test to verify title of section with explicit ID and attribute ↵Dan Allen
references is eagerly substituted
2021-07-31use single quoted string or use %() for interpolated string in test suiteDan Allen
2021-07-31omit_parentheses where possible in test codeDan Allen
2021-06-03use comma after last entry in multi-line array [skip ci]Dan Allen
2021-05-31use appropriate assertions in test suiteDan Allen
- assert_equal instead of == - assert instead of assert_equal true - refute instead of assert_equal false - specify literal value as first argument to assert_equal
2021-05-31use assert_empty/refute_empty where possible in test suiteDan Allen
2021-05-27remove or mark unused block arguments in test suite; fix missing logger ↵Dan Allen
assertions
2021-05-25use single-quoted strings where possible in test suiteDan Allen
2021-04-30leave empty line after magic comment [skip ci]Dan Allen
2021-04-17fix references to AsciiDoc.py in code comments [skip ci]Dan Allen
2021-04-14resolves #4013 increment counter (but not the corresponding attribute) if ↵Dan Allen
attribute is locked (PR #4015)
2021-04-13add tests for altering initial appendix and chapter numberDan Allen
2020-05-16Upgrade TruffleRuby in CI build to 20.0.0 (PR #3659)Guillaume Grossetie
2019-06-09restore deprecated writable number property on AbstractBlockDan Allen
2019-03-25resolves #3202 convert cataloged titles containing attribute references ↵Dan Allen
eagerly (PR #3203) - convert titles of cataloged block and section nodes containing attribute references eagerly to resolve attributes while in scope - consolidate all processing of title and caption for block at end of next_block - add tests to verify behavior
2019-03-25remove unused reftexts catalog entry assertions [skip ci]Dan Allen
2019-03-18provide simplified xreftext implementation on DocumentDan Allen
2019-03-16resolves #3152 prevent section level from being negative; fix infinite loop ↵Dan Allen
(PR #3153)
2019-03-16Always store section numeral as string (PR #3144)Mikko Värri
* make sure `numeral` is always a string, as it states in the RDoc * store numeral for part as roman numeral
2019-03-14resolves #1444 rename header_footer option to standalone (PR #3146)Dan Allen
* still honor header_footer option as fallback for backwards compatibility
2019-02-19resolves #3084 only store :refs, not :ids, in document catalog (PR #3079)Dan Allen
* remove the logic that registers entries in :ids table of the document catalog * don't attempt to compute the reftext when registering an xref (as this information is available from the referenced node and can be retrieved on demnd) * add a Document#resolve_id method to look up ID by reference text (reftext or title); cache the result of lookups once parsing is complete * always look for existing IDs using :refs table (when checking for a duplicate or whether a target exists) * leave the :ids table empty to avoid breaking existing programs and extensions * update tests * add test to verify :ids table is always empty
2019-02-12group section level tests inside Levels contextDan Allen
2019-02-11resolves #1173 apply substitutions to block and section titles in normal ↵Dan Allen
order (PR #3062)
2019-02-10resolves #3054 never mutate strings; add `frozen_string_literal: true` ↵Dan Allen
comment to source files (PR #3055) - replace gsub! and sub! with gsub and sub, respectively - add `frozen_string_literal: true` magic comment to all Ruby source files - see https://www.mikeperham.com/2018/02/28/ruby-optimization-with-one-magic-comment/
2019-02-09resolves #3060 require setext section title to have at least one ↵Dan Allen
alphanumeric character (PR #3061) - although documented this way, the parser was checking for at least one word character, which is different
2019-02-07use indented (squiggly) heredoc strings in sections_testDan Allen
2019-02-05resolves #3005 remove the converter for the docbook45 backend (PR #3040)Dan Allen
- remove the DocBook45Converter class - remove accomodations in DocBook5Converter for DocBook 4.5 - don't register the docbook45 backend name in the converter registry - drop docbook45 from the backend CLI option values - don't mention DocBook 4.5 in the man page - don't mention DocBook 4.5 in the CLI usage statement - update tests to use DocBook 5 instead of DocBook 4.5
2019-01-06switch to modern hash syntaxDan Allen
- switch to modern hash syntax (from :key => value to key: value) - put space inside hash brackets (from {key: value} to { key: value } - use dangling comma on last entry of multi-line hash
2019-01-06use require_relative instead of modifying $LOAD_PATHDan Allen
- use require_relative in place of require when it relied on $LOAD_PATH manipulation - configure bin scripts to work with require_relative - rename ROOT_PATH to ROOT_DIR - rename DATA_PATH to DATA_DIR - rename STYLESHEETS_DATA_PATH to STYLESHEETS_DIR - define LIB_DIR - simplify test helper require and setup - add bindir helper to test suite - remove unneeded constants in test helper - reorder autoload statements - require version directly instead of autoloading
2019-01-06remove workarounds for Ruby < 2.3Dan Allen
- remove constants for differentiating between Ruby versions - remove fallback assignment for RUBY_ENGINE constant - remove rubygems require - use unicode character properties in regular expressions (e.g., \p{Word}) - remove COERCE_ENCODING constant - always set FORCE_ENCODING constant to true unless default external encoding is not UTF-8 - remove workaround for computing line length - use lines method instead of lines.entries to get lines for string - always normalize lines - check if JRuby class is defined instead of checking for JRuby engine - remove global RUBY_ENGINE_JRUBY constant - move RUBY_ENGINE_OPAL constant inside Asciidoctor module - remove magic encoding comments (since default script encoding is UTF-8) - remove workaround when printing encoding information - remove fallback assignments for passthrough escape characters - remove Ruby core backports (only leave Asciidoctor-specific extensions) - use __dir__ instead of File.dirname __FILE__ - use Float#truncate to truncate column widths - override Float#truncate on Ruby 2.3 to implement precision argument - remove concurrent/hash backport - simplify class_for_name helper - don't call to_sym on constants returned from constants method - remove unnecessary aliasing of regexp match variables; use magic variable instead (e.g., m = $~) - remove workaround for sub_specialchars to accomodate gsub with map argument - remove comment about %:z placeholder for strftime - don't call .to_a on return value of Hash#keys - get home directory using Dir.home - remove exceptions and exclusions for Ruby < 2 in test suite - update list of supported Ruby engines and versions in READMEs - update ruby versions in run-tests.sh
2018-12-01resolves #1852 ignore explicit section level style (PR #2971)Dan Allen
2018-10-27resolves #2738 use part-signifier and chapter-signifier, if set (PR #2763)Dan Allen
- add value of part-signifier attribute to beginning of title for numbered part - add value of chapter-signifier attribute to beginning of title for numbered chapter - change trailing delimiter of part number from period to colon
2018-10-23resolves #2931 fix crash when child section of part is out of sequence and ↵Dan Allen
section numbering is enabled (PR #2932)
2018-09-19rename number property to numeral (PR #2873)Dan Allen
- rename number property on AbstractBlock to numeral - alias deprecated number property to numeral - rename instance variable next_section_number to next_section_ordinal - add tests
2018-09-11replace the use of render with convert in test suiteDan Allen
- rename render_string to convert_string - rename render_embedded_string to convert_string_to_embedded - rename render_inline_string to convert_inline_string - use convert_inline_string where :doctype was being set to :inline
2018-08-23add test to verify processor warns if explicit ID collides with ↵Dan Allen
auto-generated ID
2018-08-23test that duplicate synthetic ID is automatically enumerated (deduplicated)Dan Allen
2018-05-02replace dot with idseparator in generated ID (PR #2744)Dan Allen
2018-05-01consolidate section ID generation code; add tests for dot characterDan Allen
2018-04-22change default value of numbered argument in Section#initialize to falseDan Allen
2018-04-22resolves #2298 add numbering for partsDan Allen
- number parts using roman numerals if the partnums attribute is set - move method to convert integer to roman to Helpers module - assign the value "Part" to the part-refsig attribute by default - define the part-label attribute in the attributes-en.adoc data file - add support for partnums and sectnums=all to create_section helper in extensions - add partnums and sectnums=all scenarios to test for create_section helper
2018-04-21consolidate assignments in Section#initializeDan Allen