class Codelog::Message::Error

Public Class Methods

already_existing_version(version) click to toggle source
# File lib/codelog/message.rb, line 18
def already_existing_version(version)
  "#{prefix}: Could not create release #{version}. Release #{version} already exists"
end
could_not_parse_yaml(error) click to toggle source
# File lib/codelog/message.rb, line 36
def could_not_parse_yaml(error)
  "#{prefix}: #{error.problem.capitalize} in #{error.file}:#{error.line}"
end
invalid_date_format() click to toggle source
# File lib/codelog/message.rb, line 13
def invalid_date_format
  "#{prefix}: Invalid date format. Check the input date format on:\n\n" \
  'changelogs/codelog.yml'
end
invalid_version_type(version_type) click to toggle source
# File lib/codelog/message.rb, line 40
def invalid_version_type(version_type)
  "#{version_type} is not a valid version type."
end
missing_config_file() click to toggle source
# File lib/codelog/message.rb, line 30
def missing_config_file
  "#{prefix}: Could not find a config file.\n" \
  "Run the following command to create the missing file:\n\n" \
  'codelog setup'
end
missing_version_number() click to toggle source
# File lib/codelog/message.rb, line 9
def missing_version_number
  "#{prefix}: Please enter a version number"
end
no_detected_changes(version) click to toggle source
# File lib/codelog/message.rb, line 22
def no_detected_changes(version)
  "#{prefix}: Could not create release #{version}. You must create a change first.\n" \
  "Run the following command to create a new change file:\n\n" \
  "codelog new\n\n" \
  "Then describe your changes on the file generated at:\n\n" \
  'changelog/unreleased'
end
prefix() click to toggle source
# File lib/codelog/message.rb, line 5
def prefix
  'ERROR'
end