lunchmoney 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +7 -0
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/check_pipeline.yml +2 -2
- data/.github/workflows/ci.yml +10 -2
- data/.github/workflows/release_pipeline.yml +1 -1
- data/.mdlrc +5 -0
- data/.rubocop.yml +1 -0
- data/.simplecov +30 -0
- data/.toys/.toys.rb +1 -0
- data/.toys/coverage.rb +5 -0
- data/.toys/mdl.rb +5 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +64 -37
- data/LICENSE +1 -1
- data/README.md +7 -3
- data/lib/lunchmoney/objects/crypto.rb +6 -1
- data/lib/lunchmoney/objects/object.rb +3 -1
- data/lib/lunchmoney/version.rb +1 -1
- data/sorbet/rbi/annotations/activesupport.rbi +11 -0
- data/sorbet/rbi/gems/{activesupport@7.1.3.rbi → activesupport@7.1.3.2.rbi} +23 -23
- data/sorbet/rbi/gems/chef-utils@18.4.2.rbi +8 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +376 -0
- data/sorbet/rbi/gems/dotenv@3.1.0.rbi +300 -0
- data/sorbet/rbi/gems/{i18n@1.14.1.rbi → i18n@1.14.4.rbi} +48 -43
- data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +127 -0
- data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3271 -0
- data/sorbet/rbi/gems/mdl@0.13.0.rbi +444 -0
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.22.3.rbi} +19 -18
- data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +313 -0
- data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +580 -0
- data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +628 -0
- data/sorbet/rbi/gems/{prism@0.19.0.rbi → prism@0.24.0.rbi} +8266 -7109
- data/sorbet/rbi/gems/{rack@3.0.8.rbi → rack@3.0.10.rbi} +83 -83
- data/sorbet/rbi/gems/{rbi@0.1.6.rbi → rbi@0.1.9.rbi} +114 -13
- data/sorbet/rbi/gems/{rubocop-ast@1.30.0.rbi → rubocop-ast@1.31.2.rbi} +61 -50
- data/sorbet/rbi/gems/{rubocop-minitest@0.34.5.rbi → rubocop-minitest@0.35.0.rbi} +34 -0
- data/sorbet/rbi/gems/{rubocop-rails@2.23.1.rbi → rubocop-rails@2.24.1.rbi} +159 -147
- data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.8.0.rbi} +24 -42
- data/sorbet/rbi/gems/{rubocop@1.60.2.rbi → rubocop@1.62.1.rbi} +807 -646
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +216 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2148 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +238 -0
- data/sorbet/rbi/gems/{tapioca@0.12.0.rbi → tapioca@0.13.1.rbi} +83 -62
- data/sorbet/rbi/gems/{thor@1.3.0.rbi → thor@1.3.1.rbi} +89 -50
- data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +8 -0
- data/sorbet/rbi/gems/{webmock@3.20.0.rbi → webmock@3.23.0.rbi} +25 -25
- data/sorbet/rbi/gems/{yard@0.9.34.rbi → yard@0.9.36.rbi} +194 -58
- data/sorbet/tapioca/require.rb +1 -0
- metadata +39 -23
- data/.DS_Store +0 -0
- data/.github/workflows/publish_gem.yml +0 -29
- data/sorbet/rbi/gems/dotenv@2.8.1.rbi +0 -234
- /data/sorbet/rbi/gems/{bigdecimal@3.1.6.rbi → bigdecimal@3.1.7.rbi} +0 -0
- /data/sorbet/rbi/gems/{drb@2.2.0.rbi → drb@2.2.1.rbi} +0 -0
- /data/sorbet/rbi/gems/{rubocop-shopify@2.14.0.rbi → rubocop-shopify@2.15.1.rbi} +0 -0
@@ -2480,7 +2480,7 @@ class YARD::CodeObjects::Base
|
|
2480
2480
|
# the paths are equal
|
2481
2481
|
# @return [Boolean] whether or not the objects are considered the same
|
2482
2482
|
#
|
2483
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2483
|
+
# source://yard//lib/yard/code_objects/base.rb#323
|
2484
2484
|
def ==(other); end
|
2485
2485
|
|
2486
2486
|
# Accesses a custom attribute on the object
|
@@ -2489,7 +2489,7 @@ class YARD::CodeObjects::Base
|
|
2489
2489
|
# @return [Object, nil] the custom attribute or nil if not found.
|
2490
2490
|
# @see #[]=
|
2491
2491
|
#
|
2492
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2492
|
+
# source://yard//lib/yard/code_objects/base.rb#343
|
2493
2493
|
def [](key); end
|
2494
2494
|
|
2495
2495
|
# Sets a custom attribute on the object
|
@@ -2499,7 +2499,7 @@ class YARD::CodeObjects::Base
|
|
2499
2499
|
# @return [void]
|
2500
2500
|
# @see #[]
|
2501
2501
|
#
|
2502
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2502
|
+
# source://yard//lib/yard/code_objects/base.rb#356
|
2503
2503
|
def []=(key, value); end
|
2504
2504
|
|
2505
2505
|
# Associates a file with a code object, optionally adding the line where it was defined.
|
@@ -2520,7 +2520,7 @@ class YARD::CodeObjects::Base
|
|
2520
2520
|
# @see Docstring#add_tag
|
2521
2521
|
# @since 0.8.4
|
2522
2522
|
#
|
2523
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2523
|
+
# source://yard//lib/yard/code_objects/base.rb#561
|
2524
2524
|
def add_tag(*tags); end
|
2525
2525
|
|
2526
2526
|
# The non-localized documentation string associated with the object
|
@@ -2547,7 +2547,7 @@ class YARD::CodeObjects::Base
|
|
2547
2547
|
# the locale of the documentation string.
|
2548
2548
|
# @return [Docstring] the documentation string
|
2549
2549
|
#
|
2550
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2550
|
+
# source://yard//lib/yard/code_objects/base.rb#405
|
2551
2551
|
def docstring(locale = T.unsafe(nil)); end
|
2552
2552
|
|
2553
2553
|
# Attaches a docstring to a code object by parsing the comments attached to the statement
|
@@ -2556,7 +2556,7 @@ class YARD::CodeObjects::Base
|
|
2556
2556
|
# @param comments [String, Array<String>, Docstring] the comments attached to the code object to be parsed
|
2557
2557
|
# into a docstring and meta tags.
|
2558
2558
|
#
|
2559
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2559
|
+
# source://yard//lib/yard/code_objects/base.rb#427
|
2560
2560
|
def docstring=(comments); end
|
2561
2561
|
|
2562
2562
|
# Marks whether or not the method is conditionally defined at runtime
|
@@ -2587,7 +2587,7 @@ class YARD::CodeObjects::Base
|
|
2587
2587
|
# the paths are equal
|
2588
2588
|
# @return [Boolean] whether or not the objects are considered the same
|
2589
2589
|
#
|
2590
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2590
|
+
# source://yard//lib/yard/code_objects/base.rb#323
|
2591
2591
|
def eql?(other); end
|
2592
2592
|
|
2593
2593
|
# Tests if another object is equal to this, including a proxy
|
@@ -2596,15 +2596,16 @@ class YARD::CodeObjects::Base
|
|
2596
2596
|
# the paths are equal
|
2597
2597
|
# @return [Boolean] whether or not the objects are considered the same
|
2598
2598
|
#
|
2599
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2599
|
+
# source://yard//lib/yard/code_objects/base.rb#323
|
2600
2600
|
def equal?(other); end
|
2601
2601
|
|
2602
2602
|
# Returns the filename the object was first parsed at, taking
|
2603
2603
|
# definitions with docstrings first.
|
2604
2604
|
#
|
2605
2605
|
# @return [String] a filename
|
2606
|
+
# @return [nil] if there is no file associated with the object
|
2606
2607
|
#
|
2607
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2608
|
+
# source://yard//lib/yard/code_objects/base.rb#307
|
2608
2609
|
def file; end
|
2609
2610
|
|
2610
2611
|
# The files the object was defined in. To add a file, use {#add_file}.
|
@@ -2629,7 +2630,7 @@ class YARD::CodeObjects::Base
|
|
2629
2630
|
# @return [String] the rendered template
|
2630
2631
|
# @see Templates::Engine#render
|
2631
2632
|
#
|
2632
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2633
|
+
# source://yard//lib/yard/code_objects/base.rb#505
|
2633
2634
|
def format(options = T.unsafe(nil)); end
|
2634
2635
|
|
2635
2636
|
# @return [String] the group this object is associated with
|
@@ -2649,19 +2650,19 @@ class YARD::CodeObjects::Base
|
|
2649
2650
|
# @return [Boolean]
|
2650
2651
|
# @see Docstring#has_tag?
|
2651
2652
|
#
|
2652
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2653
|
+
# source://yard//lib/yard/code_objects/base.rb#556
|
2653
2654
|
def has_tag?(name); end
|
2654
2655
|
|
2655
2656
|
# @return [Integer] the object's hash value (for equality checking)
|
2656
2657
|
#
|
2657
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2658
|
+
# source://yard//lib/yard/code_objects/base.rb#334
|
2658
2659
|
def hash; end
|
2659
2660
|
|
2660
2661
|
# Inspects the object, returning the type and path
|
2661
2662
|
#
|
2662
2663
|
# @return [String] a string describing the object
|
2663
2664
|
#
|
2664
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2665
|
+
# source://yard//lib/yard/code_objects/base.rb#513
|
2665
2666
|
def inspect; end
|
2666
2667
|
|
2667
2668
|
# Returns the line the object was first parsed at (or nil)
|
@@ -2669,13 +2670,13 @@ class YARD::CodeObjects::Base
|
|
2669
2670
|
# @return [Fixnum] the line where the object was first defined.
|
2670
2671
|
# @return [nil] if there is no line associated with the object
|
2671
2672
|
#
|
2672
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2673
|
+
# source://yard//lib/yard/code_objects/base.rb#315
|
2673
2674
|
def line; end
|
2674
2675
|
|
2675
2676
|
# @overload dynamic_attr_name
|
2676
2677
|
# @overload dynamic_attr_name=
|
2677
2678
|
#
|
2678
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2679
|
+
# source://yard//lib/yard/code_objects/base.rb#373
|
2679
2680
|
def method_missing(meth, *args, &block); end
|
2680
2681
|
|
2681
2682
|
# The name of the object
|
@@ -2703,7 +2704,7 @@ class YARD::CodeObjects::Base
|
|
2703
2704
|
# for {Registry.root}). If obj is nil, the object is unregistered
|
2704
2705
|
# from the Registry.
|
2705
2706
|
#
|
2706
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2707
|
+
# source://yard//lib/yard/code_objects/base.rb#522
|
2707
2708
|
def namespace=(obj); end
|
2708
2709
|
|
2709
2710
|
# The namespace the object is defined in. If the object is in the
|
@@ -2720,7 +2721,7 @@ class YARD::CodeObjects::Base
|
|
2720
2721
|
# for {Registry.root}). If obj is nil, the object is unregistered
|
2721
2722
|
# from the Registry.
|
2722
2723
|
#
|
2723
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2724
|
+
# source://yard//lib/yard/code_objects/base.rb#522
|
2724
2725
|
def parent=(obj); end
|
2725
2726
|
|
2726
2727
|
# Represents the unique path of the object. The default implementation
|
@@ -2733,19 +2734,19 @@ class YARD::CodeObjects::Base
|
|
2733
2734
|
# @return [String] the unique path of the object
|
2734
2735
|
# @see #sep
|
2735
2736
|
#
|
2736
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2737
|
+
# source://yard//lib/yard/code_objects/base.rb#453
|
2737
2738
|
def path; end
|
2738
2739
|
|
2739
2740
|
# @param other [Base, String] another code object (or object path)
|
2740
2741
|
# @return [String] the shortest relative path from this object to +other+
|
2741
2742
|
# @since 0.5.3
|
2742
2743
|
#
|
2743
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2744
|
+
# source://yard//lib/yard/code_objects/base.rb#475
|
2744
2745
|
def relative_path(other); end
|
2745
2746
|
|
2746
2747
|
# @return [Boolean] whether or not this object is a RootObject
|
2747
2748
|
#
|
2748
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2749
|
+
# source://yard//lib/yard/code_objects/base.rb#567
|
2749
2750
|
def root?; end
|
2750
2751
|
|
2751
2752
|
# Override this method with a custom component separator. For instance,
|
@@ -2756,7 +2757,7 @@ class YARD::CodeObjects::Base
|
|
2756
2757
|
# @return [String] the component that separates the namespace path
|
2757
2758
|
# and the name (default is {NSEP})
|
2758
2759
|
#
|
2759
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2760
|
+
# source://yard//lib/yard/code_objects/base.rb#576
|
2760
2761
|
def sep; end
|
2761
2762
|
|
2762
2763
|
# The one line signature representing an object. For a method, this will
|
@@ -2789,7 +2790,7 @@ class YARD::CodeObjects::Base
|
|
2789
2790
|
# @param statement [#source, String] the +Parser::Statement+ holding the source code or the raw source
|
2790
2791
|
# as a +String+ for the definition of the code object only (not the block)
|
2791
2792
|
#
|
2792
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2793
|
+
# source://yard//lib/yard/code_objects/base.rb#388
|
2793
2794
|
def source=(statement); end
|
2794
2795
|
|
2795
2796
|
# Language of the source code associated with the object. Defaults to
|
@@ -2812,14 +2813,14 @@ class YARD::CodeObjects::Base
|
|
2812
2813
|
#
|
2813
2814
|
# @see Docstring#tag
|
2814
2815
|
#
|
2815
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2816
|
+
# source://yard//lib/yard/code_objects/base.rb#548
|
2816
2817
|
def tag(name); end
|
2817
2818
|
|
2818
2819
|
# Gets a list of tags from the {#docstring}
|
2819
2820
|
#
|
2820
2821
|
# @see Docstring#tags
|
2821
2822
|
#
|
2822
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2823
|
+
# source://yard//lib/yard/code_objects/base.rb#552
|
2823
2824
|
def tags(name = T.unsafe(nil)); end
|
2824
2825
|
|
2825
2826
|
# @note Override this method if your object has a special title that does
|
@@ -2828,12 +2829,12 @@ class YARD::CodeObjects::Base
|
|
2828
2829
|
# @return [String] the display title for an object
|
2829
2830
|
# @see 0.8.4
|
2830
2831
|
#
|
2831
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2832
|
+
# source://yard//lib/yard/code_objects/base.rb#468
|
2832
2833
|
def title; end
|
2833
2834
|
|
2834
2835
|
# @return [nil] this object does not turn into an array
|
2835
2836
|
#
|
2836
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2837
|
+
# source://yard//lib/yard/code_objects/base.rb#337
|
2837
2838
|
def to_ary; end
|
2838
2839
|
|
2839
2840
|
# Represents the unique path of the object. The default implementation
|
@@ -2846,7 +2847,7 @@ class YARD::CodeObjects::Base
|
|
2846
2847
|
# @return [String] the unique path of the object
|
2847
2848
|
# @see #sep
|
2848
2849
|
#
|
2849
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2850
|
+
# source://yard//lib/yard/code_objects/base.rb#453
|
2850
2851
|
def to_s; end
|
2851
2852
|
|
2852
2853
|
# Default type is the lowercase class name without the "Object" suffix.
|
@@ -2854,7 +2855,7 @@ class YARD::CodeObjects::Base
|
|
2854
2855
|
#
|
2855
2856
|
# @return [Symbol] the type of code object this represents
|
2856
2857
|
#
|
2857
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2858
|
+
# source://yard//lib/yard/code_objects/base.rb#437
|
2858
2859
|
def type; end
|
2859
2860
|
|
2860
2861
|
# @return [Symbol] the visibility of an object (:public, :private, :protected)
|
@@ -2877,7 +2878,7 @@ class YARD::CodeObjects::Base
|
|
2877
2878
|
# @see #copy_to
|
2878
2879
|
# @since 0.8.0
|
2879
2880
|
#
|
2880
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2881
|
+
# source://yard//lib/yard/code_objects/base.rb#587
|
2881
2882
|
def copyable_attributes; end
|
2882
2883
|
|
2883
2884
|
private
|
@@ -2887,10 +2888,10 @@ class YARD::CodeObjects::Base
|
|
2887
2888
|
# @param source [String] the source code to format
|
2888
2889
|
# @return [String] formatted source
|
2889
2890
|
#
|
2890
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2891
|
+
# source://yard//lib/yard/code_objects/base.rb#599
|
2891
2892
|
def format_source(source); end
|
2892
2893
|
|
2893
|
-
# source://yard//lib/yard/code_objects/base.rb#
|
2894
|
+
# source://yard//lib/yard/code_objects/base.rb#606
|
2894
2895
|
def translate_docstring(locale); end
|
2895
2896
|
|
2896
2897
|
class << self
|
@@ -7405,13 +7406,13 @@ class YARD::I18n::Text
|
|
7405
7406
|
# block separated by one or more empty lines. Empty line is a
|
7406
7407
|
# line that contains only zero or more whitespaces. It may
|
7407
7408
|
# called many times.
|
7408
|
-
# @yieldparam text [String] the text of extracted paragraph.
|
7409
|
-
# @yieldparam start_line_no [Integer] the start line number of
|
7410
|
-
# extracted paragraph.
|
7411
7409
|
# @yieldparam name [String] the name of extracted attribute.
|
7412
7410
|
# @yieldparam value [String] the value of extracted attribute.
|
7413
7411
|
# @yieldparam line_no [Integer] the defined line number of extracted
|
7414
7412
|
# attribute.
|
7413
|
+
# @yieldparam text [String] the text of extracted paragraph.
|
7414
|
+
# @yieldparam start_line_no [Integer] the start line number of
|
7415
|
+
# extracted paragraph.
|
7415
7416
|
#
|
7416
7417
|
# source://yard//lib/yard/i18n/text.rb#35
|
7417
7418
|
def extract_messages; end
|
@@ -7635,7 +7636,7 @@ class YARD::Logger < ::Logger
|
|
7635
7636
|
# source://yard//lib/yard/logging.rb#201
|
7636
7637
|
def format_log(sev, _time, _prog, msg); end
|
7637
7638
|
|
7638
|
-
# source://logger/1.
|
7639
|
+
# source://logger/1.6.0/logger.rb#684
|
7639
7640
|
def print_no_newline(msg); end
|
7640
7641
|
|
7641
7642
|
class << self
|
@@ -9972,7 +9973,7 @@ end
|
|
9972
9973
|
|
9973
9974
|
# source://yard//lib/yard/parser/ruby/ast_node.rb#479
|
9974
9975
|
class YARD::Parser::Ruby::MethodDefinitionNode < ::YARD::Parser::Ruby::AstNode
|
9975
|
-
def block(
|
9976
|
+
def block(n = T.unsafe(nil)); end
|
9976
9977
|
|
9977
9978
|
# @return [Boolean]
|
9978
9979
|
#
|
@@ -11033,10 +11034,10 @@ class YARD::Parser::SourceParser
|
|
11033
11034
|
|
11034
11035
|
# @since 0.5.6
|
11035
11036
|
#
|
11036
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11037
|
+
# source://yard//lib/yard/parser/source_parser.rb#515
|
11037
11038
|
def parser_class; end
|
11038
11039
|
|
11039
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11040
|
+
# source://yard//lib/yard/parser/source_parser.rb#500
|
11040
11041
|
def parser_type=(value); end
|
11041
11042
|
|
11042
11043
|
# Guesses the parser type to use depending on the file extension.
|
@@ -11044,14 +11045,14 @@ class YARD::Parser::SourceParser
|
|
11044
11045
|
# @param filename [String] the filename to use to guess the parser type
|
11045
11046
|
# @return [Symbol] a parser type that matches the filename
|
11046
11047
|
#
|
11047
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11048
|
+
# source://yard//lib/yard/parser/source_parser.rb#508
|
11048
11049
|
def parser_type_for_filename(filename); end
|
11049
11050
|
|
11050
11051
|
# Runs a {Handlers::Processor} object to post process the parsed statements.
|
11051
11052
|
#
|
11052
11053
|
# @return [void]
|
11053
11054
|
#
|
11054
|
-
# source://yard//lib/yard/parser/source_parser.rb#
|
11055
|
+
# source://yard//lib/yard/parser/source_parser.rb#490
|
11055
11056
|
def post_process; end
|
11056
11057
|
|
11057
11058
|
class << self
|
@@ -11128,10 +11129,6 @@ class YARD::Parser::SourceParser
|
|
11128
11129
|
# To register a callback that is called before the entire list of files
|
11129
11130
|
# is processed, see {before_parse_list}.
|
11130
11131
|
#
|
11131
|
-
# @example Cancel parsing of any test_*.rb files
|
11132
|
-
# SourceParser.before_parse_file do |parser|
|
11133
|
-
# return false if parser.file =~ /^test_.+\.rb$/
|
11134
|
-
# end
|
11135
11132
|
# @example Installing a simple callback
|
11136
11133
|
# SourceParser.before_parse_file do |parser|
|
11137
11134
|
# puts "I'm parsing #{parser.file}"
|
@@ -11141,9 +11138,13 @@ class YARD::Parser::SourceParser
|
|
11141
11138
|
# "I'm parsing lib/foo.rb"
|
11142
11139
|
# "I'm parsing lib/foo_bar.rb"
|
11143
11140
|
# "I'm parsing lib/last_file.rb"
|
11141
|
+
# @example Cancel parsing of any test_*.rb files
|
11142
|
+
# SourceParser.before_parse_file do |parser|
|
11143
|
+
# return false if parser.file =~ /^test_.+\.rb$/
|
11144
|
+
# end
|
11144
11145
|
# @return [Proc] the yielded block
|
11145
|
-
# @see before_parse_list
|
11146
11146
|
# @see after_parse_file
|
11147
|
+
# @see before_parse_list
|
11147
11148
|
# @since 0.7.0
|
11148
11149
|
# @yield [parser] the yielded block is called once before each
|
11149
11150
|
# file that is parsed. This might happen many times for a single
|
@@ -11167,6 +11168,12 @@ class YARD::Parser::SourceParser
|
|
11167
11168
|
# via {parse}. The block passed to this method will be called on
|
11168
11169
|
# subsequent parse calls.
|
11169
11170
|
#
|
11171
|
+
# @example Installing a simple callback
|
11172
|
+
# SourceParser.before_parse_list do |files, globals|
|
11173
|
+
# puts "Starting to parse..."
|
11174
|
+
# end
|
11175
|
+
# YARD.parse('lib/**/*.rb')
|
11176
|
+
# # prints "Starting to parse..."
|
11170
11177
|
# @example Setting global state
|
11171
11178
|
# SourceParser.before_parse_list do |files, globals|
|
11172
11179
|
# globals.method_count = 0
|
@@ -11180,12 +11187,6 @@ class YARD::Parser::SourceParser
|
|
11180
11187
|
# end
|
11181
11188
|
# YARD.parse
|
11182
11189
|
# # Prints: "Found 37 methods"
|
11183
|
-
# @example Installing a simple callback
|
11184
|
-
# SourceParser.before_parse_list do |files, globals|
|
11185
|
-
# puts "Starting to parse..."
|
11186
|
-
# end
|
11187
|
-
# YARD.parse('lib/**/*.rb')
|
11188
|
-
# # prints "Starting to parse..."
|
11189
11190
|
# @example Using a global callback to cancel parsing
|
11190
11191
|
# SourceParser.before_parse_list do |files, globals|
|
11191
11192
|
# return false if files.include?('foo.rb')
|
@@ -11194,8 +11195,8 @@ class YARD::Parser::SourceParser
|
|
11194
11195
|
# YARD.parse(['foo.rb', 'bar.rb']) # callback cancels this method
|
11195
11196
|
# YARD.parse('bar.rb') # parses normally
|
11196
11197
|
# @return [Proc] the yielded block
|
11197
|
-
# @see before_parse_file
|
11198
11198
|
# @see after_parse_list
|
11199
|
+
# @see before_parse_file
|
11199
11200
|
# @since 0.7.0
|
11200
11201
|
# @yield [files, globals] the yielded block is called once before
|
11201
11202
|
# parsing all files
|
@@ -11358,6 +11359,141 @@ YARD::ROOT = T.let(T.unsafe(nil), String)
|
|
11358
11359
|
# source://yard//lib/yard/autoload.rb#192
|
11359
11360
|
module YARD::Rake; end
|
11360
11361
|
|
11362
|
+
# The rake task to run {CLI::Yardoc} and generate documentation.
|
11363
|
+
#
|
11364
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#8
|
11365
|
+
class YARD::Rake::YardocTask < ::Rake::TaskLib
|
11366
|
+
# Creates a new task with name +name+.
|
11367
|
+
#
|
11368
|
+
# @param name [String, Symbol] the name of the rake task
|
11369
|
+
# @return [YardocTask] a new instance of YardocTask
|
11370
|
+
# @yield a block to allow any options to be modified on the task
|
11371
|
+
# @yieldparam _self [YardocTask] the task object to allow any parameters
|
11372
|
+
# to be changed.
|
11373
|
+
#
|
11374
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#50
|
11375
|
+
def initialize(name = T.unsafe(nil)); end
|
11376
|
+
|
11377
|
+
# Runs a +Proc+ after the task
|
11378
|
+
#
|
11379
|
+
# @return [Proc] a proc to call after running the task
|
11380
|
+
#
|
11381
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#36
|
11382
|
+
def after; end
|
11383
|
+
|
11384
|
+
# Runs a +Proc+ after the task
|
11385
|
+
#
|
11386
|
+
# @return [Proc] a proc to call after running the task
|
11387
|
+
#
|
11388
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#36
|
11389
|
+
def after=(_arg0); end
|
11390
|
+
|
11391
|
+
# Runs a +Proc+ before the task
|
11392
|
+
#
|
11393
|
+
# @return [Proc] a proc to call before running the task
|
11394
|
+
#
|
11395
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#32
|
11396
|
+
def before; end
|
11397
|
+
|
11398
|
+
# Runs a +Proc+ before the task
|
11399
|
+
#
|
11400
|
+
# @return [Proc] a proc to call before running the task
|
11401
|
+
#
|
11402
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#32
|
11403
|
+
def before=(_arg0); end
|
11404
|
+
|
11405
|
+
# The Ruby source files (and any extra documentation files separated by '-')
|
11406
|
+
# to process.
|
11407
|
+
#
|
11408
|
+
# @example Task files assignment
|
11409
|
+
# YARD::Rake::YardocTask.new do |t|
|
11410
|
+
# t.files = ['app/**/*.rb', 'lib/**/*.rb', '-', 'doc/FAQ.md', 'doc/Changes.md']
|
11411
|
+
# end
|
11412
|
+
# @return [Array<String>] a list of files
|
11413
|
+
#
|
11414
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#28
|
11415
|
+
def files; end
|
11416
|
+
|
11417
|
+
# The Ruby source files (and any extra documentation files separated by '-')
|
11418
|
+
# to process.
|
11419
|
+
#
|
11420
|
+
# @example Task files assignment
|
11421
|
+
# YARD::Rake::YardocTask.new do |t|
|
11422
|
+
# t.files = ['app/**/*.rb', 'lib/**/*.rb', '-', 'doc/FAQ.md', 'doc/Changes.md']
|
11423
|
+
# end
|
11424
|
+
# @return [Array<String>] a list of files
|
11425
|
+
#
|
11426
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#28
|
11427
|
+
def files=(_arg0); end
|
11428
|
+
|
11429
|
+
# The name of the task
|
11430
|
+
#
|
11431
|
+
# @return [String] the task name
|
11432
|
+
#
|
11433
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#11
|
11434
|
+
def name; end
|
11435
|
+
|
11436
|
+
# The name of the task
|
11437
|
+
#
|
11438
|
+
# @return [String] the task name
|
11439
|
+
#
|
11440
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#11
|
11441
|
+
def name=(_arg0); end
|
11442
|
+
|
11443
|
+
# Options to pass to {CLI::Yardoc}
|
11444
|
+
#
|
11445
|
+
# @return [Array<String>] the options passed to the commandline utility
|
11446
|
+
#
|
11447
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#15
|
11448
|
+
def options; end
|
11449
|
+
|
11450
|
+
# Options to pass to {CLI::Yardoc}
|
11451
|
+
#
|
11452
|
+
# @return [Array<String>] the options passed to the commandline utility
|
11453
|
+
#
|
11454
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#15
|
11455
|
+
def options=(_arg0); end
|
11456
|
+
|
11457
|
+
# Options to pass to {CLI::Stats}
|
11458
|
+
#
|
11459
|
+
# @return [Array<String>] the options passed to the stats utility
|
11460
|
+
#
|
11461
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#19
|
11462
|
+
def stats_options; end
|
11463
|
+
|
11464
|
+
# Options to pass to {CLI::Stats}
|
11465
|
+
#
|
11466
|
+
# @return [Array<String>] the options passed to the stats utility
|
11467
|
+
#
|
11468
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#19
|
11469
|
+
def stats_options=(_arg0); end
|
11470
|
+
|
11471
|
+
# @return [Verifier, Proc] an optional {Verifier} to run against all objects
|
11472
|
+
# being generated. Any object that the verifier returns false for will be
|
11473
|
+
# excluded from documentation. This attribute can also be a lambda.
|
11474
|
+
# @see Verifier
|
11475
|
+
#
|
11476
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#42
|
11477
|
+
def verifier; end
|
11478
|
+
|
11479
|
+
# @return [Verifier, Proc] an optional {Verifier} to run against all objects
|
11480
|
+
# being generated. Any object that the verifier returns false for will be
|
11481
|
+
# excluded from documentation. This attribute can also be a lambda.
|
11482
|
+
# @see Verifier
|
11483
|
+
#
|
11484
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#42
|
11485
|
+
def verifier=(_arg0); end
|
11486
|
+
|
11487
|
+
protected
|
11488
|
+
|
11489
|
+
# Defines the rake task
|
11490
|
+
#
|
11491
|
+
# @return [void]
|
11492
|
+
#
|
11493
|
+
# source://yard//lib/yard/rake/yardoc_task.rb#68
|
11494
|
+
def define; end
|
11495
|
+
end
|
11496
|
+
|
11361
11497
|
# The +Registry+ is the centralized data store for all {CodeObjects} created
|
11362
11498
|
# during parsing. The storage is a key value store with the object's path
|
11363
11499
|
# (see {CodeObjects::Base#path}) as the key and the object itself as the value.
|
@@ -11587,22 +11723,22 @@ module YARD::Registry
|
|
11587
11723
|
# Attempts to find an object by name starting at +namespace+, performing
|
11588
11724
|
# a lookup similar to Ruby's method of resolving a constant in a namespace.
|
11589
11725
|
#
|
11726
|
+
# @example Looks for instance method #reverse starting from A::B::C
|
11727
|
+
# Registry.resolve(P("A::B::C"), "#reverse")
|
11590
11728
|
# @example Looks for a constant in the root namespace
|
11591
11729
|
# Registry.resolve(nil, 'CONSTANT')
|
11592
11730
|
# @example Looks for a class method respecting the inheritance tree
|
11593
11731
|
# Registry.resolve(myclass, 'mymethod', true)
|
11594
|
-
# @example Looks for instance method #reverse starting from A::B::C
|
11595
|
-
# Registry.resolve(P("A::B::C"), "#reverse")
|
11596
11732
|
# @example Looks for a constant but returns a proxy if not found
|
11597
11733
|
# Registry.resolve(P('A::B::C'), 'D', false, true) # => #<yardoc proxy A::B::C::D>
|
11598
11734
|
# @example Looks for a complex path from a namespace
|
11599
11735
|
# Registry.resolve(P('A::B'), 'B::D') # => #<yardoc class A::B::D>
|
11600
|
-
# @param inheritance [Boolean] Follows inheritance chain (mixins, superclass)
|
11601
|
-
# when performing name resolution if set to +true+.
|
11602
11736
|
# @param namespace [CodeObjects::NamespaceObject, nil] the starting namespace
|
11603
11737
|
# (module or class). If +nil+ or +:root+, starts from the {root} object.
|
11604
11738
|
# @param name [String, Symbol] the name (or complex path) to look for from
|
11605
11739
|
# +namespace+.
|
11740
|
+
# @param inheritance [Boolean] Follows inheritance chain (mixins, superclass)
|
11741
|
+
# when performing name resolution if set to +true+.
|
11606
11742
|
# @param proxy_fallback [Boolean] If +true+, returns a proxy representing
|
11607
11743
|
# the unresolved path (namespace + name) if no object is found.
|
11608
11744
|
# @param type [Symbol, nil] the {CodeObjects::Base#type} that the resolved
|
@@ -11760,12 +11896,12 @@ class YARD::RegistryResolver
|
|
11760
11896
|
# object can be returned if the lookup fails for future resolution. The
|
11761
11897
|
# proxy will be type hinted with the +type+ used in the original lookup.
|
11762
11898
|
#
|
11763
|
-
# @example A lookup on a method through the inheritance tree
|
11764
|
-
# resolver.lookup_by_math("A::B#foo", inheritance: true)
|
11765
11899
|
# @example A lookup from root
|
11766
11900
|
# resolver.lookup_by_path("A::B::C")
|
11767
11901
|
# @example A lookup from the A::B namespace
|
11768
11902
|
# resolver.lookup_by_path("C", namespace: P("A::B"))
|
11903
|
+
# @example A lookup on a method through the inheritance tree
|
11904
|
+
# resolver.lookup_by_math("A::B#foo", inheritance: true)
|
11769
11905
|
# @option opts
|
11770
11906
|
# @option opts
|
11771
11907
|
# @option opts
|