Class: RSGem::Tasks::CleanGemspec

Inherits:
Base
  • Object
show all
Defined in:
lib/rsgem/tasks/clean_gemspec.rb

Constant Summary collapse

OUTPUT =
OutputStruct.new(name: 'Clean gemspec')
KEYS_TO_EMPTY =
%w[summary description homepage].freeze

Instance Attribute Summary

Attributes inherited from Base

#args, #context

Instance Method Summary collapse

Methods inherited from Base

#call, #initialize

Methods included from Output

#with_output

Constructor Details

This class inherits a constructor from RSGem::Tasks::Base

Instance Method Details

#performObject



9
10
11
12
13
# File 'lib/rsgem/tasks/clean_gemspec.rb', line 9

def perform
  comment_metadata!
  empty_keys!
  write
end