site_prism-all_there 3.0.2 → 3.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: 14a223d06f824b7e67e41ee0bf0a8a6b31debabb74eff816c2c86fe8d3bd1fc3
4
- data.tar.gz: e9dc0cccbb0acbbb5e720bfa1c2ee3326af5b0beabb8b99ccf36e0d1f55fc2bb
3
+ metadata.gz: 8e0562097f86ccaeffd216899538a48f25123108fd66bb760e39d5247fae8ad1
4
+ data.tar.gz: 9fec19d17ebd2201daa3b87de858f9e74b769e9615b8f39de8e1d236f160e6f1
5
5
  SHA512:
6
- metadata.gz: ad296627b3e2d735950b457d0a5e9065f575020a6fb0059137a977be69776504e8429b30821dd96e882ee5415549fbe99db88e6550e1ad9b5d66b928a1b5a47c
7
- data.tar.gz: a87debaa8ffa1cd44722f76b1a36bdc8fda68a6fd4465a7089909b050f88e443d9af2c42111ab5dc4885042dfdcd7c6157f93244fe6d52af27770fb8216b8a50
6
+ metadata.gz: 7c4024c7536f4617dce1c87bb7f9a0b5dd3fd7818bc7a7ea351ef14bc8c95777cdf66a965975fd13a11170bf913ce553bdc0e7c03e014270a49967b142aef079
7
+ data.tar.gz: 93146440207f30dbec4d5a3805ff0d2afae04568662c83bb3146c216e0e3c0071d6b7d15c4cd003ad782ad53f521f818d9f3f67528bf582f8d415ca3124811c1
@@ -44,12 +44,18 @@ module SitePrism
44
44
  section_classes_to_check.all? { |section| section.all_there?(**opts) }.tap do |result|
45
45
  SitePrism.logger.debug("Result of section_classes_all_there?: #{result}")
46
46
  end
47
+ rescue Capybara::ElementNotFound
48
+ SitePrism.logger.error("Error whilst attempting to locate all section classes from within #{instance.class}")
49
+ false
47
50
  end
48
51
 
49
52
  def sections_classes_all_there?(**opts)
50
53
  sections_classes_to_check.flatten.all? { |section| section.all_there?(**opts) }.tap do |result|
51
54
  SitePrism.logger.debug("Result of sections_classes_all_there?: #{result}")
52
55
  end
56
+ rescue Capybara::ElementNotFound
57
+ SitePrism.logger.error("Error whilst attempting to locate all sections (plural), classes from within #{instance.class}")
58
+ false
53
59
  end
54
60
 
55
61
  def section_classes_to_check
@@ -4,6 +4,6 @@ module SitePrism
4
4
  module AllThere
5
5
  # @return [String]
6
6
  # Version of the gem
7
- VERSION = '3.0.2'
7
+ VERSION = '3.0.3'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_prism-all_there
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2024-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.57.2
33
+ version: 1.59.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.57.2
40
+ version: 1.59.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement