summaryrefslogtreecommitdiff
path: root/features
AgeCommit message (Collapse)Author
2021-11-08add test to verify title of formal paragraph is used as fallback reftextDan Allen
2021-10-04resolves #4160 use width attribute to set width of table and table column ↵Dan Allen
(PR #4161)
2021-09-15add test to verify natural xref does not work if sectids is not set (meaning ↵Dan Allen
target has no id)
2021-05-31replace rspec expectations with minitest assertions in feature testsDan Allen
2021-05-27fix ambiguous argument type in step definitions in test suiteDan Allen
2021-04-30add missing frozen string literal comment in step_definitions.rb file [skip ci]Dan Allen
2020-10-31resolves #3745 always use title as xreftext if target block has an empty ↵Dan Allen
caption (PR #3806)
2019-06-14resolves #3331 fix parsing of wrapped link and xref text PR (#3334)Dan Allen
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-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-01-23resolves #2995 use methods on File class instead of IO class (PR #2999)Dan Allen
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-04-24resolves #2365 allow xrefstyle to be overridden per xref using the xrefstyle ↵Dan Allen
attribute (PR #2706) - allow xrefstyle to be overridden per xref by assigning xrefstyle attribute on xref macro - allow xrefstyle to be overridden in different parts of the document
2018-04-23resolves #2381 parse text of xref macro as attributes if attribute signature ↵Dan Allen
detected - if attribute signature is detected in text of xref macro, parse text as attributes - if role is set on xref, add it to class attribute of <a> element in HTML5 converter - rename append_anchor_constraint_attrs to append_link_constraint_attrs - add link contraint attributes to <a> element of interdoc xref
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-17resolves #794 drop XML tags, character refs, and non-word chars when ↵Dan Allen
generating ID for section - drop character refs and non-word chars (except for hyphen and space) instead of replacing with ID separator - drop XML tags (but not the contents of the tag) - replace spaces and hyphens with ID separator - optimize logic in Section.generate_id method
2018-03-05resolves #2568 collapse bottom margin of last block in AsciiDoc table cell ↵Dan Allen
(PR #2593) - add content class to div surrounding AsciiDoc cell content - collapse bottom margin of last block in AsciiDoc table cell - simplify margin collapsing on last paragraph in normal cell - remove unused styles - update tests
2018-03-04resolves #2589 rename spread role to stretch (PR #2591)Dan Allen
2017-10-22resolves #2405 add compliance setting to disable natural cross references ↵Dan Allen
(PR #2460) - add the compliance setting natural_xrefs for disabling natural cross references - don't resolve xref by reference text if compliance setting is disabled - don't resolve xref by reference text if compat-mode is on - add test scenario - rename scenarios related to natural xrefs
2017-07-09resolves #858 add support for formal xref text (PR #2220)Dan Allen
- store referenceable nodes under refs key in document catalog - when registering a ref, store entry in both refs table and deprecated ids table - update tests to use consolidated register method - add xreftext method to AbstractBlock, Section, and Inline to produce formatted text for xref - add API docs to the xreftext methods - format xref text according to xrefstyle attribute, if set (full, short, or basic) - move reftext? and reftext methods down to AbstractBlock and Inline; contextualize - apply reftext substitutions (specialchars, quotes, replacements) to value returned by reftext method - drop support for reftext document attribute - don't catalog inline anchor if reftext containing attribute reference resolves to empty string - use reftext method instead of text method for :ref in DocBook converter - add feature tests for explicit reftext - add feature tests for generated reftext using xrefstyle - introduce language attributes for chapter, section, and appendix reference signifier * name attributes chapter-refsig, section-refsig, and appendix-refsig, respectively - enable chapter-label attribute in translations file; map to chapter-refsig attribute to it - map appendix-refsig attribute to value of appendix-caption attribute in translations file - add placeholders in translations file for chapter-refsig where missing and section-refsig - handle refsig document attribute values consistently (only use if attribute is non-nil) - update link and xref tests to populate refs key in document catalog - encode double quote and strip XML tags in value of xreflabel attribute in DocBook converter - don't store return value of target in inline_anchor method of HTML converter
2017-07-01rework cucumber step definitionsDan Allen
- add support for contains matcher - consolidate code - use expect instead of should - add space before end of short XML tag
2017-06-25simplify line mapper in helper for feature testsDan Allen
2017-06-25configure Slim in feature tests to not escape or sort attributesDan Allen
2017-06-25configure Slim in feature tests to use html as format instead of deprecated ↵Dan Allen
html5
2017-05-18use IO.write instead of File.open w/ blockDan Allen
- use IO.write instead of File.open with block to write - consistently use IO.read instead of File.read - remove unnecessary root namespace in tests
2017-05-16remove trailing spaces in sourceDan Allen
2015-07-05resolves #1170 and #841 expand tabs properlyDan Allen
- introduce tabsize attribute to control size of tab character - expand tabs in verbatim blocks if tab present and value of tabsize attribute is positive - rename reset_block_indent! to adjust_indentation! - only use adjust_indentation! on include if indent is specified - only expand tabs in included content if indent attribute is set - use adjust_indentation! to remove left margin in paragraphs marked normal - don't add indentation to empty lines - set tab-size property to 4 in default stylesheet - increase letter spacing in blockquote cite in default stylesheet - add and fix tests
2014-11-23add UTF-8 encoding header to all Ruby files with logicDan Allen
2014-11-10enable CI reportsDan Allen
- code coverage (locally & for shippable.com builds) (use `rake coverage test:all`) - JUnit-style XML reports (for shippable.com builds)
2014-07-27resolves #718 and #714 swap + and ` formatting charsDan Allen
- change + to be constrained passthough (no monospaced formatting) * recognize role "x-" to reenable legacy behavior - change ++ to be unconstrained passthrough (no monospaced formatting, same as $$) * recognize role "x-" to reenable legacy behavior - add role to unconstrained passthroughs (except for pass:[] macro) - change ` to be constrained monospace (no passthrough behavior) - change `` to be unconstrained monospace (no passthrough behavior) - use compat-mode document attribute to reenable legacy behavior - update compat file for compatibility with AsciiDoc Python - update tests for both compatibility modes - fix marked text in compat file
2014-07-15add cucumber test for superscript and subscriptDan Allen
2014-07-15resolves #589 basic support for resolving xref from reftextDan Allen
2014-02-26resolves #778, rewrite converter API; resolves #638, integrate thread_safe gemDan Allen
- rewrite converter API - separate built-in converters from template converter - rename renderer/render to converter/convert - make converter an extension point (resolves #778) - base built-in converters on the converter API - rename template_name property to node_name on AbstractNode - make block_ prefix on file name of block-level templates optional - use thread_safe gem for template and converter caches (resolves #638) - introduce Stylesheets API to manage stylesheets - move file write logic to Document - delegate file write logic to converter that implements Writer - remove compact logic, deprecate related options - duplicate options and attributes passed to APIs, add tests - assign doctype / backend attributes correctly when document is loaded, add tests - report proper error if nil is passed to load_file and convert_file - use span tag to group kbd combination in html5 backend - setup toc in preamble if toc attribute is preamble - Opal compatibility fixes, use built-in HTML5 converter - make the outline method accessible to all html converters - document the converter APIs along with some minor cleanups in terminology - load stylesheets from data directory - rename ruler block to thematic_break - add inline? and block? query methods to AbstractNode - use Timings class to measure and report timings from processor steps - fix cucumber tests - upgrade tilt dependency to 2.0.0 - minor optimizations
2014-01-27fix whitespace breakage in featureDan Allen
2013-10-28resolves #737 disable subs on pass block by defaultDan Allen
2013-10-25improvement to Cucumber test infrastructureDan Allen
- make output slim-friendly - prototype running tests against Python AsciiDoc
2013-10-25resolves #731 add initial Cucumber test infrastructureDan Allen
- add cucumber and rspec-expectations dependencies - add cucumber Rake task definition - add sample cucumber tests and a step definition rough-in - set version ranges for library dependencies