class Gemsmith::Tools::Validator

Validates whether a gem can be published or not.

Public Instance Methods

call(specification) click to toggle source
# File lib/gemsmith/tools/validator.rb, line 12
def call specification
  executor.capture3("git", "status", "--porcelain").then do |_stdout, _stderr, status|
    status.success? ? Success(specification) : Failure("Project has uncommitted changes.")
  end
end