Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (49 sloc) 2.22 KB
require 'watir-rdoc'
$__watir_source_patterns = [
'CHANGES', 'rakefile.rb', 'VERSION', "README.rdoc", 'watir.gemspec', 'watir-rdoc.rb', 'LICENSE',
'lib/watir/*.rb', 'lib/watir/AutoItX3.dll', 'lib/watir/AutoItX.chm',
'unittests/*.rb', 'unittests/html/*.html', 'unittests/html/images/*.*',
'unittests/other/*.rb', 'unittests/testcase/*.rb', 'unittests/windows/*.rb',
'lib/watir/IEDialog/Release/IEDialog.dll', 'lib/watir/win32ole/win32ole.so',
'lib/watir/contrib/*.rb'] +
$WATIR_EXTRA_RDOC_FILES
spec = Gem::Specification.new do |s|
version = File.exist?('VERSION') ? File.read('VERSION').strip : "0.0.0"
s.name = 'watir'
s.version = version
s.summary = 'Automated testing tool for web applications.'
s.description = <<-EOF
WATIR is "Web Application Testing in Ruby". Watir (pronounced water) is a free,
open-source functional testing tool for automating browser-based tests of web applications.
It works with applications written in any language.
Watir drives the Internet Explorer browser the same way an end user would.
It clicks links, fills in forms, presses buttons.
Watir also checks results, such as whether expected text appears on the
page, or whether a control is enabled.
Watir can test web applications written in any language.
Watir is a Ruby library that works with Internet Explorer on Windows.
EOF
s.author = 'Bret Pettichord'
s.email = 'watir-general@groups.google.com'
s.rubyforge_project = 'Watir'
s.homepage = 'http://www.watir.com/'
s.platform = Gem::Platform::RUBY
s.requirements << 'Microsoft Windows running Internet Explorer 5.5 or later.'
s.require_path = 'lib'
s.add_dependency 'win32-process', '>= 0.5.5'
s.add_dependency 'windows-pr', '>= 0.6.6'
s.add_dependency 'commonwatir', '= ' + version
s.add_dependency 'firewatir', '= ' + version
s.add_dependency 'nokogiri'
s.has_rdoc = true
s.rdoc_options += $WATIR_RDOC_OPTIONS
s.extra_rdoc_files = $WATIR_EXTRA_RDOC_FILES
s.executables << 'watir-console'
# s.test_file = 'unittests/core_tests.rb'
s.files = $__watir_source_patterns.inject([]) { |list, glob|
list << Dir[glob].delete_if { |path|
File.directory?(path) or
path.include?('CVS')
}
}.flatten
end