candroid_helpers 0.0.2.pre → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68985072380a0ec88c31bd870d4b683fa8c82cf0
4
- data.tar.gz: c7c28aa757550247113a5c272a75392995bffccf
3
+ metadata.gz: 89bf9fa2ec3103e40658cd4f99a2411f946616f9
4
+ data.tar.gz: 814b42abbdf04d0b2f3faec9565a82aa05ede5fc
5
5
  SHA512:
6
- metadata.gz: 80b6247aa2aa1efdff2adfb7e279d937d56f37923713caf4321b245965f8ea69a1d3c3bd4ff21c00cda5785028676327a167a7067eb9b407a7b2d7b075ed1692
7
- data.tar.gz: 80f43a4a69a56d20e9d6ca364978aeac4cc641839dd0cc03fe56103ffbad1194b01d52566d2e6e0d4b2fd589f332de5a23d843a880c1cb7356f0bfc3c0124363
6
+ metadata.gz: 3b824a8212d73d36103412eee18200564f808f90c07d5d6e0ab2354a9bb56d26a80cbb521bbd60976b25df0acfefcac10dde7b017d3f18b34744f85b08e668d5
7
+ data.tar.gz: b74369e28a707980566c6df6b721ed9cac64f9083f5e655128c0414f5725597d2f0f82ed3a6d76b6a8ff432aa9a651493bbfcc04236ed3fe3ea598e6bd0161af
@@ -1,3 +1,3 @@
1
1
  module CandroidHelpers
2
- VERSION = "0.0.2.pre"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -9,7 +9,7 @@ module CandroidHelpers
9
9
  raise "No element given." if opts[:element].nil?
10
10
  timeout = opts[:timeout] || 10
11
11
  action = opts[:action] || lambda { ; }
12
- wait_poll until_exists: element, timeout: timeout do
12
+ wait_poll until_exists: opts[:element], timeout: timeout do
13
13
  action.call
14
14
  end
15
15
  end
@@ -19,8 +19,8 @@ module CandroidHelpers
19
19
  The default behavior is to touch the specified element.'''
20
20
  raise "No element given." if opts[:element].nil?
21
21
  timeout = opts[:timeout] || 10
22
- action = opts[:action] || lambda { touch element }
23
- wait_for_elements_exist [element], timeout: timeout
22
+ action = opts[:action] || lambda { touch opts[:element] }
23
+ wait_for_elements_exist [opts[:element]], timeout: timeout
24
24
  action.call
25
25
  end
26
26
 
@@ -32,7 +32,7 @@ module CandroidHelpers
32
32
  traits = opts[:traits] || ["*"]
33
33
  trait = ''
34
34
  action = lambda do
35
- arr.each do |element|
35
+ traits.each do |element|
36
36
  if element_exists element
37
37
  trait = element
38
38
  break
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candroid_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.pre
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Escribano
@@ -84,13 +84,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>'
87
+ - - '>='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.3.1
89
+ version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
92
  rubygems_version: 2.1.10
93
93
  signing_key:
94
94
  specification_version: 4
95
- summary: candroid_helpers-0.0.2.pre
95
+ summary: candroid_helpers-0.0.2
96
96
  test_files: []