Sha256: 71b1c8c1cf3a270ba210c1d80d2f8dad7115cf1b7b4ee1ba3344a4cb79f7b2eb

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/packagetask'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'

require 'watir-rdoc'

$VERBOSE = nil
desc 'Generate Watir API Documentation'
Rake::RDocTask.new('rdoc') do |rdoc| 
  rdoc.rdoc_dir = 'rdoc'
  rdoc.options += $WATIR_RDOC_OPTIONS
  rdoc.rdoc_files.include('lib/watir/ie.rb')
  $WATIR_EXTRA_RDOC_FILES.each do |file|
    rdoc.rdoc_files.include(file)
  end
  rdoc.rdoc_files.include('lib/watir/contrib/*.rb')  
  rdoc.rdoc_files.include('lib/watir/*.rb')   
  rdoc.rdoc_files.exclude('lib/watir/camel_case.rb')
end

Rake::TestTask.new do |t|
  t.test_files = FileList['unittests/core_tests.rb']
  t.verbose = true
end

CLEAN << 'pkg' << 'rdoc'

task :default => :package

if defined? Rake::GemPackageTask

  gemspec = eval(File.read('watir.gemspec'))

  Rake::GemPackageTask.new(gemspec) do |p|
    p.gem_spec = gemspec
    p.need_tar = false
    p.need_zip = false
  end

else
  puts 'Warning: without Rubygems packaging tasks are not available'
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
watir-1.8.1 rakefile.rb
watir-1.8.1.rc1 rakefile.rb
watir-1.8.0 rakefile.rb
watir-1.8.0.rc1 rakefile.rb
watir-1.7.1 rakefile.rb
watir-1.7.0 rakefile.rb
watir-1.7.0.rc1 rakefile.rb
watir-1.6.7 rakefile.rb
watir-1.6.7.rc1 rakefile.rb