Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (26 sloc) 0.758 kb
a9dddbe @lsegal Fix inheritance bug, add gemspec
authored
1 require 'rubygems'
2 require 'rake/gempackagetask'
87466c5 @lsegal Initial import
authored
3 require 'spec'
4 require 'spec/rake/spectask'
cd0a4a1 @lsegal Bump version to 0.1.1
authored
5 require 'yard'
87466c5 @lsegal Initial import
authored
6
a9dddbe @lsegal Fix inheritance bug, add gemspec
authored
7 WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
8 SUDO = WINDOWS ? '' : 'sudo'
9
87466c5 @lsegal Initial import
authored
10 task :default => :specs
11
a9dddbe @lsegal Fix inheritance bug, add gemspec
authored
12 load 'tadpole.gemspec'
13 Rake::GemPackageTask.new(SPEC) do |pkg|
14 pkg.gem_spec = SPEC
15 pkg.need_zip = true
16 pkg.need_tar = true
17 end
18
19 desc "Install the gem locally"
20 task :install => :package do
21 sh "#{SUDO} gem install pkg/#{SPEC.name}-#{SPEC.version}.gem --local"
22 end
23
87466c5 @lsegal Initial import
authored
24 desc "Run all specs"
25 Spec::Rake::SpecTask.new("specs") do |t|
26 $DEBUG = true if ENV['DEBUG']
a063783 @lsegal Don't automatically do rcov
authored
27 t.rcov = true if ENV['RCOV']
87466c5 @lsegal Initial import
authored
28 t.spec_opts = ["--format", "specdoc", "--colour"]
29 t.spec_files = Dir["spec/**/*_spec.rb"].sort
a9dddbe @lsegal Fix inheritance bug, add gemspec
authored
30 end
cd0a4a1 @lsegal Bump version to 0.1.1
authored
31
32 YARD::Rake::YardocTask.new
Something went wrong with that request. Please try again.