lib/travis/cli/encrypt.rb in travis-1.4.0 vs lib/travis/cli/encrypt.rb in travis-1.5.0

- old
+ new

@@ -18,11 +18,11 @@ error "cannot combine --override and --append" if append? and override? error "--append without --add makes no sense" if append? and not add? error "--override without --add makes no sense" if override? and not add? self.override |= !config_key.start_with?('env.') if add? and not append? - if args.first =~ %r{\w+/\w+} + if args.first =~ %r{\w+/\w+} && !args.first.include?("=") warn "WARNING: The name of the repository is now passed to the command with the -r option:" warn " #{command("encrypt [...] -r #{args.first}")}" warn " If you tried to pass the name of the repository as the first argument, you" warn " probably won't get the results you wanted.\n" end @@ -98,6 +98,5 @@ Please add the following to your <[[ color('.travis.yml', :info) ]]> file: %s Pro Tip: You can add it automatically by running with <[[ color('--add', :info) ]]>. -