commonwatir 1.8.0 → 1.8.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +17 -0
- data/VERSION +1 -1
- data/lib/watir.rb +1 -1
- data/lib/watir/util.rb +35 -0
- metadata +13 -10
- data/lib/watir/core_ext.rb +0 -34
data/CHANGES
CHANGED
@@ -1,3 +1,20 @@
|
|
1
|
+
== Version 1.8.1 - 2011/04/07
|
2
|
+
|
3
|
+
=== IE improvements
|
4
|
+
|
5
|
+
* Added #frames method (Ivan Kabluchkov).
|
6
|
+
* Added Frame#exists?, #src, #name and other Element methods (Ivan Kabluchkov).
|
7
|
+
* Added multiple locators support for #frame method (Ivan Kabluchkov).
|
8
|
+
* Added *_no_wait methods (Ivan Kabluchkov).
|
9
|
+
|
10
|
+
=== Firefox improvements
|
11
|
+
|
12
|
+
* Nothing
|
13
|
+
|
14
|
+
=== General improvements
|
15
|
+
|
16
|
+
* Using Watir::Util for better compatibility with ActiveSupport used by Rails 3. Closes http://jira.openqa.org/browse/WTR-474 (Jarmo Pertman)
|
17
|
+
|
1
18
|
== Version 1.8.0 - 2011/28/02
|
2
19
|
|
3
20
|
=== IE improvements
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.1.rc1
|
data/lib/watir.rb
CHANGED
@@ -8,7 +8,7 @@ require 'watir/waiter' # this will be removed in some future version
|
|
8
8
|
require 'watir/wait'
|
9
9
|
require 'watir/wait_helper'
|
10
10
|
require 'watir/element_extensions'
|
11
|
-
require 'watir/
|
11
|
+
require 'watir/util'
|
12
12
|
require 'watir/exceptions'
|
13
13
|
require 'watir/matches'
|
14
14
|
require 'watir/browser'
|
data/lib/watir/util.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
module Watir
|
2
|
+
class Util
|
3
|
+
class << self
|
4
|
+
#
|
5
|
+
# "Watir::Span" => "Span"
|
6
|
+
#
|
7
|
+
def demodulize(str)
|
8
|
+
str.gsub(/^.*::/, '')
|
9
|
+
end
|
10
|
+
|
11
|
+
#
|
12
|
+
# "FooBar" => "foo_bar"
|
13
|
+
#
|
14
|
+
def underscore(str)
|
15
|
+
str.gsub(/\B[A-Z][^A-Z]/, '_\&').downcase.gsub(' ', '_')
|
16
|
+
end
|
17
|
+
|
18
|
+
#
|
19
|
+
# "Checkboxes" => "Checkbox"
|
20
|
+
# "Bodies" => "Body"
|
21
|
+
# "Buttons" => "Button"
|
22
|
+
#
|
23
|
+
def singularize(str)
|
24
|
+
case str.downcase
|
25
|
+
when "checkboxes"
|
26
|
+
str.chop.chop
|
27
|
+
when "bodies"
|
28
|
+
str.chop.chop.chop + "y"
|
29
|
+
else
|
30
|
+
str.chop
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: commonwatir
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 977940506
|
5
|
+
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
|
9
|
+
- 1
|
10
|
+
- rc1
|
11
|
+
version: 1.8.1.rc1
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- Bret Pettichord
|
@@ -15,7 +16,7 @@ autorequire:
|
|
15
16
|
bindir: bin
|
16
17
|
cert_chain: []
|
17
18
|
|
18
|
-
date: 2011-
|
19
|
+
date: 2011-04-07 00:00:00 +03:00
|
19
20
|
default_executable:
|
20
21
|
dependencies:
|
21
22
|
- !ruby/object:Gem::Dependency
|
@@ -44,12 +45,12 @@ files:
|
|
44
45
|
- lib/watir/assertions.rb
|
45
46
|
- lib/watir/browser.rb
|
46
47
|
- lib/watir/browsers.rb
|
47
|
-
- lib/watir/core_ext.rb
|
48
48
|
- lib/watir/element_extensions.rb
|
49
49
|
- lib/watir/exceptions.rb
|
50
50
|
- lib/watir/matches.rb
|
51
51
|
- lib/watir/options.rb
|
52
52
|
- lib/watir/testcase.rb
|
53
|
+
- lib/watir/util.rb
|
53
54
|
- lib/watir/version.rb
|
54
55
|
- lib/watir/wait.rb
|
55
56
|
- lib/watir/waiter.rb
|
@@ -123,12 +124,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
125
|
none: false
|
125
126
|
requirements:
|
126
|
-
- - "
|
127
|
+
- - ">"
|
127
128
|
- !ruby/object:Gem::Version
|
128
|
-
hash:
|
129
|
+
hash: 25
|
129
130
|
segments:
|
130
|
-
-
|
131
|
-
|
131
|
+
- 1
|
132
|
+
- 3
|
133
|
+
- 1
|
134
|
+
version: 1.3.1
|
132
135
|
requirements: []
|
133
136
|
|
134
137
|
rubyforge_project: wtr
|
data/lib/watir/core_ext.rb
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
class String
|
2
|
-
|
3
|
-
#
|
4
|
-
# "Watir::Span" => "Span"
|
5
|
-
#
|
6
|
-
|
7
|
-
def demodulize
|
8
|
-
gsub(/^.*::/, '')
|
9
|
-
end
|
10
|
-
|
11
|
-
#
|
12
|
-
# "FooBar" => "foo_bar"
|
13
|
-
#
|
14
|
-
|
15
|
-
def underscore
|
16
|
-
gsub(/\B[A-Z][^A-Z]/, '_\&').downcase.gsub(' ', '_')
|
17
|
-
end
|
18
|
-
|
19
|
-
#
|
20
|
-
# "Checkboxes" => "Checkbox"
|
21
|
-
# "Bodies" => "Body"
|
22
|
-
# "Buttons" => "Button"
|
23
|
-
#
|
24
|
-
def singularize
|
25
|
-
case self.downcase
|
26
|
-
when "checkboxes"
|
27
|
-
self.chop.chop
|
28
|
-
when "bodies"
|
29
|
-
self.chop.chop.chop + "y"
|
30
|
-
else
|
31
|
-
self.chop
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|