| Age | Commit message (Collapse) | Author |
|
|
|
transcoding fails (PR #4354)
|
|
|
|
|
|
description in help
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
assertions
|
|
|
|
|
|
|
|
* still honor header_footer option as fallback for backwards compatibility
|
|
|
|
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/
|
|
- use -v to set logger level to debug
- use -w to enable pedantic Ruby warnings (aka $VERBOSE = true)
|
|
(PR #3004)
|
|
|
|
- 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
|
|
- 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
|
|
- add option to CLI to specify a failure level (--failure-level=LEVEL)
- if this level is reached by a log message, it triggers a non-zero exit code
|
|
(#2653)
* use manpage from environment variable
* extract contents if path ends with .gz
|
|
|
|
- add topic argument to -h flag of CLI
- dump man page when help topic is manpage
- update usage and man page to reflect new capability of -h flag
- regenerate man page
- add tests
|
|
on docinfo files
- add docinfosubs attribute to control substitutions performed on docinfo files
- don't parse attribute option to cli as an array (interfers with docinfosubs value)
- add method to resolve docinfosubs
- add tests for docinfosubs attribute
|
|
|
|
|
|
|
|
|
|
Ruby 1.9+ uses Minitest as the backend for Test::Unit. As of Minitest 5,
the shim no longer supports Test::Unit::TestCase.
Adjust the test suite to support Minitest 5's syntax.
Minitest versions 4 and below do not support the newer Minitest::Test
class that arrived in version 5. For that case, use the
MiniTest::Unit::TestCase class as a fallback.
|
|
|
|
- explicitly add the test and lib directory to the load path
- switch to the project root before running tests
- add UTF-8 encoding magic header to all test files
- exclude .gem file at root of project (where RubyMine puts it)
This commit was modified from the original pull request by @mojavelinux
|
|
|
|
- apply conventions
- use optimizations
- fix warnings
- use helper method for cloning options
|
|
|
|
|
|
|
|
|
|
I had to make one test change which was expecting an invalid backend,
which no longer happens with this change, modified it to use -d instead.
Also changed the text for -b in options.
|
|
You already had this fixed, though you didn't have a test that covered
it in options
|
|
|
|
|
|
- also change default attribute value from 1 to empty string in cli options
|
|
- provide access to document after invoker runs for testing
- add stream redirection to invoker
- add exit code to invoker rather than using a hard exit
- check that input file exists in options
- set outfile on document after rendering for access in tests
- add support for stdin
- fix doc info attribute assignments, only set when input is a file
- clarify the purpose of base_dir and docdir, respectively
- use base_dir in normalize_asset_path
- don't allow document to emit docdir or absolute docfile in secure mode
- don't allow document to change doctype in secure mode
- cleanup the option descriptions
- add a --safe flag which is compatible with asciidoc
- take out rubygems require (that should be handled by rubygems)
- fix incorrect minute field in time format
- loads of invoker tests
- test for input file with spaces
- additional helper methods for testing invoker
- rename option_tests.rb to options_test.rb
- add timings to cli
- fix bug of not carrying over safe level in nested document
|