Releases: cfillion/metaheader
Releases · cfillion/metaheader
v2.0.0
This release is tagged as major because of the following breaking changes in the public API:
MetaHeader#initialize
no longer accepts any arguments, parsing is delegated to a newMetaHeader#parse
method (thus allowing reading from multiple source into the same instance)MetaHeader#validate
now returns an empty array when no errors are found instead ofnil
MetaHeader.parse
no longer accepts aMetaHeader
object as argument- The
MetaHeader#strict
attribute is replaced with a parameter inMetaHeader#validate
- The custom parser feature (via the
MetaHeader::Parser
abstract class) is removed
Other changes:
- Allow
StringIO
objects as input toMetaHeader#parse
andMetaHeader.parse
- Fix
"instance variable @parsers not initialized"
warnings when no custom parsers are defined - Remove invalid example for
MetaHeader#alias
in the documentation
v1.3.1
v1.3
v1.3beta4
v1.3beta3
v1.3beta2
Changed:
- allow compact alternate syntax "Tag Name:Value" (no space after the colon)
- allow empty unprefixed lines within a multiline tag's value
- always require an explicit value with the alternate syntax
- MetaHeader::Parser#parse now receives an IO object as parameter