site_prism-all_there 3.0.3 → 3.0.4

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: 8e0562097f86ccaeffd216899538a48f25123108fd66bb760e39d5247fae8ad1
4
- data.tar.gz: 9fec19d17ebd2201daa3b87de858f9e74b769e9615b8f39de8e1d236f160e6f1
3
+ metadata.gz: 53286b9be483d5d1ecc944bb4a3a18a097a88987d92573f5ba6a69a328d5f026
4
+ data.tar.gz: 43ff06ddfa332e6ac640f22d429f64bc3713658d0262a9ae5283b7f77498c530
5
5
  SHA512:
6
- metadata.gz: 7c4024c7536f4617dce1c87bb7f9a0b5dd3fd7818bc7a7ea351ef14bc8c95777cdf66a965975fd13a11170bf913ce553bdc0e7c03e014270a49967b142aef079
7
- data.tar.gz: 93146440207f30dbec4d5a3805ff0d2afae04568662c83bb3146c216e0e3c0071d6b7d15c4cd003ad782ad53f521f818d9f3f67528bf582f8d415ca3124811c1
6
+ metadata.gz: 131f840da5fa40429421d17c0196fbfb452ba5b9a7f934b91f9f9e7818b1e7793cb6a6fdf387593163fa04634c4d24969730ba42969b053a978e9fb960bcc45e
7
+ data.tar.gz: 3a04752bcb3dc6735801b01a97fdd7dd773e3906d63d35d8a25d4b04047e980165395d924838ce0999698a706c37e5443cc31edb1f6f80f3f2f058933cbbe9aa
@@ -36,13 +36,13 @@ module SitePrism
36
36
 
37
37
  def current_class_all_there?(**opts)
38
38
  expected_items.array.flatten.all? { |name| there?(name, **opts) }.tap do |result|
39
- SitePrism.logger.debug("Result of current_class_all_there?: #{result}")
39
+ SitePrism.logger.debug("Result of current_class_all_there? for #{instance.class}: #{result}")
40
40
  end
41
41
  end
42
42
 
43
43
  def section_classes_all_there?(**opts)
44
44
  section_classes_to_check.all? { |section| section.all_there?(**opts) }.tap do |result|
45
- SitePrism.logger.debug("Result of section_classes_all_there?: #{result}")
45
+ SitePrism.logger.debug("Result of section_classes_all_there? for #{instance.class}: #{result}")
46
46
  end
47
47
  rescue Capybara::ElementNotFound
48
48
  SitePrism.logger.error("Error whilst attempting to locate all section classes from within #{instance.class}")
@@ -51,7 +51,7 @@ module SitePrism
51
51
 
52
52
  def sections_classes_all_there?(**opts)
53
53
  sections_classes_to_check.flatten.all? { |section| section.all_there?(**opts) }.tap do |result|
54
- SitePrism.logger.debug("Result of sections_classes_all_there?: #{result}")
54
+ SitePrism.logger.debug("Result of sections_classes_all_there? for #{instance.class}: #{result}")
55
55
  end
56
56
  rescue Capybara::ElementNotFound
57
57
  SitePrism.logger.error("Error whilst attempting to locate all sections (plural), classes from within #{instance.class}")
@@ -71,7 +71,7 @@ module SitePrism
71
71
  end
72
72
 
73
73
  def there?(name, **opts)
74
- instance.send("has_#{name}?", **opts)
74
+ instance.send(:"has_#{name}?", **opts)
75
75
  end
76
76
  end
77
77
  end
@@ -4,6 +4,6 @@ module SitePrism
4
4
  module AllThere
5
5
  # @return [String]
6
6
  # Version of the gem
7
- VERSION = '3.0.3'
7
+ VERSION = '3.0.4'
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.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-05 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.59.0
33
+ version: 1.61.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.59.0
40
+ version: 1.61.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-performance
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.19.1
47
+ version: 1.21.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.19.1
54
+ version: 1.21.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 2.25.0
61
+ version: 2.26.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 2.25.0
68
+ version: 2.26.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: site_prism
71
71
  requirement: !ruby/object:Gem::Requirement