Skip to content

Commit

Permalink
fixing more line endings...
Browse files Browse the repository at this point in the history
  • Loading branch information
bret committed Feb 9, 2009
1 parent 97eb842 commit 3edf44a
Show file tree
Hide file tree
Showing 36 changed files with 1,819 additions and 1,819 deletions.
34 changes: 17 additions & 17 deletions .project
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>watir-all</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.rubypeople.rdt.core.rubybuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.rubypeople.rdt.core.rubynature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>watir-all</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.rubypeople.rdt.core.rubybuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.rubypeople.rdt.core.rubynature</nature>
</natures>
</projectDescription>
172 changes: 86 additions & 86 deletions Rakefile
@@ -1,86 +1,86 @@
require 'rubygems'
require 'rake/clean'
require 'ftools'
require 'fileutils'
require 'rake/testtask'
gem 'ci_reporter'
require 'ci/reporter/rake/test_unit'
projects = ['watir', 'firewatir', 'commonwatir']

desc "Generate all the Watir gems"
task :gems do
projects.each do |x|
Dir.chdir(x) {puts `rake.bat gem`}
end
FileUtils.makedirs 'gems'
gems = Dir['*/pkg/*.gem']
gems.each {|gem| FileUtils.install gem, 'gems'}
end

desc "Clean all the projects"
task :clean_subprojects do
projects.each do |x|
Dir.chdir(x) {puts `rake.bat clean`}
end
end

task :clean => [:clean_subprojects]
CLEAN << 'gems/*'

desc 'Run core_tests tests for IE'
Rake::TestTask.new :core_tests do |t|
t.test_files = FileList['watir/unittests/core_tests.rb']
t.verbose = true
end

desc 'Run mozilla_all_tests for FireFox'
Rake::TestTask.new :mozilla_all_tests do |t|
t.test_files = FileList['firewatir/unittests/mozilla_all_tests.rb']
t.verbose = true
end

namespace :cruise do
def move_reports(report_dir)
Dir[report_dir].each { |e| File::move(e, ENV['CC_BUILD_ARTIFACTS']) }
File::copy("transform-results.xsl", ENV['CC_BUILD_ARTIFACTS'])
add_style_sheet_to_reports(ENV['CC_BUILD_ARTIFACTS'] + '/*.xml')
end

def add_style_sheet_to_reports(report_dir)
dir_arr = Dir[report_dir]
return if dir_arr.empty?
dir_arr.each do |f|
sContent = File.readlines(f, '\n')
sContent.each do |line|
line.sub!(/<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>/, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type=\"text\/xsl\" href=\"transform-results.xsl\"?>")
end
File.open(f, "w+") { |file| file.puts sContent }
end
end

task :move_reports_ie do
move_reports "watir/test/reports/*.xml"
end
task :move_reports_ff do
move_reports "firewatir/test/reports/*.xml"
end

task :ie_core_tests => ['ci:setup:testunit', :core_tests, :move_reports_ie]
task :ff_mozilla_all_tests => ['ci:setup:testunit', :mozilla_all_tests, :move_reports_ff]
end

desc 'Build the html for the website (wtr.rubyforge.org)'
task :website do
Dir.chdir 'doc' do
puts system('call webgen -V 1')
end
end

desc 'Build and publish the html for the website at wtr.rubyforge.org'
task :publish_website => [:website] do
user = 'bret' # userid on rubyforge
puts system("call pscp -v -r doc\\output\\*.* #{user}@rubyforge.org:/var/www/gforge-projects/wtr")
end

desc 'Run tests for all browser'
task :test => [:test_ie, :test_ff]
require 'rubygems'
require 'rake/clean'
require 'ftools'
require 'fileutils'
require 'rake/testtask'
gem 'ci_reporter'
require 'ci/reporter/rake/test_unit'
projects = ['watir', 'firewatir', 'commonwatir']

desc "Generate all the Watir gems"
task :gems do
projects.each do |x|
Dir.chdir(x) {puts `rake.bat gem`}
end
FileUtils.makedirs 'gems'
gems = Dir['*/pkg/*.gem']
gems.each {|gem| FileUtils.install gem, 'gems'}
end

desc "Clean all the projects"
task :clean_subprojects do
projects.each do |x|
Dir.chdir(x) {puts `rake.bat clean`}
end
end

task :clean => [:clean_subprojects]
CLEAN << 'gems/*'

desc 'Run core_tests tests for IE'
Rake::TestTask.new :core_tests do |t|
t.test_files = FileList['watir/unittests/core_tests.rb']
t.verbose = true
end

desc 'Run mozilla_all_tests for FireFox'
Rake::TestTask.new :mozilla_all_tests do |t|
t.test_files = FileList['firewatir/unittests/mozilla_all_tests.rb']
t.verbose = true
end

namespace :cruise do
def move_reports(report_dir)
Dir[report_dir].each { |e| File::move(e, ENV['CC_BUILD_ARTIFACTS']) }
File::copy("transform-results.xsl", ENV['CC_BUILD_ARTIFACTS'])
add_style_sheet_to_reports(ENV['CC_BUILD_ARTIFACTS'] + '/*.xml')
end

def add_style_sheet_to_reports(report_dir)
dir_arr = Dir[report_dir]
return if dir_arr.empty?
dir_arr.each do |f|
sContent = File.readlines(f, '\n')
sContent.each do |line|
line.sub!(/<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>/, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?xml-stylesheet type=\"text\/xsl\" href=\"transform-results.xsl\"?>")
end
File.open(f, "w+") { |file| file.puts sContent }
end
end

task :move_reports_ie do
move_reports "watir/test/reports/*.xml"
end
task :move_reports_ff do
move_reports "firewatir/test/reports/*.xml"
end

task :ie_core_tests => ['ci:setup:testunit', :core_tests, :move_reports_ie]
task :ff_mozilla_all_tests => ['ci:setup:testunit', :mozilla_all_tests, :move_reports_ff]
end

desc 'Build the html for the website (wtr.rubyforge.org)'
task :website do
Dir.chdir 'doc' do
puts system('call webgen -V 1')
end
end

desc 'Build and publish the html for the website at wtr.rubyforge.org'
task :publish_website => [:website] do
user = 'bret' # userid on rubyforge
puts system("call pscp -v -r doc\\output\\*.* #{user}@rubyforge.org:/var/www/gforge-projects/wtr")
end

desc 'Run tests for all browser'
task :test => [:test_ie, :test_ff]
34 changes: 17 additions & 17 deletions commonwatir/.project
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>watir-common</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.rubypeople.rdt.core.rubybuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.rubypeople.rdt.core.rubynature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>watir-common</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.rubypeople.rdt.core.rubybuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.rubypeople.rdt.core.rubynature</nature>
</natures>
</projectDescription>
10 changes: 5 additions & 5 deletions commonwatir/History.txt
@@ -1,5 +1,5 @@
=== 0.0.1 / 2008-08-28
* Created
=== 0.0.1 / 2008-08-28

* Created


28 changes: 14 additions & 14 deletions commonwatir/Manifest.txt
@@ -1,14 +1,14 @@
History.txt
Manifest.txt
README.txt
Rakefile
lib/watir.rb
lib/commonwatir.rb
lib/watir/assertions.rb
lib/watir/browser.rb
lib/watir/browsers.rb
lib/watir/exceptions.rb
lib/watir/matches.rb
lib/watir/options.rb
lib/watir/testcase.rb
lib/watir/waiter.rb
History.txt
Manifest.txt
README.txt
Rakefile
lib/watir.rb
lib/commonwatir.rb
lib/watir/assertions.rb
lib/watir/browser.rb
lib/watir/browsers.rb
lib/watir/exceptions.rb
lib/watir/matches.rb
lib/watir/options.rb
lib/watir/testcase.rb
lib/watir/waiter.rb
96 changes: 48 additions & 48 deletions commonwatir/README.txt
@@ -1,48 +1,48 @@
= commonwatir
* FIX (url)
== DESCRIPTION:
Common code used by Watir and FireWatir
== FEATURES/PROBLEMS:
* FIX (list of features or problems)
== SYNOPSIS:
FIX (code sample of usage)
== REQUIREMENTS:
* FIX (list of requirements)
== INSTALL:
* sudo gem install commonwatir
== LICENSE:
(The MIT License)
Copyright (c) 2008 Bret Pettichord
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
= commonwatir

* FIX (url)

== DESCRIPTION:

Common code used by Watir and FireWatir

== FEATURES/PROBLEMS:

* FIX (list of features or problems)

== SYNOPSIS:

FIX (code sample of usage)

== REQUIREMENTS:

* FIX (list of requirements)

== INSTALL:

* sudo gem install commonwatir

== LICENSE:

(The MIT License)

Copyright (c) 2008 Bret Pettichord

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 changes: 9 additions & 9 deletions commonwatir/Rakefile
@@ -1,9 +1,9 @@
require 'rubygems'
require 'hoe'
require './lib/commonwatir.rb'

Hoe.new('commonwatir', CommonWatir::VERSION) do |p|
p.rubyforge_name = 'wtr'
p.developer('Bret Pettichord', 'bret@watircraft.com')
p.extra_deps << 'user-choices'
end
require 'rubygems'
require 'hoe'
require './lib/commonwatir.rb'

Hoe.new('commonwatir', CommonWatir::VERSION) do |p|
p.rubyforge_name = 'wtr'
p.developer('Bret Pettichord', 'bret@watircraft.com')
p.extra_deps << 'user-choices'
end

0 comments on commit 3edf44a

Please sign in to comment.