site_prism-all_there 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +1 -1
- data/README.md +3 -4
- data/lib/site_prism/all_there/expected_items.rb +12 -12
- data/lib/site_prism/all_there/version.rb +1 -1
- metadata +22 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d525ac7e5f4a19e37cde2c7aa1d5c267e896b5107ec543b6250934f8ce1b2b8e
|
4
|
+
data.tar.gz: a51180b1822005528b9593ced5075ad57635b751723fdab95306e40fd4df5cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76093b0ae3ec491cd638fec6ced304151fad75072f2e61070764a8fd7e44f207123f145157a152601ecf2178dbfa658d0a463ce8df6ea0539b6429aea29d05e0
|
7
|
+
data.tar.gz: e016965542bec0ac827c2447d01fad6c4dce33f778465037ae1cfa90a1939c194eab929d0c57e9529f052ad8c1cf3c1ce5c58300d6f0c9caec615a55b8cacfbe
|
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -3,9 +3,10 @@
|
|
3
3
|
The breakout gem from SitePrism to perform recursion checks for `#all_there?`
|
4
4
|
|
5
5
|
This gem is a breakout of the current `SitePrism::Page#all_there?` and `SitePrism::Section#all_there?`
|
6
|
-
methods which already exist.
|
6
|
+
methods which already exist in the core gem proper.
|
7
7
|
|
8
|
-
|
8
|
+
The gem is currently released as `1.0` meaning it is version stable. It will be added as default
|
9
|
+
functionality in `site_prism` version 4. Which is slated for release early 2022!
|
9
10
|
|
10
11
|
## Usage
|
11
12
|
|
@@ -23,8 +24,6 @@ SitePrism.configure do |config|
|
|
23
24
|
end
|
24
25
|
```
|
25
26
|
|
26
|
-
This gem is likely to change structure going forwards, to conform to the pairing of both gems, expected in 2020.
|
27
|
-
|
28
27
|
Happy Testing / Developing!
|
29
28
|
|
30
29
|
The SitePrism team
|
@@ -14,7 +14,7 @@ module SitePrism
|
|
14
14
|
@instance = instance
|
15
15
|
end
|
16
16
|
|
17
|
-
# @return [Array<
|
17
|
+
# @return [Array<Array<Symbol>>]
|
18
18
|
# All expected mapped items
|
19
19
|
def array
|
20
20
|
[
|
@@ -26,40 +26,40 @@ module SitePrism
|
|
26
26
|
]
|
27
27
|
end
|
28
28
|
|
29
|
-
# @return [
|
29
|
+
# @return [Array<Symbol>]
|
30
30
|
# All expected items that were mapped as +element+
|
31
31
|
def element
|
32
|
-
mapped_checklist_of(:element)
|
32
|
+
mapped_checklist_of(:element) || []
|
33
33
|
end
|
34
34
|
|
35
|
-
# @return [
|
35
|
+
# @return [Array<Symbol>]
|
36
36
|
# All expected items that were mapped as +elements+
|
37
37
|
def elements
|
38
|
-
mapped_checklist_of(:elements)
|
38
|
+
mapped_checklist_of(:elements) || []
|
39
39
|
end
|
40
40
|
|
41
|
-
# @return [
|
41
|
+
# @return [Array<Symbol>]
|
42
42
|
# All expected items that were mapped as +section+
|
43
43
|
def section
|
44
|
-
mapped_checklist_of(:section)
|
44
|
+
mapped_checklist_of(:section) || []
|
45
45
|
end
|
46
46
|
|
47
|
-
# @return [
|
47
|
+
# @return [Array<Symbol>]
|
48
48
|
# All expected items that were mapped as +sections+
|
49
49
|
def sections
|
50
|
-
mapped_checklist_of(:sections)
|
50
|
+
mapped_checklist_of(:sections) || []
|
51
51
|
end
|
52
52
|
|
53
|
-
# @return [
|
53
|
+
# @return [Array<Symbol>]
|
54
54
|
# All expected items that were mapped as +iframe+
|
55
55
|
def iframe
|
56
|
-
mapped_checklist_of(:iframe)
|
56
|
+
mapped_checklist_of(:iframe) || []
|
57
57
|
end
|
58
58
|
|
59
59
|
private
|
60
60
|
|
61
61
|
def mapped_checklist_of(type)
|
62
|
-
mapped_items.hash[type]
|
62
|
+
mapped_items.hash[type]&.select { |name| mapped_checklist.include?(name) }
|
63
63
|
end
|
64
64
|
|
65
65
|
def mapped_checklist
|
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:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luke Hill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -44,42 +44,56 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.19.1
|
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.
|
54
|
+
version: 1.19.1
|
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.
|
61
|
+
version: 1.11.5
|
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.
|
68
|
+
version: 1.11.5
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.6.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.6.0
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rubocop-rspec
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: 2.
|
89
|
+
version: 2.4.0
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: 2.
|
96
|
+
version: 2.4.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: site_prism
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|