summaryrefslogtreecommitdiff
path: root/test/attribute_list_test.rb
AgeCommit message (Collapse)Author
2021-07-31omit_parentheses where possible in test codeDan Allen
2021-06-05consistently use %w to create string arraysDan Allen
2021-05-27use raise instead of fail keyword in test suite [skip ci]Dan Allen
2021-04-30leave empty line after magic comment [skip ci]Dan Allen
2021-04-23resolves #4033 don't assign nil value to named attribute mapped to absent ↵Dan Allen
positional attribute when parsing attrlist (PR #4034)
2021-04-22add negative test to verify that the parser assigns a nil value to an ↵Dan Allen
attribute mapped to an empty positional attribute
2020-11-01add test for block attribute that starts and ends with equals signDan Allen
2020-11-01resolves #3813 preserve blank positional attributes when parsing block ↵Dan Allen
attrlist (PR #3814)
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-08resolves #3051 drop the options attributeDan Allen
- don't store the options attribute on the block once the options are parsed - only store options as individual attributes (e.g., header-option) - add an options method on AbstractNode to retrieve the set of option names - store partial-option as empty string instead of true - reference low-level option attribute internally
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-10-10resolves #2905 only apply subs to node attribute value enclosed in single ↵Dan Allen
quotes (PR #2906)
2018-07-25move AttributeList tests to dedicated test fileDan Allen