cios_helpers 0.0.2 → 0.0.3

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: d024fa274936bcbcf33115fc8d58b794b040509f
4
- data.tar.gz: 40ce21c4670eab95dcaab0029b359f095d7d3515
3
+ metadata.gz: 1ba32397e2ab8887a313db3ff724cf54f59a9879
4
+ data.tar.gz: 370f204b1b23797a17484fa4b31c8721a6f6dd6e
5
5
  SHA512:
6
- metadata.gz: 8fafb06e6c195f0a292c4273b0ae4c1c0132e6bc4669048aefb1e5e6dbcb4204f7ea9cf28ade2b25fd80a747e79d3aef5b8b7cbc20c84c897bb6c792719e9136
7
- data.tar.gz: e3c318f3129bab27e4064bf33fab4648902f48e2b2a12f1cc67ff38d537051b0d90082a86e088d9e40c43ca7f268774d825d72f011224ed7828c7934956ef2cf
6
+ metadata.gz: 7eb19c2f326a764c365c5a7ca0a182063e7a2cfe8b7a3b6a66c74eac6d87cbd6879fd60991bbe4005e4108cc039dd039355f1ef171a73a099b7add2fca3cc2d7
7
+ data.tar.gz: 451e6603d609ef698c619568b70833d97eba18ef1fba0dc9c72a0b130fdacd2ec015e41b341afcf757c3f7a550fd3c1cd158b039abf66b709d413dfb8e7717c3
@@ -1,3 +1,3 @@
1
1
  module CiosHelpers
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/cios_helpers.rb CHANGED
@@ -3,9 +3,9 @@ require "calabash-cucumber/ibase"
3
3
 
4
4
  module CiosHelpers
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 CiosHelpers
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 CiosHelpers
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: cios_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-cucumber
@@ -92,5 +92,6 @@ rubyforge_project:
92
92
  rubygems_version: 2.1.10
93
93
  signing_key:
94
94
  specification_version: 4
95
- summary: cios_helpers-0.0.2
95
+ summary: cios_helpers-0.0.3
96
96
  test_files: []
97
+ has_rdoc: