repeatable 1.1.0 → 1.2.1

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.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +22 -21
  3. data/.ruby-version +1 -0
  4. data/.yardopts +1 -0
  5. data/CHANGELOG.md +24 -1
  6. data/Gemfile +3 -1
  7. data/Gemfile.lock +113 -54
  8. data/README.md +25 -5
  9. data/bin/tapioca +29 -0
  10. data/lib/repeatable/conversions.rb +2 -1
  11. data/lib/repeatable/expression/base.rb +6 -0
  12. data/lib/repeatable/expression/biweekly.rb +1 -0
  13. data/lib/repeatable/expression/date.rb +2 -0
  14. data/lib/repeatable/expression/day_in_month.rb +1 -0
  15. data/lib/repeatable/expression/difference.rb +1 -0
  16. data/lib/repeatable/expression/exact_date.rb +1 -0
  17. data/lib/repeatable/expression/intersection.rb +2 -0
  18. data/lib/repeatable/expression/range_in_year.rb +3 -0
  19. data/lib/repeatable/expression/set.rb +3 -2
  20. data/lib/repeatable/expression/union.rb +2 -0
  21. data/lib/repeatable/expression/weekday.rb +1 -0
  22. data/lib/repeatable/expression/weekday_in_month.rb +1 -0
  23. data/lib/repeatable/expression.rb +1 -0
  24. data/lib/repeatable/last_date_of_month.rb +1 -0
  25. data/lib/repeatable/parse_error.rb +1 -0
  26. data/lib/repeatable/parser.rb +1 -0
  27. data/lib/repeatable/schedule.rb +6 -0
  28. data/lib/repeatable/types.rb +1 -0
  29. data/lib/repeatable/version.rb +2 -1
  30. data/lib/repeatable.rb +1 -0
  31. data/rbi/repeatable.rbi +9 -3
  32. data/sorbet/config +2 -1
  33. data/sorbet/rbi/annotations/.gitattributes +1 -0
  34. data/sorbet/rbi/{sorbet-typed/lib/rainbow/all → annotations}/rainbow.rbi +23 -30
  35. data/sorbet/rbi/gems/.gitattributes +1 -0
  36. data/sorbet/rbi/gems/ast@2.4.3.rbi +584 -0
  37. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  38. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  39. data/sorbet/rbi/gems/commander@5.0.0.rbi +9 -0
  40. data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +1134 -0
  41. data/sorbet/rbi/gems/docile@1.4.1.rbi +376 -0
  42. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  43. data/sorbet/rbi/gems/highline@3.0.1.rbi +9 -0
  44. data/sorbet/rbi/gems/json@2.13.2.rbi +2087 -0
  45. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +14243 -0
  46. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +239 -0
  47. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  48. data/sorbet/rbi/gems/method_source@1.1.0.rbi +304 -0
  49. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  50. data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
  51. data/sorbet/rbi/gems/parlour@9.1.2.rbi +3071 -0
  52. data/sorbet/rbi/gems/parser@3.3.9.0.rbi +7337 -0
  53. data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
  54. data/sorbet/rbi/gems/pry@0.15.2.rbi +10265 -0
  55. data/sorbet/rbi/gems/racc@1.8.1.rbi +164 -0
  56. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  57. data/sorbet/rbi/gems/rake@13.3.0.rbi +3031 -0
  58. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  59. data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
  60. data/sorbet/rbi/gems/regexp_parser@2.11.2.rbi +3845 -0
  61. data/sorbet/rbi/gems/rexml@3.4.3.rbi +5285 -0
  62. data/sorbet/rbi/gems/rspec-core@3.13.5.rbi +11238 -0
  63. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +8189 -0
  64. data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +5350 -0
  65. data/sorbet/rbi/gems/rspec-support@3.13.5.rbi +1627 -0
  66. data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
  67. data/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi +7734 -0
  68. data/sorbet/rbi/gems/rubocop-performance@1.25.0.rbi +9 -0
  69. data/sorbet/rbi/gems/rubocop@1.80.2.rbi +63354 -0
  70. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  71. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
  72. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  73. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +239 -0
  74. data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
  75. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +8 -0
  76. data/sorbet/rbi/gems/standard-performance@1.8.0.rbi +9 -0
  77. data/sorbet/rbi/gems/standard@1.51.0.rbi +935 -0
  78. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
  79. data/sorbet/rbi/gems/thor@1.4.0.rbi +4399 -0
  80. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
  81. data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
  82. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  83. data/sorbet/rbi/gems/yard@0.9.37.rbi +18378 -0
  84. data/sorbet/tapioca/config.yml +13 -0
  85. data/sorbet/tapioca/require.rb +4 -0
  86. metadata +59 -39
  87. data/sorbet/rbi/gems/ast.rbi +0 -49
  88. data/sorbet/rbi/gems/coderay.rbi +0 -285
  89. data/sorbet/rbi/gems/commander.rbi +0 -197
  90. data/sorbet/rbi/gems/docile.rbi +0 -36
  91. data/sorbet/rbi/gems/highline.rbi +0 -577
  92. data/sorbet/rbi/gems/method_source.rbi +0 -64
  93. data/sorbet/rbi/gems/parallel.rbi +0 -83
  94. data/sorbet/rbi/gems/parlour.rbi +0 -840
  95. data/sorbet/rbi/gems/parser.rbi +0 -1950
  96. data/sorbet/rbi/gems/pry.rbi +0 -1898
  97. data/sorbet/rbi/gems/rainbow.rbi +0 -118
  98. data/sorbet/rbi/gems/rake.rbi +0 -646
  99. data/sorbet/rbi/gems/regexp_parser.rbi +0 -926
  100. data/sorbet/rbi/gems/repeatable.rbi +0 -13
  101. data/sorbet/rbi/gems/rexml.rbi +0 -583
  102. data/sorbet/rbi/gems/rspec-core.rbi +0 -1919
  103. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -1150
  104. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -1100
  105. data/sorbet/rbi/gems/rspec-support.rbi +0 -280
  106. data/sorbet/rbi/gems/rspec.rbi +0 -15
  107. data/sorbet/rbi/gems/rubocop-ast.rbi +0 -1356
  108. data/sorbet/rbi/gems/rubocop-performance.rbi +0 -487
  109. data/sorbet/rbi/gems/rubocop.rbi +0 -7923
  110. data/sorbet/rbi/gems/ruby-progressbar.rbi +0 -304
  111. data/sorbet/rbi/gems/simplecov-html.rbi +0 -35
  112. data/sorbet/rbi/gems/simplecov.rbi +0 -419
  113. data/sorbet/rbi/gems/simplecov_json_formatter.rbi +0 -47
  114. data/sorbet/rbi/gems/standard.rbi +0 -130
  115. data/sorbet/rbi/gems/unicode-display_width.rbi +0 -20
  116. data/sorbet/rbi/hidden-definitions/errors.txt +0 -4273
  117. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -9013
  118. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +0 -645
  119. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +0 -24
  120. data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +0 -12
  121. data/sorbet/rbi/sorbet-typed/lib/rubocop-performance/~>1.6/rubocop-performance.rbi +0 -149
@@ -0,0 +1,304 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `method_source` gem.
5
+ # Please instead update this file by running `bin/tapioca gem method_source`.
6
+
7
+
8
+ # source://method_source//lib/method_source.rb#163
9
+ class Method
10
+ include ::MethodSource::SourceLocation::MethodExtensions
11
+ include ::MethodSource::MethodExtensions
12
+ end
13
+
14
+ # source://method_source//lib/method_source/version.rb#1
15
+ module MethodSource
16
+ extend ::MethodSource::CodeHelpers
17
+
18
+ class << self
19
+ # Clear cache.
20
+ #
21
+ # source://method_source//lib/method_source.rb#59
22
+ def clear_cache; end
23
+
24
+ # Helper method responsible for opening source file and buffering up
25
+ # the comments for a specified method. Defined here to avoid polluting
26
+ # `Method` class.
27
+ #
28
+ # @param source_location [Array] The array returned by Method#source_location
29
+ # @param method_name [String]
30
+ # @raise [SourceNotFoundError]
31
+ # @return [String] The comments up to the point of the method.
32
+ #
33
+ # source://method_source//lib/method_source.rb#38
34
+ def comment_helper(source_location, name = T.unsafe(nil)); end
35
+
36
+ # @deprecated — use MethodSource::CodeHelpers#expression_at
37
+ #
38
+ # source://method_source//lib/method_source.rb#71
39
+ def extract_code(source_location); end
40
+
41
+ # Load a memoized copy of the lines in a file.
42
+ #
43
+ # @param file_name [String]
44
+ # @param method_name [String]
45
+ # @raise [SourceNotFoundError]
46
+ # @return [Array<String>] the contents of the file
47
+ #
48
+ # source://method_source//lib/method_source.rb#51
49
+ def lines_for(file_name, name = T.unsafe(nil)); end
50
+
51
+ # Helper method responsible for extracting method body.
52
+ # Defined here to avoid polluting `Method` class.
53
+ #
54
+ # @param source_location [Array] The array returned by Method#source_location
55
+ # @param method_name [String]
56
+ # @return [String] The method body
57
+ #
58
+ # source://method_source//lib/method_source.rb#23
59
+ def source_helper(source_location, name = T.unsafe(nil)); end
60
+
61
+ # @deprecated — use MethodSource::CodeHelpers#complete_expression?
62
+ # @return [Boolean]
63
+ #
64
+ # source://method_source//lib/method_source.rb#64
65
+ def valid_expression?(str); end
66
+ end
67
+ end
68
+
69
+ # source://method_source//lib/method_source/code_helpers.rb#3
70
+ module MethodSource::CodeHelpers
71
+ # Retrieve the comment describing the expression on the given line of the given file.
72
+ #
73
+ # This is useful to get module or method documentation.
74
+ #
75
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
76
+ # a String or an Array of lines.
77
+ # @param line_number [Integer] The line number at which to look.
78
+ # NOTE: The first line in a file is line 1!
79
+ # @return [String] The comment
80
+ #
81
+ # source://method_source//lib/method_source/code_helpers.rb#52
82
+ def comment_describing(file, line_number); end
83
+
84
+ # Determine if a string of code is a complete Ruby expression.
85
+ #
86
+ # @example
87
+ # complete_expression?("class Hello") #=> false
88
+ # complete_expression?("class Hello; end") #=> true
89
+ # complete_expression?("class 123") #=> SyntaxError: unexpected tINTEGER
90
+ # @param code [String] The code to validate.
91
+ # @raise [SyntaxError] Any SyntaxError that does not represent incompleteness.
92
+ # @return [Boolean] Whether or not the code is a complete Ruby expression.
93
+ #
94
+ # source://method_source//lib/method_source/code_helpers.rb#66
95
+ def complete_expression?(str); end
96
+
97
+ # Retrieve the first expression starting on the given line of the given file.
98
+ #
99
+ # This is useful to get module or method source code.
100
+ #
101
+ # line 1!
102
+ #
103
+ # @option options
104
+ # @option options
105
+ # @param file [Array<String>, File, String] The file to parse, either as a File or as
106
+ # @param line_number [Integer] The line number at which to look.
107
+ # NOTE: The first line in a file is
108
+ # @param options [Hash] The optional configuration parameters.
109
+ # @raise [SyntaxError] If the first complete expression can't be identified
110
+ # @return [String] The first complete expression
111
+ #
112
+ # source://method_source//lib/method_source/code_helpers.rb#20
113
+ def expression_at(file, line_number, options = T.unsafe(nil)); end
114
+
115
+ private
116
+
117
+ # Get the first expression from the input.
118
+ #
119
+ # @param lines [Array<String>]
120
+ # @param consume [Integer] A number of lines to automatically
121
+ # consume (add to the expression buffer) without checking for validity.
122
+ # @raise [SyntaxError]
123
+ # @return [String] a valid ruby expression
124
+ # @yield a clean-up function to run before checking for complete_expression
125
+ #
126
+ # source://method_source//lib/method_source/code_helpers.rb#92
127
+ def extract_first_expression(lines, consume = T.unsafe(nil), &block); end
128
+
129
+ # Get the last comment from the input.
130
+ #
131
+ # @param lines [Array<String>]
132
+ # @return [String]
133
+ #
134
+ # source://method_source//lib/method_source/code_helpers.rb#106
135
+ def extract_last_comment(lines); end
136
+ end
137
+
138
+ # An exception matcher that matches only subsets of SyntaxErrors that can be
139
+ # fixed by adding more input to the buffer.
140
+ #
141
+ # source://method_source//lib/method_source/code_helpers.rb#124
142
+ module MethodSource::CodeHelpers::IncompleteExpression
143
+ class << self
144
+ # source://method_source//lib/method_source/code_helpers.rb#137
145
+ def ===(ex); end
146
+
147
+ # @return [Boolean]
148
+ #
149
+ # source://method_source//lib/method_source/code_helpers.rb#149
150
+ def rbx?; end
151
+ end
152
+ end
153
+
154
+ # source://method_source//lib/method_source/code_helpers.rb#125
155
+ MethodSource::CodeHelpers::IncompleteExpression::GENERIC_REGEXPS = T.let(T.unsafe(nil), Array)
156
+
157
+ # source://method_source//lib/method_source/code_helpers.rb#133
158
+ MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsafe(nil), Array)
159
+
160
+ # This module is to be included by `Method` and `UnboundMethod` and
161
+ # provides the `#source` functionality
162
+ #
163
+ # source://method_source//lib/method_source.rb#77
164
+ module MethodSource::MethodExtensions
165
+ # Return the comments associated with the method class/module.
166
+ #
167
+ # @example
168
+ # MethodSource::MethodExtensions.method(:included).module_comment
169
+ # =>
170
+ # # This module is to be included by `Method` and `UnboundMethod` and
171
+ # # provides the `#source` functionality
172
+ # @raise SourceNotFoundException
173
+ # @return [String] The method's comments as a string
174
+ #
175
+ # source://method_source//lib/method_source.rb#139
176
+ def class_comment; end
177
+
178
+ # Return the comments associated with the method as a string.
179
+ #
180
+ # @example
181
+ # Set.instance_method(:clear).comment.display
182
+ # =>
183
+ # # Removes all elements and returns self.
184
+ # @raise SourceNotFoundException
185
+ # @return [String] The method's comments as a string
186
+ #
187
+ # source://method_source//lib/method_source.rb#126
188
+ def comment; end
189
+
190
+ # Return the comments associated with the method class/module.
191
+ #
192
+ # @example
193
+ # MethodSource::MethodExtensions.method(:included).module_comment
194
+ # =>
195
+ # # This module is to be included by `Method` and `UnboundMethod` and
196
+ # # provides the `#source` functionality
197
+ # @raise SourceNotFoundException
198
+ # @return [String] The method's comments as a string
199
+ #
200
+ # source://method_source//lib/method_source.rb#139
201
+ def module_comment; end
202
+
203
+ # Return the sourcecode for the method as a string
204
+ #
205
+ # @example
206
+ # Set.instance_method(:clear).source.display
207
+ # =>
208
+ # def clear
209
+ # @hash.clear
210
+ # self
211
+ # end
212
+ # @raise SourceNotFoundException
213
+ # @return [String] The method sourcecode as a string
214
+ #
215
+ # source://method_source//lib/method_source.rb#114
216
+ def source; end
217
+
218
+ class << self
219
+ # We use the included hook to patch Method#source on rubinius.
220
+ # We need to use the included hook as Rubinius defines a `source`
221
+ # on Method so including a module will have no effect (as it's
222
+ # higher up the MRO).
223
+ #
224
+ # @param klass [Class] The class that includes the module.
225
+ #
226
+ # source://method_source//lib/method_source.rb#84
227
+ def included(klass); end
228
+ end
229
+ end
230
+
231
+ # source://method_source//lib/method_source/source_location.rb#2
232
+ module MethodSource::ReeSourceLocation
233
+ # Ruby enterprise edition provides all the information that's
234
+ # needed, in a slightly different way.
235
+ #
236
+ # source://method_source//lib/method_source/source_location.rb#5
237
+ def source_location; end
238
+ end
239
+
240
+ # source://method_source//lib/method_source/source_location.rb#10
241
+ module MethodSource::SourceLocation; end
242
+
243
+ # source://method_source//lib/method_source/source_location.rb#11
244
+ module MethodSource::SourceLocation::MethodExtensions
245
+ # Return the source location of a method for Ruby 1.8.
246
+ #
247
+ # @return [Array] A two element array. First element is the
248
+ # file, second element is the line in the file where the
249
+ # method definition is found.
250
+ #
251
+ # source://method_source//lib/method_source/source_location.rb#40
252
+ def source_location; end
253
+
254
+ private
255
+
256
+ # source://method_source//lib/method_source/source_location.rb#26
257
+ def trace_func(event, file, line, id, binding, classname); end
258
+ end
259
+
260
+ # source://method_source//lib/method_source/source_location.rb#54
261
+ module MethodSource::SourceLocation::ProcExtensions
262
+ # Return the source location for a Proc (in implementations
263
+ # without Proc#source_location)
264
+ #
265
+ # @return [Array] A two element array. First element is the
266
+ # file, second element is the line in the file where the
267
+ # proc definition is found.
268
+ #
269
+ # source://method_source//lib/method_source/source_location.rb#74
270
+ def source_location; end
271
+ end
272
+
273
+ # source://method_source//lib/method_source/source_location.rb#81
274
+ module MethodSource::SourceLocation::UnboundMethodExtensions
275
+ # Return the source location of an instance method for Ruby 1.8.
276
+ #
277
+ # @return [Array] A two element array. First element is the
278
+ # file, second element is the line in the file where the
279
+ # method definition is found.
280
+ #
281
+ # source://method_source//lib/method_source/source_location.rb#101
282
+ def source_location; end
283
+ end
284
+
285
+ # An Exception to mark errors that were raised trying to find the source from
286
+ # a given source_location.
287
+ #
288
+ # source://method_source//lib/method_source.rb#16
289
+ class MethodSource::SourceNotFoundError < ::StandardError; end
290
+
291
+ # source://method_source//lib/method_source/version.rb#2
292
+ MethodSource::VERSION = T.let(T.unsafe(nil), String)
293
+
294
+ # source://method_source//lib/method_source.rb#173
295
+ class Proc
296
+ include ::MethodSource::SourceLocation::ProcExtensions
297
+ include ::MethodSource::MethodExtensions
298
+ end
299
+
300
+ # source://method_source//lib/method_source.rb#168
301
+ class UnboundMethod
302
+ include ::MethodSource::SourceLocation::UnboundMethodExtensions
303
+ include ::MethodSource::MethodExtensions
304
+ end
@@ -0,0 +1,158 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `netrc` gem.
5
+ # Please instead update this file by running `bin/tapioca gem netrc`.
6
+
7
+ # source://netrc//lib/netrc.rb#3
8
+ class Netrc
9
+ # @return [Netrc] a new instance of Netrc
10
+ #
11
+ # source://netrc//lib/netrc.rb#166
12
+ def initialize(path, data); end
13
+
14
+ # source://netrc//lib/netrc.rb#180
15
+ def [](k); end
16
+
17
+ # source://netrc//lib/netrc.rb#188
18
+ def []=(k, info); end
19
+
20
+ # source://netrc//lib/netrc.rb#200
21
+ def delete(key); end
22
+
23
+ # source://netrc//lib/netrc.rb#211
24
+ def each(&block); end
25
+
26
+ # source://netrc//lib/netrc.rb#196
27
+ def length; end
28
+
29
+ # source://netrc//lib/netrc.rb#215
30
+ def new_item(m, l, p); end
31
+
32
+ # Returns the value of attribute new_item_prefix.
33
+ #
34
+ # source://netrc//lib/netrc.rb#178
35
+ def new_item_prefix; end
36
+
37
+ # Sets the attribute new_item_prefix
38
+ #
39
+ # @param value the value to set the attribute new_item_prefix to.
40
+ #
41
+ # source://netrc//lib/netrc.rb#178
42
+ def new_item_prefix=(_arg0); end
43
+
44
+ # source://netrc//lib/netrc.rb#219
45
+ def save; end
46
+
47
+ # source://netrc//lib/netrc.rb#233
48
+ def unparse; end
49
+
50
+ class << self
51
+ # source://netrc//lib/netrc.rb#42
52
+ def check_permissions(path); end
53
+
54
+ # source://netrc//lib/netrc.rb#33
55
+ def config; end
56
+
57
+ # @yield [self.config]
58
+ #
59
+ # source://netrc//lib/netrc.rb#37
60
+ def configure; end
61
+
62
+ # source://netrc//lib/netrc.rb#10
63
+ def default_path; end
64
+
65
+ # source://netrc//lib/netrc.rb#14
66
+ def home_path; end
67
+
68
+ # source://netrc//lib/netrc.rb#85
69
+ def lex(lines); end
70
+
71
+ # source://netrc//lib/netrc.rb#29
72
+ def netrc_filename; end
73
+
74
+ # Returns two values, a header and a list of items.
75
+ # Each item is a tuple, containing some or all of:
76
+ # - machine keyword (including trailing whitespace+comments)
77
+ # - machine name
78
+ # - login keyword (including surrounding whitespace+comments)
79
+ # - login
80
+ # - password keyword (including surrounding whitespace+comments)
81
+ # - password
82
+ # - trailing chars
83
+ # This lets us change individual fields, then write out the file
84
+ # with all its original formatting.
85
+ #
86
+ # source://netrc//lib/netrc.rb#129
87
+ def parse(ts); end
88
+
89
+ # Reads path and parses it as a .netrc file. If path doesn't
90
+ # exist, returns an empty object. Decrypt paths ending in .gpg.
91
+ #
92
+ # source://netrc//lib/netrc.rb#51
93
+ def read(path = T.unsafe(nil)); end
94
+
95
+ # @return [Boolean]
96
+ #
97
+ # source://netrc//lib/netrc.rb#112
98
+ def skip?(s); end
99
+ end
100
+ end
101
+
102
+ # source://netrc//lib/netrc.rb#8
103
+ Netrc::CYGWIN = T.let(T.unsafe(nil), T.untyped)
104
+
105
+ # source://netrc//lib/netrc.rb#244
106
+ class Netrc::Entry < ::Struct
107
+ # Returns the value of attribute login
108
+ #
109
+ # @return [Object] the current value of login
110
+ def login; end
111
+
112
+ # Sets the attribute login
113
+ #
114
+ # @param value [Object] the value to set the attribute login to.
115
+ # @return [Object] the newly set value
116
+ def login=(_); end
117
+
118
+ # Returns the value of attribute password
119
+ #
120
+ # @return [Object] the current value of password
121
+ def password; end
122
+
123
+ # Sets the attribute password
124
+ #
125
+ # @param value [Object] the value to set the attribute password to.
126
+ # @return [Object] the newly set value
127
+ def password=(_); end
128
+
129
+ def to_ary; end
130
+
131
+ class << self
132
+ def [](*_arg0); end
133
+ def inspect; end
134
+ def keyword_init?; end
135
+ def members; end
136
+ def new(*_arg0); end
137
+ end
138
+ end
139
+
140
+ # source://netrc//lib/netrc.rb#250
141
+ class Netrc::Error < ::StandardError; end
142
+
143
+ # source://netrc//lib/netrc.rb#68
144
+ class Netrc::TokenArray < ::Array
145
+ # source://netrc//lib/netrc.rb#76
146
+ def readto; end
147
+
148
+ # source://netrc//lib/netrc.rb#69
149
+ def take; end
150
+ end
151
+
152
+ # source://netrc//lib/netrc.rb#4
153
+ Netrc::VERSION = T.let(T.unsafe(nil), String)
154
+
155
+ # see http://stackoverflow.com/questions/4871309/what-is-the-correct-way-to-detect-if-ruby-is-running-on-windows
156
+ #
157
+ # source://netrc//lib/netrc.rb#7
158
+ Netrc::WINDOWS = T.let(T.unsafe(nil), T.untyped)