tooth 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +15 -0
  2. data/lib/tooth/page_object.rb +6 -0
  3. metadata +6 -14
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YzMzYjBlYjZiMTI3YzliYjdhMTliNzY5NGUxZjYzZWZjNGZlMDM3Ng==
5
+ data.tar.gz: !binary |-
6
+ YzM2NWY1YTMzNmVlY2MzNDRkYWI0OTFlM2UzNTNjYjlmNWY0ZGE0Yg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NmMxMTc5MzVjNjQ2NWQ0ZmFiZjY4ZTQ3Yjk2YTFmNjk3N2YzMGYxYTY3MThi
10
+ MzJiMWIwYmU2MjEyYjcxNjg3NTRiMWVkYTM0N2E5ZDAxYmRkNmQ5MjM4ZmRi
11
+ NDBiOGQxNWNmMGM2ZWUzOGJmMTFkYTlmMGExMTZmZTRlOWY2ZGI=
12
+ data.tar.gz: !binary |-
13
+ ZDQ1YjY1Zjg4OTkzNWExYmJlOTA1YzFhMDU3ZWJkYjA4MzhkMmI1NGFlOTkw
14
+ MWUyMTc1NzJkZTUyOGFiOTRkNjYyYjZjNjYxZjc4ZjhkM2MyZmQzZDg2M2Mx
15
+ Njg1Y2M2M2Q4MDcxODA2MGRiYjlhOTExZmFkZWU5ZGQ0MTU3NDg=
@@ -26,6 +26,12 @@ module Tooth
26
26
  }
27
27
  end
28
28
 
29
+ def elements name, locator, options = {}
30
+ page_element[name] = ->(*args){
31
+ element_with_finders.all(locator_string(locator, args), options)
32
+ }
33
+ end
34
+
29
35
  def component name, component_class, locator, options = {}
30
36
  page_element[name] = ->(*args){
31
37
  component_element = find(locator_string(locator, args), options)
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tooth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Aliaksei Kliuchnikau
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-11 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: capybara
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rspec
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: sinatra
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -66,31 +59,30 @@ executables: []
66
59
  extensions: []
67
60
  extra_rdoc_files: []
68
61
  files:
69
- - lib/tooth/page_object.rb
70
62
  - lib/tooth.rb
63
+ - lib/tooth/page_object.rb
71
64
  homepage: https://github.com/kliuchnikau/tooth
72
65
  licenses: []
66
+ metadata: {}
73
67
  post_install_message:
74
68
  rdoc_options: []
75
69
  require_paths:
76
70
  - lib
77
71
  required_ruby_version: !ruby/object:Gem::Requirement
78
- none: false
79
72
  requirements:
80
73
  - - ! '>='
81
74
  - !ruby/object:Gem::Version
82
75
  version: '0'
83
76
  required_rubygems_version: !ruby/object:Gem::Requirement
84
- none: false
85
77
  requirements:
86
78
  - - ! '>='
87
79
  - !ruby/object:Gem::Version
88
80
  version: '0'
89
81
  requirements: []
90
82
  rubyforge_project:
91
- rubygems_version: 1.8.23
83
+ rubygems_version: 2.3.0
92
84
  signing_key:
93
- specification_version: 3
85
+ specification_version: 4
94
86
  summary: Simple page objects for Capybara
95
87
  test_files: []
96
88
  has_rdoc: