site_prism 3.4.1 → 3.4.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 +4 -4
- data/README.md +9 -6
- data/lib/site_prism/page.rb +0 -2
- data/lib/site_prism/version.rb +1 -1
- metadata +21 -23
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 249c59b53d5563948e846ffbfc9b3880c47f39a8687d769789554260e7f493ff
|
4
|
+
data.tar.gz: f047a19029312871c1934b925026a15ad351b41fb895503bb98410a322f60307
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 304c67ad2c1f84d1f69072d290ad772a89e92da6863e059077dc2070823314243de54ab05c9ae2044ba1cf72fb7e587c4c63904d8f977a48354415fcd00b0390
|
7
|
+
data.tar.gz: ffe3bf872b24e78f66ffc2437045801688a9c9f49b60d1453bd4a8b0d1859f942c9f733f37781f0c84e9f97e7e3d961fa88af0b9a94e9acf6abd8f2307da5331
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ We have a brief set of setup docs [HERE](https://github.com/site-prism/site_pris
|
|
21
21
|
|
22
22
|
SitePrism is built and tested to work on Ruby 2.4 - 2.6. Ruby 2.3 (Now EOL), is supported but not tested against.
|
23
23
|
If you are using SitePrism with Ruby 2.3 it is highly advisable to upgrade to a more modern Ruby
|
24
|
-
such as 2.
|
24
|
+
such as 2.6 or 2.7, if for any other reason, to get a noticeable speed boost!
|
25
25
|
|
26
26
|
SitePrism should run on all major browsers. The gem's integration tests are ran on Chrome and Firefox.
|
27
27
|
|
@@ -124,6 +124,7 @@ require 'capybara'
|
|
124
124
|
require 'capybara/cucumber'
|
125
125
|
require 'selenium-webdriver'
|
126
126
|
require 'site_prism'
|
127
|
+
require 'site_prism/all_there' # Optional but needed to perform more complex matching
|
127
128
|
```
|
128
129
|
|
129
130
|
The driver creation is identical to how you would normally create a Capybara driver,
|
@@ -135,6 +136,7 @@ Capybara.register_driver :site_prism do |app|
|
|
135
136
|
Capybara::Selenium::Driver.new(app, browser: browser, desired_capabilities: capabilities)
|
136
137
|
end
|
137
138
|
|
139
|
+
# Then tell Capybara to use the Driver you've just defined as its default driver
|
138
140
|
Capybara.configure do |config|
|
139
141
|
config.default_driver = :site_prism
|
140
142
|
end
|
@@ -149,6 +151,7 @@ require 'capybara'
|
|
149
151
|
require 'capybara/rspec'
|
150
152
|
require 'selenium-webdriver'
|
151
153
|
require 'site_prism'
|
154
|
+
require 'site_prism/all_there' # Optional but needed to perform more complex matching
|
152
155
|
```
|
153
156
|
|
154
157
|
And again, as above, a sample driver is no different to a normal driver instantiation in Capybara.
|
@@ -717,8 +720,8 @@ through them to find out if all of your items are present then you can also do t
|
|
717
720
|
Simply pass a recursion parameter to the `#all_there?` check. Note that the only valid values
|
718
721
|
for this at the moment are `:none` and `:one`
|
719
722
|
|
720
|
-
Passing `:none`
|
721
|
-
site_prism to recurse through all section / sections items defined in your
|
723
|
+
Passing `:none` (default), will not change the functionality. However passing in `:one` will cause
|
724
|
+
`site_prism` to recurse through all `section` / `sections` items defined in your present scope.
|
722
725
|
|
723
726
|
Work alongside developing this functionality further is being continued in the
|
724
727
|
[site_prism-all_there](http://www.github.com/site-prism/site_prism-all_there) repo. So head on over
|
@@ -727,12 +730,12 @@ there if you're interested in how this feature will work going forwards
|
|
727
730
|
NB: At the moment a "primitive" but working copy of this is hosted inside this gem. But if you wish to
|
728
731
|
use the bleeding edge version of the logic. Then simply set the following configuration parameter
|
729
732
|
|
730
|
-
```
|
733
|
+
```ruby
|
734
|
+
`require 'site_prism/all_there'`
|
735
|
+
|
731
736
|
SitePrism.use_all_there_gem = true
|
732
737
|
```
|
733
738
|
|
734
|
-
Make sure as well to require the gem code by doing `require 'site_prism/all_there'`
|
735
|
-
|
736
739
|
## Sections
|
737
740
|
|
738
741
|
SitePrism allows you to model sections of a page that appear on multiple
|
data/lib/site_prism/page.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require 'site_prism/loadable'
|
4
4
|
|
5
5
|
module SitePrism
|
6
|
-
# rubocop:disable Metrics/ClassLength
|
7
6
|
class Page
|
8
7
|
include Capybara::DSL
|
9
8
|
include ElementChecker
|
@@ -167,5 +166,4 @@ module SitePrism
|
|
167
166
|
end
|
168
167
|
end
|
169
168
|
end
|
170
|
-
# rubocop:enable Metrics/ClassLength
|
171
169
|
end
|
data/lib/site_prism/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_prism
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Hill
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-01-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: addressable
|
@@ -43,16 +43,22 @@ dependencies:
|
|
43
43
|
name: site_prism-all_there
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - "
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 0.3.1
|
49
|
+
- - "<"
|
47
50
|
- !ruby/object:Gem::Version
|
48
|
-
version: '0
|
51
|
+
version: '1.0'
|
49
52
|
type: :runtime
|
50
53
|
prerelease: false
|
51
54
|
version_requirements: !ruby/object:Gem::Requirement
|
52
55
|
requirements:
|
53
|
-
- - "
|
56
|
+
- - ">="
|
54
57
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
58
|
+
version: 0.3.1
|
59
|
+
- - "<"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
63
|
name: cucumber
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
@@ -71,14 +77,14 @@ dependencies:
|
|
71
77
|
name: rake
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
73
79
|
requirements:
|
74
|
-
- - "
|
80
|
+
- - ">="
|
75
81
|
- !ruby/object:Gem::Version
|
76
82
|
version: '12.3'
|
77
83
|
type: :development
|
78
84
|
prerelease: false
|
79
85
|
version_requirements: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
|
-
- - "
|
87
|
+
- - ">="
|
82
88
|
- !ruby/object:Gem::Version
|
83
89
|
version: '12.3'
|
84
90
|
- !ruby/object:Gem::Dependency
|
@@ -101,28 +107,28 @@ dependencies:
|
|
101
107
|
requirements:
|
102
108
|
- - "~>"
|
103
109
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
110
|
+
version: 0.75.0
|
105
111
|
type: :development
|
106
112
|
prerelease: false
|
107
113
|
version_requirements: !ruby/object:Gem::Requirement
|
108
114
|
requirements:
|
109
115
|
- - "~>"
|
110
116
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
117
|
+
version: 0.75.0
|
112
118
|
- !ruby/object:Gem::Dependency
|
113
119
|
name: rubocop-performance
|
114
120
|
requirement: !ruby/object:Gem::Requirement
|
115
121
|
requirements:
|
116
122
|
- - "~>"
|
117
123
|
- !ruby/object:Gem::Version
|
118
|
-
version: 1.
|
124
|
+
version: 1.5.1
|
119
125
|
type: :development
|
120
126
|
prerelease: false
|
121
127
|
version_requirements: !ruby/object:Gem::Requirement
|
122
128
|
requirements:
|
123
129
|
- - "~>"
|
124
130
|
- !ruby/object:Gem::Version
|
125
|
-
version: 1.
|
131
|
+
version: 1.5.1
|
126
132
|
- !ruby/object:Gem::Dependency
|
127
133
|
name: rubocop-rspec
|
128
134
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,10 +185,8 @@ dependencies:
|
|
179
185
|
- - "~>"
|
180
186
|
- !ruby/object:Gem::Version
|
181
187
|
version: '4.0'
|
182
|
-
description:
|
183
|
-
SitePrism
|
184
|
-
clean and semantic DSL for describing your site.
|
185
|
-
SitePrism implements the Page Object Model pattern on top of Capybara.
|
188
|
+
description: SitePrism gives you a simple, clean and semantic DSL for describing your
|
189
|
+
site. SitePrism implements the Page Object Model pattern on top of Capybara.
|
186
190
|
email:
|
187
191
|
- lukehill_uk@hotmail.com
|
188
192
|
- nat@natontesting.com
|
@@ -212,13 +216,7 @@ metadata:
|
|
212
216
|
bug_tracker_uri: https://github.com/site-prism/site_prism/issues
|
213
217
|
changelog_uri: https://github.com/site-prism/site_prism/blob/master/CHANGELOG.md
|
214
218
|
source_code_uri: https://github.com/site-prism/site_prism
|
215
|
-
post_install_message:
|
216
|
-
site_prism has now moved to a new organisation to facilitate better
|
217
|
-
management of the codebase. The new organisation link is available at www.github.com/site-prism
|
218
|
-
and will house the site_prism gem plus new associated co-dependent gems.
|
219
|
-
|
220
|
-
NB: The old repo will soon be discontinued and all existing issues will be moved over to the new
|
221
|
-
repo.
|
219
|
+
post_install_message:
|
222
220
|
rdoc_options: []
|
223
221
|
require_paths:
|
224
222
|
- lib
|