forked from cequel/cequel-devise
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
38 lines (32 loc) · 848 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 File.expand_path('../lib/cequel/devise/version', __FILE__)
task :default => :release
task :release => [
:build,
:tag,
:update_stable,
:push,
:cleanup
]
desc 'Build gem'
task :build do
system 'gem build cequel-devise.gemspec'
end
desc 'Create git release tag'
task :tag do
system "git tag -a -m 'Version #{Cequel::Devise::VERSION}' #{Cequel::Devise::VERSION}"
system "git push origin #{Cequel::Devise::VERSION}:#{Cequel::Devise::VERSION}"
end
desc 'Update stable branch on GitHub'
task :update_stable do
if Cequel::Devise::VERSION =~ /^(\d+\.)+\d+$/ # Don't push for prerelease
system "git push -f origin HEAD:stable"
end
end
desc 'Push gem to repository'
task :push do
system "gem push cequel-devise-#{Cequel::Devise::VERSION}.gem"
end
task 'Remove packaged gems'
task :cleanup do
system "rm -v *.gem"
end