Skip to content

Commit 974edce

Browse files
cleanup rake task
1 parent 1d813eb commit 974edce

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

Rakefile

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
1-
def command?(command)
2-
system("type #{command} > /dev/null 2>&1")
3-
end
4-
5-
#
6-
# Tests
7-
#
1+
require 'rake/testtask'
82

93
task :default => :test
104

11-
require 'rake/testtask'
125
Rake::TestTask.new do |t|
136
t.libs << "test"
147
t.test_files = FileList['test/*_test.rb']
158
t.verbose = true
169
end
17-
18-
#
19-
# Publishing
20-
#
21-
22-
desc "Push a new version to Gemcutter"
23-
task :publish do
24-
require 'git-scribe/version'
25-
26-
sh "gem build git-scribe.gemspec"
27-
sh "gem push git-scribe-#{GitScribe::VERSION}.gem"
28-
sh "git tag v#{GitScribe::VERSION}"
29-
sh "git push origin v#{GitScribe::VERSION}"
30-
sh "git push origin master"
31-
end
32-

0 commit comments

Comments
 (0)