Class: API::Licenses

Inherits:
Grape::API
  • Object
show all
Defined in:
lib/api/licenses.rb

Overview

Licenses API

Constant Summary collapse

PROJECT_TEMPLATE_REGEX =
/[\<\{\[]
  (project|description|
  one\sline\s.+\swhat\sit\sdoes\.) # matching the start and end is enough here
[\>\}\]]/xi.freeze
YEAR_TEMPLATE_REGEX =
/[<{\[](year|yyyy)[>}\]]/i.freeze
FULLNAME_TEMPLATE_REGEX =
/[\<\{\[]
  (fullname|name\sof\s(author|copyright\sowner))
[\>\}\]]/xi.freeze