mangrove 0.24.0 → 0.29.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.
- checksums.yaml +4 -4
- data/README.md +30 -3
- data/lib/mangrove/result.rb +3 -3
- data/lib/mangrove/version.rb +1 -1
- data/rbi/mangrove.rbi +20 -0
- data/sorbet/rbi/gems/{json@2.6.3.rbi → json@2.7.1.rbi} +83 -63
- data/sorbet/rbi/gems/{prism@0.15.1.rbi → prism@0.18.0.rbi} +8899 -4119
- data/sorbet/rbi/gems/{racc@1.7.1.rbi → racc@1.7.3.rbi} +35 -35
- data/sorbet/rbi/gems/{rake@13.0.6.rbi → rake@13.1.0.rbi} +206 -63
- data/sorbet/rbi/gems/{rbi@0.1.3.rbi → rbi@0.1.5.rbi} +25 -25
- data/sorbet/rbi/gems/{rdoc@6.6.0.rbi → rdoc@6.6.1.rbi} +130 -127
- data/sorbet/rbi/gems/{regexp_parser@2.8.2.rbi → regexp_parser@2.8.3.rbi} +37 -37
- data/sorbet/rbi/gems/{rubocop-ast@1.29.0.rbi → rubocop-ast@1.30.0.rbi} +249 -225
- data/sorbet/rbi/gems/{rubocop-rspec@2.24.1.rbi → rubocop-rspec@2.25.0.rbi} +39 -33
- data/sorbet/rbi/gems/{rubocop@1.57.1.rbi → rubocop@1.59.0.rbi} +1146 -686
- data/sorbet/rbi/gems/{tapioca@0.11.10.rbi → tapioca@0.11.13.rbi} +65 -65
- metadata +20 -20
- data/sorbet/rbi/gems/base64@0.1.1.rbi +0 -172
- data/sorbet/rbi/gems/irb@1.9.0.rbi +0 -342
- /data/sorbet/rbi/gems/{io-console@0.6.0.rbi → io-console@0.7.0.rbi} +0 -0
- /data/sorbet/rbi/gems/{reline@0.4.0.rbi → reline@0.4.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{ruby-lsp@0.12.0.rbi → ruby-lsp@0.13.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{stringio@3.0.9.rbi → stringio@3.1.0.rbi} +0 -0
@@ -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.
|
57
|
+
# source://rbi/0.1.5/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.
|
67
|
+
# source://rbi/0.1.5/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.
|
71
|
+
# source://rbi/0.1.5/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.
|
75
|
+
# source://rbi/0.1.5/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.
|
79
|
+
# source://rbi/0.1.5/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.
|
143
|
+
# source://rbi/0.1.5/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.
|
147
|
+
# source://rbi/0.1.5/lib/rbi/model.rb#132
|
148
148
|
sig { returns(T::Boolean) }
|
149
149
|
def empty?; end
|
150
150
|
|
151
|
-
# source://rbi/0.1.
|
151
|
+
# source://rbi/0.1.5/lib/rbi/rewriters/group_nodes.rb#38
|
152
152
|
sig { void }
|
153
153
|
def group_nodes!; end
|
154
154
|
|
155
|
-
# source://rbi/0.1.
|
155
|
+
# source://rbi/0.1.5/lib/rbi/index.rb#68
|
156
156
|
sig { returns(::RBI::Index) }
|
157
157
|
def index; end
|
158
158
|
|
159
|
-
# source://rbi/0.1.
|
159
|
+
# source://rbi/0.1.5/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.
|
170
|
+
# source://rbi/0.1.5/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.
|
174
|
+
# source://rbi/0.1.5/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.
|
178
|
+
# source://rbi/0.1.5/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.
|
182
|
+
# source://rbi/0.1.5/lib/rbi/printer.rb#233
|
183
183
|
sig { override.returns(T::Boolean) }
|
184
184
|
def oneline?; end
|
185
185
|
|
186
|
-
# source://rbi/0.1.
|
186
|
+
# source://rbi/0.1.5/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.
|
207
|
+
# source://sorbet-runtime/0.5.11151/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.
|
1124
|
+
# source://sorbet-runtime/0.5.11151/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.
|
1135
|
+
# source://sorbet-runtime/0.5.11151/lib/types/struct.rb#13
|
1136
1136
|
def inherited(s); end
|
1137
1137
|
end
|
1138
1138
|
end
|
@@ -2204,94 +2204,94 @@ end
|
|
2204
2204
|
class Tapioca::Gemfile::GemSpec
|
2205
2205
|
include ::Tapioca::GemHelper
|
2206
2206
|
|
2207
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2207
|
+
# source://tapioca//lib/tapioca/gemfile.rb#136
|
2208
2208
|
sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void }
|
2209
2209
|
def initialize(spec); end
|
2210
2210
|
|
2211
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2211
|
+
# source://tapioca//lib/tapioca/gemfile.rb#146
|
2212
2212
|
sig { params(other: ::BasicObject).returns(T::Boolean) }
|
2213
2213
|
def ==(other); end
|
2214
2214
|
|
2215
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2215
|
+
# source://tapioca//lib/tapioca/gemfile.rb#171
|
2216
2216
|
sig { params(path: ::String).returns(T::Boolean) }
|
2217
2217
|
def contains_path?(path); end
|
2218
2218
|
|
2219
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2219
|
+
# source://tapioca//lib/tapioca/gemfile.rb#161
|
2220
2220
|
sig { returns(T::Array[::Gem::Dependency]) }
|
2221
2221
|
def dependencies; end
|
2222
2222
|
|
2223
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2223
|
+
# source://tapioca//lib/tapioca/gemfile.rb#190
|
2224
2224
|
sig { returns(T::Boolean) }
|
2225
2225
|
def export_rbi_files?; end
|
2226
2226
|
|
2227
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2227
|
+
# source://tapioca//lib/tapioca/gemfile.rb#185
|
2228
2228
|
sig { returns(T::Array[::String]) }
|
2229
2229
|
def exported_rbi_files; end
|
2230
2230
|
|
2231
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2231
|
+
# source://tapioca//lib/tapioca/gemfile.rb#195
|
2232
2232
|
sig { returns(::RBI::MergeTree) }
|
2233
2233
|
def exported_rbi_tree; end
|
2234
2234
|
|
2235
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2235
|
+
# source://tapioca//lib/tapioca/gemfile.rb#133
|
2236
2236
|
sig { returns(T::Array[::Pathname]) }
|
2237
2237
|
def files; end
|
2238
2238
|
|
2239
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2239
|
+
# source://tapioca//lib/tapioca/gemfile.rb#130
|
2240
2240
|
sig { returns(::String) }
|
2241
2241
|
def full_gem_path; end
|
2242
2242
|
|
2243
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2243
|
+
# source://tapioca//lib/tapioca/gemfile.rb#151
|
2244
2244
|
sig { params(gemfile_dir: ::String).returns(T::Boolean) }
|
2245
2245
|
def ignore?(gemfile_dir); end
|
2246
2246
|
|
2247
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2247
|
+
# source://tapioca//lib/tapioca/gemfile.rb#156
|
2248
2248
|
sig { returns(::String) }
|
2249
2249
|
def name; end
|
2250
2250
|
|
2251
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2251
|
+
# source://tapioca//lib/tapioca/gemfile.rb#180
|
2252
2252
|
sig { void }
|
2253
2253
|
def parse_yard_docs; end
|
2254
2254
|
|
2255
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2255
|
+
# source://tapioca//lib/tapioca/gemfile.rb#166
|
2256
2256
|
sig { returns(::String) }
|
2257
2257
|
def rbi_file_name; end
|
2258
2258
|
|
2259
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2259
|
+
# source://tapioca//lib/tapioca/gemfile.rb#207
|
2260
2260
|
sig { params(file: ::Pathname).returns(::Pathname) }
|
2261
2261
|
def relative_path_for(file); end
|
2262
2262
|
|
2263
2263
|
# @return [String]
|
2264
2264
|
#
|
2265
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2265
|
+
# source://tapioca//lib/tapioca/gemfile.rb#130
|
2266
2266
|
def version; end
|
2267
2267
|
|
2268
2268
|
private
|
2269
2269
|
|
2270
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2270
|
+
# source://tapioca//lib/tapioca/gemfile.rb#218
|
2271
2271
|
sig { returns(T::Array[::Pathname]) }
|
2272
2272
|
def collect_files; end
|
2273
2273
|
|
2274
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2274
|
+
# source://tapioca//lib/tapioca/gemfile.rb#233
|
2275
2275
|
sig { returns(T.nilable(T::Boolean)) }
|
2276
2276
|
def default_gem?; end
|
2277
2277
|
|
2278
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2278
|
+
# source://tapioca//lib/tapioca/gemfile.rb#292
|
2279
2279
|
sig { returns(T::Boolean) }
|
2280
2280
|
def gem_ignored?; end
|
2281
2281
|
|
2282
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2282
|
+
# source://tapioca//lib/tapioca/gemfile.rb#271
|
2283
2283
|
sig { params(path: ::String).returns(T::Boolean) }
|
2284
2284
|
def has_parent_gemspec?(path); end
|
2285
2285
|
|
2286
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2286
|
+
# source://tapioca//lib/tapioca/gemfile.rb#238
|
2287
2287
|
sig { returns(::Regexp) }
|
2288
2288
|
def require_paths_prefix_matcher; end
|
2289
2289
|
|
2290
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2290
|
+
# source://tapioca//lib/tapioca/gemfile.rb#250
|
2291
2291
|
sig { params(file: ::String).returns(::Pathname) }
|
2292
2292
|
def resolve_to_ruby_lib_dir(file); end
|
2293
2293
|
|
2294
|
-
# source://tapioca//lib/tapioca/gemfile.rb#
|
2294
|
+
# source://tapioca//lib/tapioca/gemfile.rb#264
|
2295
2295
|
sig { returns(::String) }
|
2296
2296
|
def version_string; end
|
2297
2297
|
|
@@ -2594,13 +2594,24 @@ class Tapioca::Loaders::Loader
|
|
2594
2594
|
|
2595
2595
|
private
|
2596
2596
|
|
2597
|
-
#
|
2597
|
+
# Rails 7.2 renamed `eager_load_paths` to `all_eager_load_paths`, which maintains the same original functionality.
|
2598
|
+
# The `eager_load_paths` method still exists, but doesn't return all paths anymore and causes Tapioca to miss some
|
2599
|
+
# engine paths. The following commit is the change:
|
2600
|
+
# https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664
|
2601
|
+
#
|
2602
|
+
# @param engine [T.class_of(Rails::Engine)]
|
2603
|
+
# @return [Array<String>]
|
2604
|
+
#
|
2605
|
+
# source://sorbet-runtime/0.5.11151/lib/types/private/methods/_methods.rb#255
|
2606
|
+
def eager_load_paths(*args, **_arg1, &blk); end
|
2607
|
+
|
2608
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#198
|
2598
2609
|
sig { void }
|
2599
2610
|
def eager_load_rails_app; end
|
2600
2611
|
|
2601
2612
|
# @return [Array<T.class_of(Rails::Engine)>]
|
2602
2613
|
#
|
2603
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2614
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#169
|
2604
2615
|
def engines; end
|
2605
2616
|
|
2606
2617
|
# source://tapioca//lib/tapioca/loaders/loader.rb#29
|
@@ -2614,11 +2625,11 @@ class Tapioca::Loaders::Loader
|
|
2614
2625
|
end
|
2615
2626
|
def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end
|
2616
2627
|
|
2617
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2628
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#127
|
2618
2629
|
sig { void }
|
2619
2630
|
def load_engines_in_classic_mode; end
|
2620
2631
|
|
2621
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2632
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#105
|
2622
2633
|
sig { void }
|
2623
2634
|
def load_engines_in_zeitwerk_mode; end
|
2624
2635
|
|
@@ -2637,37 +2648,26 @@ class Tapioca::Loaders::Loader
|
|
2637
2648
|
sig { void }
|
2638
2649
|
def load_rails_engines; end
|
2639
2650
|
|
2640
|
-
#
|
2641
|
-
# The `eager_load_paths` method still exists, but doesn't return all paths anymore and causes Tapioca to miss some
|
2642
|
-
# engine paths. The following commit is the change:
|
2643
|
-
# https://github.com/rails/rails/commit/ebfca905db14020589c22e6937382e6f8f687664
|
2644
|
-
#
|
2645
|
-
# Here we make sure that the new `all_eager_load_paths` is always defined for every Rails version below 7.2, so
|
2646
|
-
# that we can use it everywhere
|
2647
|
-
#
|
2648
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#191
|
2649
|
-
def normalize_eager_load_paths_configuration!; end
|
2650
|
-
|
2651
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#234
|
2651
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#219
|
2652
2652
|
sig { params(file: T.nilable(::String)).void }
|
2653
2653
|
def require_helper(file); end
|
2654
2654
|
|
2655
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2655
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#94
|
2656
2656
|
def run_initializers; end
|
2657
2657
|
|
2658
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2658
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#183
|
2659
2659
|
sig { params(path: ::String).void }
|
2660
2660
|
def safe_require(path); end
|
2661
2661
|
|
2662
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2662
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#190
|
2663
2663
|
sig { void }
|
2664
2664
|
def silence_deprecations; end
|
2665
2665
|
|
2666
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2666
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#152
|
2667
2667
|
sig { params(blk: T.proc.void).void }
|
2668
2668
|
def with_rails_application(&blk); end
|
2669
2669
|
|
2670
|
-
# source://tapioca//lib/tapioca/loaders/loader.rb#
|
2670
|
+
# source://tapioca//lib/tapioca/loaders/loader.rb#145
|
2671
2671
|
sig { returns(T::Boolean) }
|
2672
2672
|
def zeitwerk_mode?; end
|
2673
2673
|
end
|
@@ -3490,7 +3490,7 @@ module Tapioca::Static::SymbolLoader
|
|
3490
3490
|
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
|
3491
3491
|
def engine_symbols(gem); end
|
3492
3492
|
|
3493
|
-
# source://tapioca//lib/tapioca/static/symbol_loader.rb#
|
3493
|
+
# source://tapioca//lib/tapioca/static/symbol_loader.rb#48
|
3494
3494
|
sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) }
|
3495
3495
|
def gem_symbols(gem); end
|
3496
3496
|
|
@@ -3498,7 +3498,7 @@ module Tapioca::Static::SymbolLoader
|
|
3498
3498
|
sig { returns(T::Set[::String]) }
|
3499
3499
|
def payload_symbols; end
|
3500
3500
|
|
3501
|
-
# source://tapioca//lib/tapioca/static/symbol_loader.rb#
|
3501
|
+
# source://tapioca//lib/tapioca/static/symbol_loader.rb#53
|
3502
3502
|
sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) }
|
3503
3503
|
def symbols_from_paths(paths); end
|
3504
3504
|
|
@@ -3506,10 +3506,10 @@ module Tapioca::Static::SymbolLoader
|
|
3506
3506
|
|
3507
3507
|
# @return [Array<T.class_of(Rails::Engine)>]
|
3508
3508
|
#
|
3509
|
-
# source://sorbet-runtime/0.5.
|
3509
|
+
# source://sorbet-runtime/0.5.11151/lib/types/private/methods/_methods.rb#255
|
3510
3510
|
def engines(*args, **_arg1, &blk); end
|
3511
3511
|
|
3512
|
-
# source://tapioca//lib/tapioca/static/symbol_loader.rb#
|
3512
|
+
# source://tapioca//lib/tapioca/static/symbol_loader.rb#82
|
3513
3513
|
sig { params(input: ::String, table_type: ::String).returns(::String) }
|
3514
3514
|
def symbol_table_json_from(input, table_type: T.unsafe(nil)); end
|
3515
3515
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangrove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuma Murata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
@@ -46,34 +46,33 @@ files:
|
|
46
46
|
- lib/mangrove/result/control_signal.rb
|
47
47
|
- lib/mangrove/version.rb
|
48
48
|
- lib/tapioca/dsl/compilers/mangrove_enum.rb
|
49
|
+
- rbi/mangrove.rbi
|
49
50
|
- sig/mangrove.rbs
|
50
51
|
- sorbet/config
|
51
52
|
- sorbet/rbi/annotations/.gitattributes
|
52
53
|
- sorbet/rbi/annotations/rainbow.rbi
|
53
54
|
- sorbet/rbi/gems/.gitattributes
|
54
55
|
- sorbet/rbi/gems/ast@2.4.2.rbi
|
55
|
-
- sorbet/rbi/gems/base64@0.1.1.rbi
|
56
56
|
- sorbet/rbi/gems/diff-lcs@1.5.0.rbi
|
57
57
|
- sorbet/rbi/gems/docile@1.4.0.rbi
|
58
58
|
- sorbet/rbi/gems/erubi@1.12.0.rbi
|
59
|
-
- sorbet/rbi/gems/io-console@0.
|
60
|
-
- sorbet/rbi/gems/
|
61
|
-
- sorbet/rbi/gems/json@2.6.3.rbi
|
59
|
+
- sorbet/rbi/gems/io-console@0.7.0.rbi
|
60
|
+
- sorbet/rbi/gems/json@2.7.1.rbi
|
62
61
|
- sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi
|
63
62
|
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
64
63
|
- sorbet/rbi/gems/ordinare@0.4.0.rbi
|
65
64
|
- sorbet/rbi/gems/parallel@1.23.0.rbi
|
66
65
|
- sorbet/rbi/gems/parser@3.2.2.4.rbi
|
67
66
|
- sorbet/rbi/gems/prettier_print@1.2.1.rbi
|
68
|
-
- sorbet/rbi/gems/prism@0.
|
67
|
+
- sorbet/rbi/gems/prism@0.18.0.rbi
|
69
68
|
- sorbet/rbi/gems/psych@5.1.1.1.rbi
|
70
|
-
- sorbet/rbi/gems/racc@1.7.
|
69
|
+
- sorbet/rbi/gems/racc@1.7.3.rbi
|
71
70
|
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
72
|
-
- sorbet/rbi/gems/rake@13.0.
|
73
|
-
- sorbet/rbi/gems/rbi@0.1.
|
74
|
-
- sorbet/rbi/gems/rdoc@6.6.
|
75
|
-
- sorbet/rbi/gems/regexp_parser@2.8.
|
76
|
-
- sorbet/rbi/gems/reline@0.4.
|
71
|
+
- sorbet/rbi/gems/rake@13.1.0.rbi
|
72
|
+
- sorbet/rbi/gems/rbi@0.1.5.rbi
|
73
|
+
- sorbet/rbi/gems/rdoc@6.6.1.rbi
|
74
|
+
- sorbet/rbi/gems/regexp_parser@2.8.3.rbi
|
75
|
+
- sorbet/rbi/gems/reline@0.4.1.rbi
|
77
76
|
- sorbet/rbi/gems/rexml@3.2.6.rbi
|
78
77
|
- sorbet/rbi/gems/rspec-core@3.12.2.rbi
|
79
78
|
- sorbet/rbi/gems/rspec-expectations@3.12.3.rbi
|
@@ -82,21 +81,21 @@ files:
|
|
82
81
|
- sorbet/rbi/gems/rspec-support@3.12.1.rbi
|
83
82
|
- sorbet/rbi/gems/rspec@3.12.0.rbi
|
84
83
|
- sorbet/rbi/gems/ruboclean@0.4.0.rbi
|
85
|
-
- sorbet/rbi/gems/rubocop-ast@1.
|
84
|
+
- sorbet/rbi/gems/rubocop-ast@1.30.0.rbi
|
86
85
|
- sorbet/rbi/gems/rubocop-capybara@2.19.0.rbi
|
87
86
|
- sorbet/rbi/gems/rubocop-factory_bot@2.24.0.rbi
|
88
87
|
- sorbet/rbi/gems/rubocop-rake@0.6.0.rbi
|
89
|
-
- sorbet/rbi/gems/rubocop-rspec@2.
|
90
|
-
- sorbet/rbi/gems/rubocop@1.
|
91
|
-
- sorbet/rbi/gems/ruby-lsp@0.
|
88
|
+
- sorbet/rbi/gems/rubocop-rspec@2.25.0.rbi
|
89
|
+
- sorbet/rbi/gems/rubocop@1.59.0.rbi
|
90
|
+
- sorbet/rbi/gems/ruby-lsp@0.13.1.rbi
|
92
91
|
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
93
92
|
- sorbet/rbi/gems/simplecov-html@0.12.3.rbi
|
94
93
|
- sorbet/rbi/gems/simplecov@0.22.0.rbi
|
95
94
|
- sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
|
96
95
|
- sorbet/rbi/gems/spoom@1.2.4.rbi
|
97
|
-
- sorbet/rbi/gems/stringio@3.0.
|
96
|
+
- sorbet/rbi/gems/stringio@3.1.0.rbi
|
98
97
|
- sorbet/rbi/gems/syntax_tree@6.2.0.rbi
|
99
|
-
- sorbet/rbi/gems/tapioca@0.11.
|
98
|
+
- sorbet/rbi/gems/tapioca@0.11.13.rbi
|
100
99
|
- sorbet/rbi/gems/thor@1.3.0.rbi
|
101
100
|
- sorbet/rbi/gems/unicode-display_width@2.5.0.rbi
|
102
101
|
- sorbet/rbi/gems/webrick@1.8.1.rbi
|
@@ -118,6 +117,7 @@ post_install_message:
|
|
118
117
|
rdoc_options: []
|
119
118
|
require_paths:
|
120
119
|
- lib
|
120
|
+
- rbi
|
121
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - ">="
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
|
-
rubygems_version: 3.5.
|
132
|
+
rubygems_version: 3.5.9
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Type Utility for Ruby.
|
@@ -1,172 +0,0 @@
|
|
1
|
-
# typed: true
|
2
|
-
|
3
|
-
# DO NOT EDIT MANUALLY
|
4
|
-
# This is an autogenerated file for types exported from the `base64` gem.
|
5
|
-
# Please instead update this file by running `bin/tapioca gem base64`.
|
6
|
-
|
7
|
-
# The Base64 module provides for the encoding (#encode64, #strict_encode64,
|
8
|
-
# #urlsafe_encode64) and decoding (#decode64, #strict_decode64,
|
9
|
-
# #urlsafe_decode64) of binary data using a Base64 representation.
|
10
|
-
#
|
11
|
-
# == Example
|
12
|
-
#
|
13
|
-
# A simple encoding and decoding.
|
14
|
-
#
|
15
|
-
# require "base64"
|
16
|
-
#
|
17
|
-
# enc = Base64.encode64('Send reinforcements')
|
18
|
-
# # -> "U2VuZCByZWluZm9yY2VtZW50cw==\n"
|
19
|
-
# plain = Base64.decode64(enc)
|
20
|
-
# # -> "Send reinforcements"
|
21
|
-
#
|
22
|
-
# The purpose of using base64 to encode data is that it translates any
|
23
|
-
# binary data into purely printable characters.
|
24
|
-
module Base64
|
25
|
-
private
|
26
|
-
|
27
|
-
# Returns the Base64-decoded version of +str+.
|
28
|
-
# This method complies with RFC 2045.
|
29
|
-
# Characters outside the base alphabet are ignored.
|
30
|
-
#
|
31
|
-
# require 'base64'
|
32
|
-
# str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
|
33
|
-
# 'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
|
34
|
-
# 'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
|
35
|
-
# puts Base64.decode64(str)
|
36
|
-
#
|
37
|
-
# <i>Generates:</i>
|
38
|
-
#
|
39
|
-
# This is line one
|
40
|
-
# This is line two
|
41
|
-
# This is line three
|
42
|
-
# And so on...
|
43
|
-
#
|
44
|
-
# source://base64//base64.rb#58
|
45
|
-
def decode64(str); end
|
46
|
-
|
47
|
-
# Returns the Base64-encoded version of +bin+.
|
48
|
-
# This method complies with RFC 2045.
|
49
|
-
# Line feeds are added to every 60 encoded characters.
|
50
|
-
#
|
51
|
-
# require 'base64'
|
52
|
-
# Base64.encode64("Now is the time for all good coders\nto learn Ruby")
|
53
|
-
#
|
54
|
-
# <i>Generates:</i>
|
55
|
-
#
|
56
|
-
# Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g
|
57
|
-
# UnVieQ==
|
58
|
-
#
|
59
|
-
# source://base64//base64.rb#38
|
60
|
-
def encode64(bin); end
|
61
|
-
|
62
|
-
# Returns the Base64-decoded version of +str+.
|
63
|
-
# This method complies with RFC 4648.
|
64
|
-
# ArgumentError is raised if +str+ is incorrectly padded or contains
|
65
|
-
# non-alphabet characters. Note that CR or LF are also rejected.
|
66
|
-
#
|
67
|
-
# source://base64//base64.rb#73
|
68
|
-
def strict_decode64(str); end
|
69
|
-
|
70
|
-
# Returns the Base64-encoded version of +bin+.
|
71
|
-
# This method complies with RFC 4648.
|
72
|
-
# No line feeds are added.
|
73
|
-
#
|
74
|
-
# source://base64//base64.rb#65
|
75
|
-
def strict_encode64(bin); end
|
76
|
-
|
77
|
-
# Returns the Base64-decoded version of +str+.
|
78
|
-
# This method complies with ``Base 64 Encoding with URL and Filename Safe
|
79
|
-
# Alphabet'' in RFC 4648.
|
80
|
-
# The alphabet uses '-' instead of '+' and '_' instead of '/'.
|
81
|
-
#
|
82
|
-
# The padding character is optional.
|
83
|
-
# This method accepts both correctly-padded and unpadded input.
|
84
|
-
# Note that it still rejects incorrectly-padded input.
|
85
|
-
#
|
86
|
-
# source://base64//base64.rb#98
|
87
|
-
def urlsafe_decode64(str); end
|
88
|
-
|
89
|
-
# Returns the Base64-encoded version of +bin+.
|
90
|
-
# This method complies with ``Base 64 Encoding with URL and Filename Safe
|
91
|
-
# Alphabet'' in RFC 4648.
|
92
|
-
# The alphabet uses '-' instead of '+' and '_' instead of '/'.
|
93
|
-
# Note that the result can still contain '='.
|
94
|
-
# You can remove the padding by setting +padding+ as false.
|
95
|
-
#
|
96
|
-
# source://base64//base64.rb#83
|
97
|
-
def urlsafe_encode64(bin, padding: T.unsafe(nil)); end
|
98
|
-
|
99
|
-
class << self
|
100
|
-
# Returns the Base64-decoded version of +str+.
|
101
|
-
# This method complies with RFC 2045.
|
102
|
-
# Characters outside the base alphabet are ignored.
|
103
|
-
#
|
104
|
-
# require 'base64'
|
105
|
-
# str = 'VGhpcyBpcyBsaW5lIG9uZQpUaGlzIG' +
|
106
|
-
# 'lzIGxpbmUgdHdvClRoaXMgaXMgbGlu' +
|
107
|
-
# 'ZSB0aHJlZQpBbmQgc28gb24uLi4K'
|
108
|
-
# puts Base64.decode64(str)
|
109
|
-
#
|
110
|
-
# <i>Generates:</i>
|
111
|
-
#
|
112
|
-
# This is line one
|
113
|
-
# This is line two
|
114
|
-
# This is line three
|
115
|
-
# And so on...
|
116
|
-
#
|
117
|
-
# source://base64//base64.rb#58
|
118
|
-
def decode64(str); end
|
119
|
-
|
120
|
-
# Returns the Base64-encoded version of +bin+.
|
121
|
-
# This method complies with RFC 2045.
|
122
|
-
# Line feeds are added to every 60 encoded characters.
|
123
|
-
#
|
124
|
-
# require 'base64'
|
125
|
-
# Base64.encode64("Now is the time for all good coders\nto learn Ruby")
|
126
|
-
#
|
127
|
-
# <i>Generates:</i>
|
128
|
-
#
|
129
|
-
# Tm93IGlzIHRoZSB0aW1lIGZvciBhbGwgZ29vZCBjb2RlcnMKdG8gbGVhcm4g
|
130
|
-
# UnVieQ==
|
131
|
-
#
|
132
|
-
# source://base64//base64.rb#38
|
133
|
-
def encode64(bin); end
|
134
|
-
|
135
|
-
# Returns the Base64-decoded version of +str+.
|
136
|
-
# This method complies with RFC 4648.
|
137
|
-
# ArgumentError is raised if +str+ is incorrectly padded or contains
|
138
|
-
# non-alphabet characters. Note that CR or LF are also rejected.
|
139
|
-
#
|
140
|
-
# source://base64//base64.rb#73
|
141
|
-
def strict_decode64(str); end
|
142
|
-
|
143
|
-
# Returns the Base64-encoded version of +bin+.
|
144
|
-
# This method complies with RFC 4648.
|
145
|
-
# No line feeds are added.
|
146
|
-
#
|
147
|
-
# source://base64//base64.rb#65
|
148
|
-
def strict_encode64(bin); end
|
149
|
-
|
150
|
-
# Returns the Base64-decoded version of +str+.
|
151
|
-
# This method complies with ``Base 64 Encoding with URL and Filename Safe
|
152
|
-
# Alphabet'' in RFC 4648.
|
153
|
-
# The alphabet uses '-' instead of '+' and '_' instead of '/'.
|
154
|
-
#
|
155
|
-
# The padding character is optional.
|
156
|
-
# This method accepts both correctly-padded and unpadded input.
|
157
|
-
# Note that it still rejects incorrectly-padded input.
|
158
|
-
#
|
159
|
-
# source://base64//base64.rb#98
|
160
|
-
def urlsafe_decode64(str); end
|
161
|
-
|
162
|
-
# Returns the Base64-encoded version of +bin+.
|
163
|
-
# This method complies with ``Base 64 Encoding with URL and Filename Safe
|
164
|
-
# Alphabet'' in RFC 4648.
|
165
|
-
# The alphabet uses '-' instead of '+' and '_' instead of '/'.
|
166
|
-
# Note that the result can still contain '='.
|
167
|
-
# You can remove the padding by setting +padding+ as false.
|
168
|
-
#
|
169
|
-
# source://base64//base64.rb#83
|
170
|
-
def urlsafe_encode64(bin, padding: T.unsafe(nil)); end
|
171
|
-
end
|
172
|
-
end
|