desc "build a gem from the gemspec" task :build do sh "mkdir -p pkg" sh "gem build mpv-slave.gemspec" sh "mv mpv-slave-*.gem pkg/" end desc "clean pkg" task :clean do sh "rm -f pkg/*.gem" end desc "install a gem" task :install => [:clean, :build] do sh "gem install -l --no-format-executable pkg/mpv-slave-*.gem" end task :default => :install