playoffs 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +7 -0
  2. data/.bundle/config +2 -0
  3. data/.editorconfig +8 -0
  4. data/.github/workflows/ci.yaml +29 -0
  5. data/.gitignore +8 -0
  6. data/.rubocop.yml +34 -0
  7. data/.tool-versions +1 -0
  8. data/.vscode/settings.json +5 -0
  9. data/CHANGELOG.md +3 -0
  10. data/CODE_OF_CONDUCT.md +73 -0
  11. data/Gemfile +5 -0
  12. data/Guardfile +17 -0
  13. data/LICENSE +5 -0
  14. data/README.md +245 -0
  15. data/Rakefile +11 -0
  16. data/bin/_guard-core +27 -0
  17. data/bin/bundle +109 -0
  18. data/bin/bundle-audit +27 -0
  19. data/bin/bundler-audit +27 -0
  20. data/bin/coderay +27 -0
  21. data/bin/console +11 -0
  22. data/bin/guard +27 -0
  23. data/bin/htmldiff +27 -0
  24. data/bin/ldiff +27 -0
  25. data/bin/listen +27 -0
  26. data/bin/playoffs +27 -0
  27. data/bin/pry +27 -0
  28. data/bin/racc +27 -0
  29. data/bin/rake +27 -0
  30. data/bin/rspec +27 -0
  31. data/bin/rubocop +27 -0
  32. data/bin/ruby-parse +27 -0
  33. data/bin/ruby-rewrite +27 -0
  34. data/bin/spoom +27 -0
  35. data/bin/srb +27 -0
  36. data/bin/srb-rbi +27 -0
  37. data/bin/tapioca +27 -0
  38. data/bin/thor +27 -0
  39. data/bin/yard +27 -0
  40. data/bin/yardoc +27 -0
  41. data/bin/yri +27 -0
  42. data/exe/playoffs +7 -0
  43. data/lib/playoffs/basketball.rb +120 -0
  44. data/lib/playoffs/best_of.rb +38 -0
  45. data/lib/playoffs/cli.rb +201 -0
  46. data/lib/playoffs/contestant.rb +8 -0
  47. data/lib/playoffs/round.rb +42 -0
  48. data/lib/playoffs/series.rb +167 -0
  49. data/lib/playoffs/team.rb +7 -0
  50. data/lib/playoffs/tournament/bracketable.rb +93 -0
  51. data/lib/playoffs/tournament/roundable.rb +53 -0
  52. data/lib/playoffs/tournament.rb +61 -0
  53. data/lib/playoffs/version.rb +6 -0
  54. data/lib/playoffs.rb +26 -0
  55. data/playoffs.gemspec +49 -0
  56. data/sorbet/config +4 -0
  57. data/sorbet/rbi/annotations/.gitattributes +1 -0
  58. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  59. data/sorbet/rbi/gems/.gitattributes +1 -0
  60. data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
  61. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  62. data/sorbet/rbi/gems/bundler-audit@0.9.1.rbi +309 -0
  63. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  64. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1131 -0
  65. data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
  66. data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
  67. data/sorbet/rbi/gems/ffi@1.16.3.rbi +9 -0
  68. data/sorbet/rbi/gems/formatador@1.1.0.rbi +9 -0
  69. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +67 -0
  70. data/sorbet/rbi/gems/guard-rspec@4.7.3.rbi +563 -0
  71. data/sorbet/rbi/gems/guard@2.18.1.rbi +9 -0
  72. data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
  73. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  74. data/sorbet/rbi/gems/listen@3.9.0.rbi +9 -0
  75. data/sorbet/rbi/gems/lumberjack@1.2.10.rbi +9 -0
  76. data/sorbet/rbi/gems/method_source@1.1.0.rbi +304 -0
  77. data/sorbet/rbi/gems/nenv@0.3.0.rbi +9 -0
  78. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  79. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +9 -0
  80. data/sorbet/rbi/gems/parallel@1.24.0.rbi +280 -0
  81. data/sorbet/rbi/gems/parser@3.3.1.0.rbi +7238 -0
  82. data/sorbet/rbi/gems/primitive@1.0.0.rbi +58 -0
  83. data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
  84. data/sorbet/rbi/gems/pry@0.14.2.rbi +10069 -0
  85. data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
  86. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  87. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  88. data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +9 -0
  89. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +9 -0
  90. data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
  91. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  92. data/sorbet/rbi/gems/rexml@3.2.8.rbi +4794 -0
  93. data/sorbet/rbi/gems/rspec-core@3.13.0.rbi +10874 -0
  94. data/sorbet/rbi/gems/rspec-expectations@3.13.0.rbi +8154 -0
  95. data/sorbet/rbi/gems/rspec-mocks@3.13.1.rbi +5341 -0
  96. data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +1630 -0
  97. data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
  98. data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7159 -0
  99. data/sorbet/rbi/gems/rubocop-capybara@2.20.0.rbi +1208 -0
  100. data/sorbet/rbi/gems/rubocop-factory_bot@2.25.1.rbi +928 -0
  101. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  102. data/sorbet/rbi/gems/rubocop-rspec@2.29.2.rbi +8247 -0
  103. data/sorbet/rbi/gems/rubocop-rspec_rails@2.28.3.rbi +911 -0
  104. data/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi +1607 -0
  105. data/sorbet/rbi/gems/rubocop@1.63.5.rbi +57788 -0
  106. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  107. data/sorbet/rbi/gems/shellany@0.0.1.rbi +9 -0
  108. data/sorbet/rbi/gems/simplecov-console@0.9.1.rbi +103 -0
  109. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
  110. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  111. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  112. data/sorbet/rbi/gems/sorbet-runtime-stub@0.2.0.rbi +8 -0
  113. data/sorbet/rbi/gems/spoom@1.3.2.rbi +4420 -0
  114. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  115. data/sorbet/rbi/gems/tapioca@0.14.2.rbi +3539 -0
  116. data/sorbet/rbi/gems/terminal-table@3.0.2.rbi +9 -0
  117. data/sorbet/rbi/gems/thor@1.3.1.rbi +4318 -0
  118. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  119. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  120. data/sorbet/rbi/gems/yard@0.9.36.rbi +18085 -0
  121. data/sorbet/tapioca/config.yml +13 -0
  122. data/sorbet/tapioca/require.rb +4 -0
  123. 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 `shellany` gem.
5
+ # Please instead update this file by running `bin/tapioca gem shellany`.
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,103 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `simplecov-console` gem.
5
+ # Please instead update this file by running `bin/tapioca gem simplecov-console`.
6
+
7
+
8
+ # source://simplecov-console//lib/simplecov-console.rb#3
9
+ class SimpleCov::Formatter::Console
10
+ # source://simplecov-console//lib/simplecov-console.rb#120
11
+ def branches_missed(missed_branches); end
12
+
13
+ # source://simplecov-console//lib/simplecov-console.rb#184
14
+ def colorize(s); end
15
+
16
+ # source://simplecov-console//lib/simplecov-console.rb#50
17
+ def format(result); end
18
+
19
+ # source://simplecov-console//lib/simplecov-console.rb#34
20
+ def include_output_style; end
21
+
22
+ # Group missed lines for better display
23
+ #
24
+ # @param missed [Array<SimpleCov::SourceFile::Line>] array of missed lines reported by SimpleCov
25
+ # @return [Array<String>] Missing groups of lines
26
+ #
27
+ # source://simplecov-console//lib/simplecov-console.rb#131
28
+ def missed(missed_lines); end
29
+
30
+ # source://simplecov-console//lib/simplecov-console.rb#176
31
+ def pct(number); end
32
+
33
+ # @return [Boolean]
34
+ #
35
+ # source://simplecov-console//lib/simplecov-console.rb#45
36
+ def show_branch_coverage?(result); end
37
+
38
+ # Truncate string to at most N chars (as defined by missing_len)
39
+ #
40
+ # source://simplecov-console//lib/simplecov-console.rb#166
41
+ def trunc(str); end
42
+
43
+ # @return [Boolean]
44
+ #
45
+ # source://simplecov-console//lib/simplecov-console.rb#180
46
+ def use_colors?; end
47
+
48
+ class << self
49
+ # source://simplecov-console//lib/simplecov-console.rb#11
50
+ def max_lines; end
51
+
52
+ # source://simplecov-console//lib/simplecov-console.rb#11
53
+ def max_lines=(_arg0); end
54
+
55
+ # source://simplecov-console//lib/simplecov-console.rb#11
56
+ def max_rows; end
57
+
58
+ # source://simplecov-console//lib/simplecov-console.rb#11
59
+ def max_rows=(_arg0); end
60
+
61
+ # source://simplecov-console//lib/simplecov-console.rb#11
62
+ def missing_len; end
63
+
64
+ # source://simplecov-console//lib/simplecov-console.rb#11
65
+ def missing_len=(_arg0); end
66
+
67
+ # source://simplecov-console//lib/simplecov-console.rb#11
68
+ def output_style; end
69
+
70
+ # source://simplecov-console//lib/simplecov-console.rb#11
71
+ def output_style=(_arg0); end
72
+
73
+ # source://simplecov-console//lib/simplecov-console.rb#11
74
+ def show_covered; end
75
+
76
+ # source://simplecov-console//lib/simplecov-console.rb#11
77
+ def show_covered=(_arg0); end
78
+
79
+ # source://simplecov-console//lib/simplecov-console.rb#11
80
+ def sort; end
81
+
82
+ # source://simplecov-console//lib/simplecov-console.rb#11
83
+ def sort=(_arg0); end
84
+
85
+ # source://simplecov-console//lib/simplecov-console.rb#11
86
+ def table_options; end
87
+
88
+ # source://simplecov-console//lib/simplecov-console.rb#11
89
+ def table_options=(_arg0); end
90
+
91
+ # source://simplecov-console//lib/simplecov-console.rb#11
92
+ def use_colors; end
93
+
94
+ # source://simplecov-console//lib/simplecov-console.rb#11
95
+ def use_colors=(_arg0); end
96
+ end
97
+ end
98
+
99
+ # source://simplecov-console//lib/simplecov-console.rb#7
100
+ SimpleCov::Formatter::Console::ATTRIBUTES = T.let(T.unsafe(nil), Array)
101
+
102
+ # source://simplecov-console//lib/simplecov-console.rb#5
103
+ SimpleCov::Formatter::Console::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,217 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `simplecov-html` gem.
5
+ # Please instead update this file by running `bin/tapioca gem simplecov-html`.
6
+
7
+
8
+ # source://simplecov-html//lib/simplecov-html.rb#16
9
+ module SimpleCov
10
+ class << self
11
+ # source://simplecov/0.22.0/lib/simplecov.rb#174
12
+ def at_exit_behavior; end
13
+
14
+ # source://simplecov/0.22.0/lib/simplecov.rb#170
15
+ def clear_result; end
16
+
17
+ # source://simplecov/0.22.0/lib/simplecov.rb#86
18
+ def collate(result_filenames, profile = T.unsafe(nil), ignore_timeout: T.unsafe(nil), &block); end
19
+
20
+ # source://simplecov/0.22.0/lib/simplecov.rb#223
21
+ def exit_and_report_previous_error(exit_status); end
22
+
23
+ # source://simplecov/0.22.0/lib/simplecov.rb#200
24
+ def exit_status_from_exception; end
25
+
26
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
27
+ def external_at_exit; end
28
+
29
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
30
+ def external_at_exit=(_arg0); end
31
+
32
+ # source://simplecov/0.22.0/lib/simplecov.rb#28
33
+ def external_at_exit?; end
34
+
35
+ # source://simplecov/0.22.0/lib/simplecov.rb#131
36
+ def filtered(files); end
37
+
38
+ # source://simplecov/0.22.0/lib/simplecov.rb#268
39
+ def final_result_process?; end
40
+
41
+ # source://simplecov/0.22.0/lib/simplecov.rb#142
42
+ def grouped(files); end
43
+
44
+ # source://simplecov/0.22.0/lib/simplecov.rb#162
45
+ def load_adapter(name); end
46
+
47
+ # source://simplecov/0.22.0/lib/simplecov.rb#158
48
+ def load_profile(name); end
49
+
50
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
51
+ def pid; end
52
+
53
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
54
+ def pid=(_arg0); end
55
+
56
+ # source://simplecov/0.22.0/lib/simplecov.rb#213
57
+ def previous_error?(error_exit_status); end
58
+
59
+ # source://simplecov/0.22.0/lib/simplecov.rb#248
60
+ def process_result(result); end
61
+
62
+ # source://simplecov/0.22.0/lib/simplecov.rb#233
63
+ def process_results_and_report_error; end
64
+
65
+ # source://simplecov/0.22.0/lib/simplecov.rb#229
66
+ def ready_to_process_results?; end
67
+
68
+ # source://simplecov/0.22.0/lib/simplecov.rb#101
69
+ def result; end
70
+
71
+ # source://simplecov/0.22.0/lib/simplecov.rb#124
72
+ def result?; end
73
+
74
+ # source://simplecov/0.22.0/lib/simplecov.rb#256
75
+ def result_exit_status(result); end
76
+
77
+ # source://simplecov/0.22.0/lib/simplecov.rb#296
78
+ def round_coverage(coverage); end
79
+
80
+ # source://simplecov/0.22.0/lib/simplecov.rb#186
81
+ def run_exit_tasks!; end
82
+
83
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
84
+ def running; end
85
+
86
+ # source://simplecov/0.22.0/lib/simplecov.rb#24
87
+ def running=(_arg0); end
88
+
89
+ # source://simplecov/0.22.0/lib/simplecov.rb#48
90
+ def start(profile = T.unsafe(nil), &block); end
91
+
92
+ # source://simplecov/0.22.0/lib/simplecov.rb#276
93
+ def wait_for_other_processes; end
94
+
95
+ # source://simplecov/0.22.0/lib/simplecov.rb#285
96
+ def write_last_run(result); end
97
+
98
+ private
99
+
100
+ # source://simplecov/0.22.0/lib/simplecov.rb#399
101
+ def adapt_coverage_result; end
102
+
103
+ # source://simplecov/0.22.0/lib/simplecov.rb#371
104
+ def add_not_loaded_files(result); end
105
+
106
+ # source://simplecov/0.22.0/lib/simplecov.rb#302
107
+ def initial_setup(profile, &block); end
108
+
109
+ # source://simplecov/0.22.0/lib/simplecov.rb#363
110
+ def lookup_corresponding_ruby_coverage_name(criterion); end
111
+
112
+ # source://simplecov/0.22.0/lib/simplecov.rb#425
113
+ def make_parallel_tests_available; end
114
+
115
+ # source://simplecov/0.22.0/lib/simplecov.rb#434
116
+ def probably_running_parallel_tests?; end
117
+
118
+ # source://simplecov/0.22.0/lib/simplecov.rb#388
119
+ def process_coverage_result; end
120
+
121
+ # source://simplecov/0.22.0/lib/simplecov.rb#410
122
+ def remove_useless_results; end
123
+
124
+ # source://simplecov/0.22.0/lib/simplecov.rb#420
125
+ def result_with_not_loaded_files; end
126
+
127
+ # source://simplecov/0.22.0/lib/simplecov.rb#314
128
+ def start_coverage_measurement; end
129
+
130
+ # source://simplecov/0.22.0/lib/simplecov.rb#349
131
+ def start_coverage_with_criteria; end
132
+ end
133
+ end
134
+
135
+ # source://simplecov-html//lib/simplecov-html.rb#17
136
+ module SimpleCov::Formatter
137
+ class << self
138
+ # source://simplecov/0.22.0/lib/simplecov/default_formatter.rb#7
139
+ def from_env(env); end
140
+ end
141
+ end
142
+
143
+ # source://simplecov-html//lib/simplecov-html.rb#18
144
+ class SimpleCov::Formatter::HTMLFormatter
145
+ # @return [HTMLFormatter] a new instance of HTMLFormatter
146
+ #
147
+ # source://simplecov-html//lib/simplecov-html.rb#19
148
+ def initialize; end
149
+
150
+ # @return [Boolean]
151
+ #
152
+ # source://simplecov-html//lib/simplecov-html.rb#38
153
+ def branchable_result?; end
154
+
155
+ # source://simplecov-html//lib/simplecov-html.rb#23
156
+ def format(result); end
157
+
158
+ # @return [Boolean]
159
+ #
160
+ # source://simplecov-html//lib/simplecov-html.rb#45
161
+ def line_status?(source_file, line); end
162
+
163
+ # source://simplecov-html//lib/simplecov-html.rb#34
164
+ def output_message(result); end
165
+
166
+ private
167
+
168
+ # source://simplecov-html//lib/simplecov-html.rb#64
169
+ def asset_output_path; end
170
+
171
+ # source://simplecov-html//lib/simplecov-html.rb#72
172
+ def assets_path(name); end
173
+
174
+ # source://simplecov-html//lib/simplecov-html.rb#97
175
+ def coverage_css_class(covered_percent); end
176
+
177
+ # source://simplecov-html//lib/simplecov-html.rb#93
178
+ def covered_percent(percent); end
179
+
180
+ # Returns a table containing the given source files
181
+ #
182
+ # source://simplecov-html//lib/simplecov-html.rb#84
183
+ def formatted_file_list(title, source_files); end
184
+
185
+ # Returns the html for the given source_file
186
+ #
187
+ # source://simplecov-html//lib/simplecov-html.rb#77
188
+ def formatted_source_file(source_file); end
189
+
190
+ # Return a (kind of) unique id for the source file given. Uses SHA1 on path for the id
191
+ #
192
+ # source://simplecov-html//lib/simplecov-html.rb#118
193
+ def id(source_file); end
194
+
195
+ # source://simplecov-html//lib/simplecov-html.rb#130
196
+ def link_to_source_file(source_file); end
197
+
198
+ # source://simplecov-html//lib/simplecov-html.rb#60
199
+ def output_path; end
200
+
201
+ # source://simplecov-html//lib/simplecov-html.rb#126
202
+ def shortened_filename(source_file); end
203
+
204
+ # source://simplecov-html//lib/simplecov-html.rb#107
205
+ def strength_css_class(covered_strength); end
206
+
207
+ # Returns the an erb instance for the template of given name
208
+ #
209
+ # source://simplecov-html//lib/simplecov-html.rb#56
210
+ def template(name); end
211
+
212
+ # source://simplecov-html//lib/simplecov-html.rb#122
213
+ def timeago(time); end
214
+ end
215
+
216
+ # source://simplecov-html//lib/simplecov-html/version.rb#6
217
+ SimpleCov::Formatter::HTMLFormatter::VERSION = T.let(T.unsafe(nil), String)