Sha256: 5c7ec2cc48904fbacb6310ae3e8d4b75d088ac65e163d403082901b1e29ce113

Contents?: true

Size: 1.22 KB

Versions: 18

Compression:

Stored size: 1.22 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/dialogs/*.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'


desc 'Attach to an active IE window'
task :attach do
  sh "irb.bat -r attach.rb"
end

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

18 entries across 18 versions & 1 rubygems

Version Path
watir-3.0.0.rc2 rakefile.rb
watir-3.0.0.rc1 rakefile.rb
watir-2.0.4 rakefile.rb
watir-2.0.3 rakefile.rb
watir-2.0.2 rakefile.rb
watir-2.0.2.rc1 rakefile.rb
watir-2.0.1 rakefile.rb
watir-2.0.0 rakefile.rb
watir-2.0.0.rc3 rakefile.rb
watir-2.0.0.rc2 rakefile.rb
watir-1.9.2 rakefile.rb
watir-1.9.2.rc1 rakefile.rb
watir-1.9.1 rakefile.rb
watir-1.9.1.rc1 rakefile.rb
watir-1.9.0 rakefile.rb
watir-1.9.0.rc7 rakefile.rb
watir-1.9.0.rc6 rakefile.rb
watir-1.9.0.rc5 rakefile.rb