Skip to content

Releases: cfillion/metaheader

v2.0.0

20 Feb 00:58
v2.0.0
53deba7
Compare
Choose a tag to compare

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 new MetaHeader#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 of nil
  • MetaHeader.parse no longer accepts a MetaHeader object as argument
  • The MetaHeader#strict attribute is replaced with a parameter in MetaHeader#validate
  • The custom parser feature (via the MetaHeader::Parser abstract class) is removed

Other changes:

  • Allow StringIO objects as input to MetaHeader#parse and MetaHeader.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

17 Mar 10:43
v1.3.1
acb6764
Compare
Choose a tag to compare

Fixed:

  • don't crash when encoutering invalid UTF-8 characters in input

v1.3

12 Nov 01:25
v1.3
068faf2
Compare
Choose a tag to compare

No changes since v1.3beta4.

v1.3beta4

25 Aug 21:24
c674a95
Compare
Choose a tag to compare
v1.3beta4 Pre-release
Pre-release

Changed:

  • stricter multiline parsing: keep extra indentation in value

v1.3beta3

28 Jul 06:56
7712ab5
Compare
Choose a tag to compare
v1.3beta3 Pre-release
Pre-release

Fixed:

  • fix parsing of multiline tag using the alternate syntax with no initial value (1.3beta2 regression)
  • fix documentation of MetaHeader::Parser#parse

v1.3beta2

28 Jul 01:49
7434f3b
Compare
Choose a tag to compare
v1.3beta2 Pre-release
Pre-release

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

v1.3beta1

11 Jul 23:24
66de879
Compare
Choose a tag to compare
v1.3beta1 Pre-release
Pre-release

Added:

  • add #alias method for tag aliasing

Changed:

  • preserve empty lines found in the value of multiline tags
  • preserve trailing whitespace in multiline values

Fixed:

  • report original tag name in "unknown tag" errors

v1.2.1

07 Jun 23:59
v1.2.1
8104c7b
Compare
Choose a tag to compare

Added:

  • add MetaHeader.parse method

v1.2

20 May 17:53
9f41b6a
Compare
Choose a tag to compare

Added:

  • add #delete method
  • add #has? method
  • add BOOLEAN validator
  • support default (fallback) value
  • support false values

Changed:

  • don't allow users to manually set nil as a value

Fixed:

  • ignore trailing spaces

v1.1.1

07 May 13:27
14d3f07
Compare
Choose a tag to compare

Fixed:

  • correctly handle \r\n in input