legal_entity 0.1.0.pre.beta0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +18 -0
  3. data/CHANGELOG.md +5 -0
  4. data/MIT-LICENSE +21 -0
  5. data/README.md +1 -0
  6. data/Rakefile +10 -0
  7. data/legal_entity.gemspec +45 -0
  8. data/lib/legal_entity/person.rb +7 -0
  9. data/lib/legal_entity/version.rb +6 -0
  10. data/lib/legal_entity.rb +9 -0
  11. data/sorbet/config +4 -0
  12. data/sorbet/rbi/annotations/.gitattributes +1 -0
  13. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  14. data/sorbet/rbi/annotations/activerecord.rbi +92 -0
  15. data/sorbet/rbi/annotations/activesupport.rbi +421 -0
  16. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  17. data/sorbet/rbi/gems/.gitattributes +1 -0
  18. data/sorbet/rbi/gems/activemodel@7.0.5.rbi +6022 -0
  19. data/sorbet/rbi/gems/activerecord@7.0.5.rbi +37827 -0
  20. data/sorbet/rbi/gems/activesupport@7.0.5.rbi +18125 -0
  21. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  22. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11590 -0
  23. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  24. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2325 -0
  25. data/sorbet/rbi/gems/json@2.7.1.rbi +1561 -0
  26. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
  27. data/sorbet/rbi/gems/minitest@5.22.2.rbi +1535 -0
  28. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  29. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  30. data/sorbet/rbi/gems/parser@3.3.0.5.rbi +5472 -0
  31. data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
  32. data/sorbet/rbi/gems/prism@0.24.0.rbi +31040 -0
  33. data/sorbet/rbi/gems/racc@1.7.3.rbi +161 -0
  34. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  35. data/sorbet/rbi/gems/rake@13.1.0.rbi +3132 -0
  36. data/sorbet/rbi/gems/rbi@0.1.9.rbi +3006 -0
  37. data/sorbet/rbi/gems/regexp_parser@2.9.0.rbi +3771 -0
  38. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
  39. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7141 -0
  40. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2576 -0
  41. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +328 -0
  42. data/sorbet/rbi/gems/rubocop-sorbet@0.7.4.rbi +1442 -0
  43. data/sorbet/rbi/gems/rubocop@1.60.2.rbi +57372 -0
  44. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  45. data/sorbet/rbi/gems/spoom@1.2.4.rbi +3777 -0
  46. data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +23136 -0
  47. data/sorbet/rbi/gems/tapioca@0.12.0.rbi +3508 -0
  48. data/sorbet/rbi/gems/thor@1.3.0.rbi +4345 -0
  49. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  50. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +65 -0
  51. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  52. data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
  53. data/sorbet/tapioca/config.yml +13 -0
  54. data/sorbet/tapioca/require.rb +4 -0
  55. metadata +256 -0
@@ -0,0 +1,328 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rubocop-rake` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rubocop-rake`.
6
+
7
+ # source://rubocop-rake//lib/rubocop/rake/version.rb#3
8
+ module RuboCop; end
9
+
10
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#4
11
+ module RuboCop::Cop; end
12
+
13
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#5
14
+ module RuboCop::Cop::Rake; end
15
+
16
+ # This cop detects class or module definition in a task or namespace,
17
+ # because it is defined to the top level.
18
+ # It is confusing because the scope looks in the task or namespace,
19
+ # but actually it is defined to the top level.
20
+ #
21
+ # @example
22
+ # # bad
23
+ # task :foo do
24
+ # class C
25
+ # end
26
+ # end
27
+ #
28
+ # # bad
29
+ # namespace :foo do
30
+ # module M
31
+ # end
32
+ # end
33
+ #
34
+ # # good - It is also defined to the top level,
35
+ # # but it looks expected behavior.
36
+ # class C
37
+ # end
38
+ # task :foo do
39
+ # end
40
+ #
41
+ # source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#31
42
+ class RuboCop::Cop::Rake::ClassDefinitionInTask < ::RuboCop::Cop::Base
43
+ # source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
44
+ def on_class(node); end
45
+
46
+ # source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#34
47
+ def on_module(node); end
48
+ end
49
+
50
+ # source://rubocop-rake//lib/rubocop/cop/rake/class_definition_in_task.rb#32
51
+ RuboCop::Cop::Rake::ClassDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
52
+
53
+ # Rake task definition should have a description with `desc` method.
54
+ # It is useful as a documentation of task. And Rake does not display
55
+ # task that does not have `desc` by `rake -T`.
56
+ #
57
+ # Note: This cop does not require description for the default task,
58
+ # because the default task is executed with `rake` without command.
59
+ #
60
+ # @example
61
+ # # bad
62
+ # task :do_something
63
+ #
64
+ # # bad
65
+ # task :do_something do
66
+ # end
67
+ #
68
+ # # good
69
+ # desc 'Do something'
70
+ # task :do_something
71
+ #
72
+ # # good
73
+ # desc 'Do something'
74
+ # task :do_something do
75
+ # end
76
+ #
77
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#30
78
+ class RuboCop::Cop::Rake::Desc < ::RuboCop::Cop::Base
79
+ include ::RuboCop::Cop::Rake::Helper::OnTask
80
+ extend ::RuboCop::Cop::AutoCorrector
81
+
82
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#40
83
+ def on_task(node); end
84
+
85
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#36
86
+ def prerequisites(param0 = T.unsafe(nil)); end
87
+
88
+ private
89
+
90
+ # @return [Boolean]
91
+ #
92
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#76
93
+ def can_insert_desc_to?(parent); end
94
+
95
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#62
96
+ def parent_and_task(task_node); end
97
+
98
+ # @return [Boolean]
99
+ #
100
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#50
101
+ def task_with_desc?(node); end
102
+ end
103
+
104
+ # source://rubocop-rake//lib/rubocop/cop/rake/desc.rb#34
105
+ RuboCop::Cop::Rake::Desc::MSG = T.let(T.unsafe(nil), String)
106
+
107
+ # If namespaces are defined with the same name, Rake executes the both namespaces
108
+ # in definition order.
109
+ # It is redundant. You should squash them into one definition.
110
+ # This cop detects it.
111
+ #
112
+ # @example
113
+ # # bad
114
+ # namespace :foo do
115
+ # task :bar do
116
+ # end
117
+ # end
118
+ # namespace :foo do
119
+ # task :hoge do
120
+ # end
121
+ # end
122
+ #
123
+ # # good
124
+ # namespace :foo do
125
+ # task :bar do
126
+ # end
127
+ # task :hoge do
128
+ # end
129
+ # end
130
+ #
131
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#30
132
+ class RuboCop::Cop::Rake::DuplicateNamespace < ::RuboCop::Cop::Base
133
+ include ::RuboCop::Cop::Rake::Helper::OnNamespace
134
+
135
+ # @return [DuplicateNamespace] a new instance of DuplicateNamespace
136
+ #
137
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#35
138
+ def initialize(*_arg0); end
139
+
140
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#67
141
+ def message_for_dup(previous:, current:, namespace:); end
142
+
143
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#53
144
+ def namespaces(node); end
145
+
146
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#40
147
+ def on_namespace(node); end
148
+
149
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#76
150
+ def source_location(node); end
151
+ end
152
+
153
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_namespace.rb#33
154
+ RuboCop::Cop::Rake::DuplicateNamespace::MSG = T.let(T.unsafe(nil), String)
155
+
156
+ # If tasks are defined with the same name, Rake executes the both tasks
157
+ # in definition order.
158
+ # It is misleading sometimes. You should squash them into one definition.
159
+ # This cop detects it.
160
+ #
161
+ # @example
162
+ # # bad
163
+ # task :foo do
164
+ # p 'foo 1'
165
+ # end
166
+ # task :foo do
167
+ # p 'foo 2'
168
+ # end
169
+ #
170
+ # # good
171
+ # task :foo do
172
+ # p 'foo 1'
173
+ # p 'foo 2'
174
+ # end
175
+ #
176
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#26
177
+ class RuboCop::Cop::Rake::DuplicateTask < ::RuboCop::Cop::Base
178
+ include ::RuboCop::Cop::Rake::Helper::OnTask
179
+
180
+ # @return [DuplicateTask] a new instance of DuplicateTask
181
+ #
182
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#31
183
+ def initialize(*_arg0); end
184
+
185
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#66
186
+ def message_for_dup(previous:, current:, task_name:); end
187
+
188
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#52
189
+ def namespaces(node); end
190
+
191
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#36
192
+ def on_task(node); end
193
+
194
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#75
195
+ def source_location(node); end
196
+ end
197
+
198
+ # source://rubocop-rake//lib/rubocop/cop/rake/duplicate_task.rb#29
199
+ RuboCop::Cop::Rake::DuplicateTask::MSG = T.let(T.unsafe(nil), String)
200
+
201
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#6
202
+ module RuboCop::Cop::Rake::Helper; end
203
+
204
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#7
205
+ module RuboCop::Cop::Rake::Helper::ClassDefinition
206
+ extend ::RuboCop::AST::NodePattern::Macros
207
+ extend ::RuboCop::Cop::Rake::Helper::ClassDefinition
208
+
209
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#11
210
+ def class_definition?(param0 = T.unsafe(nil)); end
211
+
212
+ # @return [Boolean]
213
+ #
214
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/class_definition.rb#22
215
+ def in_class_definition?(node); end
216
+ end
217
+
218
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#7
219
+ module RuboCop::Cop::Rake::Helper::OnNamespace
220
+ extend ::RuboCop::AST::NodePattern::Macros
221
+
222
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#10
223
+ def namespace?(param0 = T.unsafe(nil)); end
224
+
225
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/on_namespace.rb#14
226
+ def on_send(node); end
227
+ end
228
+
229
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#7
230
+ module RuboCop::Cop::Rake::Helper::OnTask
231
+ extend ::RuboCop::AST::NodePattern::Macros
232
+
233
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#14
234
+ def on_send(node); end
235
+
236
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/on_task.rb#10
237
+ def task?(param0 = T.unsafe(nil)); end
238
+ end
239
+
240
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#7
241
+ module RuboCop::Cop::Rake::Helper::TaskDefinition
242
+ extend ::RuboCop::AST::NodePattern::Macros
243
+ extend ::RuboCop::Cop::Rake::Helper::TaskDefinition
244
+
245
+ # @return [Boolean]
246
+ #
247
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#19
248
+ def in_task_or_namespace?(node); end
249
+
250
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/task_definition.rb#11
251
+ def task_or_namespace?(param0 = T.unsafe(nil)); end
252
+ end
253
+
254
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#7
255
+ module RuboCop::Cop::Rake::Helper::TaskName
256
+ extend ::RuboCop::Cop::Rake::Helper::TaskName
257
+
258
+ # source://rubocop-rake//lib/rubocop/cop/rake/helper/task_name.rb#10
259
+ def task_name(node); end
260
+ end
261
+
262
+ # This cop detects method definition in a task or namespace,
263
+ # because it is defined to the top level.
264
+ # It is confusing because the scope looks in the task or namespace,
265
+ # but actually it is defined to the top level.
266
+ #
267
+ # @example
268
+ # # bad
269
+ # task :foo do
270
+ # def helper_method
271
+ # do_something
272
+ # end
273
+ # end
274
+ #
275
+ # # bad
276
+ # namespace :foo do
277
+ # def helper_method
278
+ # do_something
279
+ # end
280
+ # end
281
+ #
282
+ # # good - It is also defined to the top level,
283
+ # # but it looks expected behavior.
284
+ # def helper_method
285
+ # end
286
+ # task :foo do
287
+ # end
288
+ #
289
+ # source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#33
290
+ class RuboCop::Cop::Rake::MethodDefinitionInTask < ::RuboCop::Cop::Base
291
+ # source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
292
+ def on_def(node); end
293
+
294
+ # source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#36
295
+ def on_defs(node); end
296
+ end
297
+
298
+ # source://rubocop-rake//lib/rubocop/cop/rake/method_definition_in_task.rb#34
299
+ RuboCop::Cop::Rake::MethodDefinitionInTask::MSG = T.let(T.unsafe(nil), String)
300
+
301
+ # source://rubocop-rake//lib/rubocop/rake/version.rb#4
302
+ module RuboCop::Rake; end
303
+
304
+ # source://rubocop-rake//lib/rubocop/rake.rb#12
305
+ RuboCop::Rake::CONFIG = T.let(T.unsafe(nil), Hash)
306
+
307
+ # source://rubocop-rake//lib/rubocop/rake.rb#11
308
+ RuboCop::Rake::CONFIG_DEFAULT = T.let(T.unsafe(nil), Pathname)
309
+
310
+ # source://rubocop-rake//lib/rubocop/rake.rb#8
311
+ class RuboCop::Rake::Error < ::StandardError; end
312
+
313
+ # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
314
+ # bit of our configuration.
315
+ #
316
+ # source://rubocop-rake//lib/rubocop/rake/inject.rb#9
317
+ module RuboCop::Rake::Inject
318
+ class << self
319
+ # source://rubocop-rake//lib/rubocop/rake/inject.rb#10
320
+ def defaults!; end
321
+ end
322
+ end
323
+
324
+ # source://rubocop-rake//lib/rubocop/rake.rb#10
325
+ RuboCop::Rake::PROJECT_ROOT = T.let(T.unsafe(nil), Pathname)
326
+
327
+ # source://rubocop-rake//lib/rubocop/rake/version.rb#5
328
+ RuboCop::Rake::VERSION = T.let(T.unsafe(nil), String)