Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (27 sloc) 0.621 kb
20072a1 @sandro Initial commit to specjour.
authored
1 require 'rubygems'
2 require 'rake'
3
6d44a57 Test with rspec 2.5.0
Jon Larkowski and Les Hill authored
4 require 'rspec/core/rake_task'
a54dcb0 Support RSpec 2
Jon Larkowski and Les Hill authored
5 RSpec::Core::RakeTask.new(:spec)
20072a1 @sandro Initial commit to specjour.
authored
6
a54dcb0 Support RSpec 2
Jon Larkowski and Les Hill authored
7 RSpec::Core::RakeTask.new(:rcov)
20072a1 @sandro Initial commit to specjour.
authored
8
9 task :default => :spec
10
11 begin
12 require 'yard'
13 YARD::Rake::YardocTask.new
14 rescue LoadError
15 task :yardoc do
16 abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
17 end
18 end
397d470 @sandro prerelease task
authored
19
20 desc "tag, push gem, push to github"
21 task :prerelease do
22 version = `cat VERSION`.strip
23 command = %(
24 git tag v#{version} &&
25 rake build &&
26 git push &&
27 gem push pkg/specjour-#{version}.gem &&
28 git push --tags
29 )
30 puts command
31 puts %x(#{command})
32 end
Something went wrong with that request. Please try again.