-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (32 loc) · 811 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
require 'rake'
require 'open-uri'
require File.dirname(__FILE__) + '/lib/gtk_app/version'
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', '-', 'README.md']
end
rescue LoadError
end
desc "Publish gem and source."
task :publish => [:tag, :build] do
sh "gem push gtk_app-#{GtkApp::Version}.gem"
sh "git push origin v#{GtkApp::Version}"
sh "git push origin master"
end
desc "Build gtk_app RubyGem."
task :build do
sh "gem build gtk_app.gemspec"
end
desc "Tag the current version."
task :tag do
sh "git tag v#{GtkApp::Version}"
end
desc "Install current resque-batched-job RubyGem."
task :install => :build do
sh "gem install --local gtk_app-#{GtkApp::Version}.gem"
end
desc "Remove all local RubyGems."
task :clean do
sh "rm -fv gtk_app-*.gem"
end