| Age | Commit message (Collapse) | Author |
|
on JRuby (PR #4444)
|
|
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
- also define windows? as static method for these cases
- don't match darwin when detecting Windows
|
|
function (PR #3015)
- rename Helpers.uri_encode to Helpers.encode_uri_component (to borrow terminology from JavaScript)
- implement Helpers.encode_uri_component using CGI.escape in *Ruby and encodeURIComponent in Opal
- which characters are encoded now complies with RFC-3986
- move Helpers tests to helpers_test.rb
|
|
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/
|
|
- 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
|
|
|
|
directory (PR #2748)
- autoload pathname
- use Pathname#relative_path_from to resolve path outside base directory
- add test
|
|
- convert system path \\server\docs to //server/docs on Windows
- clarify that PathResolver#root? does not require path to be posixified
|
|
|
|
|
|
from a problem (PR #2726)
|
|
- add assert_message helper for asserting a single message
- add assert_messages helper for asserting multiple messages
- rewrite paths and reader tests to assert log messages instead of stderr stream
- assert message about illegal reference to parent is only reported on first violation when resolving system path
- use instance variable to store shared logger in tests
|
|
|
|
|
|
path
|
|
|
|
|
|
|
|
- return filename as relative path if filename doesn't share common root with base directory
- add test for scenario
|
|
|
|
|
|
|
|
|
|
- allow spaces in target of block image
- URL encode spaces in image URI (replace space with %20)
- add test
|
|
|
|
- preserve URI targets universally by moving logic to normalize_web_path
- remove pre-checks for URI whereever normalize_web_path is used
|
|
- fix support for absolute Windows path as target of include directive
- add test for include directive with absolute path target
- add tests for UriSniffRx
|
|
|
|
- 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
|
|
- store actual root when partitioning
- handle dot directory correctly
- memoize partition_path
- add is_unc? method
- optimize and format code
|
|
|
|
- make Preprocessor operate on Reader instead of just lines
- add template_name to Inline; make property writable for all node types
- add a finalize_header method to handle preparing to parse body
- spec out idea for preserialize processor
- update tests
|
|
|
|
- don't mangle imagesdir value if its a uri
|
|
- check for proper separator on Windows
- force all paths to use forward slash (posix), as Ruby can handle it
|
|
- add a default stylesheet, asciidoctor.css, to stylesheets directory
- add copycss attribute to control copying default stylesheet to outdir
- add linkcss attribute to control stylesheet embedding
- use default stylesheet by default w/ linkcss enabled
- rewrite path logic to be more secure, deterministic and OS independent
- switch all path resolution to use new path resolver
- add path resolver tests
- refactor cli invoker to use render API
- add timing monitor to load and render APIs
- fix image path resolution to be secure
- add tests for embedded attribute
|