lib/travis/cli/encrypt.rb in travis-1.0.0 vs lib/travis/cli/encrypt.rb in travis-1.0.1

- old
+ new

@@ -24,10 +24,10 @@ if config_key travis_config = YAML.load_file(travis_yaml) keys = config_key.split('.') last_key = keys.pop nested_config = keys.inject(travis_config) { |c,k| c[k] ||= {}} - nested_config[last_key] ||= [] << encrypted + nested_config[last_key] ||= [] << { 'secret' => encrypted } File.write(travis_yaml, travis_config.to_yaml) else say encrypted.inspect, template(__FILE__) end end