candroid_helpers 0.0.2 → 0.0.3

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: 89bf9fa2ec3103e40658cd4f99a2411f946616f9
4
- data.tar.gz: 814b42abbdf04d0b2f3faec9565a82aa05ede5fc
3
+ metadata.gz: e4f0a26cc4a1321f1ea3fcd425b7eca936c4a299
4
+ data.tar.gz: 151d617e35cc4cd635b7f816e46e231f04e4febb
5
5
  SHA512:
6
- metadata.gz: 3b824a8212d73d36103412eee18200564f808f90c07d5d6e0ab2354a9bb56d26a80cbb521bbd60976b25df0acfefcac10dde7b017d3f18b34744f85b08e668d5
7
- data.tar.gz: b74369e28a707980566c6df6b721ed9cac64f9083f5e655128c0414f5725597d2f0f82ed3a6d76b6a8ff432aa9a651493bbfcc04236ed3fe3ea598e6bd0161af
6
+ metadata.gz: 6b3466041d212d8aacc20841208bfc2c6b179fe64a85adc7d8899849b8d83f38c8c84bde570ee067d1bc32fb9e8a4b2949d4ad14a81a479a9e39d9847eeccce2
7
+ data.tar.gz: 6a9bfe42e9f3a9e1558bdb9848c605c1be5745863b6087a4b083209fd99564f044f770d5d39486a56a2d7619e04c0bf6e26cf2a484680db31d2f939c7e55ddab
@@ -1,3 +1,3 @@
1
1
  module CandroidHelpers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -3,9 +3,9 @@ require "calabash-android/abase"
3
3
 
4
4
  module CandroidHelpers
5
5
 
6
+ # Performs a lambda action until the element appears.
7
+ # The default action is to do nothing.
6
8
  def until_element_exists opts = {}
7
- '''Performs a lambda action until the element appears.
8
- The default action is to do nothing.'''
9
9
  raise "No element given." if opts[:element].nil?
10
10
  timeout = opts[:timeout] || 10
11
11
  action = opts[:action] || lambda { ; }
@@ -14,9 +14,9 @@ module CandroidHelpers
14
14
  end
15
15
  end
16
16
 
17
+ # Performs a lambda action once the element exists.
18
+ # The default behavior is to touch the specified element.
17
19
  def once_element_exists opts = {}
18
- '''Performs a lambda action once the element exists.
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
22
  action = opts[:action] || lambda { touch opts[:element] }
@@ -24,10 +24,10 @@ module CandroidHelpers
24
24
  action.call
25
25
  end
26
26
 
27
+ # Pass an array of query elements. Determines the
28
+ # correct trait for page objects that can have multiple
29
+ # acceptable traits.
27
30
  def multiple_traits opts = {}
28
- '''Pass an array of query elements. Determines the
29
- correct trait for page objects that can have multiple
30
- acceptable traits.'''
31
31
  timeout = opts[:timeout] || 10
32
32
  traits = opts[:traits] || ["*"]
33
33
  trait = ''
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
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Escribano
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-03 00:00:00.000000000 Z
12
+ date: 2014-01-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: calabash-android
@@ -92,5 +92,6 @@ 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
95
+ summary: candroid_helpers-0.0.3
96
96
  test_files: []
97
+ has_rdoc: