lib/travis/cli/setup/npm.rb in travis-1.11.1 vs lib/travis/cli/setup/npm.rb in travis-1.12.0

- old
+ new

@@ -1,18 +1,20 @@ +# frozen_string_literal: true + require 'travis/cli/setup' module Travis module CLI class Setup class NPM < Service - description "automatic release to npm" + description 'automatic release to npm' def run deploy 'npm', 'release' do |config| - config['email'] ||= ask("npm email address: ") { |q| q }.to_s - config['api_key'] ||= ask("npm api key: ") { |q| q.echo = "*" }.to_s + config['email'] ||= ask('npm email address: ') { |q| q }.to_s + config['api_key'] ||= ask('npm api key: ') { |q| q.echo = '*' }.to_s - on("release only tagged commits? ", config, 'tags' => true) + on('release only tagged commits? ', config, 'tags' => true) end end end end end