mix poney.spec (Poney v0.1.0)

Copy Markdown View Source

Copies the files that define the Poney format from a release of Poney.

$ mix poney.spec v0.2.0
$ mix poney.spec v0.2.0 --from ../poney

This task is for work on this library itself; in any other project it stops with an error. It copies, from the tag given:

  • spec/poney.schema.json to priv/spec/poney.schema.json: the shape that Poney.read/1 checks;
  • spec/conformance/ to test/conformance/: the documents that every reader must accept or refuse, and the manifest that says which;
  • spec/examples/*.poney to test/fixtures/examples/.

It then writes priv/spec/source.json with the tag. Without --from, it downloads the files from GitHub; with --from, it reads them from a checkout of Poney at that tag (git show <tag>:<path>).