lib/gemsmith/rake/publisher.rb in gemsmith-10.4.2 vs lib/gemsmith/rake/publisher.rb in gemsmith-11.0.0
- old
+ new
@@ -29,19 +29,21 @@
@credentials = credentials
@publisher = publisher
@shell = shell
@kernel = kernel
end
+ # rubocop:enable Metrics/ParameterLists
# rubocop:disable Metrics/AbcSize
def push
creds = credentials.new key: gem_spec.allowed_push_key.to_sym, url: gem_host
creds.create
options = %(--key "#{translate_key creds.key}" --host "#{gem_host}")
status = kernel.system %(gem push "pkg/#{gem_spec.package_file_name}" #{options})
process_push status
end
+ # rubocop:enable Metrics/AbcSize
def publish
publisher.publish gem_spec.version_number, sign: signed?
push
rescue Milestoner::Errors::Base => error