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
@@ -2590,17 +2590,17 @@ Regexp::Parser::VERSION = T.let(T.unsafe(nil), String)
|
|
2590
2590
|
class Regexp::Scanner
|
2591
2591
|
# Emits an array with the details of the scanned pattern
|
2592
2592
|
#
|
2593
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2593
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2406
|
2594
2594
|
def emit(type, token, text); end
|
2595
2595
|
|
2596
2596
|
# only public for #||= to work on ruby <= 2.5
|
2597
2597
|
#
|
2598
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2598
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2431
|
2599
2599
|
def literal_run; end
|
2600
2600
|
|
2601
2601
|
# only public for #||= to work on ruby <= 2.5
|
2602
2602
|
#
|
2603
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2603
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2431
|
2604
2604
|
def literal_run=(_arg0); end
|
2605
2605
|
|
2606
2606
|
# @raise [PrematureEndError]
|
@@ -2613,168 +2613,168 @@ class Regexp::Scanner
|
|
2613
2613
|
# Appends one or more characters to the literal buffer, to be emitted later
|
2614
2614
|
# by a call to emit_literal.
|
2615
2615
|
#
|
2616
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2616
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2468
|
2617
2617
|
def append_literal(data, ts, te); end
|
2618
2618
|
|
2619
2619
|
# Returns the value of attribute block.
|
2620
2620
|
#
|
2621
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2621
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2622
2622
|
def block; end
|
2623
2623
|
|
2624
2624
|
# Sets the attribute block
|
2625
2625
|
#
|
2626
2626
|
# @param value the value to set the attribute block to.
|
2627
2627
|
#
|
2628
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2628
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2629
2629
|
def block=(_arg0); end
|
2630
2630
|
|
2631
2631
|
# Returns the value of attribute char_pos.
|
2632
2632
|
#
|
2633
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2633
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2634
2634
|
def char_pos; end
|
2635
2635
|
|
2636
2636
|
# Sets the attribute char_pos
|
2637
2637
|
#
|
2638
2638
|
# @param value the value to set the attribute char_pos to.
|
2639
2639
|
#
|
2640
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2640
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2641
2641
|
def char_pos=(_arg0); end
|
2642
2642
|
|
2643
2643
|
# Returns the value of attribute collect_tokens.
|
2644
2644
|
#
|
2645
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2645
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2646
2646
|
def collect_tokens; end
|
2647
2647
|
|
2648
2648
|
# Sets the attribute collect_tokens
|
2649
2649
|
#
|
2650
2650
|
# @param value the value to set the attribute collect_tokens to.
|
2651
2651
|
#
|
2652
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2652
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2653
2653
|
def collect_tokens=(_arg0); end
|
2654
2654
|
|
2655
2655
|
# Returns the value of attribute conditional_stack.
|
2656
2656
|
#
|
2657
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2657
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2658
2658
|
def conditional_stack; end
|
2659
2659
|
|
2660
2660
|
# Sets the attribute conditional_stack
|
2661
2661
|
#
|
2662
2662
|
# @param value the value to set the attribute conditional_stack to.
|
2663
2663
|
#
|
2664
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2664
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2665
2665
|
def conditional_stack=(_arg0); end
|
2666
2666
|
|
2667
2667
|
# Copy from ts to te from data as text
|
2668
2668
|
#
|
2669
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2669
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2462
|
2670
2670
|
def copy(data, ts, te); end
|
2671
2671
|
|
2672
2672
|
# Emits the literal run collected by calls to the append_literal method.
|
2673
2673
|
#
|
2674
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2674
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2473
|
2675
2675
|
def emit_literal; end
|
2676
2676
|
|
2677
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2677
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2508
|
2678
2678
|
def emit_meta_control_sequence(data, ts, te, token); end
|
2679
2679
|
|
2680
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2680
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2479
|
2681
2681
|
def emit_options(text); end
|
2682
2682
|
|
2683
2683
|
# Returns the value of attribute free_spacing.
|
2684
2684
|
#
|
2685
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2685
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2686
2686
|
def free_spacing; end
|
2687
2687
|
|
2688
2688
|
# Sets the attribute free_spacing
|
2689
2689
|
#
|
2690
2690
|
# @param value the value to set the attribute free_spacing to.
|
2691
2691
|
#
|
2692
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2692
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2693
2693
|
def free_spacing=(_arg0); end
|
2694
2694
|
|
2695
2695
|
# @return [Boolean]
|
2696
2696
|
#
|
2697
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2697
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2441
|
2698
2698
|
def free_spacing?(input_object, options); end
|
2699
2699
|
|
2700
2700
|
# Returns the value of attribute group_depth.
|
2701
2701
|
#
|
2702
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2702
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2703
2703
|
def group_depth; end
|
2704
2704
|
|
2705
2705
|
# Sets the attribute group_depth
|
2706
2706
|
#
|
2707
2707
|
# @param value the value to set the attribute group_depth to.
|
2708
2708
|
#
|
2709
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2709
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2710
2710
|
def group_depth=(_arg0); end
|
2711
2711
|
|
2712
2712
|
# @return [Boolean]
|
2713
2713
|
#
|
2714
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2714
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2453
|
2715
2715
|
def in_group?; end
|
2716
2716
|
|
2717
2717
|
# @return [Boolean]
|
2718
2718
|
#
|
2719
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2719
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2457
|
2720
2720
|
def in_set?; end
|
2721
2721
|
|
2722
2722
|
# Returns the value of attribute prev_token.
|
2723
2723
|
#
|
2724
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2724
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2725
2725
|
def prev_token; end
|
2726
2726
|
|
2727
2727
|
# Sets the attribute prev_token
|
2728
2728
|
#
|
2729
2729
|
# @param value the value to set the attribute prev_token to.
|
2730
2730
|
#
|
2731
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2731
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2732
2732
|
def prev_token=(_arg0); end
|
2733
2733
|
|
2734
2734
|
# Returns the value of attribute set_depth.
|
2735
2735
|
#
|
2736
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2736
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2737
2737
|
def set_depth; end
|
2738
2738
|
|
2739
2739
|
# Sets the attribute set_depth
|
2740
2740
|
#
|
2741
2741
|
# @param value the value to set the attribute set_depth to.
|
2742
2742
|
#
|
2743
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2743
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2744
2744
|
def set_depth=(_arg0); end
|
2745
2745
|
|
2746
2746
|
# Returns the value of attribute spacing_stack.
|
2747
2747
|
#
|
2748
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2748
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2749
2749
|
def spacing_stack; end
|
2750
2750
|
|
2751
2751
|
# Sets the attribute spacing_stack
|
2752
2752
|
#
|
2753
2753
|
# @param value the value to set the attribute spacing_stack to.
|
2754
2754
|
#
|
2755
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2755
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2756
2756
|
def spacing_stack=(_arg0); end
|
2757
2757
|
|
2758
2758
|
# Returns the value of attribute tokens.
|
2759
2759
|
#
|
2760
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2760
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2761
2761
|
def tokens; end
|
2762
2762
|
|
2763
2763
|
# Sets the attribute tokens
|
2764
2764
|
#
|
2765
2765
|
# @param value the value to set the attribute tokens to.
|
2766
2766
|
#
|
2767
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2767
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2435
|
2768
2768
|
def tokens=(_arg0); end
|
2769
2769
|
|
2770
2770
|
class << self
|
2771
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2771
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2392
|
2772
2772
|
def long_prop_map; end
|
2773
2773
|
|
2774
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2774
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2396
|
2775
2775
|
def parse_prop_map(name); end
|
2776
2776
|
|
2777
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2777
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2400
|
2778
2778
|
def posix_classes; end
|
2779
2779
|
|
2780
2780
|
# Scans the given regular expression text, or Regexp object and collects the
|
@@ -2789,7 +2789,7 @@ class Regexp::Scanner
|
|
2789
2789
|
|
2790
2790
|
# lazy-load property maps when first needed
|
2791
2791
|
#
|
2792
|
-
# source://regexp_parser//lib/regexp_parser/scanner.rb#
|
2792
|
+
# source://regexp_parser//lib/regexp_parser/scanner.rb#2388
|
2793
2793
|
def short_prop_map; end
|
2794
2794
|
end
|
2795
2795
|
end
|
@@ -2872,7 +2872,7 @@ end
|
|
2872
2872
|
|
2873
2873
|
# Base for all scanner validation errors
|
2874
2874
|
#
|
2875
|
-
# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#
|
2875
|
+
# source://regexp_parser//lib/regexp_parser/scanner/errors/validation_error.rb#3
|
2876
2876
|
class Regexp::Scanner::ValidationError < ::Regexp::Scanner::ScannerError
|
2877
2877
|
class << self
|
2878
2878
|
# Centralizes and unifies the handling of validation related errors.
|
@@ -3053,7 +3053,7 @@ class Regexp::Syntax::Base
|
|
3053
3053
|
end
|
3054
3054
|
|
3055
3055
|
# source://regexp_parser//lib/regexp_parser/syntax/versions.rb#8
|
3056
|
-
Regexp::Syntax::CURRENT = Regexp::Syntax::
|
3056
|
+
Regexp::Syntax::CURRENT = Regexp::Syntax::V3_2_0
|
3057
3057
|
|
3058
3058
|
# source://regexp_parser//lib/regexp_parser/syntax/version_lookup.rb#6
|
3059
3059
|
class Regexp::Syntax::InvalidVersionNameError < ::Regexp::Syntax::SyntaxError
|