Sha256: d91fbd76455223e0525589e96166763b1d80a8c630c514173701e92f405f5584
Contents?: true
Size: 982 Bytes
Versions: 2
Compression:
Stored size: 982 Bytes
Contents
require 'rake' require 'rake/clean' require 'rake/testtask' CLEAN.include("**/*.gem", "**/*.rbc") namespace 'gem' do desc 'Build the windows-pr gem' task :create => [:clean] do spec = eval(IO.read('windows-pr.gemspec')) if Gem::VERSION < "2.0" Gem::Builder.new(spec).build else require 'rubygems/package' Gem::Package.build(spec) end end desc 'Install the windows-pr gem' task :install => [:create] do file = Dir["*.gem"].first sh "gem install -l #{file}" end end namespace 'test' do Rake::TestTask.new('all') do |t| t.warning = true t.test_files = FileList['test/helper.rb', 'test/tc*'] end # Dynamically generate individual test tasks. Dir['test/*.rb'].each{ |file| name = File.basename(file.split('tc_').last, '.rb') Rake::TestTask.new(name) do |t| t.warning = true t.test_files = FileList[file] end } end task :default => 'test:all'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
windows-pr-1.2.6 | Rakefile |
windows-pr-1.2.5 | Rakefile |