vigiles 0.1.2 → 0.1.4
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/.rubocop.yml +1 -1
- data/.ruby-version +1 -0
- data/lib/vigiles/archive/extras.rb +1 -1
- data/lib/vigiles/archive/metadata.rb +1 -1
- data/lib/vigiles/archive/response.rb +31 -5
- data/lib/vigiles/archive.rb +1 -1
- data/lib/vigiles/constants.rb +1 -1
- data/lib/vigiles/conversation_recorder.rb +3 -0
- data/lib/vigiles/conversation_recorders/application_json.rb +11 -6
- data/lib/vigiles/conversation_recorders/unknown.rb +3 -0
- data/lib/vigiles/middleware/record_conversation.rb +2 -2
- data/lib/vigiles/utilities/json.rb +2 -4
- data/lib/vigiles/version.rb +1 -1
- data/sorbet/rbi/gems/concurrent-ruby@1.3.1.rbi +11627 -0
- data/sorbet/rbi/gems/{json@2.7.1.rbi → json@2.7.2.rbi} +73 -72
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.23.1.rbi} +841 -159
- data/sorbet/rbi/gems/{parser@3.3.0.5.rbi → parser@3.3.1.0.rbi} +233 -186
- data/sorbet/rbi/gems/{prism@0.24.0.rbi → prism@0.29.0.rbi} +19135 -12188
- data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.0.rbi} +34 -33
- data/sorbet/rbi/gems/{rake@13.1.0.rbi → rake@13.2.1.rbi} +77 -55
- data/sorbet/rbi/gems/{rbi@0.1.9.rbi → rbi@0.1.13.rbi} +226 -154
- data/sorbet/rbi/gems/{rdoc@6.6.3.1.rbi → rdoc@6.7.0.rbi} +333 -327
- data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.9.2.rbi} +3 -2
- data/sorbet/rbi/gems/{reline@0.5.7.rbi → reline@0.5.8.rbi} +1 -0
- data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.2.8.rbi} +121 -108
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.3.rbi} +92 -62
- data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +35 -0
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.4.rbi → rubocop-sorbet@0.8.3.rbi} +327 -162
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.64.0.rbi} +1719 -1065
- data/sorbet/rbi/gems/{spoom@1.2.4.rbi → spoom@1.3.2.rbi} +1057 -413
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.14.2.rbi} +123 -448
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +57 -50
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +230 -37
- data/sorbet/rbi/gems/{zeitwerk@2.6.13.rbi → zeitwerk@2.6.15.rbi} +47 -36
- data/vigiles.gemspec +1 -1
- metadata +27 -27
- data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +0 -8
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +0 -951
- data/sorbet/rbi/gems/syntax_tree@6.2.0.rbi +0 -23136
@@ -4,6 +4,7 @@
|
|
4
4
|
# This is an autogenerated file for types exported from the `yard` gem.
|
5
5
|
# Please instead update this file by running `bin/tapioca gem yard`.
|
6
6
|
|
7
|
+
|
7
8
|
# source://yard//lib/yard.rb#61
|
8
9
|
::RUBY18 = T.let(T.unsafe(nil), FalseClass)
|
9
10
|
|
@@ -486,6 +487,63 @@ RUBY18 = T.let(T.unsafe(nil), FalseClass)
|
|
486
487
|
# source://yard//lib/yard.rb#62
|
487
488
|
RUBY19 = T.let(T.unsafe(nil), TrueClass)
|
488
489
|
|
490
|
+
# @private
|
491
|
+
#
|
492
|
+
# source://yard//lib/yard/server/rack_adapter.rb#93
|
493
|
+
class Rack::Request
|
494
|
+
# source://rack/3.0.11/lib/rack/request.rb#62
|
495
|
+
def initialize(env); end
|
496
|
+
|
497
|
+
# source://rack/3.0.11/lib/rack/request.rb#76
|
498
|
+
def delete_param(k); end
|
499
|
+
|
500
|
+
# source://rack/3.0.11/lib/rack/request.rb#67
|
501
|
+
def params; end
|
502
|
+
|
503
|
+
# source://rack/3.0.11/lib/rack/request.rb#67
|
504
|
+
def query; end
|
505
|
+
|
506
|
+
# source://rack/3.0.11/lib/rack/request.rb#71
|
507
|
+
def update_param(k, v); end
|
508
|
+
|
509
|
+
# Returns the value of attribute version_supplied.
|
510
|
+
#
|
511
|
+
# source://yard//lib/yard/server/rack_adapter.rb#94
|
512
|
+
def version_supplied; end
|
513
|
+
|
514
|
+
# Sets the attribute version_supplied
|
515
|
+
#
|
516
|
+
# @param value the value to set the attribute version_supplied to.
|
517
|
+
#
|
518
|
+
# source://yard//lib/yard/server/rack_adapter.rb#94
|
519
|
+
def version_supplied=(_arg0); end
|
520
|
+
|
521
|
+
# @return [Boolean]
|
522
|
+
#
|
523
|
+
# source://yard//lib/yard/server/rack_adapter.rb#96
|
524
|
+
def xhr?; end
|
525
|
+
|
526
|
+
class << self
|
527
|
+
# source://rack/3.0.11/lib/rack/request.rb#31
|
528
|
+
def forwarded_priority; end
|
529
|
+
|
530
|
+
# source://rack/3.0.11/lib/rack/request.rb#31
|
531
|
+
def forwarded_priority=(_arg0); end
|
532
|
+
|
533
|
+
# source://rack/3.0.11/lib/rack/request.rb#18
|
534
|
+
def ip_filter; end
|
535
|
+
|
536
|
+
# source://rack/3.0.11/lib/rack/request.rb#18
|
537
|
+
def ip_filter=(_arg0); end
|
538
|
+
|
539
|
+
# source://rack/3.0.11/lib/rack/request.rb#40
|
540
|
+
def x_forwarded_proto_priority; end
|
541
|
+
|
542
|
+
# source://rack/3.0.11/lib/rack/request.rb#40
|
543
|
+
def x_forwarded_proto_priority=(_arg0); end
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
489
547
|
# source://yard//lib/yard/core_ext/string.rb#2
|
490
548
|
class String
|
491
549
|
include ::Comparable
|
@@ -590,6 +648,28 @@ class SymbolHash < ::Hash
|
|
590
648
|
end
|
591
649
|
end
|
592
650
|
|
651
|
+
# @private
|
652
|
+
#
|
653
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#42
|
654
|
+
class WEBrick::HTTPRequest
|
655
|
+
# Returns the value of attribute version_supplied.
|
656
|
+
#
|
657
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#43
|
658
|
+
def version_supplied; end
|
659
|
+
|
660
|
+
# Sets the attribute version_supplied
|
661
|
+
#
|
662
|
+
# @param value the value to set the attribute version_supplied to.
|
663
|
+
#
|
664
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#43
|
665
|
+
def version_supplied=(_arg0); end
|
666
|
+
|
667
|
+
# @return [Boolean]
|
668
|
+
#
|
669
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#44
|
670
|
+
def xhr?; end
|
671
|
+
end
|
672
|
+
|
593
673
|
# Gem::YARDoc provides methods to generate YARDoc and yri data for installed gems
|
594
674
|
# upon gem installation.
|
595
675
|
#
|
@@ -2480,7 +2560,7 @@ class YARD::CodeObjects::Base
|
|
2480
2560
|
# the paths are equal
|
2481
2561
|
# @return [Boolean] whether or not the objects are considered the same
|
2482
2562
|
#
|
2483
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2563
|
+
# source://yard//lib/yard/code_objects/base.rb#323
|
2484
2564
|
def ==(other); end
|
2485
2565
|
|
2486
2566
|
# Accesses a custom attribute on the object
|
@@ -2489,7 +2569,7 @@ class YARD::CodeObjects::Base
|
|
2489
2569
|
# @return [Object, nil] the custom attribute or nil if not found.
|
2490
2570
|
# @see #[]=
|
2491
2571
|
#
|
2492
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2572
|
+
# source://yard//lib/yard/code_objects/base.rb#343
|
2493
2573
|
def [](key); end
|
2494
2574
|
|
2495
2575
|
# Sets a custom attribute on the object
|
@@ -2499,7 +2579,7 @@ class YARD::CodeObjects::Base
|
|
2499
2579
|
# @return [void]
|
2500
2580
|
# @see #[]
|
2501
2581
|
#
|
2502
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2582
|
+
# source://yard//lib/yard/code_objects/base.rb#356
|
2503
2583
|
def []=(key, value); end
|
2504
2584
|
|
2505
2585
|
# Associates a file with a code object, optionally adding the line where it was defined.
|
@@ -2520,7 +2600,7 @@ class YARD::CodeObjects::Base
|
|
2520
2600
|
# @see Docstring#add_tag
|
2521
2601
|
# @since 0.8.4
|
2522
2602
|
#
|
2523
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2603
|
+
# source://yard//lib/yard/code_objects/base.rb#561
|
2524
2604
|
def add_tag(*tags); end
|
2525
2605
|
|
2526
2606
|
# The non-localized documentation string associated with the object
|
@@ -2547,7 +2627,7 @@ class YARD::CodeObjects::Base
|
|
2547
2627
|
# the locale of the documentation string.
|
2548
2628
|
# @return [Docstring] the documentation string
|
2549
2629
|
#
|
2550
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2630
|
+
# source://yard//lib/yard/code_objects/base.rb#405
|
2551
2631
|
def docstring(locale = T.unsafe(nil)); end
|
2552
2632
|
|
2553
2633
|
# Attaches a docstring to a code object by parsing the comments attached to the statement
|
@@ -2556,7 +2636,7 @@ class YARD::CodeObjects::Base
|
|
2556
2636
|
# @param comments [String, Array<String>, Docstring] the comments attached to the code object to be parsed
|
2557
2637
|
# into a docstring and meta tags.
|
2558
2638
|
#
|
2559
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2639
|
+
# source://yard//lib/yard/code_objects/base.rb#427
|
2560
2640
|
def docstring=(comments); end
|
2561
2641
|
|
2562
2642
|
# Marks whether or not the method is conditionally defined at runtime
|
@@ -2587,7 +2667,7 @@ class YARD::CodeObjects::Base
|
|
2587
2667
|
# the paths are equal
|
2588
2668
|
# @return [Boolean] whether or not the objects are considered the same
|
2589
2669
|
#
|
2590
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2670
|
+
# source://yard//lib/yard/code_objects/base.rb#323
|
2591
2671
|
def eql?(other); end
|
2592
2672
|
|
2593
2673
|
# Tests if another object is equal to this, including a proxy
|
@@ -2596,15 +2676,16 @@ class YARD::CodeObjects::Base
|
|
2596
2676
|
# the paths are equal
|
2597
2677
|
# @return [Boolean] whether or not the objects are considered the same
|
2598
2678
|
#
|
2599
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2679
|
+
# source://yard//lib/yard/code_objects/base.rb#323
|
2600
2680
|
def equal?(other); end
|
2601
2681
|
|
2602
2682
|
# Returns the filename the object was first parsed at, taking
|
2603
2683
|
# definitions with docstrings first.
|
2604
2684
|
#
|
2605
2685
|
# @return [String] a filename
|
2686
|
+
# @return [nil] if there is no file associated with the object
|
2606
2687
|
#
|
2607
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2688
|
+
# source://yard//lib/yard/code_objects/base.rb#307
|
2608
2689
|
def file; end
|
2609
2690
|
|
2610
2691
|
# The files the object was defined in. To add a file, use {#add_file}.
|
@@ -2629,7 +2710,7 @@ class YARD::CodeObjects::Base
|
|
2629
2710
|
# @return [String] the rendered template
|
2630
2711
|
# @see Templates::Engine#render
|
2631
2712
|
#
|
2632
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2713
|
+
# source://yard//lib/yard/code_objects/base.rb#505
|
2633
2714
|
def format(options = T.unsafe(nil)); end
|
2634
2715
|
|
2635
2716
|
# @return [String] the group this object is associated with
|
@@ -2649,19 +2730,19 @@ class YARD::CodeObjects::Base
|
|
2649
2730
|
# @return [Boolean]
|
2650
2731
|
# @see Docstring#has_tag?
|
2651
2732
|
#
|
2652
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2733
|
+
# source://yard//lib/yard/code_objects/base.rb#556
|
2653
2734
|
def has_tag?(name); end
|
2654
2735
|
|
2655
2736
|
# @return [Integer] the object's hash value (for equality checking)
|
2656
2737
|
#
|
2657
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2738
|
+
# source://yard//lib/yard/code_objects/base.rb#334
|
2658
2739
|
def hash; end
|
2659
2740
|
|
2660
2741
|
# Inspects the object, returning the type and path
|
2661
2742
|
#
|
2662
2743
|
# @return [String] a string describing the object
|
2663
2744
|
#
|
2664
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2745
|
+
# source://yard//lib/yard/code_objects/base.rb#513
|
2665
2746
|
def inspect; end
|
2666
2747
|
|
2667
2748
|
# Returns the line the object was first parsed at (or nil)
|
@@ -2669,13 +2750,13 @@ class YARD::CodeObjects::Base
|
|
2669
2750
|
# @return [Fixnum] the line where the object was first defined.
|
2670
2751
|
# @return [nil] if there is no line associated with the object
|
2671
2752
|
#
|
2672
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2753
|
+
# source://yard//lib/yard/code_objects/base.rb#315
|
2673
2754
|
def line; end
|
2674
2755
|
|
2675
2756
|
# @overload dynamic_attr_name
|
2676
2757
|
# @overload dynamic_attr_name=
|
2677
2758
|
#
|
2678
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2759
|
+
# source://yard//lib/yard/code_objects/base.rb#373
|
2679
2760
|
def method_missing(meth, *args, &block); end
|
2680
2761
|
|
2681
2762
|
# The name of the object
|
@@ -2703,7 +2784,7 @@ class YARD::CodeObjects::Base
|
|
2703
2784
|
# for {Registry.root}). If obj is nil, the object is unregistered
|
2704
2785
|
# from the Registry.
|
2705
2786
|
#
|
2706
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2787
|
+
# source://yard//lib/yard/code_objects/base.rb#522
|
2707
2788
|
def namespace=(obj); end
|
2708
2789
|
|
2709
2790
|
# The namespace the object is defined in. If the object is in the
|
@@ -2720,7 +2801,7 @@ class YARD::CodeObjects::Base
|
|
2720
2801
|
# for {Registry.root}). If obj is nil, the object is unregistered
|
2721
2802
|
# from the Registry.
|
2722
2803
|
#
|
2723
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2804
|
+
# source://yard//lib/yard/code_objects/base.rb#522
|
2724
2805
|
def parent=(obj); end
|
2725
2806
|
|
2726
2807
|
# Represents the unique path of the object. The default implementation
|
@@ -2733,19 +2814,19 @@ class YARD::CodeObjects::Base
|
|
2733
2814
|
# @return [String] the unique path of the object
|
2734
2815
|
# @see #sep
|
2735
2816
|
#
|
2736
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2817
|
+
# source://yard//lib/yard/code_objects/base.rb#453
|
2737
2818
|
def path; end
|
2738
2819
|
|
2739
2820
|
# @param other [Base, String] another code object (or object path)
|
2740
2821
|
# @return [String] the shortest relative path from this object to +other+
|
2741
2822
|
# @since 0.5.3
|
2742
2823
|
#
|
2743
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2824
|
+
# source://yard//lib/yard/code_objects/base.rb#475
|
2744
2825
|
def relative_path(other); end
|
2745
2826
|
|
2746
2827
|
# @return [Boolean] whether or not this object is a RootObject
|
2747
2828
|
#
|
2748
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2829
|
+
# source://yard//lib/yard/code_objects/base.rb#567
|
2749
2830
|
def root?; end
|
2750
2831
|
|
2751
2832
|
# Override this method with a custom component separator. For instance,
|
@@ -2756,7 +2837,7 @@ class YARD::CodeObjects::Base
|
|
2756
2837
|
# @return [String] the component that separates the namespace path
|
2757
2838
|
# and the name (default is {NSEP})
|
2758
2839
|
#
|
2759
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2840
|
+
# source://yard//lib/yard/code_objects/base.rb#576
|
2760
2841
|
def sep; end
|
2761
2842
|
|
2762
2843
|
# The one line signature representing an object. For a method, this will
|
@@ -2789,7 +2870,7 @@ class YARD::CodeObjects::Base
|
|
2789
2870
|
# @param statement [#source, String] the +Parser::Statement+ holding the source code or the raw source
|
2790
2871
|
# as a +String+ for the definition of the code object only (not the block)
|
2791
2872
|
#
|
2792
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2873
|
+
# source://yard//lib/yard/code_objects/base.rb#388
|
2793
2874
|
def source=(statement); end
|
2794
2875
|
|
2795
2876
|
# Language of the source code associated with the object. Defaults to
|
@@ -2812,14 +2893,14 @@ class YARD::CodeObjects::Base
|
|
2812
2893
|
#
|
2813
2894
|
# @see Docstring#tag
|
2814
2895
|
#
|
2815
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2896
|
+
# source://yard//lib/yard/code_objects/base.rb#548
|
2816
2897
|
def tag(name); end
|
2817
2898
|
|
2818
2899
|
# Gets a list of tags from the {#docstring}
|
2819
2900
|
#
|
2820
2901
|
# @see Docstring#tags
|
2821
2902
|
#
|
2822
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2903
|
+
# source://yard//lib/yard/code_objects/base.rb#552
|
2823
2904
|
def tags(name = T.unsafe(nil)); end
|
2824
2905
|
|
2825
2906
|
# @note Override this method if your object has a special title that does
|
@@ -2828,12 +2909,12 @@ class YARD::CodeObjects::Base
|
|
2828
2909
|
# @return [String] the display title for an object
|
2829
2910
|
# @see 0.8.4
|
2830
2911
|
#
|
2831
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2912
|
+
# source://yard//lib/yard/code_objects/base.rb#468
|
2832
2913
|
def title; end
|
2833
2914
|
|
2834
2915
|
# @return [nil] this object does not turn into an array
|
2835
2916
|
#
|
2836
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2917
|
+
# source://yard//lib/yard/code_objects/base.rb#337
|
2837
2918
|
def to_ary; end
|
2838
2919
|
|
2839
2920
|
# Represents the unique path of the object. The default implementation
|
@@ -2846,7 +2927,7 @@ class YARD::CodeObjects::Base
|
|
2846
2927
|
# @return [String] the unique path of the object
|
2847
2928
|
# @see #sep
|
2848
2929
|
#
|
2849
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2930
|
+
# source://yard//lib/yard/code_objects/base.rb#453
|
2850
2931
|
def to_s; end
|
2851
2932
|
|
2852
2933
|
# Default type is the lowercase class name without the "Object" suffix.
|
@@ -2854,7 +2935,7 @@ class YARD::CodeObjects::Base
|
|
2854
2935
|
#
|
2855
2936
|
# @return [Symbol] the type of code object this represents
|
2856
2937
|
#
|
2857
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2938
|
+
# source://yard//lib/yard/code_objects/base.rb#437
|
2858
2939
|
def type; end
|
2859
2940
|
|
2860
2941
|
# @return [Symbol] the visibility of an object (:public, :private, :protected)
|
@@ -2877,7 +2958,7 @@ class YARD::CodeObjects::Base
|
|
2877
2958
|
# @see #copy_to
|
2878
2959
|
# @since 0.8.0
|
2879
2960
|
#
|
2880
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2961
|
+
# source://yard//lib/yard/code_objects/base.rb#587
|
2881
2962
|
def copyable_attributes; end
|
2882
2963
|
|
2883
2964
|
private
|
@@ -2887,10 +2968,10 @@ class YARD::CodeObjects::Base
|
|
2887
2968
|
# @param source [String] the source code to format
|
2888
2969
|
# @return [String] formatted source
|
2889
2970
|
#
|
2890
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2971
|
+
# source://yard//lib/yard/code_objects/base.rb#599
|
2891
2972
|
def format_source(source); end
|
2892
2973
|
|
2893
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2974
|
+
# source://yard//lib/yard/code_objects/base.rb#606
|
2894
2975
|
def translate_docstring(locale); end
|
2895
2976
|
|
2896
2977
|
class << self
|
@@ -7635,7 +7716,7 @@ class YARD::Logger < ::Logger
|
|
7635
7716
|
# source://yard//lib/yard/logging.rb#201
|
7636
7717
|
def format_log(sev, _time, _prog, msg); end
|
7637
7718
|
|
7638
|
-
# source://logger/1.
|
7719
|
+
# source://logger/1.6.0/logger.rb#684
|
7639
7720
|
def print_no_newline(msg); end
|
7640
7721
|
|
7641
7722
|
class << self
|
@@ -9972,7 +10053,7 @@ end
|
|
9972
10053
|
|
9973
10054
|
# source://yard//lib/yard/parser/ruby/ast_node.rb#479
|
9974
10055
|
class YARD::Parser::Ruby::MethodDefinitionNode < ::YARD::Parser::Ruby::AstNode
|
9975
|
-
def block(
|
10056
|
+
def block(n = T.unsafe(nil)); end
|
9976
10057
|
|
9977
10058
|
# @return [Boolean]
|
9978
10059
|
#
|
@@ -11033,10 +11114,10 @@ class YARD::Parser::SourceParser
|
|
11033
11114
|
|
11034
11115
|
# @since 0.5.6
|
11035
11116
|
#
|
11036
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11117
|
+
# source://yard//lib/yard/parser/source_parser.rb#515
|
11037
11118
|
def parser_class; end
|
11038
11119
|
|
11039
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11120
|
+
# source://yard//lib/yard/parser/source_parser.rb#500
|
11040
11121
|
def parser_type=(value); end
|
11041
11122
|
|
11042
11123
|
# Guesses the parser type to use depending on the file extension.
|
@@ -11044,14 +11125,14 @@ class YARD::Parser::SourceParser
|
|
11044
11125
|
# @param filename [String] the filename to use to guess the parser type
|
11045
11126
|
# @return [Symbol] a parser type that matches the filename
|
11046
11127
|
#
|
11047
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11128
|
+
# source://yard//lib/yard/parser/source_parser.rb#508
|
11048
11129
|
def parser_type_for_filename(filename); end
|
11049
11130
|
|
11050
11131
|
# Runs a {Handlers::Processor} object to post process the parsed statements.
|
11051
11132
|
#
|
11052
11133
|
# @return [void]
|
11053
11134
|
#
|
11054
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11135
|
+
# source://yard//lib/yard/parser/source_parser.rb#490
|
11055
11136
|
def post_process; end
|
11056
11137
|
|
11057
11138
|
class << self
|
@@ -14335,6 +14416,74 @@ end
|
|
14335
14416
|
# source://yard//lib/yard/server/adapter.rb#11
|
14336
14417
|
class YARD::Server::NotFoundError < ::RuntimeError; end
|
14337
14418
|
|
14419
|
+
# A server adapter to respond to requests using the Rack server infrastructure.
|
14420
|
+
#
|
14421
|
+
# @since 0.6.0
|
14422
|
+
#
|
14423
|
+
# source://yard//lib/yard/server/rack_adapter.rb#52
|
14424
|
+
class YARD::Server::RackAdapter < ::YARD::Server::Adapter
|
14425
|
+
include ::YARD::Server::HTTPUtils
|
14426
|
+
|
14427
|
+
# Responds to Rack requests and builds a response with the {Router}.
|
14428
|
+
#
|
14429
|
+
# @return [Array(Numeric,Hash,Array)] the Rack-style response
|
14430
|
+
# @since 0.6.0
|
14431
|
+
#
|
14432
|
+
# source://yard//lib/yard/server/rack_adapter.rb#57
|
14433
|
+
def call(env); end
|
14434
|
+
|
14435
|
+
# Starts the Rack server. This method will pass control to the server and
|
14436
|
+
# block.
|
14437
|
+
#
|
14438
|
+
# @return [void]
|
14439
|
+
# @since 0.6.0
|
14440
|
+
#
|
14441
|
+
# source://yard//lib/yard/server/rack_adapter.rb#70
|
14442
|
+
def start; end
|
14443
|
+
|
14444
|
+
private
|
14445
|
+
|
14446
|
+
# @since 0.6.0
|
14447
|
+
#
|
14448
|
+
# source://yard//lib/yard/server/rack_adapter.rb#79
|
14449
|
+
def print_start_message(server); end
|
14450
|
+
end
|
14451
|
+
|
14452
|
+
# This class wraps the {RackAdapter} into a Rack-compatible middleware.
|
14453
|
+
# See {#initialize} for a list of options to pass via Rack's +#use+ method.
|
14454
|
+
#
|
14455
|
+
# @example Using the RackMiddleware in a Rack application
|
14456
|
+
# libraries = {:mylib => [YARD::Server::LibraryVersion.new('mylib', nil, '/path/to/.yardoc')]}
|
14457
|
+
# use YARD::Server::RackMiddleware, :libraries => libraries
|
14458
|
+
# @note You must pass a +:libraries+ option to the RackMiddleware via +#use+. To
|
14459
|
+
# read about how to return a list of libraries, see {LibraryVersion} or look
|
14460
|
+
# at the example below.
|
14461
|
+
# @since 0.6.0
|
14462
|
+
#
|
14463
|
+
# source://yard//lib/yard/server/rack_adapter.rb#25
|
14464
|
+
class YARD::Server::RackMiddleware
|
14465
|
+
# Creates a new Rack-based middleware for serving YARD documentation.
|
14466
|
+
#
|
14467
|
+
# @option opts
|
14468
|
+
# @option opts
|
14469
|
+
# @option opts
|
14470
|
+
# @param app the next Rack middleware in the stack
|
14471
|
+
# @param opts [Hash] a customizable set of options
|
14472
|
+
# @return [RackMiddleware] a new instance of RackMiddleware
|
14473
|
+
# @since 0.6.0
|
14474
|
+
#
|
14475
|
+
# source://yard//lib/yard/server/rack_adapter.rb#35
|
14476
|
+
def initialize(app, opts = T.unsafe(nil)); end
|
14477
|
+
|
14478
|
+
# @since 0.6.0
|
14479
|
+
#
|
14480
|
+
# source://yard//lib/yard/server/rack_adapter.rb#41
|
14481
|
+
def call(env); end
|
14482
|
+
end
|
14483
|
+
|
14484
|
+
# source://yard//lib/yard/server/rack_adapter.rb#8
|
14485
|
+
YARD::Server::RackServer = Rackup::Server
|
14486
|
+
|
14338
14487
|
# A router class implements the logic used to recognize a request for a specific
|
14339
14488
|
# URL and run specific {Commands::Base commands}.
|
14340
14489
|
#
|
@@ -14555,6 +14704,50 @@ module YARD::Server::StaticCaching
|
|
14555
14704
|
def check_static_cache; end
|
14556
14705
|
end
|
14557
14706
|
|
14707
|
+
# The main adapter to initialize a WEBrick server.
|
14708
|
+
#
|
14709
|
+
# @since 0.6.0
|
14710
|
+
#
|
14711
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#7
|
14712
|
+
class YARD::Server::WebrickAdapter < ::YARD::Server::Adapter
|
14713
|
+
# Initializes a WEBrick server. If {Adapter#server_options} contains a
|
14714
|
+
# +:daemonize+ key set to true, the server will be daemonized.
|
14715
|
+
#
|
14716
|
+
# @since 0.6.0
|
14717
|
+
#
|
14718
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#10
|
14719
|
+
def start; end
|
14720
|
+
end
|
14721
|
+
|
14722
|
+
# The main WEBrick servlet implementation, accepting only GET requests.
|
14723
|
+
#
|
14724
|
+
# @since 0.6.0
|
14725
|
+
#
|
14726
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#20
|
14727
|
+
class YARD::Server::WebrickServlet < ::WEBrick::HTTPServlet::AbstractServlet
|
14728
|
+
# @return [WebrickServlet] a new instance of WebrickServlet
|
14729
|
+
# @since 0.6.0
|
14730
|
+
#
|
14731
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#23
|
14732
|
+
def initialize(server, adapter); end
|
14733
|
+
|
14734
|
+
# @since 0.6.0
|
14735
|
+
#
|
14736
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#21
|
14737
|
+
def adapter; end
|
14738
|
+
|
14739
|
+
# @since 0.6.0
|
14740
|
+
#
|
14741
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#21
|
14742
|
+
def adapter=(_arg0); end
|
14743
|
+
|
14744
|
+
# @private
|
14745
|
+
# @since 0.6.0
|
14746
|
+
#
|
14747
|
+
# source://yard//lib/yard/server/webrick_adapter.rb#29
|
14748
|
+
def do_GET(request, response); end
|
14749
|
+
end
|
14750
|
+
|
14558
14751
|
# Stubs marshal dumps and acts a delegate class for an object by path
|
14559
14752
|
#
|
14560
14753
|
# @private
|