Skip to content

A small library to check if SIPs have valid front matter

License

Notifications You must be signed in to change notification settings

saddle-finance/sdl_validator

Repository files navigation

SDL validator

Gem

Validation rules

Mandatory fields

  • sip
  • title
  • author
  • status
  • created

Optional fields

  • discussions-to
  • layer
  • replaces
  • requires
  • resolution
  • review-period-end
  • superseded-by
  • updated

Mandatory values

  • status must be:
    • 'WIP'
    • 'Proposed'
    • 'Approved'
    • 'Implemented'
    • 'Withdrawn'
    • 'Deferred'
    • 'Rejected'
    • 'Moribund'

Prerequisite

  • ruby

Setup

gem install sdl_validator

Usage (command line)

sdl_validator INPUT_FILES

Usage (as a lib)

require 'sdl_validator

SDLValidator::Runner.run 

Example

$sdl_validator  ~/src/SIPs/SIPS/*[0-9].md

total:1, valid:1, invalid:0, errors:0
	statuses: [["Implemented", 1]]

Running tests

bundle exec rspec

Releasing new gem

gem bump --version patch|minor|major
bundle exec rake release

About

A small library to check if SIPs have valid front matter

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages