| Age | Commit message (Collapse) | Author |
|
- if path is not specified but file is, default to basename of file
|
|
|
|
- complements the remote nested includes test
|
|
(PR #2511)
- match behavior of resolving local nested includes
- consistently set dir on Reader to '.' if file is not defined
|
|
|
|
|
|
|
|
|
|
- replace assert ! with refute
- use assert_nil and refute_nil
- use assert_empty and refute_empty
- use assert_kind_of instead of direct is_a? call
- use assert_respond_to instead of direct respond_to? call
|
|
- make num arg required
- change default value of direct flag to false to be consistent with peek_line
|
|
|
|
|
|
* name it for what it is
|
|
|
|
conditional (#2279)
- permit target to begin or end with operator
- don't drop empty conditions as these should be considered
- only call target.empty? once
- optimize conditional stack size check
- add tests
|
|
false
|
|
|
|
|
|
comments (#2199)
|
|
conditional (PR #2260)
|
|
|
|
- in addition to including tags, add option to exclude tags using !name syntax
- introduce wildcard for including all (*) or excluding all (!*) tags
- introduce wildcard for selecting non-tagged lines (**)
- don't select nested tags with wildcard if ancestor tag is excluded
- warn if a mismatched or unexpected end tag is found
- improve efficiency of detecting and processing tag directives
- maintain a tag stack for handling nested tags
- skip call to push_include if selected lines array is empty
- ignore tag and tags attribute if empty (previously caused an infinite loop)
- add tests for excluding tags
|
|
- ignore empty lines attribute in include directive
- don't call push_include if selected lines are empty
- consolidate logic
|
|
|
|
|
|
|
|
|
|
|
|
- don't swallow line after include when file is not readable
- add test for when include file is not readable
- rename replace_line to replace_next_line to make intent more clear
- minor cleanups
- fix tomdoc
|
|
|
|
- always resolve missing attribute in ifeval expression to empty string
- add additional tests for ifeval
- use negated == comparison instead of != for compatiblity
- code cleanups and formatting
|
|
- fix support for absolute Windows path as target of include directive
- add test for include directive with absolute path target
- add tests for UriSniffRx
|
|
|
|
|
|
- generate data uri for remote image when data-uri & allow-uri-read are set
- add content-type logic to test webserver
- minor optimizations
|
|
|
|
|
|
|
|
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.
|
|
|
|
Document
- pull parsing out of Document#initializer and make it a discrete step
- don't parse Document on creation unless :parse option is true
- make Reader accessible as a read-only property on Document
- rewrite reader tests to use Reader created by Document
- optimize access to instance variables in Document#initializer
- use requested ERB implementation in TemplateConverter, add tests
|
|
|
|
- correct path calculation in Opal
- raise IOError on 404 response in Opal
- print message in document when include is not resolved
- chomp endlines from template result when running in Opal
|
|
|
|
|
|
|
|
- rewrite extensions to support extension instances
- class names, class instances and blocks are supported for every kind of extension
- document extension APIs
- introduce DSL for configuring extensions
- add named group registration
- add require library flag, -r, to cli for custom requires
- add convenience methods on extension processor for creating various nodes
- support lamba as process method
- move all DSL methods to DSL classes
- allow extension group or extensions registry to be passed to document
- rename name dsl method to named; add helper method to parse content
- refactor extension in Rakefile to work with new extension API
- document extension APIs, use methods to retrieve all extensions
- add default content model map to simplify Block creation
- allow subs to be overridden in block constructor
- add content_model option for macros to disable attribute parsing
- allow empty target for block macro
- add name_positional_attributes alias to pos_attrs option
- rename methods to import dsl, update docs
- don't output style on open block if nil, add missing endlines
- pass attributes to Processor#parse_content
- clear attributes if no block is dropped, update default content model map
- duplicate attributes passed to processor; change return nil to return
- add create method for example
- add caption based on presence of <context>-caption attribute
- move image postprocessing to generic location
- add extension tests and docs
- optimizations:
- replace more calls to .nil? with truth checks
- remove duplicate lookup of source in constructor
- optimize caption assignment
- cache path resolver
- change order of truths in reader and document
|
|
- 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
|
|
|
|
* Ruby >= 1.9 - use BOM to set encoding, then encode to UTF-8
* Ruby 1.8 - drop the UTF-8 BOM, ignore all others
|