site_prism-all_there 3.0.8 → 3.0.10
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 +23 -10
- data/lib/site_prism/all_there/version.rb +1 -1
- metadata +11 -14
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4e3504821bc215fa31c1db9c3e5e70ad3b13d64b15c5a70040ab9c0dfcd951cc
|
|
4
|
+
data.tar.gz: 1431ad6218eda6467c8578eeca8c7390d49a9ffe1de6b51d46286d2bc55e1be4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de764b44b7ca6663a1ade193ab5f5ba7f6f09190574382fa7da34912a3f28e306ec5c84b552dde0537897fec1c48d3c843f2211268cf02801e52614b7317fa9e
|
|
7
|
+
data.tar.gz: dae104485fa4ff69686fc0a6d9a57fd62916182367a1d8b2d3b07e582c4b46ade4944bbda34e5ead2847615b2883a74d2174c6fa74676e297172436e651e9ac7
|
data/README.md
CHANGED
|
@@ -7,34 +7,47 @@
|
|
|
7
7
|
|
|
8
8
|
## History
|
|
9
9
|
|
|
10
|
-
This is the breakout gem from SitePrism to perform recursion checks in the `#all_there?` method
|
|
10
|
+
This is the breakout gem from SitePrism to perform recursion checks in the `#all_there?` method.
|
|
11
11
|
|
|
12
|
-
This gem
|
|
12
|
+
This gem was originally broken out from `SitePrism::Page#all_there?` and `SitePrism::Section#all_there?` which were
|
|
13
|
+
methods present in the v2 revision of `site_prism` proper.
|
|
13
14
|
|
|
14
|
-
The gem is version stable. It is default
|
|
15
|
+
The gem is version stable. It is configured by default from `site_prism` v4 onwards, no configuration is required!
|
|
15
16
|
|
|
16
17
|
## Usage
|
|
17
18
|
|
|
18
|
-
You can perform recursion either using an in-line keyword
|
|
19
|
+
You can perform recursion either using an in-line keyword argument (`recursion`), or using a global setting.
|
|
19
20
|
|
|
20
|
-
When using both it will always look **
|
|
21
|
+
When using both it will always look **initially** at the in-line supplied keyword argument.
|
|
21
22
|
|
|
22
23
|
### In-line parameter
|
|
23
24
|
|
|
24
25
|
```rb
|
|
25
26
|
your_page = YourPage.new
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
# This will do the standard `#all_there?` check on the current page **ONLY**. It will not recurse into
|
|
29
|
+
# any `:section` or `:sections` objects that were defined on the page. It will only perform the `#all_there?` check on
|
|
30
|
+
# the supplied `SitePrism::Section` or `SitePrism::Page`.
|
|
31
|
+
your_page.all_there?(recursion: :none)
|
|
32
|
+
|
|
33
|
+
# This will do the standard `#all_there?` check on the current page as well recursing into all `:section` or `:sections`
|
|
34
|
+
# objects that were defined on the page. It will then perform the `#all_there?` check on all `SitePrism::Section` instances
|
|
35
|
+
your_page.all_there?(recursion: :one)
|
|
36
|
+
|
|
37
|
+
# This will not perform any checks and just log an error
|
|
38
|
+
your_page.all_there?(recursion: :invalid)
|
|
30
39
|
```
|
|
31
40
|
|
|
32
41
|
### Global setting
|
|
33
42
|
|
|
43
|
+
Both of these options will do the standard `#all_there?` check on the current page as well recursing into all
|
|
44
|
+
`:section` or `:sections` objects that were defined on the page. It will then perform the `#all_there?` check on all
|
|
45
|
+
`SitePrism::Section` instances found.
|
|
46
|
+
|
|
34
47
|
```rb
|
|
35
48
|
SitePrism.recursion_setting = :one
|
|
36
49
|
your_page = YourPage.new
|
|
37
|
-
your_page.all_there?
|
|
50
|
+
your_page.all_there?
|
|
38
51
|
|
|
39
52
|
# or...
|
|
40
53
|
|
|
@@ -43,5 +56,5 @@ SitePrism.configure do |config|
|
|
|
43
56
|
end
|
|
44
57
|
|
|
45
58
|
your_page = YourPage.new
|
|
46
|
-
your_page.all_there?
|
|
59
|
+
your_page.all_there?
|
|
47
60
|
```
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: site_prism-all_there
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Luke Hill
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: rspec
|
|
@@ -30,42 +29,42 @@ dependencies:
|
|
|
30
29
|
requirements:
|
|
31
30
|
- - "~>"
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: 1.
|
|
32
|
+
version: 1.88.0
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
36
|
requirements:
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.
|
|
39
|
+
version: 1.88.0
|
|
41
40
|
- !ruby/object:Gem::Dependency
|
|
42
41
|
name: rubocop-performance
|
|
43
42
|
requirement: !ruby/object:Gem::Requirement
|
|
44
43
|
requirements:
|
|
45
44
|
- - "~>"
|
|
46
45
|
- !ruby/object:Gem::Version
|
|
47
|
-
version: 1.26.
|
|
46
|
+
version: 1.26.1
|
|
48
47
|
type: :development
|
|
49
48
|
prerelease: false
|
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
50
|
requirements:
|
|
52
51
|
- - "~>"
|
|
53
52
|
- !ruby/object:Gem::Version
|
|
54
|
-
version: 1.26.
|
|
53
|
+
version: 1.26.1
|
|
55
54
|
- !ruby/object:Gem::Dependency
|
|
56
55
|
name: rubocop-rspec
|
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
|
58
57
|
requirements:
|
|
59
58
|
- - "~>"
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: 3.
|
|
60
|
+
version: 3.10.2
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: 3.
|
|
67
|
+
version: 3.10.2
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: site_prism
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -75,7 +74,7 @@ dependencies:
|
|
|
75
74
|
version: '4'
|
|
76
75
|
- - "<"
|
|
77
76
|
- !ruby/object:Gem::Version
|
|
78
|
-
version: '
|
|
77
|
+
version: '7'
|
|
79
78
|
type: :development
|
|
80
79
|
prerelease: false
|
|
81
80
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -85,7 +84,7 @@ dependencies:
|
|
|
85
84
|
version: '4'
|
|
86
85
|
- - "<"
|
|
87
86
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '
|
|
87
|
+
version: '7'
|
|
89
88
|
- !ruby/object:Gem::Dependency
|
|
90
89
|
name: yard
|
|
91
90
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -123,7 +122,6 @@ metadata:
|
|
|
123
122
|
bug_tracker_uri: https://github.com/site-prism/site_prism-all_there/issues
|
|
124
123
|
changelog_uri: https://github.com/site-prism/site_prism-all_there/blob/main/CHANGELOG.md
|
|
125
124
|
source_code_uri: https://github.com/site-prism/site_prism-all_there
|
|
126
|
-
post_install_message:
|
|
127
125
|
rdoc_options: []
|
|
128
126
|
require_paths:
|
|
129
127
|
- lib
|
|
@@ -138,8 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
138
136
|
- !ruby/object:Gem::Version
|
|
139
137
|
version: '0'
|
|
140
138
|
requirements: []
|
|
141
|
-
rubygems_version:
|
|
142
|
-
signing_key:
|
|
139
|
+
rubygems_version: 4.0.10
|
|
143
140
|
specification_version: 4
|
|
144
141
|
summary: An extension to SitePrism that enables you to recurse through SitePrism Pages
|
|
145
142
|
and Sections
|