summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
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-05remove asciidoctor-safe binaryDan Allen
- use asciidoctor --safe instead
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
2016-01-05optimize bin scriptsDan Allen
- use module detection to determine when to load rubygems - apply relative require logic to asciidoctor-safe script - append -S safe flag to ARGV array in asciidoctor-safe script - invoke GC.start in asciidoctor-safe script
2015-12-11allow asciidoctor path to be resolved without leading ./Dan Allen
2015-06-16Fallback to require with a non relative pathGuillaume Grossetie
Allow to require asciidoctor when then lib/ directory is not relative to the binary. For instance, Debian package copies binary in /usr/bin/asciidoctor and lib/ in /usr/lib/ruby/vendor_ruby/ Resolves #1364
2014-02-18add top-level script for loading cliDan Allen
2014-02-17cleanup the cli script, force GC run after loading AsciidoctorDan Allen
2013-06-09Remove require rubygemsPer Andersson
2013-01-22lock safe mode settings for asciidoctor-safe, fix syntax errorsDan Allen
2013-01-22Really add the asciidoctor-safeLightGuard
2013-01-22enhance invoker, add tests, enforce securityDan Allen
- 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
2013-01-22edits for cli pull requestDan Allen
- move imports to bin/asciidoctor - set built-in attributes for doc info (set in load API down the road) - output to stdout if out file is '-' - calculate output file based on input file if not specified (to comply w/ AsciiDoc) - change attribute keys to strings (as Asciidoctor expects) - change doctype options from symbols to strings - make doctype apply to all backends - add options for backends - add option to enable compact output - add option to set safe mode levels - make suppress header_footer work - add option to set eRuby implementation - automatically set value to 1 for attribute w/o value - add files to gemspec
2013-01-22Updating the bin/asciidoctor file adding --trace optionLightGuard
2012-12-19No /bin/env on this here MacRyan Waldron
2012-06-14Rename waldo to asciidoctor (thanks Nick)Ryan Waldron
2012-06-12Rename gem from emerson to waldoRyan Waldron
2012-06-01Initial base gem skeletonRyan Waldron