site_prism-all_there 0.3.2 → 1.0

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: 3b0f024978aaf7ce949a6d96866ed273c4709316f94888b3475a96653b7bbb24
4
- data.tar.gz: 5ea2dc38f87a1eef69ebe2b8cb930e63f2014665f43fb2d35a1842e3266e42b5
3
+ metadata.gz: dfdb2e58753050c18dafb4f340680c2b0457eac8e14df383ea489f0d54d43732
4
+ data.tar.gz: 89adfcebffec1dcea1354ce4d34c2836d87346807569759ff5e5c7e9b151bdf8
5
5
  SHA512:
6
- metadata.gz: '05180b088c0322b945aed510279d50e4ca448be32586a956d24351663f2456c3914694d1163e4bd85894ea22072361b3e4194f3a198f395d92cdb9d7dc8beace'
7
- data.tar.gz: 78f898bde22a8d88351b39197224d13de8f72d9b84626791e451d2dd4d6318907dc43dc78aa5965b9e3f0c10312f5b3a7fae8e39fda2d4b9efc9013c9317ea02
6
+ metadata.gz: 2db1c79b4ed2c79920d4f230b494e6de494d6a476d8ba688e1bcac3993cb4cbf48a65e7b12eb65303e220016574bb497f2289b198d1b052635cce488799cb298
7
+ data.tar.gz: af7bc4602c1ac4e49da866a4f1ef75ac4a247c578f567d894936c100aa4b6be5ea23899a7e836df4fe7d28c1a548cdfe72199a24d225f4b5c7c8dc2250d9f2b6
@@ -5,7 +5,7 @@ module SitePrism
5
5
  #
6
6
  # @api private
7
7
  #
8
- # The Expected Item Map on a SitePrism Page or Section
8
+ # The Expected Items to be present on a SitePrism Page or Section
9
9
  class ExpectedItems
10
10
  attr_reader :instance
11
11
  private :instance
@@ -5,7 +5,7 @@ module SitePrism
5
5
  #
6
6
  # @api private
7
7
  #
8
- # The Mapped Items on a SitePrism Page or Section
8
+ # The Expected Items on a SitePrism Page or Section structured in an enumerable way
9
9
  class MappedItems
10
10
  attr_reader :instance
11
11
  private :instance
@@ -13,7 +13,7 @@ module SitePrism
13
13
  end
14
14
 
15
15
  # @return [Boolean]
16
- # This is currently hard-coded to perform a recursion of depth +:one+
16
+ # This currently defaults to perform a recursion of depth +:one+
17
17
  # It will be refactored to use either no input, +:none+, or +:one+ as the
18
18
  # regular repo uses currently
19
19
  def all_there?(recursion: :one)
@@ -31,19 +31,25 @@ module SitePrism
31
31
  # @return [Boolean]
32
32
  # Are all SitePrism objects that exist in +self+ present?
33
33
  def current_class_all_there?
34
- expected_items.array.flatten.all? { |name| there?(name) }
34
+ expected_items.array.flatten.all? { |name| there?(name) }.tap do |result|
35
+ SitePrism.logger.info("Result of current_class_all_there?: #{result}")
36
+ end
35
37
  end
36
38
 
37
39
  # @return [Boolean]
38
40
  # Are all SitePrism objects that exist in all +self.section+ items present?
39
41
  def section_classes_all_there?
40
- section_classes_to_check.all?(&:all_there?)
42
+ section_classes_to_check.all?(&:all_there?).tap do |result|
43
+ SitePrism.logger.debug("Result of section_classes_all_there?: #{result}")
44
+ end
41
45
  end
42
46
 
43
47
  # @return [Boolean]
44
48
  # Are all SitePrism objects that exist in all +self.sections+ items present?
45
49
  def sections_classes_all_there?
46
- sections_classes_to_check.flatten.all?(&:all_there?)
50
+ sections_classes_to_check.flatten.all?(&:all_there?).tap do |result|
51
+ SitePrism.logger.debug("Result of section_classes_all_there?: #{result}")
52
+ end
47
53
  end
48
54
 
49
55
  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 = '0.3.2'
7
+ VERSION = '1.0'
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: 0.3.2
4
+ version: '1.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Hill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-16 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -16,84 +16,84 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '12.3'
19
+ version: '13.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '12.3'
26
+ version: '13.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.8'
33
+ version: '3.10'
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: '3.8'
40
+ version: '3.10'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.75.0
47
+ version: 1.6.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: 0.75.0
54
+ version: 1.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-performance
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.4'
61
+ version: 1.10.2
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: '1.4'
68
+ version: 1.10.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.33'
75
+ version: 2.1.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.33'
82
+ version: 2.1.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: site_prism
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '3.2'
89
+ version: '3.7'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '3.2'
96
+ version: '3.7'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: yard
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +129,7 @@ licenses:
129
129
  - BSD-3-Clause
130
130
  metadata:
131
131
  bug_tracker_uri: https://github.com/site-prism/site_prism-all_there/issues
132
- changelog_uri: https://github.com/site-prism/site_prism-all_there/blob/master/CHANGELOG.md
132
+ changelog_uri: https://github.com/site-prism/site_prism-all_there/blob/main/CHANGELOG.md
133
133
  source_code_uri: https://github.com/site-prism/site_prism-all_there
134
134
  post_install_message:
135
135
  rdoc_options: []
@@ -139,15 +139,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
141
141
  - !ruby/object:Gem::Version
142
- version: '2.3'
142
+ version: '2.5'
143
143
  required_rubygems_version: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - ">="
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubyforge_project:
150
- rubygems_version: 2.7.8
149
+ rubygems_version: 3.0.8
151
150
  signing_key:
152
151
  specification_version: 4
153
152
  summary: An extension to allow you to recurse through your SitePrism Pages/Sections