activerecord-ejection_seat 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -0
  3. data/Gemfile +11 -3
  4. data/Gemfile.lock +99 -35
  5. data/README.md +4 -0
  6. data/Rakefile +14 -2
  7. data/lib/activerecord-ejection_seat/ejectable.rb +2 -1
  8. data/lib/activerecord-ejection_seat/props_builder.rb +44 -0
  9. data/lib/activerecord-ejection_seat/version.rb +2 -1
  10. data/lib/activerecord-ejection_seat.rb +3 -1
  11. data/sorbet/config +3 -0
  12. data/sorbet/rbi/annotations/activerecord.rbi +18 -0
  13. data/sorbet/rbi/annotations/activesupport.rbi +52 -0
  14. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  15. data/sorbet/rbi/gems/activemodel@7.0.4.rbi +8 -0
  16. data/sorbet/rbi/gems/activerecord@7.0.4.rbi +11 -0
  17. data/sorbet/rbi/gems/activesupport@7.0.4.rbi +93 -0
  18. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  19. data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +8 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1064 -0
  21. data/sorbet/rbi/gems/i18n@1.12.0.rbi +8 -0
  22. data/sorbet/rbi/gems/io-console@0.6.0.rbi +8 -0
  23. data/sorbet/rbi/gems/irb@1.6.2.rbi +342 -0
  24. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  25. data/sorbet/rbi/gems/language_server-protocol@3.17.0.2.rbi +8 -0
  26. data/sorbet/rbi/gems/minitest@5.16.3.rbi +8 -0
  27. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  28. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  29. data/sorbet/rbi/gems/parser@3.1.3.0.rbi +6878 -0
  30. data/sorbet/rbi/gems/prettier_print@1.1.0.rbi +8 -0
  31. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +397 -0
  32. data/sorbet/rbi/gems/rake@13.0.6.rbi +2946 -0
  33. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  34. data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +3126 -0
  35. data/sorbet/rbi/gems/reline@0.3.2.rbi +8 -0
  36. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4660 -0
  37. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10588 -0
  38. data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +7817 -0
  39. data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +4994 -0
  40. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1477 -0
  41. data/sorbet/rbi/gems/rspec@3.12.0.rbi +10 -0
  42. data/sorbet/rbi/gems/rubocop-ast@1.24.0.rbi +6790 -0
  43. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +354 -0
  44. data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +7650 -0
  45. data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +1014 -0
  46. data/sorbet/rbi/gems/rubocop@1.41.0.rbi +52148 -0
  47. data/sorbet/rbi/gems/ruby-lsp@0.3.7.rbi +13 -0
  48. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +1212 -0
  49. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +16 -0
  50. data/sorbet/rbi/gems/spoom@1.1.15.rbi +2383 -0
  51. data/sorbet/rbi/gems/sqlite3@1.5.4.rbi +1600 -0
  52. data/sorbet/rbi/gems/syntax_tree@4.3.0.rbi +8 -0
  53. data/sorbet/rbi/gems/tapioca@0.10.4.rbi +3032 -0
  54. data/sorbet/rbi/gems/thor@1.2.1.rbi +3950 -0
  55. data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +8 -0
  56. data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +46 -0
  57. data/sorbet/rbi/gems/unparser@0.6.5.rbi +4265 -0
  58. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2498 -0
  59. data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +391 -0
  60. data/sorbet/rbi/gems/yard@0.9.28.rbi +17033 -0
  61. data/sorbet/rbi/todo.rbi +9 -0
  62. data/sorbet/tapioca/config.yml +2 -0
  63. data/sorbet/tapioca/require.rb +4 -0
  64. metadata +71 -4
  65. data/activerecord-ejection_seat.gemspec +0 -39
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `prettier_print` gem.
5
+ # Please instead update this file by running `bin/tapioca gem prettier_print`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -0,0 +1,397 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rainbow` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rainbow`.
6
+
7
+ # source://yard/0.9.28/lib/yard.rb#61
8
+ ::RUBY18 = T.let(T.unsafe(nil), FalseClass)
9
+
10
+ # source://yard/0.9.28/lib/yard.rb#62
11
+ ::RUBY19 = T.let(T.unsafe(nil), TrueClass)
12
+
13
+ class Object < ::BasicObject
14
+ include ::Kernel
15
+ include ::PP::ObjectMixin
16
+
17
+ private
18
+
19
+ # source://rainbow//lib/rainbow/global.rb#23
20
+ def Rainbow(string); end
21
+ end
22
+
23
+ module Rainbow
24
+ class << self
25
+ # source://rainbow//lib/rainbow/global.rb#10
26
+ def enabled; end
27
+
28
+ # source://rainbow//lib/rainbow/global.rb#14
29
+ def enabled=(value); end
30
+
31
+ # source://rainbow//lib/rainbow/global.rb#6
32
+ def global; end
33
+
34
+ # source://rainbow//lib/rainbow.rb#6
35
+ def new; end
36
+
37
+ # source://rainbow//lib/rainbow/global.rb#18
38
+ def uncolor(string); end
39
+ end
40
+ end
41
+
42
+ class Rainbow::Color
43
+ # Returns the value of attribute ground.
44
+ #
45
+ # source://rainbow//lib/rainbow/color.rb#5
46
+ def ground; end
47
+
48
+ class << self
49
+ # source://rainbow//lib/rainbow/color.rb#7
50
+ def build(ground, values); end
51
+
52
+ # source://rainbow//lib/rainbow/color.rb#40
53
+ def parse_hex_color(hex); end
54
+ end
55
+ end
56
+
57
+ class Rainbow::Color::Indexed < ::Rainbow::Color
58
+ # @return [Indexed] a new instance of Indexed
59
+ #
60
+ # source://rainbow//lib/rainbow/color.rb#57
61
+ def initialize(ground, num); end
62
+
63
+ # source://rainbow//lib/rainbow/color.rb#62
64
+ def codes; end
65
+
66
+ # Returns the value of attribute num.
67
+ #
68
+ # source://rainbow//lib/rainbow/color.rb#55
69
+ def num; end
70
+ end
71
+
72
+ class Rainbow::Color::Named < ::Rainbow::Color::Indexed
73
+ # @return [Named] a new instance of Named
74
+ #
75
+ # source://rainbow//lib/rainbow/color.rb#90
76
+ def initialize(ground, name); end
77
+
78
+ class << self
79
+ # source://rainbow//lib/rainbow/color.rb#82
80
+ def color_names; end
81
+
82
+ # source://rainbow//lib/rainbow/color.rb#86
83
+ def valid_names; end
84
+ end
85
+ end
86
+
87
+ # source://rainbow//lib/rainbow/color.rb#70
88
+ Rainbow::Color::Named::NAMES = T.let(T.unsafe(nil), Hash)
89
+
90
+ class Rainbow::Color::RGB < ::Rainbow::Color::Indexed
91
+ # @return [RGB] a new instance of RGB
92
+ #
93
+ # source://rainbow//lib/rainbow/color.rb#107
94
+ def initialize(ground, *values); end
95
+
96
+ # Returns the value of attribute b.
97
+ #
98
+ # source://rainbow//lib/rainbow/color.rb#101
99
+ def b; end
100
+
101
+ # source://rainbow//lib/rainbow/color.rb#116
102
+ def codes; end
103
+
104
+ # Returns the value of attribute g.
105
+ #
106
+ # source://rainbow//lib/rainbow/color.rb#101
107
+ def g; end
108
+
109
+ # Returns the value of attribute r.
110
+ #
111
+ # source://rainbow//lib/rainbow/color.rb#101
112
+ def r; end
113
+
114
+ private
115
+
116
+ # source://rainbow//lib/rainbow/color.rb#122
117
+ def code_from_rgb; end
118
+
119
+ class << self
120
+ # source://rainbow//lib/rainbow/color.rb#103
121
+ def to_ansi_domain(value); end
122
+ end
123
+ end
124
+
125
+ class Rainbow::Color::X11Named < ::Rainbow::Color::RGB
126
+ include ::Rainbow::X11ColorNames
127
+
128
+ # @return [X11Named] a new instance of X11Named
129
+ #
130
+ # source://rainbow//lib/rainbow/color.rb#140
131
+ def initialize(ground, name); end
132
+
133
+ class << self
134
+ # source://rainbow//lib/rainbow/color.rb#132
135
+ def color_names; end
136
+
137
+ # source://rainbow//lib/rainbow/color.rb#136
138
+ def valid_names; end
139
+ end
140
+ end
141
+
142
+ class Rainbow::NullPresenter < ::String
143
+ # source://rainbow//lib/rainbow/null_presenter.rb#9
144
+ def background(*_values); end
145
+
146
+ # source://rainbow//lib/rainbow/null_presenter.rb#9
147
+ def bg(*_values); end
148
+
149
+ # source://rainbow//lib/rainbow/null_presenter.rb#49
150
+ def black; end
151
+
152
+ # source://rainbow//lib/rainbow/null_presenter.rb#33
153
+ def blink; end
154
+
155
+ # source://rainbow//lib/rainbow/null_presenter.rb#65
156
+ def blue; end
157
+
158
+ # source://rainbow//lib/rainbow/null_presenter.rb#17
159
+ def bold; end
160
+
161
+ # source://rainbow//lib/rainbow/null_presenter.rb#17
162
+ def bright; end
163
+
164
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
165
+ def color(*_values); end
166
+
167
+ # source://rainbow//lib/rainbow/null_presenter.rb#45
168
+ def cross_out; end
169
+
170
+ # source://rainbow//lib/rainbow/null_presenter.rb#73
171
+ def cyan; end
172
+
173
+ # source://rainbow//lib/rainbow/null_presenter.rb#21
174
+ def dark; end
175
+
176
+ # source://rainbow//lib/rainbow/null_presenter.rb#21
177
+ def faint; end
178
+
179
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
180
+ def fg(*_values); end
181
+
182
+ # source://rainbow//lib/rainbow/null_presenter.rb#5
183
+ def foreground(*_values); end
184
+
185
+ # source://rainbow//lib/rainbow/null_presenter.rb#57
186
+ def green; end
187
+
188
+ # source://rainbow//lib/rainbow/null_presenter.rb#41
189
+ def hide; end
190
+
191
+ # source://rainbow//lib/rainbow/null_presenter.rb#37
192
+ def inverse; end
193
+
194
+ # source://rainbow//lib/rainbow/null_presenter.rb#25
195
+ def italic; end
196
+
197
+ # source://rainbow//lib/rainbow/null_presenter.rb#69
198
+ def magenta; end
199
+
200
+ # source://rainbow//lib/rainbow/null_presenter.rb#81
201
+ def method_missing(method_name, *args); end
202
+
203
+ # source://rainbow//lib/rainbow/null_presenter.rb#53
204
+ def red; end
205
+
206
+ # source://rainbow//lib/rainbow/null_presenter.rb#13
207
+ def reset; end
208
+
209
+ # source://rainbow//lib/rainbow/null_presenter.rb#45
210
+ def strike; end
211
+
212
+ # source://rainbow//lib/rainbow/null_presenter.rb#29
213
+ def underline; end
214
+
215
+ # source://rainbow//lib/rainbow/null_presenter.rb#77
216
+ def white; end
217
+
218
+ # source://rainbow//lib/rainbow/null_presenter.rb#61
219
+ def yellow; end
220
+
221
+ private
222
+
223
+ # @return [Boolean]
224
+ #
225
+ # source://rainbow//lib/rainbow/null_presenter.rb#89
226
+ def respond_to_missing?(method_name, *args); end
227
+ end
228
+
229
+ class Rainbow::Presenter < ::String
230
+ # Sets background color of this text.
231
+ #
232
+ # source://rainbow//lib/rainbow/presenter.rb#30
233
+ def background(*values); end
234
+
235
+ # Sets background color of this text.
236
+ #
237
+ # source://rainbow//lib/rainbow/presenter.rb#30
238
+ def bg(*values); end
239
+
240
+ # source://rainbow//lib/rainbow/presenter.rb#92
241
+ def black; end
242
+
243
+ # Turns on blinking attribute for this text (not well supported by terminal
244
+ # emulators).
245
+ #
246
+ # source://rainbow//lib/rainbow/presenter.rb#72
247
+ def blink; end
248
+
249
+ # source://rainbow//lib/rainbow/presenter.rb#108
250
+ def blue; end
251
+
252
+ # Turns on bright/bold for this text.
253
+ #
254
+ # source://rainbow//lib/rainbow/presenter.rb#45
255
+ def bold; end
256
+
257
+ # Turns on bright/bold for this text.
258
+ #
259
+ # source://rainbow//lib/rainbow/presenter.rb#45
260
+ def bright; end
261
+
262
+ # Sets color of this text.
263
+ #
264
+ # source://rainbow//lib/rainbow/presenter.rb#22
265
+ def color(*values); end
266
+
267
+ # source://rainbow//lib/rainbow/presenter.rb#86
268
+ def cross_out; end
269
+
270
+ # source://rainbow//lib/rainbow/presenter.rb#116
271
+ def cyan; end
272
+
273
+ # Turns on faint/dark for this text (not well supported by terminal
274
+ # emulators).
275
+ #
276
+ # source://rainbow//lib/rainbow/presenter.rb#53
277
+ def dark; end
278
+
279
+ # Turns on faint/dark for this text (not well supported by terminal
280
+ # emulators).
281
+ #
282
+ # source://rainbow//lib/rainbow/presenter.rb#53
283
+ def faint; end
284
+
285
+ # Sets color of this text.
286
+ #
287
+ # source://rainbow//lib/rainbow/presenter.rb#22
288
+ def fg(*values); end
289
+
290
+ # Sets color of this text.
291
+ #
292
+ # source://rainbow//lib/rainbow/presenter.rb#22
293
+ def foreground(*values); end
294
+
295
+ # source://rainbow//lib/rainbow/presenter.rb#100
296
+ def green; end
297
+
298
+ # Hides this text (set its color to the same as background).
299
+ #
300
+ # source://rainbow//lib/rainbow/presenter.rb#82
301
+ def hide; end
302
+
303
+ # Inverses current foreground/background colors.
304
+ #
305
+ # source://rainbow//lib/rainbow/presenter.rb#77
306
+ def inverse; end
307
+
308
+ # Turns on italic style for this text (not well supported by terminal
309
+ # emulators).
310
+ #
311
+ # source://rainbow//lib/rainbow/presenter.rb#61
312
+ def italic; end
313
+
314
+ # source://rainbow//lib/rainbow/presenter.rb#112
315
+ def magenta; end
316
+
317
+ # We take care of X11 color method call here.
318
+ # Such as #aqua, #ghostwhite.
319
+ #
320
+ # source://rainbow//lib/rainbow/presenter.rb#126
321
+ def method_missing(method_name, *args); end
322
+
323
+ # source://rainbow//lib/rainbow/presenter.rb#96
324
+ def red; end
325
+
326
+ # Resets terminal to default colors/backgrounds.
327
+ #
328
+ # It shouldn't be needed to use this method because all methods
329
+ # append terminal reset code to end of string.
330
+ #
331
+ # source://rainbow//lib/rainbow/presenter.rb#40
332
+ def reset; end
333
+
334
+ # source://rainbow//lib/rainbow/presenter.rb#86
335
+ def strike; end
336
+
337
+ # Turns on underline decoration for this text.
338
+ #
339
+ # source://rainbow//lib/rainbow/presenter.rb#66
340
+ def underline; end
341
+
342
+ # source://rainbow//lib/rainbow/presenter.rb#120
343
+ def white; end
344
+
345
+ # source://rainbow//lib/rainbow/presenter.rb#104
346
+ def yellow; end
347
+
348
+ private
349
+
350
+ # @return [Boolean]
351
+ #
352
+ # source://rainbow//lib/rainbow/presenter.rb#134
353
+ def respond_to_missing?(method_name, *args); end
354
+
355
+ # source://rainbow//lib/rainbow/presenter.rb#140
356
+ def wrap_with_sgr(codes); end
357
+ end
358
+
359
+ # source://rainbow//lib/rainbow/presenter.rb#9
360
+ Rainbow::Presenter::TERM_EFFECTS = T.let(T.unsafe(nil), Hash)
361
+
362
+ class Rainbow::StringUtils
363
+ class << self
364
+ # source://rainbow//lib/rainbow/string_utils.rb#17
365
+ def uncolor(string); end
366
+
367
+ # source://rainbow//lib/rainbow/string_utils.rb#5
368
+ def wrap_with_sgr(string, codes); end
369
+ end
370
+ end
371
+
372
+ class Rainbow::Wrapper
373
+ # @return [Wrapper] a new instance of Wrapper
374
+ #
375
+ # source://rainbow//lib/rainbow/wrapper.rb#10
376
+ def initialize(enabled = T.unsafe(nil)); end
377
+
378
+ # Returns the value of attribute enabled.
379
+ #
380
+ # source://rainbow//lib/rainbow/wrapper.rb#8
381
+ def enabled; end
382
+
383
+ # Sets the attribute enabled
384
+ #
385
+ # @param value the value to set the attribute enabled to.
386
+ #
387
+ # source://rainbow//lib/rainbow/wrapper.rb#8
388
+ def enabled=(_arg0); end
389
+
390
+ # source://rainbow//lib/rainbow/wrapper.rb#14
391
+ def wrap(string); end
392
+ end
393
+
394
+ module Rainbow::X11ColorNames; end
395
+
396
+ # source://rainbow//lib/rainbow/x11_color_names.rb#5
397
+ Rainbow::X11ColorNames::NAMES = T.let(T.unsafe(nil), Hash)