Class: Gemsmith::Tools::Validator

Inherits:
Object
  • Object
show all
Defined in:
lib/gemsmith/tools/validator.rb

Overview

Validates whether a gem can be published or not.

Instance Method Summary collapse

Instance Method Details

#call(specification) ⇒ Object



12
13
14
15
16
# 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