lib/travis/cli/encrypt.rb in travis-1.5.6.travis.299.4 vs lib/travis/cli/encrypt.rb in travis-1.5.6.travis.301.4

- old
+ new

@@ -33,10 +33,10 @@ if data.empty? say color("Reading from stdin, press Ctrl+D when done", :info) if $stdin.tty? data = $stdin.read end - data = split? ? data.split("\n") : [data] + data = split? ? data.split("\n") : [data.strip] encrypted = data.map { |data| repository.encrypt(data) } if config_key set_config encrypted.map { |e| { 'secure' => e } } save_travis_config