diaspora_federation/lib/tasks/build.rake
Benjamin Neff 9d917bd097 fix release task
the old task is still there, so only push the additional gem
2015-07-10 02:13:17 +02:00

14 lines
377 B
Ruby

desc "Build gem into the pkg directory"
task build: :test do
FileUtils.rm_rf("pkg")
Dir["*.gemspec"].each do |gemspec|
system "gem build #{gemspec}"
end
FileUtils.mkdir_p("pkg")
FileUtils.mv(Dir["*.gem"], "pkg")
end
desc "Tags version, pushes to remote, and pushes gem"
task release: :build do
sh "ls pkg/diaspora_federation-*-*.gem | xargs -n 1 gem push"
end