Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 508 Bytes
$LOAD_PATH.unshift 'lib'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new('spec') do |t|
t.pattern = FileList['spec/**/*_spec.rb']
end
task :default => :spec
desc "Push a new version to Rubygems"
task :publish do
require 'ffmpeg/version'
sh "gem build streamio-ffmpeg.gemspec"
sh "gem push streamio-ffmpeg-#{FFMPEG::VERSION}.gem"
sh "git tag v#{FFMPEG::VERSION}"
sh "git push origin v#{FFMPEG::VERSION}"
sh "git push origin master"
sh "git clean -fd"
end