rspec-sleeping_king_studios 2.7.0 → 2.8.0

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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +228 -9
  4. data/config/rubocop-rspec.yml +41 -0
  5. data/lib/rspec/sleeping_king_studios/concerns/example_constants.rb +107 -74
  6. data/lib/rspec/sleeping_king_studios/concerns/memoized_helpers.rb +19 -0
  7. data/lib/rspec/sleeping_king_studios/concerns/shared_example_group.rb +5 -2
  8. data/lib/rspec/sleeping_king_studios/concerns.rb +8 -3
  9. data/lib/rspec/sleeping_king_studios/configuration.rb +45 -37
  10. data/lib/rspec/sleeping_king_studios/deferred/call.rb +74 -0
  11. data/lib/rspec/sleeping_king_studios/deferred/calls/example.rb +42 -0
  12. data/lib/rspec/sleeping_king_studios/deferred/calls/example_group.rb +42 -0
  13. data/lib/rspec/sleeping_king_studios/deferred/calls/hook.rb +64 -0
  14. data/lib/rspec/sleeping_king_studios/deferred/calls/included_examples.rb +34 -0
  15. data/lib/rspec/sleeping_king_studios/deferred/calls/shared_examples.rb +41 -0
  16. data/lib/rspec/sleeping_king_studios/deferred/calls.rb +19 -0
  17. data/lib/rspec/sleeping_king_studios/deferred/consumer.rb +159 -0
  18. data/lib/rspec/sleeping_king_studios/deferred/definitions.rb +42 -0
  19. data/lib/rspec/sleeping_king_studios/deferred/dependencies.rb +138 -0
  20. data/lib/rspec/sleeping_king_studios/deferred/dsl/example_constants.rb +72 -0
  21. data/lib/rspec/sleeping_king_studios/deferred/dsl/example_groups.rb +69 -0
  22. data/lib/rspec/sleeping_king_studios/deferred/dsl/examples.rb +84 -0
  23. data/lib/rspec/sleeping_king_studios/deferred/dsl/hooks.rb +125 -0
  24. data/lib/rspec/sleeping_king_studios/deferred/dsl/memoized_helpers.rb +123 -0
  25. data/lib/rspec/sleeping_king_studios/deferred/dsl/shared_examples.rb +128 -0
  26. data/lib/rspec/sleeping_king_studios/deferred/dsl.rb +26 -0
  27. data/lib/rspec/sleeping_king_studios/deferred/examples.rb +83 -0
  28. data/lib/rspec/sleeping_king_studios/deferred/missing.rb +46 -0
  29. data/lib/rspec/sleeping_king_studios/deferred/provider.rb +164 -0
  30. data/lib/rspec/sleeping_king_studios/deferred.rb +142 -0
  31. data/lib/rspec/sleeping_king_studios/matchers/built_in/include_matcher.rb +86 -71
  32. data/lib/rspec/sleeping_king_studios/matchers/core/deep_matcher.rb +28 -23
  33. data/lib/rspec/sleeping_king_studios/sandbox.rb +105 -0
  34. data/lib/rspec/sleeping_king_studios/version.rb +2 -1
  35. data/lib/rspec/sleeping_king_studios.rb +10 -4
  36. metadata +37 -148
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-sleeping_king_studios
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob "Merlin" Smith
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-01-20 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: hashdiff
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: 0.3.8
18
+ version: '1.1'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: 0.3.8
25
+ version: '1.1'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: rspec
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -41,153 +40,17 @@ dependencies:
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: sleeping_king_studios-tools
43
42
  requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: 0.8.0
48
- - - "<"
49
- - !ruby/object:Gem::Version
50
- version: '2'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- version: 0.8.0
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '2'
61
- - !ruby/object:Gem::Dependency
62
- name: appraisal
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '2.2'
68
- type: :development
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '2.2'
75
- - !ruby/object:Gem::Dependency
76
- name: byebug
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '10.0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
87
- - !ruby/object:Gem::Version
88
- version: '10.0'
89
- - !ruby/object:Gem::Dependency
90
- name: rake
91
- requirement: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - "~>"
94
- - !ruby/object:Gem::Version
95
- version: '12.3'
96
- type: :development
97
- prerelease: false
98
- version_requirements: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - "~>"
101
- - !ruby/object:Gem::Version
102
- version: '12.3'
103
- - !ruby/object:Gem::Dependency
104
- name: thor
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - "~>"
108
- - !ruby/object:Gem::Version
109
- version: '0.20'
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- version: 0.19.4
113
- type: :development
114
- prerelease: false
115
- version_requirements: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - "~>"
118
- - !ruby/object:Gem::Version
119
- version: '0.20'
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- version: 0.19.4
123
- - !ruby/object:Gem::Dependency
124
- name: sleeping_king_studios-tasks
125
- requirement: !ruby/object:Gem::Requirement
126
- requirements:
127
- - - "~>"
128
- - !ruby/object:Gem::Version
129
- version: '0.4'
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: 0.4.1
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '0.4'
140
- - - ">="
141
- - !ruby/object:Gem::Version
142
- version: 0.4.1
143
- - !ruby/object:Gem::Dependency
144
- name: aruba
145
- requirement: !ruby/object:Gem::Requirement
146
- requirements:
147
- - - "~>"
148
- - !ruby/object:Gem::Version
149
- version: '0.14'
150
- type: :development
151
- prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
43
  requirements:
154
44
  - - "~>"
155
45
  - !ruby/object:Gem::Version
156
- version: '0.14'
157
- - !ruby/object:Gem::Dependency
158
- name: cucumber
159
- requirement: !ruby/object:Gem::Requirement
160
- requirements:
161
- - - "~>"
162
- - !ruby/object:Gem::Version
163
- version: '3.1'
164
- type: :development
46
+ version: '1.2'
47
+ type: :runtime
165
48
  prerelease: false
166
49
  version_requirements: !ruby/object:Gem::Requirement
167
50
  requirements:
168
51
  - - "~>"
169
52
  - !ruby/object:Gem::Version
170
- version: '3.1'
171
- - !ruby/object:Gem::Dependency
172
- name: activemodel
173
- requirement: !ruby/object:Gem::Requirement
174
- requirements:
175
- - - ">="
176
- - !ruby/object:Gem::Version
177
- version: '3.0'
178
- - - "<"
179
- - !ruby/object:Gem::Version
180
- version: '7.0'
181
- type: :development
182
- prerelease: false
183
- version_requirements: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '3.0'
188
- - - "<"
189
- - !ruby/object:Gem::Version
190
- version: '7.0'
53
+ version: '1.2'
191
54
  description: |2
192
55
  A collection of RSpec patches and custom matchers. The features can be
193
56
  included individually or by category. For more information, check out the
@@ -203,6 +66,7 @@ files:
203
66
  - DEVELOPMENT.md
204
67
  - LICENSE
205
68
  - README.md
69
+ - config/rubocop-rspec.yml
206
70
  - lib/rspec/sleeping_king_studios.rb
207
71
  - lib/rspec/sleeping_king_studios/all.rb
208
72
  - lib/rspec/sleeping_king_studios/concerns.rb
@@ -210,12 +74,34 @@ files:
210
74
  - lib/rspec/sleeping_king_studios/concerns/example_constants.rb
211
75
  - lib/rspec/sleeping_king_studios/concerns/focus_examples.rb
212
76
  - lib/rspec/sleeping_king_studios/concerns/include_contract.rb
77
+ - lib/rspec/sleeping_king_studios/concerns/memoized_helpers.rb
213
78
  - lib/rspec/sleeping_king_studios/concerns/shared_example_group.rb
214
79
  - lib/rspec/sleeping_king_studios/concerns/toolbelt.rb
215
80
  - lib/rspec/sleeping_king_studios/concerns/wrap_env.rb
216
81
  - lib/rspec/sleeping_king_studios/concerns/wrap_examples.rb
217
82
  - lib/rspec/sleeping_king_studios/configuration.rb
218
83
  - lib/rspec/sleeping_king_studios/contract.rb
84
+ - lib/rspec/sleeping_king_studios/deferred.rb
85
+ - lib/rspec/sleeping_king_studios/deferred/call.rb
86
+ - lib/rspec/sleeping_king_studios/deferred/calls.rb
87
+ - lib/rspec/sleeping_king_studios/deferred/calls/example.rb
88
+ - lib/rspec/sleeping_king_studios/deferred/calls/example_group.rb
89
+ - lib/rspec/sleeping_king_studios/deferred/calls/hook.rb
90
+ - lib/rspec/sleeping_king_studios/deferred/calls/included_examples.rb
91
+ - lib/rspec/sleeping_king_studios/deferred/calls/shared_examples.rb
92
+ - lib/rspec/sleeping_king_studios/deferred/consumer.rb
93
+ - lib/rspec/sleeping_king_studios/deferred/definitions.rb
94
+ - lib/rspec/sleeping_king_studios/deferred/dependencies.rb
95
+ - lib/rspec/sleeping_king_studios/deferred/dsl.rb
96
+ - lib/rspec/sleeping_king_studios/deferred/dsl/example_constants.rb
97
+ - lib/rspec/sleeping_king_studios/deferred/dsl/example_groups.rb
98
+ - lib/rspec/sleeping_king_studios/deferred/dsl/examples.rb
99
+ - lib/rspec/sleeping_king_studios/deferred/dsl/hooks.rb
100
+ - lib/rspec/sleeping_king_studios/deferred/dsl/memoized_helpers.rb
101
+ - lib/rspec/sleeping_king_studios/deferred/dsl/shared_examples.rb
102
+ - lib/rspec/sleeping_king_studios/deferred/examples.rb
103
+ - lib/rspec/sleeping_king_studios/deferred/missing.rb
104
+ - lib/rspec/sleeping_king_studios/deferred/provider.rb
219
105
  - lib/rspec/sleeping_king_studios/examples.rb
220
106
  - lib/rspec/sleeping_king_studios/examples/all.rb
221
107
  - lib/rspec/sleeping_king_studios/examples/property_examples.rb
@@ -274,6 +160,7 @@ files:
274
160
  - lib/rspec/sleeping_king_studios/matchers/macros.rb
275
161
  - lib/rspec/sleeping_king_studios/matchers/shared/match_parameters.rb
276
162
  - lib/rspec/sleeping_king_studios/matchers/shared/match_property.rb
163
+ - lib/rspec/sleeping_king_studios/sandbox.rb
277
164
  - lib/rspec/sleeping_king_studios/support.rb
278
165
  - lib/rspec/sleeping_king_studios/support/method_signature.rb
279
166
  - lib/rspec/sleeping_king_studios/support/method_signature_expectation.rb
@@ -285,7 +172,7 @@ licenses:
285
172
  metadata:
286
173
  bug_tracker_uri: https://github.com/sleepingkingstudios/rspec-sleeping_king_studios/issues
287
174
  source_code_uri: https://github.com/sleepingkingstudios/rspec-sleeping_king_studios
288
- post_install_message:
175
+ rubygems_mfa_required: 'true'
289
176
  rdoc_options: []
290
177
  require_paths:
291
178
  - lib
@@ -293,15 +180,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
293
180
  requirements:
294
181
  - - ">="
295
182
  - !ruby/object:Gem::Version
296
- version: '0'
183
+ version: '3.1'
184
+ - - "<"
185
+ - !ruby/object:Gem::Version
186
+ version: '4.0'
297
187
  required_rubygems_version: !ruby/object:Gem::Requirement
298
188
  requirements:
299
189
  - - ">="
300
190
  - !ruby/object:Gem::Version
301
191
  version: '0'
302
192
  requirements: []
303
- rubygems_version: 3.1.2
304
- signing_key:
193
+ rubygems_version: 3.6.5
305
194
  specification_version: 4
306
195
  summary: A collection of RSpec patches and custom matchers.
307
196
  test_files: []