watir 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ == Version 2.0.1 - 2011/08/10
2
+
3
+ * fixed Watir::IE#close for Ruby 1.9.2 - fixes http://jira.openqa.org/browse/WTR-481
4
+ * fixed locating elements on Ruby 1.9.2
5
+
1
6
  == Version 2.0.0 - 2011/08/10
2
7
 
3
8
  * RIP FireWatir - there won't be any new releases due to the lack of JSSH extension for Firefox 4+ versions.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.0
1
+ 2.0.1
@@ -32,7 +32,7 @@ module Watir
32
32
 
33
33
  def locate
34
34
  return if [Element, TableBodies].include? self.class
35
- tag = self.class.constants.include?("TAG") ? self.class::TAG : self.class.name.split("::").last
35
+ tag = self.class.const_defined?(:TAG) ? self.class::TAG : self.class.name.split("::").last
36
36
  @o = @container.tagged_element_locator(tag, @how, @what).locate
37
37
  end
38
38
 
@@ -70,7 +70,7 @@ module Watir
70
70
  end
71
71
 
72
72
  def element_tag
73
- element_class.constants.include?("TAG") ? element_class::TAG : element_class.name.split("::").last
73
+ element_class.const_defined?(:TAG) ? element_class::TAG : element_class.name.split("::").last
74
74
  end
75
75
  end
76
76
  end
@@ -344,7 +344,7 @@ module Watir
344
344
  def exists?
345
345
  begin
346
346
  !!(@ie.name =~ /Internet Explorer/)
347
- rescue WIN32OLERuntimeError
347
+ rescue WIN32OLERuntimeError, NoMethodError
348
348
  false
349
349
  end
350
350
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 0
10
- version: 2.0.0
9
+ - 1
10
+ version: 2.0.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bret Pettichord
@@ -57,12 +57,12 @@ dependencies:
57
57
  requirements:
58
58
  - - "="
59
59
  - !ruby/object:Gem::Version
60
- hash: 15
60
+ hash: 13
61
61
  segments:
62
62
  - 2
63
63
  - 0
64
- - 0
65
- version: 2.0.0
64
+ - 1
65
+ version: 2.0.1
66
66
  type: :runtime
67
67
  version_requirements: *id003
68
68
  - !ruby/object:Gem::Dependency