mangrove 0.18.1 → 0.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/lib/mangrove/result.rb +92 -3
  4. data/lib/mangrove/version.rb +1 -1
  5. data/sorbet/rbi/annotations/.gitattributes +1 -0
  6. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1 -5
  7. data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
  8. data/sorbet/rbi/gems/json@2.6.3.rbi +73 -65
  9. data/sorbet/rbi/gems/prism@0.15.1.rbi +23916 -2
  10. data/sorbet/rbi/gems/rake@13.0.6.rbi +1 -141
  11. data/sorbet/rbi/gems/{rbi@0.1.1.rbi → rbi@0.1.3.rbi} +53 -57
  12. data/sorbet/rbi/gems/regexp_parser@2.8.2.rbi +37 -37
  13. data/sorbet/rbi/gems/rexml@3.2.6.rbi +2 -2
  14. data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +8 -39
  15. data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +25 -25
  16. data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +4 -8
  17. data/sorbet/rbi/gems/rspec-sorbet@1.9.2.rbi +2 -2
  18. data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +2 -2
  19. data/sorbet/rbi/gems/rspec@3.12.0.rbi +1 -1
  20. data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +263 -176
  21. data/sorbet/rbi/gems/rubocop@1.57.1.rbi +1019 -719
  22. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +5 -5
  23. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
  24. data/sorbet/rbi/gems/simplecov@0.21.2.rbi +2135 -0
  25. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  26. data/sorbet/rbi/gems/spoom@1.2.4.rbi +15 -15
  27. data/sorbet/rbi/gems/{tapioca@0.11.9.rbi → tapioca@0.11.10.rbi} +40 -29
  28. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +1 -1
  29. data/sorbet/rbi/gems/yard@0.9.34.rbi +46 -50
  30. data/sorbet/tapioca/require.rb +6 -1
  31. metadata +9 -34
  32. data/docs/Mangrove/ControlFlow/ControlSignal.html +0 -223
  33. data/docs/Mangrove/ControlFlow/Handler/ClassMethods.html +0 -563
  34. data/docs/Mangrove/ControlFlow/Handler.html +0 -139
  35. data/docs/Mangrove/ControlFlow/Rewriter.html +0 -331
  36. data/docs/Mangrove/ControlFlow.html +0 -115
  37. data/docs/Mangrove/Option/ControlSignal.html +0 -434
  38. data/docs/Mangrove/Option/None.html +0 -1085
  39. data/docs/Mangrove/Option/Some.html +0 -1202
  40. data/docs/Mangrove/Option.html +0 -1145
  41. data/docs/Mangrove/Result/ControlSignal.html +0 -434
  42. data/docs/Mangrove/Result/Err.html +0 -2254
  43. data/docs/Mangrove/Result/Ok.html +0 -2219
  44. data/docs/Mangrove/Result.html +0 -2475
  45. data/docs/Mangrove.html +0 -144
  46. data/docs/_index.html +0 -225
  47. data/docs/class_list.html +0 -51
  48. data/docs/css/common.css +0 -1
  49. data/docs/css/full_list.css +0 -58
  50. data/docs/css/style.css +0 -497
  51. data/docs/file.README.html +0 -245
  52. data/docs/file_list.html +0 -56
  53. data/docs/frames.html +0 -17
  54. data/docs/index.html +0 -245
  55. data/docs/js/app.js +0 -314
  56. data/docs/js/full_list.js +0 -216
  57. data/docs/js/jquery.js +0 -4
  58. data/docs/method_list.html +0 -939
  59. data/docs/top-level-namespace.html +0 -110
  60. data/sorbet/rbi/gems/yarp@0.13.0.rbi +0 -21646
  61. data/sorbet/rbi/shims/mangrove/option.rbi +0 -15
  62. data/sorbet/rbi/shims/mangrove/result.rbi +0 -15
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `simplecov_json_formatter` gem.
5
+ # Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -958,7 +958,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct
958
958
  prop :strong, ::String
959
959
 
960
960
  class << self
961
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
961
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
962
962
  def inherited(s); end
963
963
  end
964
964
  end
@@ -1298,7 +1298,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct
1298
1298
  sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) }
1299
1299
  def from_obj(obj); end
1300
1300
 
1301
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
1301
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
1302
1302
  def inherited(s); end
1303
1303
  end
1304
1304
  end
@@ -1450,7 +1450,7 @@ class Spoom::Deadcode::Definition < ::T::Struct
1450
1450
  def module?; end
1451
1451
 
1452
1452
  class << self
1453
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
1453
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
1454
1454
  def inherited(s); end
1455
1455
  end
1456
1456
  end
@@ -2343,7 +2343,7 @@ class Spoom::Deadcode::Reference < ::T::Struct
2343
2343
  def method?; end
2344
2344
 
2345
2345
  class << self
2346
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
2346
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
2347
2347
  def inherited(s); end
2348
2348
  end
2349
2349
  end
@@ -2593,7 +2593,7 @@ class Spoom::Deadcode::Send < ::T::Struct
2593
2593
  def each_arg_assoc(&block); end
2594
2594
 
2595
2595
  class << self
2596
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
2596
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
2597
2597
  def inherited(s); end
2598
2598
  end
2599
2599
  end
@@ -2613,7 +2613,7 @@ class Spoom::ExecResult < ::T::Struct
2613
2613
  def to_s; end
2614
2614
 
2615
2615
  class << self
2616
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
2616
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
2617
2617
  def inherited(s); end
2618
2618
  end
2619
2619
  end
@@ -2821,7 +2821,7 @@ class Spoom::FileTree::Node < ::T::Struct
2821
2821
  def path; end
2822
2822
 
2823
2823
  class << self
2824
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
2824
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
2825
2825
  def inherited(s); end
2826
2826
  end
2827
2827
  end
@@ -2887,7 +2887,7 @@ class Spoom::Git::Commit < ::T::Struct
2887
2887
  def timestamp; end
2888
2888
 
2889
2889
  class << self
2890
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
2890
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
2891
2891
  def inherited(s); end
2892
2892
 
2893
2893
  # Parse a line formated as `%h %at` into a `Commit`
@@ -2999,7 +2999,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct
2999
2999
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) }
3000
3000
  def from_json(json); end
3001
3001
 
3002
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3002
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3003
3003
  def inherited(s); end
3004
3004
  end
3005
3005
  end
@@ -3032,7 +3032,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct
3032
3032
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) }
3033
3033
  def from_json(json); end
3034
3034
 
3035
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3035
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3036
3036
  def inherited(s); end
3037
3037
  end
3038
3038
  end
@@ -3090,7 +3090,7 @@ class Spoom::LSP::Hover < ::T::Struct
3090
3090
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) }
3091
3091
  def from_json(json); end
3092
3092
 
3093
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3093
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3094
3094
  def inherited(s); end
3095
3095
  end
3096
3096
  end
@@ -3115,7 +3115,7 @@ class Spoom::LSP::Location < ::T::Struct
3115
3115
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) }
3116
3116
  def from_json(json); end
3117
3117
 
3118
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3118
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3119
3119
  def inherited(s); end
3120
3120
  end
3121
3121
  end
@@ -3178,7 +3178,7 @@ class Spoom::LSP::Position < ::T::Struct
3178
3178
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) }
3179
3179
  def from_json(json); end
3180
3180
 
3181
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3181
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3182
3182
  def inherited(s); end
3183
3183
  end
3184
3184
  end
@@ -3216,7 +3216,7 @@ class Spoom::LSP::Range < ::T::Struct
3216
3216
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) }
3217
3217
  def from_json(json); end
3218
3218
 
3219
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3219
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3220
3220
  def inherited(s); end
3221
3221
  end
3222
3222
  end
@@ -3282,7 +3282,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct
3282
3282
  sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) }
3283
3283
  def from_json(json); end
3284
3284
 
3285
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
3285
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
3286
3286
  def inherited(s); end
3287
3287
  end
3288
3288
  end
@@ -54,7 +54,7 @@ module RBI; end
54
54
 
55
55
  # source://tapioca//lib/tapioca/rbi_ext/model.rb#5
56
56
  class RBI::Tree < ::RBI::NodeWithComments
57
- # source://rbi/0.1.1/lib/rbi/model.rb#119
57
+ # source://rbi/0.1.3/lib/rbi/model.rb#119
58
58
  sig do
59
59
  params(
60
60
  loc: T.nilable(::RBI::Loc),
@@ -64,19 +64,19 @@ class RBI::Tree < ::RBI::NodeWithComments
64
64
  end
65
65
  def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
66
66
 
67
- # source://rbi/0.1.1/lib/rbi/model.rb#126
67
+ # source://rbi/0.1.3/lib/rbi/model.rb#126
68
68
  sig { params(node: ::RBI::Node).void }
69
69
  def <<(node); end
70
70
 
71
- # source://rbi/0.1.1/lib/rbi/printer.rb#226
71
+ # source://rbi/0.1.3/lib/rbi/printer.rb#226
72
72
  sig { override.params(v: ::RBI::Printer).void }
73
73
  def accept_printer(v); end
74
74
 
75
- # source://rbi/0.1.1/lib/rbi/rewriters/add_sig_templates.rb#66
75
+ # source://rbi/0.1.3/lib/rbi/rewriters/add_sig_templates.rb#66
76
76
  sig { params(with_todo_comment: T::Boolean).void }
77
77
  def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end
78
78
 
79
- # source://rbi/0.1.1/lib/rbi/rewriters/annotate.rb#49
79
+ # source://rbi/0.1.3/lib/rbi/rewriters/annotate.rb#49
80
80
  sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void }
81
81
  def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end
82
82
 
@@ -140,23 +140,23 @@ class RBI::Tree < ::RBI::NodeWithComments
140
140
  end
141
141
  def create_type_variable(name, type:, variance: T.unsafe(nil), fixed: T.unsafe(nil), upper: T.unsafe(nil), lower: T.unsafe(nil)); end
142
142
 
143
- # source://rbi/0.1.1/lib/rbi/rewriters/deannotate.rb#41
143
+ # source://rbi/0.1.3/lib/rbi/rewriters/deannotate.rb#41
144
144
  sig { params(annotation: ::String).void }
145
145
  def deannotate!(annotation); end
146
146
 
147
- # source://rbi/0.1.1/lib/rbi/model.rb#132
147
+ # source://rbi/0.1.3/lib/rbi/model.rb#132
148
148
  sig { returns(T::Boolean) }
149
149
  def empty?; end
150
150
 
151
- # source://rbi/0.1.1/lib/rbi/rewriters/group_nodes.rb#38
151
+ # source://rbi/0.1.3/lib/rbi/rewriters/group_nodes.rb#38
152
152
  sig { void }
153
153
  def group_nodes!; end
154
154
 
155
- # source://rbi/0.1.1/lib/rbi/index.rb#68
155
+ # source://rbi/0.1.3/lib/rbi/index.rb#68
156
156
  sig { returns(::RBI::Index) }
157
157
  def index; end
158
158
 
159
- # source://rbi/0.1.1/lib/rbi/rewriters/merge_trees.rb#324
159
+ # source://rbi/0.1.3/lib/rbi/rewriters/merge_trees.rb#324
160
160
  sig do
161
161
  params(
162
162
  other: ::RBI::Tree,
@@ -167,23 +167,23 @@ class RBI::Tree < ::RBI::NodeWithComments
167
167
  end
168
168
  def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end
169
169
 
170
- # source://rbi/0.1.1/lib/rbi/rewriters/nest_non_public_methods.rb#46
170
+ # source://rbi/0.1.3/lib/rbi/rewriters/nest_non_public_methods.rb#46
171
171
  sig { void }
172
172
  def nest_non_public_methods!; end
173
173
 
174
- # source://rbi/0.1.1/lib/rbi/rewriters/nest_singleton_methods.rb#36
174
+ # source://rbi/0.1.3/lib/rbi/rewriters/nest_singleton_methods.rb#36
175
175
  sig { void }
176
176
  def nest_singleton_methods!; end
177
177
 
178
- # source://rbi/0.1.1/lib/rbi/model.rb#110
178
+ # source://rbi/0.1.3/lib/rbi/model.rb#110
179
179
  sig { returns(T::Array[::RBI::Node]) }
180
180
  def nodes; end
181
181
 
182
- # source://rbi/0.1.1/lib/rbi/printer.rb#233
182
+ # source://rbi/0.1.3/lib/rbi/printer.rb#233
183
183
  sig { override.returns(T::Boolean) }
184
184
  def oneline?; end
185
185
 
186
- # source://rbi/0.1.1/lib/rbi/rewriters/sort_nodes.rb#119
186
+ # source://rbi/0.1.3/lib/rbi/rewriters/sort_nodes.rb#119
187
187
  sig { void }
188
188
  def sort_nodes!; end
189
189
 
@@ -204,7 +204,7 @@ class RBI::TypedParam < ::T::Struct
204
204
  const :type, ::String
205
205
 
206
206
  class << self
207
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
207
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
208
208
  def inherited(s); end
209
209
  end
210
210
  end
@@ -1121,7 +1121,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct
1121
1121
  const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart]
1122
1122
 
1123
1123
  class << self
1124
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
1124
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
1125
1125
  def inherited(s); end
1126
1126
  end
1127
1127
  end
@@ -1132,7 +1132,7 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct
1132
1132
  const :colors, T::Array[::Symbol]
1133
1133
 
1134
1134
  class << self
1135
- # source://sorbet-runtime/0.5.11089/lib/types/struct.rb#13
1135
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
1136
1136
  def inherited(s); end
1137
1137
  end
1138
1138
  end
@@ -2421,13 +2421,13 @@ class Tapioca::Loaders::Loader
2421
2421
 
2422
2422
  private
2423
2423
 
2424
- # source://tapioca//lib/tapioca/loaders/loader.rb#198
2424
+ # source://tapioca//lib/tapioca/loaders/loader.rb#213
2425
2425
  sig { void }
2426
2426
  def eager_load_rails_app; end
2427
2427
 
2428
2428
  # @return [Array<T.class_of(Rails::Engine)>]
2429
2429
  #
2430
- # source://tapioca//lib/tapioca/loaders/loader.rb#169
2430
+ # source://tapioca//lib/tapioca/loaders/loader.rb#171
2431
2431
  def engines; end
2432
2432
 
2433
2433
  # source://tapioca//lib/tapioca/loaders/loader.rb#29
@@ -2441,11 +2441,11 @@ class Tapioca::Loaders::Loader
2441
2441
  end
2442
2442
  def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end
2443
2443
 
2444
- # source://tapioca//lib/tapioca/loaders/loader.rb#127
2444
+ # source://tapioca//lib/tapioca/loaders/loader.rb#129
2445
2445
  sig { void }
2446
2446
  def load_engines_in_classic_mode; end
2447
2447
 
2448
- # source://tapioca//lib/tapioca/loaders/loader.rb#105
2448
+ # source://tapioca//lib/tapioca/loaders/loader.rb#107
2449
2449
  sig { void }
2450
2450
  def load_engines_in_zeitwerk_mode; end
2451
2451
 
@@ -2464,26 +2464,37 @@ class Tapioca::Loaders::Loader
2464
2464
  sig { void }
2465
2465
  def load_rails_engines; end
2466
2466
 
2467
- # source://tapioca//lib/tapioca/loaders/loader.rb#219
2467
+ # Rails 7.2 renamed `eager_load_paths` to `all_eager_load_paths`, which maintains the same original functionality.
2468
+ # The `eager_load_paths` method still exists, but doesn't return all paths anymore and causes Tapioca to miss some
2469
+ # engine paths. The following commit is the change:
2470
+ # https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664
2471
+ #
2472
+ # Here we make sure that the new `all_eager_load_paths` is always defined for every Rails version below 7.2, so
2473
+ # that we can use it everywhere
2474
+ #
2475
+ # source://tapioca//lib/tapioca/loaders/loader.rb#191
2476
+ def normalize_eager_load_paths_configuration!; end
2477
+
2478
+ # source://tapioca//lib/tapioca/loaders/loader.rb#234
2468
2479
  sig { params(file: T.nilable(::String)).void }
2469
2480
  def require_helper(file); end
2470
2481
 
2471
- # source://tapioca//lib/tapioca/loaders/loader.rb#94
2482
+ # source://tapioca//lib/tapioca/loaders/loader.rb#96
2472
2483
  def run_initializers; end
2473
2484
 
2474
- # source://tapioca//lib/tapioca/loaders/loader.rb#183
2485
+ # source://tapioca//lib/tapioca/loaders/loader.rb#198
2475
2486
  sig { params(path: ::String).void }
2476
2487
  def safe_require(path); end
2477
2488
 
2478
- # source://tapioca//lib/tapioca/loaders/loader.rb#190
2489
+ # source://tapioca//lib/tapioca/loaders/loader.rb#205
2479
2490
  sig { void }
2480
2491
  def silence_deprecations; end
2481
2492
 
2482
- # source://tapioca//lib/tapioca/loaders/loader.rb#152
2493
+ # source://tapioca//lib/tapioca/loaders/loader.rb#154
2483
2494
  sig { params(blk: T.proc.void).void }
2484
2495
  def with_rails_application(&blk); end
2485
2496
 
2486
- # source://tapioca//lib/tapioca/loaders/loader.rb#145
2497
+ # source://tapioca//lib/tapioca/loaders/loader.rb#147
2487
2498
  sig { returns(T::Boolean) }
2488
2499
  def zeitwerk_mode?; end
2489
2500
  end
@@ -3322,7 +3333,7 @@ module Tapioca::Static::SymbolLoader
3322
3333
 
3323
3334
  # @return [Array<T.class_of(Rails::Engine)>]
3324
3335
  #
3325
- # source://sorbet-runtime/0.5.11089/lib/types/private/methods/_methods.rb#255
3336
+ # source://sorbet-runtime/0.5.11128/lib/types/private/methods/_methods.rb#255
3326
3337
  def engines(*args, **_arg1, &blk); end
3327
3338
 
3328
3339
  # source://tapioca//lib/tapioca/static/symbol_loader.rb#74
@@ -381,7 +381,7 @@ class YARDSorbet::TStructProp < ::T::Struct
381
381
  const :types, T::Array[::String]
382
382
 
383
383
  class << self
384
- # source://sorbet-runtime/0.5.10962/lib/types/struct.rb#13
384
+ # source://sorbet-runtime/0.5.11128/lib/types/struct.rb#13
385
385
  def inherited(s); end
386
386
  end
387
387
  end