watir 4.0.2-x86-mingw32 → 5.0.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 482e709a39222c2d7811849c9a71672eb1f321ed
4
+ data.tar.gz: 17ff170cfe61c39413b6b4a3dffbadc1b28d0e79
5
+ SHA512:
6
+ metadata.gz: 03a7e71f990955430d4974e99b133c8cb8e3d2c3a828e2ddb1ddc6c7075bc895231f0abedcea0a0c053156e7ab2925735525b30acb0900f0e5ae9a0f016a4a47
7
+ data.tar.gz: 651e4d0738031a5d817cac340873230fefb6bd9183b22cf93f755696eca731f1592175205b763e362fc850c68a5aee87a6db3e84dffc86e1b426f84cc9f77f6e
data/lib/watir/loader.rb CHANGED
@@ -2,20 +2,14 @@ require File.expand_path('version', File.dirname(__FILE__))
2
2
 
3
3
  module Watir
4
4
  class Browser
5
- class << self
6
-
7
- def new(browser=nil, *args)
8
- load_driver_for browser
9
-
10
- if Watir.driver == :webdriver
11
- # remove this class method for WebDriver to avoid endless loop
12
- singleton_class = class << self; self end
13
- singleton_class.send :remove_method, :new
14
- end
5
+ def initialize(browser=nil, *args)
6
+ self.class.load_driver_for browser
15
7
 
16
- new browser.nil? && Watir.driver == :webdriver ? :firefox : browser, *args
17
- end
8
+ # execute just loaded driver's #initialize
9
+ initialize browser.nil? && Watir.driver == :webdriver ? :firefox : browser, *args
10
+ end
18
11
 
12
+ class << self
19
13
  def start(url, browser=nil, *args)
20
14
  load_driver_for browser
21
15
 
@@ -28,13 +22,12 @@ module Watir
28
22
 
29
23
  def method_missing(name, *args, &block)
30
24
  Watir.load_driver
25
+ return super unless respond_to? name
31
26
  send name, *args, &block
32
27
  end
33
28
 
34
- private
35
-
36
29
  def load_driver_for(browser)
37
- if browser && browser.to_sym != :ie && Watir.driver == :classic
30
+ if browser && browser.respond_to?(:to_sym) && browser.to_sym != :ie && Watir.driver == :classic
38
31
  Watir.driver = :webdriver
39
32
  end
40
33
  Watir.load_driver
data/lib/watir/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Watir
2
- BUNDLE_VERSION = '4.0.2'
2
+ BUNDLE_VERSION = '5.0.0'
3
3
  end
data/watir.gemspec CHANGED
@@ -20,6 +20,6 @@ Gem::Specification.new do |s|
20
20
 
21
21
  if ENV["build_for_windows"]
22
22
  s.platform = Gem::Platform::MINGW
23
- s.add_dependency "watir-classic", "~> 3.2"
23
+ s.add_dependency "watir-classic", "~> 4.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2
5
- prerelease:
4
+ version: 5.0.0
6
5
  platform: x86-mingw32
7
6
  authors:
8
7
  - Bret Pettichord
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-10-31 00:00:00.000000000 Z
11
+ date: 2013-10-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: commonwatir
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,35 +27,31 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: watir-webdriver
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: watir-classic
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
53
- version: '3.2'
47
+ version: '4.0'
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
61
- version: '3.2'
54
+ version: '4.0'
62
55
  description: Automated testing tool for web applications. By Testers. For Testers.
63
56
  email:
64
57
  - bret@pettichord.com
@@ -73,27 +66,26 @@ files:
73
66
  - watir.gemspec
74
67
  homepage: http://github.com/watir/watir
75
68
  licenses: []
69
+ metadata: {}
76
70
  post_install_message:
77
71
  rdoc_options: []
78
72
  require_paths:
79
73
  - lib
80
74
  required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
75
  requirements:
83
- - - ! '>='
76
+ - - '>='
84
77
  - !ruby/object:Gem::Version
85
78
  version: '0'
86
79
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
80
  requirements:
89
- - - ! '>='
81
+ - - '>='
90
82
  - !ruby/object:Gem::Version
91
83
  version: '0'
92
84
  requirements: []
93
85
  rubyforge_project: watir
94
- rubygems_version: 1.8.24
86
+ rubygems_version: 2.0.7
95
87
  signing_key:
96
- specification_version: 3
88
+ specification_version: 4
97
89
  summary: Watir
98
90
  test_files: []
99
91
  has_rdoc: