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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9ff8bd28fdad499598436c884e44f46fa563035
4
- data.tar.gz: b32d82432fff06087e5481f0386b29b454240a87
3
+ metadata.gz: 6d50e572afec74d5bf68b462974d97742d64d3e5
4
+ data.tar.gz: b87a9e75410c21bda99031774069a9e07f9575e2
5
5
  SHA512:
6
- metadata.gz: 426fb0ebf0323aec3c8ac52d87923c06d12d08f4aedf71cb088e7ff68a021f420cec5e80bd1f41b09c50390d050424a4064924d41785190915e5c958f0433bb7
7
- data.tar.gz: 99ffbcf96242fc928336bcac3e2e906aa586e003f63fb4c18ee4523b1401dd9b968ff69995e963594f582118d75a5d34839aca5a04318094b86f39b0108f1095
6
+ metadata.gz: d2513c78d270abbf775ae0f0619c1646810318ecf9c9903d15f6c0b903c28e5c005ff52b106cb0beca4023c5cfb110d986a524295962482b259b98a6f483458f
7
+ data.tar.gz: 3d0dbb6518f78049a287a80d47f2b2066aa33c6fa5f359189690d9c4ad0bb201f23c9b11dc1e4182b450488963c02684a49e58ff8aca1f2614e9877ecc649eaa
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.5.1 (2016-02-17)
2
+
3
+ * fixed bugs in training wheels
4
+
1
5
  ### 0.5.0 (2016-02-16)
2
6
 
3
7
  * split new definition of elements & collections into a sub-class
@@ -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 == :element
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'watir_drops'
5
- spec.version = '0.5.0'
5
+ spec.version = '0.5.1'
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport