-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
31 lines (25 loc) · 687 Bytes
/
Rakefile
File metadata and controls
31 lines (25 loc) · 687 Bytes
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
$:.unshift 'lib'
task :default => :test
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test' << '.'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -r ./lib/whmcs.rb -I ./lib"
end
require 'sdoc_helpers'
desc "Push a new version to Gemcutter"
task :publish do
require 'whmcs/version'
ver = WHMCS::Version
sh "gem build whmcs-ruby.gemspec"
sh "gem push whmcs-ruby-#{ver}.gem"
sh "git tag -a -m 'whmcs-ruby v#{ver}' v#{ver}"
sh "git push origin v#{ver}"
sh "git push origin master"
sh "git clean -fd"
sh "rake pages"
end