site_prism-all_there 1.0 → 1.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: e5f8bcaddc7bda74aa9d9da8b7c8fdc302a5ab558e873bb0709886eeb172d30a
4
+ data.tar.gz: 72e50de6892de244daa9f073db6a97e0c0b7f633e8fa33d540f8a49576307ec0
5
5
  SHA512:
6
- metadata.gz: 2db1c79b4ed2c79920d4f230b494e6de494d6a476d8ba688e1bcac3993cb4cbf48a65e7b12eb65303e220016574bb497f2289b198d1b052635cce488799cb298
7
- data.tar.gz: af7bc4602c1ac4e49da866a4f1ef75ac4a247c578f567d894936c100aa4b6be5ea23899a7e836df4fe7d28c1a548cdfe72199a24d225f4b5c7c8dc2250d9f2b6
6
+ metadata.gz: 00f2faaff2b43479484dd45fb2f5638964e202af40f9584101bc8956f07da8122625beb213f62300bcbe02a44a29bdb1ca11fe9c40a3512e6bb1473069772e1a
7
+ data.tar.gz: 38a66bd748671fe71e20f5bd4da0934ac25db52b4d59870b84b7d9458c86435f29f40420a40c48b2bfc3dcf3f1f3b0a9ecc7485e3fc3a2b442c78a32ea2899ed
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,13 +3,15 @@
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.1` meaning it is version stable. It will be added as default
9
+ functionality in `site_prism` version 4. Which is slated for release early 2023!
9
10
 
10
11
  ## Usage
11
12
 
12
- Add the following code to either `spec_helper.rb` or `env.rb`
13
+ - Add the following code to either `spec_helper.rb` or `env.rb` (Pre version 4)
14
+ - From version 4 onwards this is done by default and isn't required
13
15
 
14
16
  ```rb
15
17
  require 'site_prism/all_there'
@@ -23,8 +25,6 @@ SitePrism.configure do |config|
23
25
  end
24
26
  ```
25
27
 
26
- This gem is likely to change structure going forwards, to conform to the pairing of both gems, expected in 2020.
27
-
28
28
  Happy Testing / Developing!
29
29
 
30
30
  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.1'
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,99 +1,91 @@
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.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: 2022-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: rake
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '13.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '13.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rspec
29
15
  requirement: !ruby/object:Gem::Requirement
30
16
  requirements:
31
17
  - - "~>"
32
18
  - !ruby/object:Gem::Version
33
- version: '3.10'
19
+ version: '3.12'
34
20
  type: :development
35
21
  prerelease: false
36
22
  version_requirements: !ruby/object:Gem::Requirement
37
23
  requirements:
38
24
  - - "~>"
39
25
  - !ruby/object:Gem::Version
40
- version: '3.10'
26
+ version: '3.12'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: rubocop
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: 1.6.0
33
+ version: 1.39.0
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
- version: 1.6.0
40
+ version: 1.39.0
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rubocop-performance
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 1.10.2
47
+ version: 1.15.1
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 1.10.2
54
+ version: 1.15.1
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rubocop-rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 2.1.0
61
+ version: 2.15.0
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 2.1.0
68
+ version: 2.15.0
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: site_prism
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
- - - "~>"
73
+ - - ">"
88
74
  - !ruby/object:Gem::Version
89
75
  version: '3.7'
76
+ - - "<"
77
+ - !ruby/object:Gem::Version
78
+ version: '5'
90
79
  type: :development
91
80
  prerelease: false
92
81
  version_requirements: !ruby/object:Gem::Requirement
93
82
  requirements:
94
- - - "~>"
83
+ - - ">"
95
84
  - !ruby/object:Gem::Version
96
85
  version: '3.7'
86
+ - - "<"
87
+ - !ruby/object:Gem::Version
88
+ version: '5'
97
89
  - !ruby/object:Gem::Dependency
98
90
  name: yard
99
91
  requirement: !ruby/object:Gem::Requirement
@@ -139,14 +131,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
139
131
  requirements:
140
132
  - - ">="
141
133
  - !ruby/object:Gem::Version
142
- version: '2.5'
134
+ version: '2.6'
143
135
  required_rubygems_version: !ruby/object:Gem::Requirement
144
136
  requirements:
145
137
  - - ">="
146
138
  - !ruby/object:Gem::Version
147
139
  version: '0'
148
140
  requirements: []
149
- rubygems_version: 3.0.8
141
+ rubygems_version: 3.0.3.1
150
142
  signing_key:
151
143
  specification_version: 4
152
144
  summary: An extension to allow you to recurse through your SitePrism Pages/Sections