watir_drops 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/lib/watir_drops/training_wheels.rb +2 -1
- data/watir_drops.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d50e572afec74d5bf68b462974d97742d64d3e5
|
4
|
+
data.tar.gz: b87a9e75410c21bda99031774069a9e07f9575e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2513c78d270abbf775ae0f0619c1646810318ecf9c9903d15f6c0b903c28e5c005ff52b106cb0beca4023c5cfb110d986a524295962482b259b98a6f483458f
|
7
|
+
data.tar.gz: 3d0dbb6518f78049a287a80d47f2b2066aa33c6fa5f359189690d9c4ad0bb201f23c9b11dc1e4182b450488963c02684a49e58ff8aca1f2614e9877ecc649eaa
|
data/CHANGES.md
CHANGED
@@ -5,6 +5,7 @@ module WatirDrops
|
|
5
5
|
class << self
|
6
6
|
|
7
7
|
Watir::Container.instance_methods(false).each do |class_method_name|
|
8
|
+
next if class_method_name == :use
|
8
9
|
define_method(class_method_name) do |instance_method_name, locator = {}, &block|
|
9
10
|
define_method(instance_method_name) do |*args|
|
10
11
|
if block.is_a? Proc
|
@@ -49,7 +50,7 @@ module WatirDrops
|
|
49
50
|
element_type = selector.delete(:tag_name) || 'element'
|
50
51
|
element = parent.send(element_type.pluralize, selector)
|
51
52
|
|
52
|
-
return element if element.is_a?(expected_class) || class_method_name
|
53
|
+
return element if element.is_a?(expected_class) || class_method_name.to_s.include?('element')
|
53
54
|
raise StandardError, "#{instance_method_name} method was defined as a #{expected_class}, but is a #{element.class}"
|
54
55
|
else
|
55
56
|
browser.send(class_method_name.to_s.pluralize, locator)
|
data/watir_drops.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir_drops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Titus Fortner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|