mangrove 0.24.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -1903,9 +1903,10 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
1903
1903
|
# extracting out some behavior, e.g. with a `let` block, or a helper
|
1904
1904
|
# method.
|
1905
1905
|
#
|
1906
|
-
# You can set
|
1907
|
-
# Available are: 'array', 'hash', and '
|
1908
|
-
# will be counted as one line regardless of
|
1906
|
+
# You can set constructs you want to fold with `CountAsOne`.
|
1907
|
+
# Available are: 'array', 'hash', 'heredoc', and 'method_call'.
|
1908
|
+
# Each construct will be counted as one line regardless of
|
1909
|
+
# its actual size.
|
1909
1910
|
#
|
1910
1911
|
# @example
|
1911
1912
|
# # bad
|
@@ -1923,7 +1924,7 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
1923
1924
|
# result = service.call
|
1924
1925
|
# expect(result).to be(true)
|
1925
1926
|
# end
|
1926
|
-
# @example CountAsOne: ['array', 'heredoc']
|
1927
|
+
# @example CountAsOne: ['array', 'heredoc', 'method_call']
|
1927
1928
|
#
|
1928
1929
|
# it do
|
1929
1930
|
# array = [ # +1
|
@@ -1939,22 +1940,27 @@ RuboCop::Cop::RSpec::Eq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
|
|
1939
1940
|
# Heredoc
|
1940
1941
|
# content.
|
1941
1942
|
# HEREDOC
|
1942
|
-
# end # 5 points
|
1943
1943
|
#
|
1944
|
-
#
|
1944
|
+
# foo( # +1
|
1945
|
+
# 1,
|
1946
|
+
# 2
|
1947
|
+
# )
|
1948
|
+
# end # 6 points
|
1949
|
+
#
|
1950
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#57
|
1945
1951
|
class RuboCop::Cop::RSpec::ExampleLength < ::RuboCop::Cop::RSpec::Base
|
1946
1952
|
include ::RuboCop::Cop::CodeLength
|
1947
1953
|
|
1948
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#
|
1954
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#62
|
1949
1955
|
def on_block(node); end
|
1950
1956
|
|
1951
1957
|
private
|
1952
1958
|
|
1953
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#
|
1959
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#70
|
1954
1960
|
def cop_label; end
|
1955
1961
|
end
|
1956
1962
|
|
1957
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#
|
1963
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/example_length.rb#60
|
1958
1964
|
RuboCop::Cop::RSpec::ExampleLength::LABEL = T.let(T.unsafe(nil), String)
|
1959
1965
|
|
1960
1966
|
# Checks for examples without a description.
|
@@ -4117,7 +4123,7 @@ module RuboCop::Cop::RSpec::Metadata
|
|
4117
4123
|
private
|
4118
4124
|
|
4119
4125
|
# source://rubocop-rspec//lib/rubocop/cop/rspec/mixin/metadata.rb#49
|
4120
|
-
def
|
4126
|
+
def on_metadata_arguments(metadata_arguments); end
|
4121
4127
|
end
|
4122
4128
|
|
4123
4129
|
# Use consistent metadata style.
|
@@ -4160,59 +4166,59 @@ class RuboCop::Cop::RSpec::MetadataStyle < ::RuboCop::Cop::RSpec::Base
|
|
4160
4166
|
|
4161
4167
|
private
|
4162
4168
|
|
4163
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4169
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#66
|
4164
4170
|
def autocorrect_pair(corrector, node); end
|
4165
4171
|
|
4166
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4172
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#71
|
4167
4173
|
def autocorrect_symbol(corrector, node); end
|
4168
4174
|
|
4169
4175
|
# @return [Boolean]
|
4170
4176
|
#
|
4171
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4177
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#78
|
4172
4178
|
def bad_metadata_pair?(node); end
|
4173
4179
|
|
4174
4180
|
# @return [Boolean]
|
4175
4181
|
#
|
4176
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4182
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#82
|
4177
4183
|
def bad_metadata_symbol?(_node); end
|
4178
4184
|
|
4179
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4185
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#86
|
4180
4186
|
def format_symbol_to_pair_source(node); end
|
4181
4187
|
|
4182
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4188
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#90
|
4183
4189
|
def insert_pair(corrector, node); end
|
4184
4190
|
|
4185
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4191
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#101
|
4186
4192
|
def insert_pair_as_last_argument(corrector, node); end
|
4187
4193
|
|
4188
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4194
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#110
|
4189
4195
|
def insert_pair_to_empty_hash_metadata(corrector, node, hash_node); end
|
4190
4196
|
|
4191
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4197
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#117
|
4192
4198
|
def insert_pair_to_non_empty_hash_metadata(corrector, node, hash_node); end
|
4193
4199
|
|
4194
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4200
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#124
|
4195
4201
|
def insert_symbol(corrector, node); end
|
4196
4202
|
|
4197
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4203
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#131
|
4198
4204
|
def message_for_style; end
|
4199
4205
|
|
4200
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4206
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#138
|
4201
4207
|
def on_metadata_pair(node); end
|
4202
4208
|
|
4203
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4209
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#146
|
4204
4210
|
def on_metadata_symbol(node); end
|
4205
4211
|
|
4206
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4212
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#154
|
4207
4213
|
def remove_pair(corrector, node); end
|
4208
4214
|
|
4209
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4215
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#164
|
4210
4216
|
def remove_pair_following(corrector, node); end
|
4211
4217
|
|
4212
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4218
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#176
|
4213
4219
|
def remove_pair_preceding(corrector, node); end
|
4214
4220
|
|
4215
|
-
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#
|
4221
|
+
# source://rubocop-rspec//lib/rubocop/cop/rspec/metadata_style.rb#188
|
4216
4222
|
def remove_symbol(corrector, node); end
|
4217
4223
|
end
|
4218
4224
|
|
@@ -6673,7 +6679,7 @@ class RuboCop::Cop::RSpec::SpecFilePathFormat < ::RuboCop::Cop::RSpec::Base
|
|
6673
6679
|
def custom_transform; end
|
6674
6680
|
|
6675
6681
|
# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#62
|
6676
|
-
def ensure_correct_file_path(class_name, arguments); end
|
6682
|
+
def ensure_correct_file_path(send_node, class_name, arguments); end
|
6677
6683
|
|
6678
6684
|
# source://rubocop-rspec//lib/rubocop/cop/rspec/spec_file_path_format.rb#98
|
6679
6685
|
def expected_path(constant); end
|
@@ -7400,10 +7406,10 @@ class RuboCop::Cop::Style::TrailingCommaInArguments < ::RuboCop::Cop::Base
|
|
7400
7406
|
include ::RuboCop::Cop::ConfigurableEnforcedStyle
|
7401
7407
|
include ::RuboCop::Cop::RangeHelp
|
7402
7408
|
|
7403
|
-
# source://rubocop/1.
|
7409
|
+
# source://rubocop/1.59.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
|
7404
7410
|
def on_csend(node); end
|
7405
7411
|
|
7406
|
-
# source://rubocop/1.
|
7412
|
+
# source://rubocop/1.59.0/lib/rubocop/cop/style/trailing_comma_in_arguments.rb#95
|
7407
7413
|
def on_send(node); end
|
7408
7414
|
|
7409
7415
|
class << self
|
@@ -7555,7 +7561,7 @@ end
|
|
7555
7561
|
|
7556
7562
|
# Wrapper for RSpec examples
|
7557
7563
|
#
|
7558
|
-
# source://rubocop-rspec//lib/rubocop/rspec/example.rb#
|
7564
|
+
# source://rubocop-rspec//lib/rubocop/rspec/example.rb#6
|
7559
7565
|
class RuboCop::RSpec::Example < ::RuboCop::RSpec::Concept
|
7560
7566
|
# source://rubocop-rspec//lib/rubocop/rspec/example.rb#28
|
7561
7567
|
def definition; end
|
@@ -7581,7 +7587,7 @@ end
|
|
7581
7587
|
|
7582
7588
|
# Wrapper for RSpec example groups
|
7583
7589
|
#
|
7584
|
-
# source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#
|
7590
|
+
# source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#6
|
7585
7591
|
class RuboCop::RSpec::ExampleGroup < ::RuboCop::RSpec::Concept
|
7586
7592
|
# source://rubocop-rspec//lib/rubocop/rspec/example_group.rb#28
|
7587
7593
|
def examples; end
|
@@ -7621,7 +7627,7 @@ end
|
|
7621
7627
|
|
7622
7628
|
# Wrapper for RSpec hook
|
7623
7629
|
#
|
7624
|
-
# source://rubocop-rspec//lib/rubocop/rspec/hook.rb#
|
7630
|
+
# source://rubocop-rspec//lib/rubocop/rspec/hook.rb#6
|
7625
7631
|
class RuboCop::RSpec::Hook < ::RuboCop::RSpec::Concept
|
7626
7632
|
# @return [Boolean]
|
7627
7633
|
#
|