Skip to content
This repository
Newer
Older
100644 37 lines (31 sloc) 0.979 kb
baeb175b »
2008-05-30 Add YardocTask Rake task
1 require File.dirname(__FILE__) + '/lib/yard'
e54b06f8 »
2008-03-01 Consolidate gemspec into Rakefile and add specs task
2 require 'rubygems'
96f03025 » loren
2007-03-02 Added gemspec
3 require 'rake/gempackagetask'
e54b06f8 »
2008-03-01 Consolidate gemspec into Rakefile and add specs task
4 require 'spec'
5 require 'spec/rake/spectask'
96f03025 » loren
2007-03-02 Added gemspec
6
bb7abaa5 »
2008-05-26 Add yard.gemspec and move Gem specific stuff out of Rakefile
7 WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
8 SUDO = WINDOWS ? '' : 'sudo'
9
1e4d5e98 »
2008-05-26 Change default rake task to run specs
10 task :default => :specs
96f03025 » loren
2007-03-02 Added gemspec
11
bb7abaa5 »
2008-05-26 Add yard.gemspec and move Gem specific stuff out of Rakefile
12 load 'yard.gemspec'
96f03025 » loren
2007-03-02 Added gemspec
13 Rake::GemPackageTask.new(SPEC) do |pkg|
bb7abaa5 »
2008-05-26 Add yard.gemspec and move Gem specific stuff out of Rakefile
14 pkg.gem_spec = SPEC
96f03025 » loren
2007-03-02 Added gemspec
15 pkg.need_zip = true
16 pkg.need_tar = true
22cdc425 » loren
2008-02-21 Add better exception handling, add 'rake install' task
17 end
18
bb7abaa5 »
2008-05-26 Add yard.gemspec and move Gem specific stuff out of Rakefile
19 desc "Install the gem locally"
20 task :install => :package do
21 sh "#{SUDO} gem install pkg/#{SPEC.name}-#{SPEC.version}.gem --local"
4621f205 »
2009-01-26 Don't leave ruby files hanging around in the pkg directory
22 sh "rm -rf pkg/yard-#{SPEC.version}" unless ENV['KEEP_FILES']
e54b06f8 »
2008-03-01 Consolidate gemspec into Rakefile and add specs task
23 end
24
25 desc "Run all specs"
26 Spec::Rake::SpecTask.new("specs") do |t|
28b10f62 »
2008-06-05 Allow proper debugging if
27 $DEBUG = true if ENV['DEBUG']
e54b06f8 »
2008-03-01 Consolidate gemspec into Rakefile and add specs task
28 t.spec_opts = ["--format", "specdoc", "--colour"]
29 t.spec_files = Dir["spec/**/*_spec.rb"].sort
a6b020f1 »
2009-06-07 Don't automatically use RCov in specs
30 # t.rcov = true
b1edc3e1 »
2009-06-03 Add some overview docs
31 t.rcov_opts = ['-x', '_spec\.rb$,spec_helper\.rb$']
baeb175b »
2008-05-30 Add YardocTask Rake task
32 end
5b8d227c » nex3
2009-06-07 Add spec as an alias for the specs Rake task.
33 task :spec => :specs
baeb175b »
2008-05-30 Add YardocTask Rake task
34
c351a2ce »
2009-05-03 Add support for --files switch to specify extra static files to inclu…
35 YARD::Rake::YardocTask.new do |t|
830f6ed1 »
2009-06-03 Add Architecture Overview document
36 t.after = lambda { `cp -R docs/images/ doc/images/` }
5b8d227c » nex3
2009-06-07 Add spec as an alias for the specs Rake task.
37 end
Something went wrong with that request. Please try again.