Rakefile in zsh_dots-0.5.1 vs Rakefile in zsh_dots-0.5.3

- old
+ new

@@ -1,9 +1,26 @@ #!/usr/bin/env rake +# +# This is for Rake tasks that pertain to the development and +# maintainence of DOTS itself. All tasks that can be loaded +# with `rake -g` should be put into a .rake file in ~/.dots/lib/tasks. +# +# These tasks are also available within DOTS natively. + require 'rake' -require 'rspec/core/rake_task' +require 'bundler/gem_tasks' -# Global Rake tasks, available anywhere by running `rake -g` Dir["lib/tasks/*.rake"].each { |rake_file| load rake_file } -# Test task for the local testing suite -RSpec::Core::RakeTask.new(:test) +begin + require 'rspec/core/rake_task' + RSpec::Core::RakeTask.new(:test) +rescue LoadError => e + # RSpec can not be run in the gem installation. +end + +desc "Update DOTS, Antigen, and all installed plugins." +task :update do + sh "cd ~/.dots && git pull origin master" + sh "cd ~/.dots && git submodule sync" + sh "antigen-update" +end