site_prism 5.0.1 → 5.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
  SHA256:
3
- metadata.gz: c79a26103d273c27df0c3417fd1764aef080c1b2d322f250dc71bd83a0e7edac
4
- data.tar.gz: 834a40852d19e8976f2e7b212e58830d2b88c178a79362c9a2bec0759bd9b6b1
3
+ metadata.gz: 47e7785c6388c7613a534756d0d7af51ce0f20cc5e31f3a46b881443db8baffb
4
+ data.tar.gz: e01ae66ad3846d6123a234252691a2d3bc092bfab059c0d3d56bca2bdb683586
5
5
  SHA512:
6
- metadata.gz: 8f24969720f9c2a7a6587e243bf77d5c495224b5cd7814d641e72585f6604f9d7b768ad5de48d58e89fd30beca6950842d49101d423023ebe472f57e4c537837
7
- data.tar.gz: 5c7c6fadbeb8480b54e5deced89208d9c4e5d6a9bf6daf9960b54c81cdfa4d4bd1e399a0376245da0250d308d64de5e1fdafb0a00a90d247f4575b6ac6669449
6
+ metadata.gz: 91c974dfb3f6f35f2504e80053a982a734d8dba78fff2815a6a462b1608db454693c4b74459b61ebcf09b42e196fdc3b966642f052fe667ba2b68cbf8056d6f2
7
+ data.tar.gz: 1a9ae546cf703cd37be942ce6c66842171aa80b76bf3ac2266e6570d33e3822ce69f8cdbd7854da0ebfc1602af1c8f737845c72eb7382a0f3bc0dd1b216a9e2b
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # SitePrism
2
+
2
3
  [![Gem Version](https://badge.fury.io/rb/site_prism.svg)](https://badge.fury.io/rb/site_prism)
3
4
  [![Build Status](https://github.com/site-prism/site_prism/actions/workflows/ci.yml/badge.svg)](https://github.com/site-prism/site_prism/actions/workflows/ci.yml)
4
5
 
@@ -154,7 +155,7 @@ end
154
155
 
155
156
  ### Using SitePrism with RSpec
156
157
 
157
- If you're using rspec instead, here's what needs requiring:
158
+ If you're using rspec, here's what needs requiring:
158
159
 
159
160
  ```ruby
160
161
  require 'capybara'
@@ -177,12 +178,12 @@ reference to that element that can then be acted upon (clicked, type in some tex
177
178
  SitePrism is based around this concept, but goes further as you'll see below by also allowing modelling of
178
179
  repeated sections that appear on multiple pages, or many times on a page using the concept of sections.
179
180
 
180
- ## Pages
181
+ ### Pages
181
182
 
182
183
  As you might be able to guess from the name, pages are fairly central to
183
184
  the Page Object Model. Here's how SitePrism models them:
184
185
 
185
- ### Creating your first Page using the Page Object Model
186
+ #### Creating your first Page using the Page Object Model
186
187
 
187
188
  The simplest page is one that has nothing defined in it. Here's an
188
189
  example of how to begin modelling a home page:
@@ -194,7 +195,7 @@ end
194
195
 
195
196
  The above has nothing useful defined, so to start with lets give it some properties.
196
197
 
197
- ### Adding a URL
198
+ #### Adding a URL
198
199
 
199
200
  A page usually has a URL. If you want to be able to navigate to a page,
200
201
  you'll need to set its URL. Here's how:
@@ -237,7 +238,7 @@ end
237
238
 
238
239
  See https://github.com/sporkmonger/addressable for more details on parameterized URLs.
239
240
 
240
- ### Navigating to the Page
241
+ ### Navigating to a Page
241
242
 
242
243
  Once the URL has been set (using `set_url`), you can navigate directly to the page using `#load`:
243
244
 
@@ -37,7 +37,7 @@ module SitePrism
37
37
  end
38
38
 
39
39
  def invalid_element_name?(name)
40
- !dsl_validation_disabled? && name_invalid?(name)
40
+ !dsl_validation_disabled? && name_invalid?(name.to_s)
41
41
  end
42
42
 
43
43
  def dsl_validation_disabled?
@@ -67,7 +67,6 @@ module SitePrism
67
67
  %w[
68
68
  attributes
69
69
  html
70
- no
71
70
  title
72
71
  element
73
72
  elements
@@ -78,7 +77,7 @@ module SitePrism
78
77
  end
79
78
 
80
79
  def log_failure(name, type)
81
- self.dsl_name_error = "DSL item: #{name} has an invalid #{type}"
80
+ self.dsl_name_error = "DSL item: #{name} is invalid. Issue: #{type}"
82
81
  SitePrism.logger.debug(debug_error(type))
83
82
  end
84
83
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SitePrism
4
- VERSION = '5.0.1'
4
+ VERSION = '5.0.3'
5
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_prism
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Hill
8
8
  - Nat Ritmeyer
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-01-24 00:00:00.000000000 Z
12
+ date: 2024-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: addressable
@@ -20,7 +20,7 @@ dependencies:
20
20
  version: '2.8'
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 2.8.1
23
+ version: 2.8.4
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
@@ -30,21 +30,21 @@ dependencies:
30
30
  version: '2.8'
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 2.8.1
33
+ version: 2.8.4
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: capybara
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.31'
40
+ version: '3.32'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.31'
47
+ version: '3.32'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: site_prism-all_there
50
50
  requirement: !ruby/object:Gem::Requirement
@@ -119,42 +119,42 @@ dependencies:
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: 1.60.0
122
+ version: 1.64.0
123
123
  type: :development
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - "~>"
128
128
  - !ruby/object:Gem::Version
129
- version: 1.60.0
129
+ version: 1.64.0
130
130
  - !ruby/object:Gem::Dependency
131
131
  name: rubocop-performance
132
132
  requirement: !ruby/object:Gem::Requirement
133
133
  requirements:
134
134
  - - "~>"
135
135
  - !ruby/object:Gem::Version
136
- version: 1.20.0
136
+ version: 1.21.0
137
137
  type: :development
138
138
  prerelease: false
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: 1.20.0
143
+ version: 1.21.0
144
144
  - !ruby/object:Gem::Dependency
145
145
  name: rubocop-rspec
146
146
  requirement: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: 2.25.0
150
+ version: 3.0.1
151
151
  type: :development
152
152
  prerelease: false
153
153
  version_requirements: !ruby/object:Gem::Requirement
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: 2.25.0
157
+ version: 3.0.1
158
158
  - !ruby/object:Gem::Dependency
159
159
  name: selenium-webdriver
160
160
  requirement: !ruby/object:Gem::Requirement
@@ -183,6 +183,20 @@ dependencies:
183
183
  - - "~>"
184
184
  - !ruby/object:Gem::Version
185
185
  version: '0.21'
186
+ - !ruby/object:Gem::Dependency
187
+ name: webdrivers
188
+ requirement: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - "~>"
191
+ - !ruby/object:Gem::Version
192
+ version: '5.3'
193
+ type: :development
194
+ prerelease: false
195
+ version_requirements: !ruby/object:Gem::Requirement
196
+ requirements:
197
+ - - "~>"
198
+ - !ruby/object:Gem::Version
199
+ version: '5.3'
186
200
  description: SitePrism gives you a simple, clean and semantic DSL for describing your
187
201
  site. SitePrism implements the Page Object Model pattern on top of Capybara.
188
202
  email:
@@ -219,7 +233,7 @@ metadata:
219
233
  bug_tracker_uri: https://github.com/site-prism/site_prism/issues
220
234
  changelog_uri: https://github.com/site-prism/site_prism/blob/main/CHANGELOG.md
221
235
  source_code_uri: https://github.com/site-prism/site_prism
222
- post_install_message:
236
+ post_install_message:
223
237
  rdoc_options: []
224
238
  require_paths:
225
239
  - lib
@@ -232,10 +246,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
246
  requirements:
233
247
  - - ">="
234
248
  - !ruby/object:Gem::Version
235
- version: '0'
249
+ version: 3.2.3
236
250
  requirements: []
237
251
  rubygems_version: 3.2.3
238
- signing_key:
252
+ signing_key:
239
253
  specification_version: 4
240
254
  summary: A Page Object Model DSL for Capybara
241
255
  test_files: []