| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
definitions [skip ci]
|
|
|
|
|
|
|
|
* 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/
|
|
- 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
|
|
|
|
|
|
- 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
|
|
- 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
|
|
- 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
|
|
|
|
- replace use of render method with convert method
|
|
|
|
- rename expand_entity to decode_char
- change pack 'U*' to pack 'U1' (since the method only accepts one number)
- use decode_char in place of long-hand in some places
|
|
|
|
|
|
|
|
- replace ``phrase'' and `phrase' before ``monospace`` and `monospace`
- disallow ` as first character of single-quoted phrase
- disallow ` as first character or following character of an unconstrained monospace
- update tests
- add test for two double-quoted phrases in single line
|
|
- 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
|
|
- disable single quotes as emphasis formatting marks by default
- introduce compat-mode document attribute to reenable legacy behavior
- add compat_mode property to document to set compatibility mode
- don't replace trailing single quote with right single smart quote
- introduce `' as the formatting mark to make a right single quote (rsquo)
- unescape escaped single quote explicitly
- update compat file for AsciiDoc Python
|
|
specified
|
|
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.
|
|
- switch docbook backend to docbook5.
- make tests for DocBook 4.5 specify the correct backend
- update documentation to reflect new docbook backend
|
|
- rename Lexer to Parser
- use dot notation instead of double colon notation for class methods
|
|
- 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
|
|
|
|
|
|
- split the Reader into Reader and PreprocessorReader
- maintain an internal stack of include contexts
- report file names with line numbers
- rework reader tests
- rename several reader methods to be more intuitive
- optimize operations in the readers
|
|
|
|
|
|
- set constant that determines whether to force encoding
- force encoding on all input data
- test to verify input data is properly encoded
- new rake task to run tests w/ US-ASCII default external encoding
|
|
- perform macro sustitution on email in document header
|
|
- needed to add magic encoding line to all erb templates
- add example from issue to encodings test case
|
|
|
|
|
|
- make templates for docbook45 backend
- move backend templates to backends/ folder
- load backend templates lazily (based on backend attribute)
- namespace backend templates to avoid conflicts
- extend backend templates from a base template
- add view property to template class
- change InlineLink to InlineAnchor and assign type (:link or :xref)
- simplify shorthand methods (e.g., define attribute) in template classes
- set default backend to html5
- set backend attribute family (backend-*, basebackend, etc)
- set docdate and doctime attributes (match local* w/o file ref)
- prevent Reader from overriding attributes passed to Document.new
- fix list continuation bug in outline and labeled lists
- fold first paragraph properly in outline lists; document in TomDoc
- add convenience methods to String (trim, nuke)
- add TomDoc to methods added to String
- add tests for String monkeypatches
- fix compliance of attribute continuations in Reader
- perform attribute substitutions on document attributes and attribute lists
- apply normal subs to single-quoted attribute values
- cleanup how substitutions are called
- don't need Asciidoctor:: prefix in Substituter
- honor line pass: macro in document attribute value
- move regexs in Reader to Asciidoctor module
- use %r{} syntax to make some regex easier to read
- fix order of replacements
- add ellipsis and single quote replacements
- add space, quot and apos to instrinsics
- move Substituters mixin to AbstractBlock
- make Document an AbstractBlock
- use blocks instance variable in Document instead of elements
- document should store text of reference to match how docbook works
- allow Document.new to be called w/ no arguments
- rename level* regex to section*
- loads of tests to verify numerous compliance checks and for new functionality
- more TomDoc
|
|
- death to htmlify, no more hardcoded html!
inline text is rendered using templates
- create a common parent AbstractNode for all structured elements
- create a common parent AbstractBlock for section, block and list item
- create an Inline element for inline rendering
- correct quoted text substitutions to be fully compliant w/ AsciiDoc
- implement inline image macro
- implement inline passthrough macros (using extract & restore)
- add template for line break & callout
- add replacements substitution (for symbols like copyright, trademark, etc)
- substitute attributes in attribute values
- pull regexs for inline parsing into Asciidoctor module
- more robust regex for anchors and attribute lines
- double-line heading should not be allowed to start w/ a dot
- load tilt lazily (don't need to load if using built-in templates)
- remove import of unused cgi library
- optimized some regexs
- lots 'o tests
- more TomDoc
|
|
|
|
|
|
- make header/footer optional using option :header_footer
- set intrinsic attributes such as date/time, doctype and asciidoctor version
- expose doctitle and title accessors in Document (preferred over header)
- fill in the template for Document more completely to be consistent w/ AsciiDoc
|
|
|
|
|
|
|