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