watir 4.0.0.rc4 → 4.0.0.rc5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -3,3 +3,22 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
3
  require 'bundler'
4
4
  Bundler::GemHelper.install_tasks
5
5
 
6
+ namespace :build do
7
+ desc "Build for all platforms."
8
+ task :all => :build do
9
+ begin
10
+ ENV["build_for_windows"] = "true"
11
+ Rake::Task["build"].reenable
12
+ Rake::Task["build"].invoke
13
+ ensure
14
+ ENV["build_for_windows"] = nil
15
+ end
16
+ end
17
+ end
18
+
19
+ namespace :release do
20
+ desc "Release for all platforms."
21
+ task :all => :release do
22
+ sh "gem push pkg/#{Dir["pkg/*mingw32.gem"].first}"
23
+ end
24
+ end
@@ -23,10 +23,6 @@ module Watir
23
23
  class << self
24
24
  def load_driver
25
25
  require "watir-#{driver}"
26
- rescue LoadError
27
- warn "watir-#{driver} gem is missing. Install it with the following command:"
28
- warn " gem install watir-#{driver}"
29
- exit 1
30
26
  end
31
27
 
32
28
  def driver
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- BUNDLE_VERSION = '4.0.0.rc4'
2
+ BUNDLE_VERSION = '4.0.0.rc5'
3
3
  end
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ require "bundler"
2
3
  $:.push File.expand_path("../lib", __FILE__)
3
4
  require "watir/version"
4
5
 
@@ -15,4 +16,10 @@ Gem::Specification.new do |s|
15
16
  s.files = %x{git ls-files}.split("\n")
16
17
  s.require_paths = ["lib"]
17
18
  s.add_dependency "commonwatir", "~>4"
19
+ s.add_dependency "watir-webdriver"
20
+
21
+ if ENV["build_for_windows"]
22
+ s.platform = Gem::Platform::MINGW
23
+ s.add_dependency "watir-classic", "~> 3.1"
24
+ end
18
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.rc4
4
+ version: 4.0.0.rc5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-18 00:00:00.000000000 Z
12
+ date: 2012-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: commonwatir
@@ -27,6 +27,22 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: '4'
30
+ - !ruby/object:Gem::Dependency
31
+ name: watir-webdriver
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
30
46
  description: Automated testing tool for web applications. By Testers. For Testers.
31
47
  email:
32
48
  - bret@pettichord.com