Rakefile in travis-1.5.7.travis.345.4 vs Rakefile in travis-1.5.7
- old
+ new
@@ -42,15 +42,11 @@
readme.gsub! /(gem install travis -v )\S+/, "\\1#{Travis::VERSION}"
File.write('README.md', readme)
end
task :completion do
- require 'travis/cli'
- require 'erb'
- commands = Travis::CLI.commands.sort_by { |c| c.command_name }
- template = File.read('completion/travis.sh.erb')
- source = ERB.new(template).result(binding).gsub(/^ +\n/, '')
- File.write('completion/travis.sh', source)
+ require 'travis/tools/completion'
+ Travis::Tools::Completion.compile
end
task 'travis.gemspec' => :update
task 'README.md' => :update
\ No newline at end of file