guard-srb 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +37 -0
  3. data/.tool-versions +1 -0
  4. data/CHANGELOG.md +5 -0
  5. data/CODE_OF_CONDUCT.md +84 -0
  6. data/Gemfile +14 -0
  7. data/Gemfile.lock +125 -0
  8. data/Guardfile +16 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +92 -0
  11. data/Rakefile +18 -0
  12. data/lib/guard/srb/runner.rb +70 -0
  13. data/lib/guard/srb/templates/Guardfile +3 -0
  14. data/lib/guard/srb/version.rb +8 -0
  15. data/lib/guard/srb.rb +105 -0
  16. data/sorbet/config +5 -0
  17. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  18. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  19. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3437 -0
  20. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  21. data/sorbet/rbi/gems/ffi@1.15.5.rbi +8 -0
  22. data/sorbet/rbi/gems/formatador@1.1.0.rbi +8 -0
  23. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +103 -0
  24. data/sorbet/rbi/gems/guard-minitest@2.4.6.rbi +299 -0
  25. data/sorbet/rbi/gems/guard@2.16.2.rbi +2286 -0
  26. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  27. data/sorbet/rbi/gems/listen@3.8.0.rbi +1181 -0
  28. data/sorbet/rbi/gems/lumberjack@1.2.8.rbi +1501 -0
  29. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  30. data/sorbet/rbi/gems/minitest@5.18.0.rbi +2354 -0
  31. data/sorbet/rbi/gems/mocha@2.0.2.rbi +3934 -0
  32. data/sorbet/rbi/gems/nenv@0.3.0.rbi +146 -0
  33. data/sorbet/rbi/gems/netrc@0.11.0.rbi +161 -0
  34. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +1078 -0
  35. data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
  36. data/sorbet/rbi/gems/parser@3.2.2.1.rbi +9454 -0
  37. data/sorbet/rbi/gems/pry@0.14.2.rbi +10079 -0
  38. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
  39. data/sorbet/rbi/gems/rake@13.0.6.rbi +3119 -0
  40. data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +8 -0
  41. data/sorbet/rbi/gems/rb-inotify@0.10.1.rbi +8 -0
  42. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3049 -0
  43. data/sorbet/rbi/gems/regexp_parser@2.8.0.rbi +3765 -0
  44. data/sorbet/rbi/gems/rexml@3.2.5.rbi +4717 -0
  45. data/sorbet/rbi/gems/rubocop-ast@1.28.1.rbi +6967 -0
  46. data/sorbet/rbi/gems/rubocop@1.50.2.rbi +55367 -0
  47. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
  48. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  49. data/sorbet/rbi/gems/shellany@0.0.1.rbi +101 -0
  50. data/sorbet/rbi/gems/spoom@1.2.1.rbi +2536 -0
  51. data/sorbet/rbi/gems/tapioca@0.11.6.rbi +3246 -0
  52. data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
  53. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
  54. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
  55. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +426 -0
  56. data/sorbet/rbi/gems/yard@0.9.34.rbi +17907 -0
  57. data/sorbet/rbi/todo.rbi +7 -0
  58. data/sorbet/tapioca/config.yml +13 -0
  59. data/sorbet/tapioca/require.rb +14 -0
  60. metadata +155 -0
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ffi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ffi`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -0,0 +1,8 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `formatador` gem.
5
+ # Please instead update this file by running `bin/tapioca gem formatador`.
6
+
7
+ # THIS IS AN EMPTY RBI FILE.
8
+ # 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 `guard-compat` gem.
5
+ # Please instead update this file by running `bin/tapioca gem guard-compat`.
6
+
7
+ # NOTE: Do NOT require "guard/plugin" - it will either be already required, or
8
+ # a stub will be supplied by the test class
9
+ #
10
+ # source://guard-compat//lib/guard/compat/plugin.rb#23
11
+ module Guard
12
+ extend ::Guard::Internals::Helpers
13
+
14
+ class << self
15
+ # source://guard/2.16.2/lib/guard.rb#87
16
+ def async_queue_add(changes); end
17
+
18
+ # source://guard/2.16.2/lib/guard.rb#73
19
+ def init(cmdline_options); end
20
+
21
+ # source://guard/2.16.2/lib/guard.rb#24
22
+ def interactor; end
23
+
24
+ # source://guard/2.16.2/lib/guard.rb#23
25
+ def listener; end
26
+
27
+ # source://guard/2.16.2/lib/guard.rb#22
28
+ def queue; end
29
+
30
+ # source://guard/2.16.2/lib/guard.rb#44
31
+ def setup(cmdline_options = T.unsafe(nil)); end
32
+
33
+ # source://guard/2.16.2/lib/guard.rb#21
34
+ def state; end
35
+
36
+ private
37
+
38
+ # source://guard/2.16.2/lib/guard.rb#132
39
+ def _evaluate(options); end
40
+
41
+ # source://guard/2.16.2/lib/guard.rb#152
42
+ def _guardfile_deprecated_check(modified); end
43
+
44
+ # source://guard/2.16.2/lib/guard.rb#113
45
+ def _listener_callback; end
46
+
47
+ # source://guard/2.16.2/lib/guard.rb#128
48
+ def _pluginless_guardfile?; end
49
+
50
+ # source://guard/2.16.2/lib/guard.rb#109
51
+ def _relative_pathnames(paths); end
52
+
53
+ # source://guard/2.16.2/lib/guard.rb#99
54
+ def _relevant_changes?(changes); end
55
+ end
56
+ end
57
+
58
+ # source://guard-compat//lib/guard/compat/plugin.rb#24
59
+ module Guard::Compat
60
+ class << self
61
+ # TODO: this is just a temporary workaround to allow plugins
62
+ # to use watcher patterns in run_all
63
+ #
64
+ # source://guard-compat//lib/guard/compat/plugin.rb#27
65
+ def matching_files(plugin, files); end
66
+
67
+ # source://guard-compat//lib/guard/compat/plugin.rb#39
68
+ def watched_directories; end
69
+ end
70
+ end
71
+
72
+ # source://guard-compat//lib/guard/compat/plugin.rb#54
73
+ module Guard::Compat::UI
74
+ class << self
75
+ # source://guard-compat//lib/guard/compat/plugin.rb#55
76
+ def color(text, *colors); end
77
+
78
+ # @return [Boolean]
79
+ #
80
+ # source://guard-compat//lib/guard/compat/plugin.rb#63
81
+ def color_enabled?; end
82
+
83
+ # source://guard-compat//lib/guard/compat/plugin.rb#95
84
+ def debug(message, options = T.unsafe(nil)); end
85
+
86
+ # source://guard-compat//lib/guard/compat/plugin.rb#103
87
+ def deprecation(message, options = T.unsafe(nil)); end
88
+
89
+ # source://guard-compat//lib/guard/compat/plugin.rb#87
90
+ def error(message, options = T.unsafe(nil)); end
91
+
92
+ # source://guard-compat//lib/guard/compat/plugin.rb#71
93
+ def info(message, options = T.unsafe(nil)); end
94
+
95
+ # source://guard-compat//lib/guard/compat/plugin.rb#111
96
+ def notify(msg, options = T.unsafe(nil)); end
97
+
98
+ # source://guard-compat//lib/guard/compat/plugin.rb#79
99
+ def warning(message, options = T.unsafe(nil)); end
100
+ end
101
+ end
102
+
103
+ module Guard::SrbVersion; end
@@ -0,0 +1,299 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `guard-minitest` gem.
5
+ # Please instead update this file by running `bin/tapioca gem guard-minitest`.
6
+
7
+ # source://guard-minitest//lib/guard/minitest.rb#3
8
+ module Guard
9
+ extend ::Guard::Internals::Helpers
10
+
11
+ class << self
12
+ # source://guard/2.16.2/lib/guard.rb#87
13
+ def async_queue_add(changes); end
14
+
15
+ # source://guard/2.16.2/lib/guard.rb#73
16
+ def init(cmdline_options); end
17
+
18
+ # source://guard/2.16.2/lib/guard.rb#24
19
+ def interactor; end
20
+
21
+ # source://guard/2.16.2/lib/guard.rb#23
22
+ def listener; end
23
+
24
+ # source://guard/2.16.2/lib/guard.rb#22
25
+ def queue; end
26
+
27
+ # source://guard/2.16.2/lib/guard.rb#44
28
+ def setup(cmdline_options = T.unsafe(nil)); end
29
+
30
+ # source://guard/2.16.2/lib/guard.rb#21
31
+ def state; end
32
+
33
+ private
34
+
35
+ # source://guard/2.16.2/lib/guard.rb#132
36
+ def _evaluate(options); end
37
+
38
+ # source://guard/2.16.2/lib/guard.rb#152
39
+ def _guardfile_deprecated_check(modified); end
40
+
41
+ # source://guard/2.16.2/lib/guard.rb#113
42
+ def _listener_callback; end
43
+
44
+ # source://guard/2.16.2/lib/guard.rb#128
45
+ def _pluginless_guardfile?; end
46
+
47
+ # source://guard/2.16.2/lib/guard.rb#109
48
+ def _relative_pathnames(paths); end
49
+
50
+ # source://guard/2.16.2/lib/guard.rb#99
51
+ def _relevant_changes?(changes); end
52
+ end
53
+ end
54
+
55
+ # source://guard-minitest//lib/guard/minitest.rb#4
56
+ class Guard::Minitest < ::Guard::Plugin
57
+ # @return [Minitest] a new instance of Minitest
58
+ #
59
+ # source://guard-minitest//lib/guard/minitest.rb#11
60
+ def initialize(options = T.unsafe(nil)); end
61
+
62
+ # source://guard-minitest//lib/guard/minitest.rb#28
63
+ def reload; end
64
+
65
+ # source://guard-minitest//lib/guard/minitest.rb#32
66
+ def run_all; end
67
+
68
+ # source://guard-minitest//lib/guard/minitest.rb#40
69
+ def run_on_additions(paths); end
70
+
71
+ # source://guard-minitest//lib/guard/minitest.rb#36
72
+ def run_on_modifications(paths = T.unsafe(nil)); end
73
+
74
+ # source://guard-minitest//lib/guard/minitest.rb#44
75
+ def run_on_removals(paths); end
76
+
77
+ # Returns the value of attribute runner.
78
+ #
79
+ # source://guard-minitest//lib/guard/minitest.rb#9
80
+ def runner; end
81
+
82
+ # Sets the attribute runner
83
+ #
84
+ # @param value the value to set the attribute runner to.
85
+ #
86
+ # source://guard-minitest//lib/guard/minitest.rb#9
87
+ def runner=(_arg0); end
88
+
89
+ # source://guard-minitest//lib/guard/minitest.rb#19
90
+ def start; end
91
+
92
+ # source://guard-minitest//lib/guard/minitest.rb#24
93
+ def stop; end
94
+
95
+ private
96
+
97
+ # source://guard-minitest//lib/guard/minitest.rb#50
98
+ def throw_on_failed_tests; end
99
+ end
100
+
101
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#5
102
+ class Guard::Minitest::Inspector
103
+ # @return [Inspector] a new instance of Inspector
104
+ #
105
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#8
106
+ def initialize(test_folders, test_file_patterns); end
107
+
108
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#32
109
+ def all_test_files; end
110
+
111
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#17
112
+ def clean(paths); end
113
+
114
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#13
115
+ def clean_all; end
116
+
117
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#28
118
+ def clear_memoized_test_files; end
119
+
120
+ # Returns the value of attribute test_file_patterns.
121
+ #
122
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#6
123
+ def test_file_patterns; end
124
+
125
+ # Returns the value of attribute test_folders.
126
+ #
127
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#6
128
+ def test_folders; end
129
+
130
+ private
131
+
132
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#49
133
+ def _join_for_glob(fragments); end
134
+
135
+ # @return [Boolean]
136
+ #
137
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#45
138
+ def _test_file?(path); end
139
+
140
+ # source://guard-minitest//lib/guard/minitest/inspector.rb#38
141
+ def _test_files_for_paths(paths = T.unsafe(nil)); end
142
+ end
143
+
144
+ # source://guard-minitest//lib/guard/minitest/runner.rb#6
145
+ class Guard::Minitest::Runner
146
+ # @return [Runner] a new instance of Runner
147
+ #
148
+ # source://guard-minitest//lib/guard/minitest/runner.rb#9
149
+ def initialize(options = T.unsafe(nil)); end
150
+
151
+ # Returns the value of attribute inspector.
152
+ #
153
+ # source://guard-minitest//lib/guard/minitest/runner.rb#7
154
+ def inspector; end
155
+
156
+ # Sets the attribute inspector
157
+ #
158
+ # @param value the value to set the attribute inspector to.
159
+ #
160
+ # source://guard-minitest//lib/guard/minitest/runner.rb#7
161
+ def inspector=(_arg0); end
162
+
163
+ # source://guard-minitest//lib/guard/minitest/runner.rb#35
164
+ def run(paths, options = T.unsafe(nil)); end
165
+
166
+ # source://guard-minitest//lib/guard/minitest/runner.rb#60
167
+ def run_all; end
168
+
169
+ # source://guard-minitest//lib/guard/minitest/runner.rb#70
170
+ def run_on_additions(_paths); end
171
+
172
+ # source://guard-minitest//lib/guard/minitest/runner.rb#65
173
+ def run_on_modifications(paths = T.unsafe(nil)); end
174
+
175
+ # source://guard-minitest//lib/guard/minitest/runner.rb#75
176
+ def run_on_removals(_paths); end
177
+
178
+ private
179
+
180
+ # source://guard-minitest//lib/guard/minitest/runner.rb#138
181
+ def _commander(paths); end
182
+
183
+ # source://guard-minitest//lib/guard/minitest/runner.rb#125
184
+ def _run(*args); end
185
+
186
+ # source://guard-minitest//lib/guard/minitest/runner.rb#132
187
+ def _run_possibly_bundled_command(paths, all); end
188
+
189
+ # @return [Boolean]
190
+ #
191
+ # source://guard-minitest//lib/guard/minitest/runner.rb#105
192
+ def all_after_pass?; end
193
+
194
+ # source://guard-minitest//lib/guard/minitest/runner.rb#219
195
+ def all_env; end
196
+
197
+ # @return [Boolean]
198
+ #
199
+ # source://guard-minitest//lib/guard/minitest/runner.rb#228
200
+ def all_paths?(paths); end
201
+
202
+ # @return [Boolean]
203
+ #
204
+ # source://guard-minitest//lib/guard/minitest/runner.rb#121
205
+ def autorun?; end
206
+
207
+ # source://guard-minitest//lib/guard/minitest/runner.rb#215
208
+ def base_env; end
209
+
210
+ # @return [Boolean]
211
+ #
212
+ # source://guard-minitest//lib/guard/minitest/runner.rb#85
213
+ def bundler?; end
214
+
215
+ # source://guard-minitest//lib/guard/minitest/runner.rb#81
216
+ def cli_options; end
217
+
218
+ # @return [Boolean]
219
+ #
220
+ # source://guard-minitest//lib/guard/minitest/runner.rb#93
221
+ def drb?; end
222
+
223
+ # source://guard-minitest//lib/guard/minitest/runner.rb#157
224
+ def drb_command(paths); end
225
+
226
+ # source://guard-minitest//lib/guard/minitest/runner.rb#211
227
+ def generate_env(all = T.unsafe(nil)); end
228
+
229
+ # source://guard-minitest//lib/guard/minitest/runner.rb#201
230
+ def generate_includes(include_test_folders = T.unsafe(nil)); end
231
+
232
+ # source://guard-minitest//lib/guard/minitest/runner.rb#113
233
+ def include_folders; end
234
+
235
+ # source://guard-minitest//lib/guard/minitest/runner.rb#145
236
+ def minitest_command(paths, all); end
237
+
238
+ # source://guard-minitest//lib/guard/minitest/runner.rb#232
239
+ def parse_deprecated_options; end
240
+
241
+ # source://guard-minitest//lib/guard/minitest/runner.rb#224
242
+ def relative_paths(paths); end
243
+
244
+ # source://guard-minitest//lib/guard/minitest/runner.rb#177
245
+ def ruby_command(paths); end
246
+
247
+ # @return [Boolean]
248
+ #
249
+ # source://guard-minitest//lib/guard/minitest/runner.rb#89
250
+ def rubygems?; end
251
+
252
+ # @return [Boolean]
253
+ #
254
+ # source://guard-minitest//lib/guard/minitest/runner.rb#101
255
+ def spring?; end
256
+
257
+ # source://guard-minitest//lib/guard/minitest/runner.rb#166
258
+ def spring_command(paths); end
259
+
260
+ # source://guard-minitest//lib/guard/minitest/runner.rb#117
261
+ def test_file_patterns; end
262
+
263
+ # source://guard-minitest//lib/guard/minitest/runner.rb#109
264
+ def test_folders; end
265
+
266
+ # @return [Boolean]
267
+ #
268
+ # source://guard-minitest//lib/guard/minitest/runner.rb#97
269
+ def zeus?; end
270
+
271
+ # source://guard-minitest//lib/guard/minitest/runner.rb#161
272
+ def zeus_command(paths); end
273
+ end
274
+
275
+ # source://guard-minitest//lib/guard/minitest/utils.rb#7
276
+ class Guard::Minitest::Utils
277
+ class << self
278
+ # source://guard-minitest//lib/guard/minitest/utils.rb#8
279
+ def minitest_version; end
280
+
281
+ # @return [Boolean]
282
+ #
283
+ # source://guard-minitest//lib/guard/minitest/utils.rb#19
284
+ def minitest_version_gte_5?; end
285
+
286
+ # @return [Boolean]
287
+ #
288
+ # source://guard-minitest//lib/guard/minitest/utils.rb#23
289
+ def minitest_version_gte_5_0_4?; end
290
+ end
291
+ end
292
+
293
+ # source://guard-minitest//lib/guard/minitest/version.rb#2
294
+ class Guard::MinitestVersion; end
295
+
296
+ # source://guard-minitest//lib/guard/minitest/version.rb#3
297
+ Guard::MinitestVersion::VERSION = T.let(T.unsafe(nil), String)
298
+
299
+ module Guard::SrbVersion; end