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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfdb2e58753050c18dafb4f340680c2b0457eac8e14df383ea489f0d54d43732
4
- data.tar.gz: 89adfcebffec1dcea1354ce4d34c2836d87346807569759ff5e5c7e9b151bdf8
3
+ metadata.gz: d525ac7e5f4a19e37cde2c7aa1d5c267e896b5107ec543b6250934f8ce1b2b8e
4
+ data.tar.gz: a51180b1822005528b9593ced5075ad57635b751723fdab95306e40fd4df5cf4
5
5
  SHA512:
6
- metadata.gz: 2db1c79b4ed2c79920d4f230b494e6de494d6a476d8ba688e1bcac3993cb4cbf48a65e7b12eb65303e220016574bb497f2289b198d1b052635cce488799cb298
7
- data.tar.gz: af7bc4602c1ac4e49da866a4f1ef75ac4a247c578f567d894936c100aa4b6be5ea23899a7e836df4fe7d28c1a548cdfe72199a24d225f4b5c7c8dc2250d9f2b6
6
+ metadata.gz: 76093b0ae3ec491cd638fec6ced304151fad75072f2e61070764a8fd7e44f207123f145157a152601ecf2178dbfa658d0a463ce8df6ea0539b6429aea29d05e0
7
+ data.tar.gz: e016965542bec0ac827c2447d01fad6c4dce33f778465037ae1cfa90a1939c194eab929d0c57e9529f052ad8c1cf3c1ce5c58300d6f0c9caec615a55b8cacfbe
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2019+, The SitePrism team
1
+ Copyright (c) 2019-2021, The SitePrism team
2
2
 
3
3
  All rights reserved.
4
4
 
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
- At the moment, the gem is currently released as a `0.x` version meaning it is **not** fully API stable.
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<Hash<Symbol>>]
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 [Hash<Symbol>]
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 [Hash<Symbol>]
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 [Hash<Symbol>]
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 [Hash<Symbol>]
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 [Hash<Symbol>]
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].select { |name| mapped_checklist.include?(name) }
62
+ mapped_items.hash[type]&.select { |name| mapped_checklist.include?(name) }
63
63
  end
64
64
 
65
65
  def mapped_checklist
@@ -4,6 +4,6 @@ module SitePrism
4
4
  module AllThere
5
5
  # @return [String]
6
6
  # Version of the gem
7
- VERSION = '1.0'
7
+ VERSION = '1.0.1'
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: '1.0'
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-03-31 00:00:00.000000000 Z
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.6.0
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.6.0
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.10.2
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.10.2
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.1.0
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.1.0
96
+ version: 2.4.0
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: site_prism
85
99
  requirement: !ruby/object:Gem::Requirement