Module: CuttingEdge

Defined in:
lib/cutting_edge.rb,
lib/cutting_edge/app.rb,
lib/cutting_edge/repo.rb,
lib/cutting_edge/workers/mail.rb,
lib/cutting_edge/workers/badge.rb

Defined Under Namespace

Modules: GiteaMixin, GithubMixin, GitlabMixin, RepositoryMixin Classes: App, GithubRepository, Repository

Constant Summary collapse

VERSION =
'0.3'
LAST_VERSION_TIMEOUT =
5
SERVER_HOST =
'localhost'
SERVER_URL =
"http://#{SERVER_HOST}"
MAIL_TO =

Default address to send email to. If set to false, don’t send any e-mails except for repositories that have their ‘email’ attribute set.

false
MAIL_FROM =
"cutting_edge@#{SERVER_HOST}"
ALWAYS_MAIL =
false
MAIL_TEMPLATE =
File.read(File.expand_path('../../templates/mail.html.erb', __FILE__))
BADGE_TEMPLATE =
File.read(File.expand_path('../../templates/badge.svg.erb', __FILE__))
BADGE_OK =
File.read(File.expand_path('../../public/images/ok.svg', __FILE__))
BADGE_ERROR =
File.read(File.expand_path('../../public/images/error.svg', __FILE__))
BADGE_BASE_WIDTH =
25
BADGE_CELL_WIDTH =
25
BADGE_COLORS =
{
  ok: '#4c1',
  outdated_patch: '#dfb317',
  outdated_minor: '#fe7d37',
  outdated_major: '#e05d44',
  unknown: '#9f9f9f'
}
BADGE_LAYOUT =
[:ok, :outdated_patch, :outdated_minor, :outdated_major, :unknown]