bhook 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +3 -0
- data/.ruby-version +1 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +27 -0
- data/Rakefile +13 -0
- data/bin/bhook +11 -0
- data/lib/bhook/args_parser.rb +55 -0
- data/lib/bhook/converter/html.rb +51 -0
- data/lib/bhook/directory.rb +62 -0
- data/lib/bhook/md_file.rb +50 -0
- data/lib/bhook/theme/_after_h1.erb +7 -0
- data/lib/bhook/theme/page.erb +71 -0
- data/lib/bhook/version.rb +6 -0
- data/lib/bhook/workspace.rb +45 -0
- data/lib/bhook.rb +22 -0
- data/sorbet/config +3 -0
- data/sorbet/rbi/gems/ast.rbi +49 -0
- data/sorbet/rbi/gems/bhook.rbi +15 -0
- data/sorbet/rbi/gems/git.rbi +531 -0
- data/sorbet/rbi/gems/kramdown.rbi +255 -0
- data/sorbet/rbi/gems/listen.rbi +304 -0
- data/sorbet/rbi/gems/parallel.rbi +83 -0
- data/sorbet/rbi/gems/parser.rbi +1440 -0
- data/sorbet/rbi/gems/rainbow.rbi +122 -0
- data/sorbet/rbi/gems/rake.rbi +644 -0
- data/sorbet/rbi/gems/rchardet.rbi +181 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +929 -0
- data/sorbet/rbi/gems/rexml.rbi +599 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1171 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1094 -0
- data/sorbet/rbi/gems/rspec-support.rbi +280 -0
- data/sorbet/rbi/gems/rspec.rbi +15 -0
- data/sorbet/rbi/gems/rubocop-ast.rbi +1385 -0
- data/sorbet/rbi/gems/rubocop-rake.rbi +85 -0
- data/sorbet/rbi/gems/rubocop-rspec.rbi +1044 -0
- data/sorbet/rbi/gems/rubocop.rbi +8593 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +304 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +20 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +4944 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +10044 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop/>=1.8/rubocop.rbi +12 -0
- data/sorbet/rbi/todo.rbi +7 -0
- metadata +235 -0
@@ -0,0 +1,255 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/kramdown/all/kramdown.rbi
|
9
|
+
#
|
10
|
+
# kramdown-2.3.1
|
11
|
+
|
12
|
+
module Kramdown
|
13
|
+
def self.data_dir; end
|
14
|
+
end
|
15
|
+
class Kramdown::Element
|
16
|
+
def attr; end
|
17
|
+
def block?; end
|
18
|
+
def children; end
|
19
|
+
def children=(arg0); end
|
20
|
+
def initialize(type, value = nil, attr = nil, options = nil); end
|
21
|
+
def inspect; end
|
22
|
+
def options; end
|
23
|
+
def self.category(el); end
|
24
|
+
def span?; end
|
25
|
+
def type; end
|
26
|
+
def type=(arg0); end
|
27
|
+
def value; end
|
28
|
+
def value=(arg0); end
|
29
|
+
end
|
30
|
+
class Kramdown::Error < RuntimeError
|
31
|
+
end
|
32
|
+
module Kramdown::Parser
|
33
|
+
end
|
34
|
+
module Kramdown::Utils
|
35
|
+
def self.camelize(name); end
|
36
|
+
def self.deep_const_get(str); end
|
37
|
+
def self.snake_case(name); end
|
38
|
+
end
|
39
|
+
module Kramdown::Utils::Configurable
|
40
|
+
def configurable(name); end
|
41
|
+
end
|
42
|
+
module Kramdown::Converter
|
43
|
+
def self.add_math_engine(data, *args, &block); end
|
44
|
+
def self.add_syntax_highlighter(data, *args, &block); end
|
45
|
+
def self.configurables; end
|
46
|
+
def self.math_engine(data); end
|
47
|
+
def self.syntax_highlighter(data); end
|
48
|
+
extend Kramdown::Utils::Configurable
|
49
|
+
end
|
50
|
+
module Kramdown::Options
|
51
|
+
def self.defaults; end
|
52
|
+
def self.define(name, type, default, desc, &block); end
|
53
|
+
def self.defined?(name); end
|
54
|
+
def self.definitions; end
|
55
|
+
def self.merge(hash); end
|
56
|
+
def self.parse(name, data); end
|
57
|
+
def self.simple_array_validator(val, name, size = nil); end
|
58
|
+
def self.simple_hash_validator(val, name); end
|
59
|
+
def self.str_to_sym(data); end
|
60
|
+
end
|
61
|
+
class Kramdown::Options::Boolean
|
62
|
+
def self.===(other); end
|
63
|
+
end
|
64
|
+
class Kramdown::Options::Definition < Struct
|
65
|
+
def default; end
|
66
|
+
def default=(_); end
|
67
|
+
def desc; end
|
68
|
+
def desc=(_); end
|
69
|
+
def name; end
|
70
|
+
def name=(_); end
|
71
|
+
def self.[](*arg0); end
|
72
|
+
def self.inspect; end
|
73
|
+
def self.members; end
|
74
|
+
def self.new(*arg0); end
|
75
|
+
def type; end
|
76
|
+
def type=(_); end
|
77
|
+
def validator; end
|
78
|
+
def validator=(_); end
|
79
|
+
end
|
80
|
+
class Kramdown::Document
|
81
|
+
def initialize(source, options = nil); end
|
82
|
+
def inspect; end
|
83
|
+
def method_missing(id, *attr, &block); end
|
84
|
+
def options; end
|
85
|
+
def root; end
|
86
|
+
def root=(arg0); end
|
87
|
+
def try_require(type, name); end
|
88
|
+
def warnings; end
|
89
|
+
end
|
90
|
+
class Kramdown::Converter::Base
|
91
|
+
def apply_template_after?; end
|
92
|
+
def apply_template_before?; end
|
93
|
+
def basic_generate_id(str); end
|
94
|
+
def convert(_el); end
|
95
|
+
def data; end
|
96
|
+
def extract_code_language!(attr); end
|
97
|
+
def extract_code_language(attr); end
|
98
|
+
def format_math(el, opts = nil); end
|
99
|
+
def generate_id(str); end
|
100
|
+
def highlight_code(text, lang, type, opts = nil); end
|
101
|
+
def in_toc?(el); end
|
102
|
+
def initialize(root, options); end
|
103
|
+
def options; end
|
104
|
+
def output_header_level(level); end
|
105
|
+
def root; end
|
106
|
+
def self.allocate; end
|
107
|
+
def self.apply_template(converter, body); end
|
108
|
+
def self.convert(tree, options = nil); end
|
109
|
+
def self.get_template(template); end
|
110
|
+
def self.new(*arg0); end
|
111
|
+
def smart_quote_entity(el); end
|
112
|
+
def warning(text); end
|
113
|
+
def warnings; end
|
114
|
+
end
|
115
|
+
module Kramdown::Utils::Html
|
116
|
+
def entity_to_str(e, original = nil); end
|
117
|
+
def escape_html(str, type = nil); end
|
118
|
+
def fix_cjk_line_break(str); end
|
119
|
+
def html_attributes(attr); end
|
120
|
+
end
|
121
|
+
class Kramdown::Parser::Base
|
122
|
+
def adapt_source(source); end
|
123
|
+
def add_text(text, tree = nil, type = nil); end
|
124
|
+
def extract_string(range, strscan); end
|
125
|
+
def initialize(source, options); end
|
126
|
+
def options; end
|
127
|
+
def parse; end
|
128
|
+
def root; end
|
129
|
+
def self.allocate; end
|
130
|
+
def self.new(*arg0); end
|
131
|
+
def self.parse(source, options = nil); end
|
132
|
+
def source; end
|
133
|
+
def warning(text); end
|
134
|
+
def warnings; end
|
135
|
+
end
|
136
|
+
module Kramdown::Utils::Entities
|
137
|
+
def entity(point_or_name); end
|
138
|
+
def self.entity(point_or_name); end
|
139
|
+
end
|
140
|
+
class Kramdown::Utils::Entities::Entity < Struct
|
141
|
+
def char; end
|
142
|
+
def code_point; end
|
143
|
+
def code_point=(_); end
|
144
|
+
def name; end
|
145
|
+
def name=(_); end
|
146
|
+
def self.[](*arg0); end
|
147
|
+
def self.inspect; end
|
148
|
+
def self.members; end
|
149
|
+
def self.new(*arg0); end
|
150
|
+
end
|
151
|
+
class Kramdown::Parser::Html < Kramdown::Parser::Base
|
152
|
+
def parse; end
|
153
|
+
include Kramdown::Parser::Html::Parser
|
154
|
+
end
|
155
|
+
module Kramdown::Parser::Html::Constants
|
156
|
+
end
|
157
|
+
module Kramdown::Parser::Html::Parser
|
158
|
+
def handle_html_start_tag(line = nil); end
|
159
|
+
def handle_raw_html_tag(name); end
|
160
|
+
def parse_html_attributes(str, line = nil, in_html_tag = nil); end
|
161
|
+
def parse_raw_html(el, &block); end
|
162
|
+
include Kramdown::Parser::Html::Constants
|
163
|
+
end
|
164
|
+
class Kramdown::Parser::Html::ElementConverter
|
165
|
+
def convert_a(el); end
|
166
|
+
def convert_b(el); end
|
167
|
+
def convert_code(el); end
|
168
|
+
def convert_em(el); end
|
169
|
+
def convert_h1(el); end
|
170
|
+
def convert_h2(el); end
|
171
|
+
def convert_h3(el); end
|
172
|
+
def convert_h4(el); end
|
173
|
+
def convert_h5(el); end
|
174
|
+
def convert_h6(el); end
|
175
|
+
def convert_i(el); end
|
176
|
+
def convert_pre(el); end
|
177
|
+
def convert_script(el); end
|
178
|
+
def convert_strong(el); end
|
179
|
+
def convert_table(el); end
|
180
|
+
def convert_textarea(el); end
|
181
|
+
def extract_text(el, raw); end
|
182
|
+
def handle_math_tag(el); end
|
183
|
+
def initialize(root); end
|
184
|
+
def is_math_tag?(el); end
|
185
|
+
def is_simple_table?(el); end
|
186
|
+
def process(el, do_conversion = nil, preserve_text = nil, parent = nil); end
|
187
|
+
def process_children(el, do_conversion = nil, preserve_text = nil); end
|
188
|
+
def process_html_element(el, do_conversion = nil, preserve_text = nil); end
|
189
|
+
def process_text(raw, preserve = nil); end
|
190
|
+
def remove_text_children(el); end
|
191
|
+
def remove_whitespace_children(el); end
|
192
|
+
def self.convert(root, el = nil); end
|
193
|
+
def set_basics(el, type, opts = nil); end
|
194
|
+
def strip_whitespace(el); end
|
195
|
+
def wrap_text_children(el); end
|
196
|
+
include Kramdown::Parser::Html::Constants
|
197
|
+
include Kramdown::Utils::Entities
|
198
|
+
end
|
199
|
+
class Kramdown::Converter::Html < Kramdown::Converter::Base
|
200
|
+
def add_syntax_highlighter_to_class_attr(attr, lang = nil); end
|
201
|
+
def convert(el, indent = nil); end
|
202
|
+
def convert_a(el, indent); end
|
203
|
+
def convert_abbreviation(el, _indent); end
|
204
|
+
def convert_blank(_el, _indent); end
|
205
|
+
def convert_blockquote(el, indent); end
|
206
|
+
def convert_br(_el, _indent); end
|
207
|
+
def convert_codeblock(el, indent); end
|
208
|
+
def convert_codespan(el, _indent); end
|
209
|
+
def convert_comment(el, indent); end
|
210
|
+
def convert_dd(el, indent); end
|
211
|
+
def convert_dl(el, indent); end
|
212
|
+
def convert_dt(el, indent); end
|
213
|
+
def convert_em(el, indent); end
|
214
|
+
def convert_entity(el, _indent); end
|
215
|
+
def convert_footnote(el, _indent); end
|
216
|
+
def convert_header(el, indent); end
|
217
|
+
def convert_hr(el, indent); end
|
218
|
+
def convert_html_element(el, indent); end
|
219
|
+
def convert_img(el, _indent); end
|
220
|
+
def convert_li(el, indent); end
|
221
|
+
def convert_math(el, indent); end
|
222
|
+
def convert_ol(el, indent); end
|
223
|
+
def convert_p(el, indent); end
|
224
|
+
def convert_raw(el, _indent); end
|
225
|
+
def convert_root(el, indent); end
|
226
|
+
def convert_smart_quote(el, _indent); end
|
227
|
+
def convert_standalone_image(el, indent); end
|
228
|
+
def convert_strong(el, indent); end
|
229
|
+
def convert_table(el, indent); end
|
230
|
+
def convert_tbody(el, indent); end
|
231
|
+
def convert_td(el, indent); end
|
232
|
+
def convert_text(el, _indent); end
|
233
|
+
def convert_tfoot(el, indent); end
|
234
|
+
def convert_thead(el, indent); end
|
235
|
+
def convert_tr(el, indent); end
|
236
|
+
def convert_typographic_sym(el, _indent); end
|
237
|
+
def convert_ul(el, indent); end
|
238
|
+
def convert_xml_comment(el, indent); end
|
239
|
+
def convert_xml_pi(el, indent); end
|
240
|
+
def fix_for_toc_entry(elements); end
|
241
|
+
def footnote_content; end
|
242
|
+
def format_as_block_html(name, attr, body, indent); end
|
243
|
+
def format_as_indented_block_html(name, attr, body, indent); end
|
244
|
+
def format_as_span_html(name, attr, body); end
|
245
|
+
def generate_toc_tree(toc, type, attr); end
|
246
|
+
def indent; end
|
247
|
+
def indent=(arg0); end
|
248
|
+
def initialize(root, options); end
|
249
|
+
def inner(el, indent); end
|
250
|
+
def obfuscate(text); end
|
251
|
+
def remove_footnotes(elements); end
|
252
|
+
def unwrap_links(elements); end
|
253
|
+
include Kramdown::Parser::Html::Constants
|
254
|
+
include Kramdown::Utils::Html
|
255
|
+
end
|
@@ -0,0 +1,304 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/listen/all/listen.rbi
|
9
|
+
#
|
10
|
+
# listen-3.7.1
|
11
|
+
|
12
|
+
module Listen
|
13
|
+
def self.default_logger; end
|
14
|
+
def self.logger; end
|
15
|
+
def self.logger=(arg0); end
|
16
|
+
def self.stop; end
|
17
|
+
def self.to(*args, &block); end
|
18
|
+
end
|
19
|
+
class Listen::Options
|
20
|
+
def initialize(opts, defaults); end
|
21
|
+
def method_missing(name, *_); end
|
22
|
+
def respond_to_missing?(name, *_); end
|
23
|
+
end
|
24
|
+
class Listen::Record
|
25
|
+
def _fast_build_dir(remaining, symlink_detector); end
|
26
|
+
def _fast_try_file(entry); end
|
27
|
+
def _fast_unset_path(dirname, basename); end
|
28
|
+
def _fast_update_file(dirname, basename, data); end
|
29
|
+
def add_dir(rel_path); end
|
30
|
+
def build; end
|
31
|
+
def dir_entries(rel_path); end
|
32
|
+
def empty_dirname?(dirname); end
|
33
|
+
def file_data(rel_path); end
|
34
|
+
def initialize(directory, silencer); end
|
35
|
+
def reset_tree; end
|
36
|
+
def root; end
|
37
|
+
def unset_path(rel_path); end
|
38
|
+
def update_file(rel_path, data); end
|
39
|
+
end
|
40
|
+
class Listen::Record::Entry
|
41
|
+
def _entries(dir); end
|
42
|
+
def _join; end
|
43
|
+
def children; end
|
44
|
+
def initialize(root, relative, name = nil); end
|
45
|
+
def meta; end
|
46
|
+
def name; end
|
47
|
+
def real_path; end
|
48
|
+
def record_dir_key; end
|
49
|
+
def relative; end
|
50
|
+
def root; end
|
51
|
+
def sys_path; end
|
52
|
+
end
|
53
|
+
class Listen::Error < RuntimeError
|
54
|
+
end
|
55
|
+
class Listen::Error::NotStarted < Listen::Error
|
56
|
+
end
|
57
|
+
class Listen::Error::SymlinkLoop < Listen::Error
|
58
|
+
end
|
59
|
+
class Listen::Error::INotifyMaxWatchesExceeded < Listen::Error
|
60
|
+
end
|
61
|
+
class Listen::Record::SymlinkDetector
|
62
|
+
def _fail(symlinked, real_path); end
|
63
|
+
def initialize; end
|
64
|
+
def verify_unwatched!(entry); end
|
65
|
+
end
|
66
|
+
class Listen::File
|
67
|
+
def self.change(record, rel_path); end
|
68
|
+
def self.inaccurate_mac_time?(stat); end
|
69
|
+
end
|
70
|
+
class Listen::Directory
|
71
|
+
def self._async_changes(snapshot, path, previous, options); end
|
72
|
+
def self._change(snapshot, type, path, options); end
|
73
|
+
def self._children(path); end
|
74
|
+
def self.ascendant_of?(base, other); end
|
75
|
+
def self.scan(snapshot, rel_path, options); end
|
76
|
+
end
|
77
|
+
class Listen::Change
|
78
|
+
def initialize(config, record); end
|
79
|
+
def invalidate(type, rel_path, options); end
|
80
|
+
def record; end
|
81
|
+
end
|
82
|
+
class Listen::Change::Config
|
83
|
+
def initialize(queue, silencer); end
|
84
|
+
def queue(*args); end
|
85
|
+
def silenced?(path, type); end
|
86
|
+
end
|
87
|
+
module Listen::Thread
|
88
|
+
def self._exception_with_causes(exception); end
|
89
|
+
def self._log_exception(exception, thread_name, caller_stack: nil); end
|
90
|
+
def self.new(name, &block); end
|
91
|
+
def self.rescue_and_log(method_name, *args, caller_stack: nil); end
|
92
|
+
end
|
93
|
+
module Listen::Adapter
|
94
|
+
def self._usable_adapter_class; end
|
95
|
+
def self._warn_polling_fallback(options); end
|
96
|
+
def self.select(options = nil); end
|
97
|
+
end
|
98
|
+
class Listen::Adapter::Base
|
99
|
+
def _log_exception(msg, caller_stack); end
|
100
|
+
def _queue_change(type, dir, rel_path, options); end
|
101
|
+
def _stop; end
|
102
|
+
def _timed(title); end
|
103
|
+
def config; end
|
104
|
+
def configure; end
|
105
|
+
def initialize(config); end
|
106
|
+
def options; end
|
107
|
+
def self.usable?; end
|
108
|
+
def start; end
|
109
|
+
def started?; end
|
110
|
+
def stop; end
|
111
|
+
end
|
112
|
+
class Listen::Adapter::BSD < Listen::Adapter::Base
|
113
|
+
def _change(event_flags); end
|
114
|
+
def _configure(directory, &callback); end
|
115
|
+
def _event_path(event); end
|
116
|
+
def _find(*paths, &block); end
|
117
|
+
def _process_event(dir, event); end
|
118
|
+
def _run; end
|
119
|
+
def _watch_file(path, queue); end
|
120
|
+
def _watch_for_new_file(event); end
|
121
|
+
def self.usable?; end
|
122
|
+
end
|
123
|
+
class Listen::Adapter::Darwin < Listen::Adapter::Base
|
124
|
+
def _configure(dir, &callback); end
|
125
|
+
def _process_changes(dirs); end
|
126
|
+
def _process_event(dir, path); end
|
127
|
+
def _run; end
|
128
|
+
def _stop; end
|
129
|
+
def self.usable?; end
|
130
|
+
end
|
131
|
+
class Listen::Adapter::Linux < Listen::Adapter::Base
|
132
|
+
def _change(event_flags); end
|
133
|
+
def _configure(directory, &callback); end
|
134
|
+
def _dir_event?(event); end
|
135
|
+
def _process_event(dir, event); end
|
136
|
+
def _run; end
|
137
|
+
def _skip_event?(event); end
|
138
|
+
def _stop; end
|
139
|
+
end
|
140
|
+
class Listen::Adapter::Polling < Listen::Adapter::Base
|
141
|
+
def _configure(_, &callback); end
|
142
|
+
def _process_event(dir, _); end
|
143
|
+
def _run; end
|
144
|
+
end
|
145
|
+
class Listen::Adapter::Windows < Listen::Adapter::Base
|
146
|
+
def _change(type); end
|
147
|
+
def _configure(dir); end
|
148
|
+
def _process_event(dir, event); end
|
149
|
+
def _run; end
|
150
|
+
def self.usable?; end
|
151
|
+
end
|
152
|
+
class Listen::Adapter::Config
|
153
|
+
def adapter_options; end
|
154
|
+
def directories; end
|
155
|
+
def initialize(directories, queue, silencer, adapter_options); end
|
156
|
+
def queue; end
|
157
|
+
def silencer; end
|
158
|
+
end
|
159
|
+
class Listen::Backend
|
160
|
+
def adapter; end
|
161
|
+
def initialize(directories, queue, silencer, config); end
|
162
|
+
def min_delay_between_events; end
|
163
|
+
def start(*args, &block); end
|
164
|
+
def stop(*args, &block); end
|
165
|
+
extend Forwardable
|
166
|
+
end
|
167
|
+
class Listen::Silencer
|
168
|
+
def _ignore?(path); end
|
169
|
+
def _init_ignores(ignores, overrides); end
|
170
|
+
def _only?(path); end
|
171
|
+
def configure(options); end
|
172
|
+
def ignore_patterns; end
|
173
|
+
def ignore_patterns=(arg0); end
|
174
|
+
def initialize(**options); end
|
175
|
+
def only_patterns; end
|
176
|
+
def only_patterns=(arg0); end
|
177
|
+
def silenced?(relative_path, type); end
|
178
|
+
end
|
179
|
+
class Listen::Silencer::Controller
|
180
|
+
def _reconfigure_silencer(extra_options); end
|
181
|
+
def append_ignores(*regexps); end
|
182
|
+
def initialize(silencer, default_options); end
|
183
|
+
def replace_with_bang_ignores(regexps); end
|
184
|
+
def replace_with_only(regexps); end
|
185
|
+
end
|
186
|
+
class Listen::QueueOptimizer
|
187
|
+
def _calculate_add_remove_difference(actions, path, default_if_exists); end
|
188
|
+
def _logical_action_for(path, actions); end
|
189
|
+
def _reinterpret_related_changes(cookies); end
|
190
|
+
def _squash_changes(changes); end
|
191
|
+
def config; end
|
192
|
+
def editor_modified?(changes); end
|
193
|
+
def initialize(config); end
|
194
|
+
def smoosh_changes(changes); end
|
195
|
+
end
|
196
|
+
class Listen::QueueOptimizer::Config
|
197
|
+
def debug(*args, &block); end
|
198
|
+
def exist?(path); end
|
199
|
+
def initialize(adapter_class, silencer); end
|
200
|
+
def silenced?(path, type); end
|
201
|
+
end
|
202
|
+
module Listen::FSM
|
203
|
+
def current_state; end
|
204
|
+
def initialize_fsm; end
|
205
|
+
def self.included(klass); end
|
206
|
+
def state; end
|
207
|
+
def transition!(new_state_name); end
|
208
|
+
def transition(new_state_name); end
|
209
|
+
def transition_with_callbacks!(new_state); end
|
210
|
+
def validate_and_sanitize_new_state(new_state_name); end
|
211
|
+
def wait_for_state(*wait_for_states, timeout: nil); end
|
212
|
+
end
|
213
|
+
module Listen::FSM::ClassMethods
|
214
|
+
def start_state(new_start_state = nil); end
|
215
|
+
def state(state_name, to: nil, &block); end
|
216
|
+
def states; end
|
217
|
+
end
|
218
|
+
class Listen::FSM::State
|
219
|
+
def call(obj); end
|
220
|
+
def initialize(name, transitions, &block); end
|
221
|
+
def name; end
|
222
|
+
def transitions; end
|
223
|
+
def valid_transition?(new_state); end
|
224
|
+
end
|
225
|
+
module Listen::MonotonicTime
|
226
|
+
def self.now; end
|
227
|
+
end
|
228
|
+
module Listen::Event
|
229
|
+
end
|
230
|
+
class Listen::Event::Processor
|
231
|
+
def _check_stopped; end
|
232
|
+
def _deadline; end
|
233
|
+
def _flush_wakeup_reasons; end
|
234
|
+
def _process_changes(event); end
|
235
|
+
def _remember_time_of_first_unprocessed_event; end
|
236
|
+
def _reset_no_unprocessed_events; end
|
237
|
+
def _sleep(seconds); end
|
238
|
+
def _wait_until_events; end
|
239
|
+
def _wait_until_events_calm_down; end
|
240
|
+
def _wait_until_no_longer_paused; end
|
241
|
+
def config; end
|
242
|
+
def initialize(config, reasons); end
|
243
|
+
def loop_for(latency); end
|
244
|
+
end
|
245
|
+
class Listen::Event::Processor::Stopped < RuntimeError
|
246
|
+
end
|
247
|
+
class Listen::Event::Loop
|
248
|
+
def _process_changes; end
|
249
|
+
def _wakeup(reason); end
|
250
|
+
def initialize(config); end
|
251
|
+
def pause; end
|
252
|
+
def start; end
|
253
|
+
def started?; end
|
254
|
+
def stop; end
|
255
|
+
def stopped?; end
|
256
|
+
def wakeup_on_event; end
|
257
|
+
extend Listen::FSM::ClassMethods
|
258
|
+
include Listen::FSM
|
259
|
+
end
|
260
|
+
class Listen::Event::Queue
|
261
|
+
def <<(args); end
|
262
|
+
def _safe_relative_from_cwd(dir); end
|
263
|
+
def close(*args, &block); end
|
264
|
+
def empty?(*args, &block); end
|
265
|
+
def initialize(config); end
|
266
|
+
def pop(*args, &block); end
|
267
|
+
extend Forwardable
|
268
|
+
end
|
269
|
+
class Listen::Event::Queue::Config
|
270
|
+
def initialize(relative); end
|
271
|
+
def relative?; end
|
272
|
+
end
|
273
|
+
class Listen::Event::Config
|
274
|
+
def call(*args); end
|
275
|
+
def callable?; end
|
276
|
+
def event_queue; end
|
277
|
+
def initialize(listener, event_queue, queue_optimizer, wait_for_delay, &block); end
|
278
|
+
def listener; end
|
279
|
+
def min_delay_between_events; end
|
280
|
+
def optimize_changes(changes); end
|
281
|
+
def sleep(seconds); end
|
282
|
+
end
|
283
|
+
class Listen::Listener
|
284
|
+
def ignore!(regexps); end
|
285
|
+
def ignore(regexps); end
|
286
|
+
def initialize(*dirs, &block); end
|
287
|
+
def only(regexps); end
|
288
|
+
def pause; end
|
289
|
+
def paused?; end
|
290
|
+
def processing?; end
|
291
|
+
def start; end
|
292
|
+
def stop; end
|
293
|
+
def stopped?; end
|
294
|
+
extend Listen::FSM::ClassMethods
|
295
|
+
include Listen::FSM
|
296
|
+
end
|
297
|
+
class Listen::Listener::Config
|
298
|
+
def adapter_instance_options(klass); end
|
299
|
+
def adapter_select_options; end
|
300
|
+
def initialize(opts); end
|
301
|
+
def min_delay_between_events; end
|
302
|
+
def relative?; end
|
303
|
+
def silencer_rules; end
|
304
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strict
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/parallel/all/parallel.rbi
|
9
|
+
#
|
10
|
+
# parallel-1.21.0
|
11
|
+
|
12
|
+
module Parallel
|
13
|
+
def self.add_progress_bar!(job_factory, options); end
|
14
|
+
def self.all?(*args, &block); end
|
15
|
+
def self.any?(*args, &block); end
|
16
|
+
def self.call_with_index(item, index, options, &block); end
|
17
|
+
def self.create_workers(job_factory, options, &block); end
|
18
|
+
def self.each(array, options = nil, &block); end
|
19
|
+
def self.each_with_index(array, options = nil, &block); end
|
20
|
+
def self.extract_count_from_options(options); end
|
21
|
+
def self.flat_map(*args, &block); end
|
22
|
+
def self.in_processes(options = nil, &block); end
|
23
|
+
def self.in_threads(options = nil); end
|
24
|
+
def self.map(source, options = nil, &block); end
|
25
|
+
def self.map_with_index(array, options = nil, &block); end
|
26
|
+
def self.process_incoming_jobs(read, write, job_factory, options, &block); end
|
27
|
+
def self.replace_worker(job_factory, workers, index, options, blk); end
|
28
|
+
def self.with_instrumentation(item, index, options); end
|
29
|
+
def self.work_direct(job_factory, options, &block); end
|
30
|
+
def self.work_in_processes(job_factory, options, &blk); end
|
31
|
+
def self.work_in_threads(job_factory, options, &block); end
|
32
|
+
def self.worker(job_factory, options, &block); end
|
33
|
+
def self.worker_number; end
|
34
|
+
def self.worker_number=(worker_num); end
|
35
|
+
extend Parallel::ProcessorCount
|
36
|
+
end
|
37
|
+
module Parallel::ProcessorCount
|
38
|
+
def physical_processor_count; end
|
39
|
+
def processor_count; end
|
40
|
+
end
|
41
|
+
class Parallel::DeadWorker < StandardError
|
42
|
+
end
|
43
|
+
class Parallel::Break < StandardError
|
44
|
+
def initialize(value = nil); end
|
45
|
+
def value; end
|
46
|
+
end
|
47
|
+
class Parallel::Kill < Parallel::Break
|
48
|
+
end
|
49
|
+
class Parallel::UndumpableException < StandardError
|
50
|
+
def backtrace; end
|
51
|
+
def initialize(original); end
|
52
|
+
end
|
53
|
+
class Parallel::ExceptionWrapper
|
54
|
+
def exception; end
|
55
|
+
def initialize(exception); end
|
56
|
+
end
|
57
|
+
class Parallel::Worker
|
58
|
+
def close_pipes; end
|
59
|
+
def initialize(read, write, pid); end
|
60
|
+
def pid; end
|
61
|
+
def read; end
|
62
|
+
def stop; end
|
63
|
+
def thread; end
|
64
|
+
def thread=(arg0); end
|
65
|
+
def wait; end
|
66
|
+
def work(data); end
|
67
|
+
def write; end
|
68
|
+
end
|
69
|
+
class Parallel::JobFactory
|
70
|
+
def initialize(source, mutex); end
|
71
|
+
def next; end
|
72
|
+
def pack(item, index); end
|
73
|
+
def producer?; end
|
74
|
+
def queue_wrapper(array); end
|
75
|
+
def size; end
|
76
|
+
def unpack(data); end
|
77
|
+
end
|
78
|
+
class Parallel::UserInterruptHandler
|
79
|
+
def self.kill(thing); end
|
80
|
+
def self.kill_on_ctrl_c(pids, options); end
|
81
|
+
def self.restore_interrupt(old, signal); end
|
82
|
+
def self.trap_interrupt(signal); end
|
83
|
+
end
|