watir_drops 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d50e572afec74d5bf68b462974d97742d64d3e5
4
- data.tar.gz: b87a9e75410c21bda99031774069a9e07f9575e2
3
+ metadata.gz: b5383694f0e0dc64a11078fadafa72f4b3d2bf81
4
+ data.tar.gz: cee23620fb06d3c2740f11127d8522018a7cd3bc
5
5
  SHA512:
6
- metadata.gz: d2513c78d270abbf775ae0f0619c1646810318ecf9c9903d15f6c0b903c28e5c005ff52b106cb0beca4023c5cfb110d986a524295962482b259b98a6f483458f
7
- data.tar.gz: 3d0dbb6518f78049a287a80d47f2b2066aa33c6fa5f359189690d9c4ad0bb201f23c9b11dc1e4182b450488963c02684a49e58ff8aca1f2614e9877ecc649eaa
6
+ metadata.gz: 92ee5257ec1ccfd1a545fe09a2c303c4637c1dabc1ea174b161ebf4ebb4dc006c96defa691b1409e0a3835f6ea19dc28c12ea2c70634eff2f2222e49af092b33
7
+ data.tar.gz: d61cdb2a9df1a3a9165053d988accd20e34d2dfbb121ad5c5b952beb0a1d839fd2d9f52206c9f9dd277ef445aae3544ffcf5e7e2bd489345f0e9243d634bbb21
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.5.2 (2016-02-22)
2
+
3
+ * removed feature for locating a collection based on pluralizing the element name
4
+
1
5
  ### 0.5.1 (2016-02-17)
2
6
 
3
7
  * fixed bugs in training wheels
@@ -34,14 +34,6 @@ module WatirDrops
34
34
  self.instance_exec(*args, &block)
35
35
  end
36
36
 
37
- define_method(name.to_s.pluralize) do |*args|
38
- single_element = self.instance_exec(*args, &block)
39
- parent = single_element.instance_variable_get('@parent')
40
- selector = single_element.instance_variable_get('@selector')
41
- element_type = selector.delete(:tag_name) || 'element'
42
- parent.send(element_type.pluralize, selector)
43
- end
44
-
45
37
  define_method("#{name}=") do |val|
46
38
  watir_element = self.instance_exec &block
47
39
  watir_element.wait_until_present
@@ -40,23 +40,6 @@ module WatirDrops
40
40
  end
41
41
  end
42
42
 
43
- define_method(instance_method_name.to_s.pluralize) do |*args|
44
- if block.is_a? Proc
45
- expected_class = browser.send(class_method_name.to_s.pluralize).class
46
-
47
- single_element = self.instance_exec(*args, &block)
48
- parent = single_element.instance_variable_get('@parent')
49
- selector = single_element.instance_variable_get('@selector')
50
- element_type = selector.delete(:tag_name) || 'element'
51
- element = parent.send(element_type.pluralize, selector)
52
-
53
- return element if element.is_a?(expected_class) || class_method_name.to_s.include?('element')
54
- raise StandardError, "#{instance_method_name} method was defined as a #{expected_class}, but is a #{element.class}"
55
- else
56
- browser.send(class_method_name.to_s.pluralize, locator)
57
- end
58
- end
59
-
60
43
  element_list << instance_method_name.to_sym
61
44
  end
62
45
  end
data/watir_drops.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'watir_drops'
5
- spec.version = '0.5.1'
5
+ spec.version = '0.5.2'
6
6
  spec.authors = ['Titus Fortner']
7
7
  spec.email = ['titusfortner@gmail.com']
8
8
 
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.1
4
+ version: 0.5.2
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-17 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport