m2m_keygen 0.4.9 → 0.5.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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/.overcommit.yml +4 -7
  3. data/.rubocop.yml +19 -16
  4. data/.ruby-version +1 -1
  5. data/.streerc +1 -0
  6. data/.tool-versions +1 -1
  7. data/CHANGELOG.md +60 -1
  8. data/Gemfile +2 -2
  9. data/Gemfile.lock +135 -158
  10. data/README.md +64 -78
  11. data/docs/MIGRATING.md +69 -0
  12. data/docs/SPEC.md +245 -0
  13. data/examples/nonce_store/postgres.rb +40 -0
  14. data/examples/nonce_store/redis.rb +23 -0
  15. data/gemfiles/rack_2.gemfile +5 -0
  16. data/gemfiles/rack_3.gemfile +5 -0
  17. data/lib/m2m_keygen/canonicalizer.rb +57 -0
  18. data/lib/m2m_keygen/nonce_store/disabled.rb +19 -0
  19. data/lib/m2m_keygen/nonce_store/memory.rb +64 -0
  20. data/lib/m2m_keygen/nonce_store.rb +18 -0
  21. data/lib/m2m_keygen/rack_validator.rb +72 -19
  22. data/lib/m2m_keygen/request_signer/signed_request.rb +10 -0
  23. data/lib/m2m_keygen/request_signer.rb +118 -0
  24. data/lib/m2m_keygen/signature.rb +41 -39
  25. data/lib/m2m_keygen/types/params_type.rb +6 -17
  26. data/lib/m2m_keygen/version.rb +1 -1
  27. data/lib/m2m_keygen.rb +6 -0
  28. data/m2m_keygen.gemspec +12 -14
  29. data/sorbet/config +1 -0
  30. data/sorbet/rbi/gems/.gitattributes +1 -0
  31. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +45 -79
  32. data/sorbet/rbi/gems/{benchmark@0.2.0.rbi → benchmark@0.5.0.rbi} +91 -58
  33. data/sorbet/rbi/gems/bundler-audit@0.9.3.rbi +397 -0
  34. data/sorbet/rbi/gems/byebug@13.0.0.rbi +3651 -0
  35. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +336 -0
  36. data/sorbet/rbi/gems/concurrent-ruby@1.3.7.rbi +384 -0
  37. data/sorbet/rbi/gems/{diff-lcs@1.5.0.rbi → diff-lcs@1.6.2.rbi} +189 -199
  38. data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +147 -147
  39. data/sorbet/rbi/gems/dotenv@3.2.0.rbi +267 -0
  40. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  41. data/sorbet/rbi/gems/{faker@2.22.0.rbi → faker@3.8.0.rbi} +8468 -3829
  42. data/sorbet/rbi/gems/{ffi@1.15.5.rbi → ffi@1.17.4.rbi} +1 -0
  43. data/sorbet/rbi/gems/{formatador@1.1.0.rbi → formatador@1.2.3.rbi} +1 -0
  44. data/sorbet/rbi/gems/{guard@2.18.0.rbi → guard@2.20.1.rbi} +1 -0
  45. data/sorbet/rbi/gems/{i18n@1.12.0.rbi → i18n@1.15.2.rbi} +687 -827
  46. data/sorbet/rbi/gems/io-console@0.8.2.rbi +9 -0
  47. data/sorbet/rbi/gems/{json@2.6.2.rbi → json@2.20.0.rbi} +994 -252
  48. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  49. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +189 -0
  50. data/sorbet/rbi/gems/listen@3.10.0.rbi +9 -0
  51. data/sorbet/rbi/gems/logger@1.7.0.rbi +896 -0
  52. data/sorbet/rbi/gems/{lumberjack@1.2.8.rbi → lumberjack@1.4.2.rbi} +1 -0
  53. data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +111 -90
  54. data/sorbet/rbi/gems/{overcommit@0.59.1.rbi → overcommit@0.71.0.rbi} +503 -647
  55. data/sorbet/rbi/gems/parallel@2.1.0.rbi +321 -0
  56. data/sorbet/rbi/gems/parser@3.3.11.1.rbi +5229 -0
  57. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +878 -0
  58. data/sorbet/rbi/gems/prism@1.9.0.rbi +42224 -0
  59. data/sorbet/rbi/gems/pry-byebug@3.12.0.rbi +481 -0
  60. data/sorbet/rbi/gems/{pry@0.14.1.rbi → pry@0.16.0.rbi} +2567 -3550
  61. data/sorbet/rbi/gems/{racc@1.6.0.rbi → racc@1.8.1.rbi} +54 -40
  62. data/sorbet/rbi/gems/rack@3.2.6.rbi +4653 -0
  63. data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.4.2.rbi} +963 -732
  64. data/sorbet/rbi/gems/{rb-inotify@0.10.1.rbi → rb-inotify@0.11.1.rbi} +1 -0
  65. data/sorbet/rbi/gems/rbi@0.3.14.rbi +5519 -0
  66. data/sorbet/rbi/gems/rbs@4.0.3.rbi +6908 -0
  67. data/sorbet/rbi/gems/regexp_parser@2.12.0.rbi +3398 -0
  68. data/sorbet/rbi/gems/reline@0.6.3.rbi +2446 -0
  69. data/sorbet/rbi/gems/require-hooks@0.4.0.rbi +152 -0
  70. data/sorbet/rbi/gems/{rexml@3.2.5.rbi → rexml@3.4.4.rbi} +1085 -894
  71. data/sorbet/rbi/gems/rspec-core@3.13.6.rbi +9475 -0
  72. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +6108 -0
  73. data/sorbet/rbi/gems/rspec-mocks@3.13.8.rbi +4787 -0
  74. data/sorbet/rbi/gems/rspec-support@3.13.7.rbi +1274 -0
  75. data/sorbet/rbi/gems/rspec@3.13.2.rbi +15 -0
  76. data/sorbet/rbi/gems/rspec_in_context@1.2.2.rbi +294 -0
  77. data/sorbet/rbi/gems/rubocop-ast@1.49.1.rbi +7140 -0
  78. data/sorbet/rbi/gems/rubocop-faker@1.3.0.rbi +88 -0
  79. data/sorbet/rbi/gems/rubocop-performance@1.26.1.rbi +3403 -0
  80. data/sorbet/rbi/gems/rubocop-sorbet@0.12.0.rbi +2448 -0
  81. data/sorbet/rbi/gems/rubocop@1.88.1.rbi +63103 -0
  82. data/sorbet/rbi/gems/ruby-lsp@0.26.9.rbi +28 -0
  83. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +988 -0
  84. data/sorbet/rbi/gems/rubydex@0.2.7.rbi +836 -0
  85. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +90 -0
  86. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +438 -578
  87. data/sorbet/rbi/gems/spoom@1.8.2.rbi +6691 -0
  88. data/sorbet/rbi/gems/syntax_tree@6.3.0.rbi +22090 -0
  89. data/sorbet/rbi/gems/tapioca@0.19.2.rbi +3597 -0
  90. data/sorbet/rbi/gems/{thor@1.2.1.rbi → thor@1.5.0.rbi} +1085 -1171
  91. data/sorbet/rbi/gems/tsort@0.2.0.rbi +389 -0
  92. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +130 -0
  93. data/sorbet/rbi/gems/unicode-emoji@4.2.0.rbi +332 -0
  94. data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.9.0.rbi} +142 -99
  95. data/sorbet/rbi/gems/{yard@0.9.28.rbi → yard@0.9.44.rbi} +5350 -6316
  96. data/sorbet/rbi/gems/zeitwerk@2.8.2.rbi +1178 -0
  97. metadata +105 -111
  98. data/.prettierrc.js +0 -4
  99. data/docs/M2mKeygen/Error.html +0 -135
  100. data/docs/M2mKeygen/ParamsEncoder.html +0 -321
  101. data/docs/M2mKeygen/RackValidator.html +0 -533
  102. data/docs/M2mKeygen/Signature.html +0 -680
  103. data/docs/M2mKeygen/Types.html +0 -147
  104. data/docs/M2mKeygen.html +0 -157
  105. data/docs/_index.html +0 -182
  106. data/docs/class_list.html +0 -51
  107. data/docs/css/common.css +0 -1
  108. data/docs/css/full_list.css +0 -58
  109. data/docs/css/style.css +0 -497
  110. data/docs/file.README.html +0 -230
  111. data/docs/file_list.html +0 -56
  112. data/docs/frames.html +0 -17
  113. data/docs/index.html +0 -230
  114. data/docs/js/app.js +0 -314
  115. data/docs/js/full_list.js +0 -216
  116. data/docs/js/jquery.js +0 -4
  117. data/docs/method_list.html +0 -139
  118. data/docs/top-level-namespace.html +0 -110
  119. data/lib/m2m_keygen/params_encoder.rb +0 -56
  120. data/package.json +0 -12
  121. data/sig/m2m_keygen.rbs +0 -4
  122. data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +0 -18608
  123. data/sorbet/rbi/gems/backport@1.2.0.rbi +0 -522
  124. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +0 -308
  125. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -3603
  126. data/sorbet/rbi/gems/childprocess@4.1.0.rbi +0 -401
  127. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +0 -11581
  128. data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
  129. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +0 -8
  130. data/sorbet/rbi/gems/haml@5.2.2.rbi +0 -3190
  131. data/sorbet/rbi/gems/jaro_winkler@1.5.4.rbi +0 -19
  132. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +0 -133
  133. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +0 -3261
  134. data/sorbet/rbi/gems/listen@3.7.1.rbi +0 -1181
  135. data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -1459
  136. data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +0 -6514
  137. data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
  138. data/sorbet/rbi/gems/parser@3.1.2.1.rbi +0 -6826
  139. data/sorbet/rbi/gems/prettier@3.2.0.rbi +0 -22
  140. data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +0 -8
  141. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +0 -1222
  142. data/sorbet/rbi/gems/rack@2.2.4.rbi +0 -5630
  143. data/sorbet/rbi/gems/rbi@0.0.15.rbi +0 -3007
  144. data/sorbet/rbi/gems/rbs@2.6.0.rbi +0 -8
  145. data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +0 -3366
  146. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +0 -389
  147. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +0 -10786
  148. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +0 -8170
  149. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +0 -5385
  150. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +0 -1746
  151. data/sorbet/rbi/gems/rspec@3.11.0.rbi +0 -187
  152. data/sorbet/rbi/gems/rspec_in_context@1.1.0.3.rbi +0 -1113
  153. data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +0 -7044
  154. data/sorbet/rbi/gems/rubocop-faker@1.1.0.rbi +0 -106
  155. data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +0 -2982
  156. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -990
  157. data/sorbet/rbi/gems/rubocop@1.35.1.rbi +0 -52002
  158. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1239
  159. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -219
  160. data/sorbet/rbi/gems/solargraph@0.46.0.rbi +0 -9075
  161. data/sorbet/rbi/gems/spoom@1.1.12.rbi +0 -2369
  162. data/sorbet/rbi/gems/syntax_tree-haml@1.3.1.rbi +0 -8
  163. data/sorbet/rbi/gems/syntax_tree-rbs@0.5.0.rbi +0 -8
  164. data/sorbet/rbi/gems/syntax_tree@3.5.0.rbi +0 -8
  165. data/sorbet/rbi/gems/tapioca@0.9.4.rbi +0 -2946
  166. data/sorbet/rbi/gems/temple@0.8.2.rbi +0 -1712
  167. data/sorbet/rbi/gems/tilt@2.0.11.rbi +0 -742
  168. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +0 -5914
  169. data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +0 -48
  170. data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4529
  171. data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2553
  172. data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +0 -867
  173. data/sorbet/rbi/manual.rbi +0 -7
  174. data/yarn.lock +0 -20
@@ -1,1113 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `rspec_in_context` gem.
5
- # Please instead update this file by running `bin/tapioca gem rspec_in_context`.
6
-
7
- # RSpec
8
- #
9
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/context_management.rb:17
10
- module RSpec
11
- class << self
12
- # Used to ensure examples get reloaded between multiple runs in the same
13
- # process and ensures user configuration is persisted.
14
- #
15
- # Users must invoke this if they want to clear all examples but preserve
16
- # current configuration when they use the runner multiple times within the
17
- # same process.
18
- #
19
- # source://rspec-core-3.11.0/lib/rspec/core.rb:70
20
- def clear_examples; end
21
-
22
- # Returns the global [Configuration](RSpec/Core/Configuration) object. While
23
- # you _can_ use this method to access the configuration, the more common
24
- # convention is to use [RSpec.configure](RSpec#configure-class_method).
25
- #
26
- # @example
27
- # RSpec.configuration.drb_port = 1234
28
- # @see RSpec.configure
29
- # @see Core::Configuration
30
- #
31
- # source://rspec-core-3.11.0/lib/rspec/core.rb:85
32
- def configuration; end
33
-
34
- # Setters for shared global objects
35
- #
36
- # @api private
37
- #
38
- # source://rspec-core-3.11.0/lib/rspec/core.rb:49
39
- def configuration=(_arg0); end
40
-
41
- # Yields the global configuration to a block.
42
- #
43
- # @example
44
- # RSpec.configure do |config|
45
- # config.add_formatter 'documentation'
46
- # end
47
- # @see Core::Configuration
48
- # @yield [Configuration] global configuration
49
- #
50
- # source://rspec-core-3.11.0/lib/rspec/core.rb:97
51
- def configure; end
52
-
53
- # @private
54
- #
55
- # source://rspec-core-3.11.0/lib/rspec/core.rb:194
56
- def const_missing(name); end
57
-
58
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
59
- def context(*args, &example_group_block); end
60
-
61
- # The example being executed.
62
- #
63
- # The primary audience for this method is library authors who need access
64
- # to the example currently being executed and also want to support all
65
- # versions of RSpec 2 and 3.
66
- #
67
- # @example
68
- #
69
- # RSpec.configure do |c|
70
- # # context.example is deprecated, but RSpec.current_example is not
71
- # # available until RSpec 3.0.
72
- # fetch_current_example = RSpec.respond_to?(:current_example) ?
73
- # proc { RSpec.current_example } : proc { |context| context.example }
74
- #
75
- # c.before(:example) do
76
- # example = fetch_current_example.call(self)
77
- #
78
- # # ...
79
- # end
80
- # end
81
- #
82
- # source://rspec-core-3.11.0/lib/rspec/core.rb:122
83
- def current_example; end
84
-
85
- # Set the current example being executed.
86
- #
87
- # @api private
88
- #
89
- # source://rspec-core-3.11.0/lib/rspec/core.rb:128
90
- def current_example=(example); end
91
-
92
- # Get the current RSpec execution scope
93
- #
94
- # Returns (in order of lifecycle):
95
- # * `:suite` as an initial value, this is outside of the test lifecycle.
96
- # * `:before_suite_hook` during `before(:suite)` hooks.
97
- # * `:before_context_hook` during `before(:context)` hooks.
98
- # * `:before_example_hook` during `before(:example)` hooks and `around(:example)` before `example.run`.
99
- # * `:example` within the example run.
100
- # * `:after_example_hook` during `after(:example)` hooks and `around(:example)` after `example.run`.
101
- # * `:after_context_hook` during `after(:context)` hooks.
102
- # * `:after_suite_hook` during `after(:suite)` hooks.
103
- # * `:suite` as a final value, again this is outside of the test lifecycle.
104
- #
105
- # Reminder, `:context` hooks have `:all` alias and `:example` hooks have `:each` alias.
106
- #
107
- # @return [Symbol]
108
- #
109
- # source://rspec-core-3.11.0/lib/rspec/core.rb:154
110
- def current_scope; end
111
-
112
- # Set the current scope rspec is executing in
113
- #
114
- # @api private
115
- #
116
- # source://rspec-core-3.11.0/lib/rspec/core.rb:134
117
- def current_scope=(scope); end
118
-
119
- # Allows you to define contexts outside of RSpec.describe blocks
120
- #
121
- # @param name [String, Symbol] Name of the defined context
122
- # @param namespace [String, Symbol] Namespace where to store your context
123
- # @param ns Alias of namespace
124
- # @param silent [Boolean] Does the in_context should wrap itself into a context block with its name
125
- # @param print_context [Boolean] Reverse alias of silent
126
- # @param block [Proc] code that will be injected later
127
- #
128
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context.rb:27
129
- def define_context(name, namespace: T.unsafe(nil), ns: T.unsafe(nil), silent: T.unsafe(nil), print_context: T.unsafe(nil), &block); end
130
-
131
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
132
- def describe(*args, &example_group_block); end
133
-
134
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
135
- def example_group(*args, &example_group_block); end
136
-
137
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
138
- def fcontext(*args, &example_group_block); end
139
-
140
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
141
- def fdescribe(*args, &example_group_block); end
142
-
143
- # Used to ensure examples get reloaded and user configuration gets reset to
144
- # defaults between multiple runs in the same process.
145
- #
146
- # Users must invoke this if they want to have the configuration reset when
147
- # they use the runner multiple times within the same process. Users must deal
148
- # themselves with re-configuration of RSpec before run.
149
- #
150
- # source://rspec-core-3.11.0/lib/rspec/core.rb:58
151
- def reset; end
152
-
153
- # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110
154
- def shared_context(name, *args, &block); end
155
-
156
- # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110
157
- def shared_examples(name, *args, &block); end
158
-
159
- # source://rspec-core-3.11.0/lib/rspec/core/shared_example_group.rb:110
160
- def shared_examples_for(name, *args, &block); end
161
-
162
- # Internal container for global non-configuration data.
163
- #
164
- # @private
165
- #
166
- # source://rspec-core-3.11.0/lib/rspec/core.rb:160
167
- def world; end
168
-
169
- # Setters for shared global objects
170
- #
171
- # @api private
172
- #
173
- # source://rspec-core-3.11.0/lib/rspec/core.rb:49
174
- def world=(_arg0); end
175
-
176
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
177
- def xcontext(*args, &example_group_block); end
178
-
179
- # source://rspec-core-3.11.0/lib/rspec/core/dsl.rb:42
180
- def xdescribe(*args, &example_group_block); end
181
- end
182
- end
183
-
184
- # Core
185
- #
186
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/context_management.rb:19
187
- module RSpec::Core
188
- class << self
189
- # @private path to executable file.
190
- #
191
- # source://rspec-core-3.11.0/lib/rspec/core.rb:181
192
- def path_to_executable; end
193
- end
194
- end
195
-
196
- # ExampleGroup
197
- #
198
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/context_management.rb:21
199
- class RSpec::Core::ExampleGroup
200
- extend ::RspecInContext::ContextManagement
201
-
202
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:707
203
- def initialize(inspect_output = T.unsafe(nil)); end
204
-
205
- # Returns the class or module passed to the `describe` method (or alias).
206
- # Returns nil if the subject is not a class or module.
207
- #
208
- # @example
209
- # RSpec.describe Thing do
210
- # it "does something" do
211
- # described_class == Thing
212
- # end
213
- # end
214
- #
215
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:99
216
- def described_class; end
217
-
218
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:713
219
- def inspect; end
220
-
221
- private
222
-
223
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:758
224
- def method_missing(name, *args, **_arg2); end
225
-
226
- class << self
227
- # Adds an example to the example group
228
- #
229
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:367
230
- def add_example(example); end
231
-
232
- # @private
233
- #
234
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:529
235
- def before_context_ivars; end
236
-
237
- # @private
238
- #
239
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:466
240
- def children; end
241
-
242
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
243
- def context(*args, &example_group_block); end
244
-
245
- # Returns true if a `before(:context)` or `after(:context)`
246
- # hook is currently executing.
247
- #
248
- # @return [Boolean]
249
- #
250
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:542
251
- def currently_executing_a_context_hook?; end
252
-
253
- # @private
254
- #
255
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:667
256
- def declaration_locations; end
257
-
258
- # @private
259
- # @see DSL#describe
260
- #
261
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:246
262
- def define_example_group_method(name, metadata = T.unsafe(nil)); end
263
-
264
- # @example
265
- # $1 "does something", :slow, :load_factor => 100 do
266
- # end
267
- #
268
- # @private
269
- #
270
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:145
271
- def define_example_method(name, extra_options = T.unsafe(nil)); end
272
-
273
- # @private
274
- #
275
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:317
276
- def define_nested_shared_group_method(new_name, report_label = T.unsafe(nil)); end
277
-
278
- # @private
279
- #
280
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:76
281
- def delegate_to_metadata(*names); end
282
-
283
- # @private
284
- #
285
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:460
286
- def descendant_filtered_examples; end
287
-
288
- # @private
289
- #
290
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:503
291
- def descendants; end
292
-
293
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
294
- def describe(*args, &example_group_block); end
295
-
296
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:78
297
- def described_class; end
298
-
299
- # @return [String] the current example group description
300
- #
301
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:85
302
- def description; end
303
-
304
- # @private
305
- #
306
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:700
307
- def each_instance_variable_for_example(group); end
308
-
309
- # @private
310
- #
311
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:518
312
- def ensure_example_groups_are_configured; end
313
-
314
- # Defines an example within a group.
315
- #
316
- # @example
317
- # example do
318
- # end
319
- #
320
- # example "does something" do
321
- # end
322
- #
323
- # example "does something", :slow, :uses_js do
324
- # end
325
- #
326
- # example "does something", :with => 'additional metadata' do
327
- # end
328
- #
329
- # example "does something" do |ex|
330
- # # ex is the Example object that contains metadata about the example
331
- # end
332
- # @overload example
333
- # @overload example
334
- # @overload example
335
- # @overload example
336
- # @yield [Example] the example object
337
- #
338
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
339
- def example(*all_args, &block); end
340
-
341
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
342
- def example_group(*args, &example_group_block); end
343
-
344
- # @private
345
- #
346
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:450
347
- def examples; end
348
-
349
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
350
- def fcontext(*args, &example_group_block); end
351
-
352
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
353
- def fdescribe(*args, &example_group_block); end
354
-
355
- # Shortcut to define an example with `:focus => true`.
356
- #
357
- # @example
358
- # fexample do
359
- # end
360
- #
361
- # fexample "does something" do
362
- # end
363
- #
364
- # fexample "does something", :slow, :uses_js do
365
- # end
366
- #
367
- # fexample "does something", :with => 'additional metadata' do
368
- # end
369
- #
370
- # fexample "does something" do |ex|
371
- # # ex is the Example object that contains metadata about the example
372
- # end
373
- # @overload fexample
374
- # @overload fexample
375
- # @overload fexample
376
- # @overload fexample
377
- # @see example
378
- # @yield [Example] the example object
379
- #
380
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
381
- def fexample(*all_args, &block); end
382
-
383
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:78
384
- def file_path; end
385
-
386
- # @private
387
- #
388
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:455
389
- def filtered_examples; end
390
-
391
- # @private
392
- #
393
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:379
394
- def find_and_eval_shared(label, name, inclusion_location, *args, &customization_block); end
395
-
396
- # Shortcut to define an example with `:focus => true`.
397
- #
398
- # @example
399
- # fit do
400
- # end
401
- #
402
- # fit "does something" do
403
- # end
404
- #
405
- # fit "does something", :slow, :uses_js do
406
- # end
407
- #
408
- # fit "does something", :with => 'additional metadata' do
409
- # end
410
- #
411
- # fit "does something" do |ex|
412
- # # ex is the Example object that contains metadata about the example
413
- # end
414
- # @overload fit
415
- # @overload fit
416
- # @overload fit
417
- # @overload fit
418
- # @see example
419
- # @yield [Example] the example object
420
- #
421
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
422
- def fit(*all_args, &block); end
423
-
424
- # Shortcut to define an example with `:focus => true`.
425
- #
426
- # @example
427
- # focus do
428
- # end
429
- #
430
- # focus "does something" do
431
- # end
432
- #
433
- # focus "does something", :slow, :uses_js do
434
- # end
435
- #
436
- # focus "does something", :with => 'additional metadata' do
437
- # end
438
- #
439
- # focus "does something" do |ex|
440
- # # ex is the Example object that contains metadata about the example
441
- # end
442
- # @overload focus
443
- # @overload focus
444
- # @overload focus
445
- # @overload focus
446
- # @see example
447
- # @yield [Example] the example object
448
- #
449
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
450
- def focus(*all_args, &block); end
451
-
452
- # @private
453
- #
454
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:655
455
- def for_filtered_examples(reporter, &block); end
456
-
457
- # Shortcut to define an example with `:focus => true`.
458
- #
459
- # @example
460
- # fspecify do
461
- # end
462
- #
463
- # fspecify "does something" do
464
- # end
465
- #
466
- # fspecify "does something", :slow, :uses_js do
467
- # end
468
- #
469
- # fspecify "does something", :with => 'additional metadata' do
470
- # end
471
- #
472
- # fspecify "does something" do |ex|
473
- # # ex is the Example object that contains metadata about the example
474
- # end
475
- # @overload fspecify
476
- # @overload fspecify
477
- # @overload fspecify
478
- # @overload fspecify
479
- # @see example
480
- # @yield [Example] the example object
481
- #
482
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
483
- def fspecify(*all_args, &block); end
484
-
485
- # @return [String] the unique id of this example group. Pass
486
- # this at the command line to re-run this exact example group.
487
- #
488
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:675
489
- def id; end
490
-
491
- # Define a singleton method for the singleton class (remove the method if
492
- # it's already been defined).
493
- #
494
- # @private
495
- #
496
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:40
497
- def idempotently_define_singleton_method(name, &definition); end
498
-
499
- # Includes shared content mapped to `name` directly in the group in which
500
- # it is declared, as opposed to `it_behaves_like`, which creates a nested
501
- # group. If given a block, that block is also eval'd in the current
502
- # context.
503
- #
504
- # @see SharedExampleGroup
505
- #
506
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:343
507
- def include_context(name, *args, &block); end
508
-
509
- # Includes shared content mapped to `name` directly in the group in which
510
- # it is declared, as opposed to `it_behaves_like`, which creates a nested
511
- # group. If given a block, that block is also eval'd in the current
512
- # context.
513
- #
514
- # @see SharedExampleGroup
515
- #
516
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:353
517
- def include_examples(name, *args, &block); end
518
-
519
- # Defines an example within a group.
520
- # This is the primary API to define a code example.
521
- #
522
- # @example
523
- # it do
524
- # end
525
- #
526
- # it "does something" do
527
- # end
528
- #
529
- # it "does something", :slow, :uses_js do
530
- # end
531
- #
532
- # it "does something", :with => 'additional metadata' do
533
- # end
534
- #
535
- # it "does something" do |ex|
536
- # # ex is the Example object that contains metadata about the example
537
- # end
538
- # @overload it
539
- # @overload it
540
- # @overload it
541
- # @overload it
542
- # @yield [Example] the example object
543
- #
544
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
545
- def it(*all_args, &block); end
546
-
547
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:318
548
- def it_behaves_like(name, *args, &customization_block); end
549
-
550
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:318
551
- def it_should_behave_like(name, *args, &customization_block); end
552
-
553
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:78
554
- def location; end
555
-
556
- # The [Metadata](Metadata) object associated with this group.
557
- #
558
- # @see Metadata
559
- #
560
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:51
561
- def metadata; end
562
-
563
- # @private
564
- #
565
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:485
566
- def next_runnable_index_for(file); end
567
-
568
- # @private
569
- #
570
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:625
571
- def ordering_strategy; end
572
-
573
- # @private
574
- #
575
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:508
576
- def parent_groups; end
577
-
578
- # Shortcut to define an example with `:pending => true`
579
- #
580
- # @example
581
- # pending do
582
- # end
583
- #
584
- # pending "does something" do
585
- # end
586
- #
587
- # pending "does something", :slow, :uses_js do
588
- # end
589
- #
590
- # pending "does something", :with => 'additional metadata' do
591
- # end
592
- #
593
- # pending "does something" do |ex|
594
- # # ex is the Example object that contains metadata about the example
595
- # end
596
- # @overload pending
597
- # @overload pending
598
- # @overload pending
599
- # @overload pending
600
- # @see example
601
- # @yield [Example] the example object
602
- #
603
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
604
- def pending(*all_args, &block); end
605
-
606
- # Removes an example from the example group
607
- #
608
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:373
609
- def remove_example(example); end
610
-
611
- # Clear memoized values when adding/removing examples
612
- #
613
- # @private
614
- #
615
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:359
616
- def reset_memoized; end
617
-
618
- # Runs all the examples in this group.
619
- #
620
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:599
621
- def run(reporter = T.unsafe(nil)); end
622
-
623
- # @private
624
- #
625
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:585
626
- def run_after_context_hooks(example_group_instance); end
627
-
628
- # @private
629
- #
630
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:547
631
- def run_before_context_hooks(example_group_instance); end
632
-
633
- # @private
634
- #
635
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:641
636
- def run_examples(reporter); end
637
-
638
- # @private
639
- #
640
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:410
641
- def set_it_up(description, args, registration_collection, &example_group_block); end
642
-
643
- # @private
644
- #
645
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:685
646
- def set_ivars(instance, ivars); end
647
-
648
- # Shortcut to define an example with `:skip => true`
649
- #
650
- # @example
651
- # skip do
652
- # end
653
- #
654
- # skip "does something" do
655
- # end
656
- #
657
- # skip "does something", :slow, :uses_js do
658
- # end
659
- #
660
- # skip "does something", :with => 'additional metadata' do
661
- # end
662
- #
663
- # skip "does something" do |ex|
664
- # # ex is the Example object that contains metadata about the example
665
- # end
666
- # @overload skip
667
- # @overload skip
668
- # @overload skip
669
- # @overload skip
670
- # @see example
671
- # @yield [Example] the example object
672
- #
673
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
674
- def skip(*all_args, &block); end
675
-
676
- # Defines an example within a group.
677
- # Useful for when your docstring does not read well off of `it`.
678
- #
679
- # @example
680
- # RSpec.describe MyClass do
681
- # specify "#do_something is deprecated" do
682
- # # ...
683
- # end
684
- # end
685
- # @example
686
- # specify do
687
- # end
688
- #
689
- # specify "does something" do
690
- # end
691
- #
692
- # specify "does something", :slow, :uses_js do
693
- # end
694
- #
695
- # specify "does something", :with => 'additional metadata' do
696
- # end
697
- #
698
- # specify "does something" do |ex|
699
- # # ex is the Example object that contains metadata about the example
700
- # end
701
- # @overload specify
702
- # @overload specify
703
- # @overload specify
704
- # @overload specify
705
- # @yield [Example] the example object
706
- #
707
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
708
- def specify(*all_args, &block); end
709
-
710
- # @private
711
- #
712
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:534
713
- def store_before_context_ivars(example_group_instance); end
714
-
715
- # @private
716
- #
717
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/context_management.rb:9
718
- def subclass(parent, description, args, registration_collection, &example_group_block); end
719
-
720
- # :nocov:
721
- #
722
- # @private
723
- #
724
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:562
725
- def superclass_before_context_ivars; end
726
-
727
- # @private
728
- # @return [Metadata] belonging to the parent of a nested {ExampleGroup}
729
- #
730
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:71
731
- def superclass_metadata; end
732
-
733
- # @private
734
- # @return [Boolean]
735
- #
736
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:513
737
- def top_level?; end
738
-
739
- # @private
740
- #
741
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:680
742
- def top_level_description; end
743
-
744
- # Traverses the tree of groups, starting with `self`, then the children, recursively.
745
- # Halts the traversal of a branch of the tree as soon as the passed block returns true.
746
- # Note that siblings groups and their sub-trees will continue to be explored.
747
- # This is intended to make it easy to find the top-most group that satisfies some
748
- # condition.
749
- #
750
- # @private
751
- #
752
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:476
753
- def traverse_tree_until(&block); end
754
-
755
- # @private
756
- #
757
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:727
758
- def update_inherited_metadata(updates); end
759
-
760
- # Temporarily replace the provided metadata.
761
- # Intended primarily to allow an example group's singleton class
762
- # to return the metadata of the example that it exists for. This
763
- # is necessary for shared example group inclusion to work properly
764
- # with singleton example groups.
765
- #
766
- # @private
767
- #
768
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:61
769
- def with_replaced_metadata(meta); end
770
-
771
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
772
- def xcontext(*args, &example_group_block); end
773
-
774
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:247
775
- def xdescribe(*args, &example_group_block); end
776
-
777
- # Shortcut to define an example with `:skip => 'Temporarily skipped with xexample'`.
778
- #
779
- # @example
780
- # xexample do
781
- # end
782
- #
783
- # xexample "does something" do
784
- # end
785
- #
786
- # xexample "does something", :slow, :uses_js do
787
- # end
788
- #
789
- # xexample "does something", :with => 'additional metadata' do
790
- # end
791
- #
792
- # xexample "does something" do |ex|
793
- # # ex is the Example object that contains metadata about the example
794
- # end
795
- # @overload xexample
796
- # @overload xexample
797
- # @overload xexample
798
- # @overload xexample
799
- # @see example
800
- # @yield [Example] the example object
801
- #
802
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
803
- def xexample(*all_args, &block); end
804
-
805
- # Shortcut to define an example with `:skip => 'Temporarily skipped with xit'`.
806
- #
807
- # @example
808
- # xit do
809
- # end
810
- #
811
- # xit "does something" do
812
- # end
813
- #
814
- # xit "does something", :slow, :uses_js do
815
- # end
816
- #
817
- # xit "does something", :with => 'additional metadata' do
818
- # end
819
- #
820
- # xit "does something" do |ex|
821
- # # ex is the Example object that contains metadata about the example
822
- # end
823
- # @overload xit
824
- # @overload xit
825
- # @overload xit
826
- # @overload xit
827
- # @see example
828
- # @yield [Example] the example object
829
- #
830
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
831
- def xit(*all_args, &block); end
832
-
833
- # Shortcut to define an example with `:skip => 'Temporarily skipped with xspecify'`.
834
- #
835
- # @example
836
- # xspecify do
837
- # end
838
- #
839
- # xspecify "does something" do
840
- # end
841
- #
842
- # xspecify "does something", :slow, :uses_js do
843
- # end
844
- #
845
- # xspecify "does something", :with => 'additional metadata' do
846
- # end
847
- #
848
- # xspecify "does something" do |ex|
849
- # # ex is the Example object that contains metadata about the example
850
- # end
851
- # @overload xspecify
852
- # @overload xspecify
853
- # @overload xspecify
854
- # @overload xspecify
855
- # @see example
856
- # @yield [Example] the example object
857
- #
858
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:146
859
- def xspecify(*all_args, &block); end
860
-
861
- private
862
-
863
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:742
864
- def method_missing(name, *args); end
865
- end
866
- end
867
-
868
- # @private
869
- #
870
- # source://rspec-core-3.11.0/lib/rspec/core/example_group.rb:696
871
- RSpec::Core::ExampleGroup::INSTANCE_VARIABLE_TO_IGNORE = T.let(T.unsafe(nil), Symbol)
872
-
873
- # @private
874
- #
875
- # source://rspec-core-3.11.0/lib/rspec/core/filter_manager.rb:183
876
- RSpec::Core::ExclusionRules = RSpec::Core::FilterRules
877
-
878
- # @private
879
- #
880
- # source://rspec-core-3.11.0/lib/rspec/core.rb:187
881
- RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash)
882
-
883
- # @private
884
- #
885
- # source://rspec-core-3.11.0/lib/rspec/core/shared_context.rb:54
886
- RSpec::SharedContext = RSpec::Core::SharedContext
887
-
888
- # Main wrapping module
889
- #
890
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/version.rb:3
891
- module RspecInContext
892
- include ::RspecInContext::InContext
893
-
894
- mixes_in_class_methods ::RspecInContext::InContext::ClassMethods
895
-
896
- class << self
897
- # Inclusion convenience of the gem in RSpec
898
- #
899
- # @api private
900
- #
901
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context.rb:12
902
- def included(base); end
903
- end
904
- end
905
-
906
- # Context struct
907
- #
908
- # @attr block [Proc] what will be executed in the test context
909
- # @attr owner [Class] current rspec context class. This will be used to know where a define_context has been defined
910
- # @attr name [String | Symbol] represent the name by which the context can be find.
911
- # @attr namespace [String | Symbol] namespace for context names to avoid collisions
912
- # @attr silent [Boolean] does the in_context wrap itself into a context with its name or an anonymous context
913
- #
914
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:14
915
- class RspecInContext::Context < ::Struct
916
- # what will be executed in the test context
917
- #
918
- # @return [Proc] the current value of block
919
- def block; end
920
-
921
- # what will be executed in the test context
922
- #
923
- # @param value [Proc] the value to set the attribute block to.
924
- # @return [Proc] the newly set value
925
- def block=(_); end
926
-
927
- # represent the name by which the context can be find.
928
- #
929
- # @return [String | Symbol] the current value of name
930
- def name; end
931
-
932
- # represent the name by which the context can be find.
933
- #
934
- # @param value [String | Symbol] the value to set the attribute name to.
935
- # @return [String | Symbol] the newly set value
936
- def name=(_); end
937
-
938
- # namespace for context names to avoid collisions
939
- #
940
- # @return [String | Symbol] the current value of namespace
941
- def namespace; end
942
-
943
- # namespace for context names to avoid collisions
944
- #
945
- # @param value [String | Symbol] the value to set the attribute namespace to.
946
- # @return [String | Symbol] the newly set value
947
- def namespace=(_); end
948
-
949
- # current rspec context class. This will be used to know where a define_context has been defined
950
- #
951
- # @return [Class] the current value of owner
952
- def owner; end
953
-
954
- # current rspec context class. This will be used to know where a define_context has been defined
955
- #
956
- # @param value [Class] the value to set the attribute owner to.
957
- # @return [Class] the newly set value
958
- def owner=(_); end
959
-
960
- # does the in_context wrap itself into a context with its name or an anonymous context
961
- #
962
- # @return [Boolean] the current value of silent
963
- def silent; end
964
-
965
- # does the in_context wrap itself into a context with its name or an anonymous context
966
- #
967
- # @param value [Boolean] the value to set the attribute silent to.
968
- # @return [Boolean] the newly set value
969
- def silent=(_); end
970
-
971
- class << self
972
- def [](*_arg0); end
973
- def inspect; end
974
- def keyword_init?; end
975
- def members; end
976
- def new(*_arg0); end
977
- end
978
- end
979
-
980
- # Allow context to be scoped inside a block
981
- #
982
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/context_management.rb:5
983
- module RspecInContext::ContextManagement
984
- # prepending a RSpec method so we can know when a describe/context block finish
985
- # its reading
986
- #
987
- # @api private
988
- #
989
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/context_management.rb:9
990
- def subclass(parent, description, args, registration_collection, &example_group_block); end
991
- end
992
-
993
- # Main module containing almost every methods
994
- #
995
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:17
996
- module RspecInContext::InContext
997
- mixes_in_class_methods ::RspecInContext::InContext::ClassMethods
998
-
999
- class << self
1000
- # Meta method to add a new context
1001
- #
1002
- # @api private
1003
- # @note Will warn if a context is overriden
1004
- #
1005
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:37
1006
- def add_context(context_name, owner = T.unsafe(nil), namespace = T.unsafe(nil), silent = T.unsafe(nil), &block); end
1007
-
1008
- # Contexts container + creation
1009
- #
1010
- # @api private
1011
- #
1012
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:29
1013
- def contexts; end
1014
-
1015
- # Find a context.
1016
- #
1017
- # @api private
1018
- #
1019
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:45
1020
- def find_context(context_name, namespace = T.unsafe(nil)); end
1021
-
1022
- # Look into every namespace to find the context
1023
- #
1024
- # @api private
1025
- #
1026
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:55
1027
- def find_context_in_any_namespace(context_name); end
1028
-
1029
- # Hook for easier inclusion of the gem in RSpec
1030
- #
1031
- # @api private
1032
- #
1033
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:23
1034
- def included(base); end
1035
-
1036
- # Define a context from outside a RSpec.describe block
1037
- #
1038
- # @api private
1039
- #
1040
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:70
1041
- def outside_define_context(context_name, namespace, silent, &block); end
1042
-
1043
- # Delete a context
1044
- #
1045
- # @api private
1046
- #
1047
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:62
1048
- def remove_context(current_class); end
1049
- end
1050
- end
1051
-
1052
- # This module define the methods that will be available for the end user inside RSpec tests
1053
- #
1054
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:76
1055
- module RspecInContext::InContext::ClassMethods
1056
- # Let you define a context that can be reused later
1057
- #
1058
- # @note contexts are scoped to the block they are defined in.
1059
- # @param context_name [String, Symbol] The name of the context that will be re-used later
1060
- # @param namespace [String, Symbol] namespace name where the context will be stored.
1061
- # It helps reducing colisions when you define "global" contexts
1062
- # @param ns [String, Symbol] Alias of namespace
1063
- # @param block [Proc] Contain the code that will be injected with #in_context later
1064
- # @param silent [Boolean] Does the in_context wrap itself into a context with its name or an anonymous context
1065
- # @param print_context [Boolean] Reverse alias of silent
1066
- #
1067
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:114
1068
- def define_context(context_name, namespace: T.unsafe(nil), ns: T.unsafe(nil), silent: T.unsafe(nil), print_context: T.unsafe(nil), &block); end
1069
-
1070
- # Used in context definition
1071
- # Place where you want to re-inject code passed in argument of in_context
1072
- #
1073
- # For convenience and readability, a `instanciate_context` alias have been defined
1074
- # (for more examples look at tests)
1075
- #
1076
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:98
1077
- def execute_tests; end
1078
-
1079
- # Use a context and inject its content at this place in the code
1080
- #
1081
- # @param context_name [String, Symbol] The context namespace
1082
- # @param args [*Any] Any arg to be passed down to the injected context
1083
- # @param namespace [String, Symbol] namespace name where to look for the context
1084
- # @param ns [String, Symbol] Alias for :namespace
1085
- # @param block Content that will be re-injected (see #execute_tests)
1086
- #
1087
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:84
1088
- def in_context(context_name, *args, namespace: T.unsafe(nil), ns: T.unsafe(nil), &block); end
1089
-
1090
- # Used in context definition
1091
- # Place where you want to re-inject code passed in argument of in_context
1092
- #
1093
- # For convenience and readability, a `instanciate_context` alias have been defined
1094
- # (for more examples look at tests)
1095
- #
1096
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:98
1097
- def instanciate_context; end
1098
- end
1099
-
1100
- # Name of the Global context
1101
- #
1102
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:19
1103
- RspecInContext::InContext::GLOBAL_CONTEXT = T.let(T.unsafe(nil), Symbol)
1104
-
1105
- # Error type when no context is find from its name (and eventualy namespace)
1106
- #
1107
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/in_context.rb:6
1108
- class RspecInContext::NoContextFound < ::StandardError; end
1109
-
1110
- # Version of the gem
1111
- #
1112
- # source://rspec_in_context-1.1.0.3/lib/rspec_in_context/version.rb:5
1113
- RspecInContext::VERSION = T.let(T.unsafe(nil), String)