Sha256: b971a150d680399ea7927ded3c59b5fd5e3c3218b86502a5573d6a19dc59d9ab
Contents?: true
Size: 807 Bytes
Versions: 7
Compression:
Stored size: 807 Bytes
Contents
module Pronto module Formatter def self.get(names) names ||= 'text' Array(names).map { |name| FORMATTERS[name.to_s] || TextFormatter } .uniq.map(&:new) end def self.names FORMATTERS.keys end FORMATTERS = { 'github' => GithubFormatter, 'github_status' => GithubStatusFormatter, 'github_pr' => GithubPullRequestFormatter, 'github_pr_review' => GithubPullRequestReviewFormatter, 'gitlab' => GitlabFormatter, 'bitbucket' => BitbucketFormatter, 'bitbucket_pr' => BitbucketPullRequestFormatter, 'bitbucket_server_pr' => BitbucketServerPullRequestFormatter, 'json' => JsonFormatter, 'checkstyle' => CheckstyleFormatter, 'text' => TextFormatter, 'null' => NullFormatter }.freeze end end
Version data entries
7 entries across 7 versions & 1 rubygems