playoffs 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bundle/config +2 -0
- data/.editorconfig +8 -0
- data/.github/workflows/ci.yaml +29 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +34 -0
- data/.tool-versions +1 -0
- data/.vscode/settings.json +5 -0
- data/CHANGELOG.md +3 -0
- data/CODE_OF_CONDUCT.md +73 -0
- data/Gemfile +5 -0
- data/Guardfile +17 -0
- data/LICENSE +5 -0
- data/README.md +245 -0
- data/Rakefile +11 -0
- data/bin/_guard-core +27 -0
- data/bin/bundle +109 -0
- data/bin/bundle-audit +27 -0
- data/bin/bundler-audit +27 -0
- data/bin/coderay +27 -0
- data/bin/console +11 -0
- data/bin/guard +27 -0
- data/bin/htmldiff +27 -0
- data/bin/ldiff +27 -0
- data/bin/listen +27 -0
- data/bin/playoffs +27 -0
- data/bin/pry +27 -0
- data/bin/racc +27 -0
- data/bin/rake +27 -0
- data/bin/rspec +27 -0
- data/bin/rubocop +27 -0
- data/bin/ruby-parse +27 -0
- data/bin/ruby-rewrite +27 -0
- data/bin/spoom +27 -0
- data/bin/srb +27 -0
- data/bin/srb-rbi +27 -0
- data/bin/tapioca +27 -0
- data/bin/thor +27 -0
- data/bin/yard +27 -0
- data/bin/yardoc +27 -0
- data/bin/yri +27 -0
- data/exe/playoffs +7 -0
- data/lib/playoffs/basketball.rb +120 -0
- data/lib/playoffs/best_of.rb +38 -0
- data/lib/playoffs/cli.rb +201 -0
- data/lib/playoffs/contestant.rb +8 -0
- data/lib/playoffs/round.rb +42 -0
- data/lib/playoffs/series.rb +167 -0
- data/lib/playoffs/team.rb +7 -0
- data/lib/playoffs/tournament/bracketable.rb +93 -0
- data/lib/playoffs/tournament/roundable.rb +53 -0
- data/lib/playoffs/tournament.rb +61 -0
- data/lib/playoffs/version.rb +6 -0
- data/lib/playoffs.rb +26 -0
- data/playoffs.gemspec +49 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +309 -0
- data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1131 -0
- data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/ffi@1.16.3.rbi +9 -0
- data/sorbet/rbi/gems/formatador@1.1.0.rbi +9 -0
- data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +67 -0
- data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +563 -0
- data/sorbet/rbi/gems/guard@2.18.1.rbi +9 -0
- data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/listen@3.9.0.rbi +9 -0
- data/sorbet/rbi/gems/lumberjack@1.2.10.rbi +9 -0
- data/sorbet/rbi/gems/method_source@1.1.0.rbi +304 -0
- data/sorbet/rbi/gems/nenv@0.3.0.rbi +9 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/notiffany@0.1.3.rbi +9 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
- data/sorbet/rbi/gems/parser@3.3.1.0.rbi +7238 -0
- data/sorbet/rbi/gems/primitive@1.0.0.rbi +58 -0
- data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
- data/sorbet/rbi/gems/pry@0.14.2.rbi +10069 -0
- data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
- data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +9 -0
- data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +9 -0
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
- data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +4794 -0
- data/sorbet/rbi/gems/rspec-core@3.13.0.rbi +10874 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi +8154 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.1.rbi +5341 -0
- data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +1630 -0
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
- data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7159 -0
- data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +1208 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +928 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.29.2.rbi +8247 -0
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +911 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi +1607 -0
- data/sorbet/rbi/gems/rubocop@1.63.5.rbi +57788 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/shellany@0.0.1.rbi +9 -0
- data/sorbet/rbi/gems/simplecov-console@0.9.1.rbi +103 -0
- data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
- data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
- data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
- data/sorbet/rbi/gems/sorbet-runtime-stub@0.2.0.rbi +8 -0
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.14.2.rbi +3539 -0
- data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +9 -0
- data/sorbet/rbi/gems/thor@1.3.1.rbi +4318 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
- data/sorbet/rbi/gems/yard@0.9.36.rbi +18085 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +383 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `listen` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem listen`.
|
6
|
+
|
7
|
+
|
8
|
+
# THIS IS AN EMPTY RBI FILE.
|
9
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `lumberjack` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem lumberjack`.
|
6
|
+
|
7
|
+
|
8
|
+
# THIS IS AN EMPTY RBI FILE.
|
9
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
@@ -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,9 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `nenv` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem nenv`.
|
6
|
+
|
7
|
+
|
8
|
+
# THIS IS AN EMPTY RBI FILE.
|
9
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|
@@ -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)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `notiffany` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem notiffany`.
|
6
|
+
|
7
|
+
|
8
|
+
# THIS IS AN EMPTY RBI FILE.
|
9
|
+
# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
|