dry-monads-sorbet 1.1.2 → 1.1.6.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +7 -3
- data/.ruby-version +1 -1
- data/CHANGELOG.md +18 -2
- data/lib/bundled_rbi/dry-monads.rbi +12 -525
- data/lib/dry-monads-sorbet.rb +1 -0
- data/lib/dry-monads-sorbet/railtie.rb +1 -0
- data/lib/dry/monads/sorbet/version.rb +2 -1
- data/sorbet/config +4 -0
- data/sorbet/rbi/gems/activesupport.rbi +1722 -0
- data/sorbet/rbi/gems/ast.rbi +48 -0
- data/sorbet/rbi/gems/byebug.rbi +1041 -0
- data/sorbet/rbi/gems/coderay.rbi +285 -0
- data/sorbet/rbi/gems/concurrent-ruby.rbi +1586 -0
- data/sorbet/rbi/gems/docile.rbi +32 -0
- data/sorbet/rbi/gems/dry-core.rbi +38 -0
- data/sorbet/rbi/gems/dry-equalizer.rbi +26 -0
- data/sorbet/rbi/gems/dry-monads.rbi +510 -0
- data/sorbet/rbi/gems/em-websocket.rbi +225 -0
- data/sorbet/rbi/gems/eventmachine.rbi +489 -0
- data/sorbet/rbi/gems/ffaker.rbi +60 -0
- data/sorbet/rbi/gems/guard.rbi +397 -0
- data/sorbet/rbi/gems/http_parser.rb.rbi +37 -0
- data/sorbet/rbi/gems/i18n.rbi +133 -0
- data/sorbet/rbi/gems/kwalify.rbi +340 -0
- data/sorbet/rbi/gems/listen.rbi +324 -0
- data/sorbet/rbi/gems/lumberjack.rbi +300 -0
- data/sorbet/rbi/gems/method_source.rbi +64 -0
- data/sorbet/rbi/gems/multi_json.rbi +62 -0
- data/sorbet/rbi/gems/nenv.rbi +60 -0
- data/sorbet/rbi/gems/notiffany.rbi +215 -0
- data/sorbet/rbi/gems/parallel.rbi +82 -0
- data/sorbet/rbi/gems/parser.rbi +1846 -0
- data/sorbet/rbi/gems/pry-byebug.rbi +155 -0
- data/sorbet/rbi/gems/pry.rbi +1949 -0
- data/sorbet/rbi/gems/rainbow.rbi +118 -0
- data/sorbet/rbi/gems/rake.rbi +648 -0
- data/sorbet/rbi/gems/rb-fsevent.rbi +31 -0
- data/sorbet/rbi/gems/rb-readline.rbi +767 -0
- data/sorbet/rbi/gems/reek.rbi +1027 -0
- data/sorbet/rbi/gems/regexp_parser.rbi +913 -0
- data/sorbet/rbi/gems/rexml.rbi +605 -0
- data/sorbet/rbi/gems/rspec-core.rbi +1913 -0
- data/sorbet/rbi/gems/rspec-expectations.rbi +1123 -0
- data/sorbet/rbi/gems/rspec-mocks.rbi +1099 -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 +1053 -0
- data/sorbet/rbi/gems/rubocop-rspec.rbi +937 -0
- data/sorbet/rbi/gems/rubocop.rbi +6841 -0
- data/sorbet/rbi/gems/ruby-progressbar.rbi +305 -0
- data/sorbet/rbi/gems/shellany.rbi +29 -0
- data/sorbet/rbi/gems/shoulda-matchers.rbi +1848 -0
- data/sorbet/rbi/gems/simplecov-html.rbi +35 -0
- data/sorbet/rbi/gems/simplecov.rbi +361 -0
- data/sorbet/rbi/gems/sqlite3.rbi +354 -0
- data/sorbet/rbi/gems/stackprof.rbi +52 -0
- data/sorbet/rbi/gems/thor.rbi +32 -0
- data/sorbet/rbi/gems/thread_safe.rbi +82 -0
- data/sorbet/rbi/gems/timecop.rbi +98 -0
- data/sorbet/rbi/gems/tzinfo.rbi +406 -0
- data/sorbet/rbi/gems/unicode-display_width.rbi +17 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +7267 -0
- data/sorbet/rbi/hidden-definitions/hidden.rbi +14661 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
- data/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +1431 -0
- data/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +108 -0
- data/sorbet/rbi/sorbet-typed/lib/rainbow/all/rainbow.rbi +276 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop-rspec/~>1.39/rubocop-rspec.rbi +398 -0
- data/sorbet/rbi/sorbet-typed/lib/rubocop/~>0.85/rubocop.rbi +2072 -0
- data/sorbet/rbi/todo.rbi +8 -0
- metadata +71 -8
@@ -0,0 +1,64 @@
|
|
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/method_source/all/method_source.rbi
|
9
|
+
#
|
10
|
+
# method_source-1.0.0
|
11
|
+
|
12
|
+
module MethodSource
|
13
|
+
def self.comment_helper(source_location, name = nil); end
|
14
|
+
def self.extract_code(source_location); end
|
15
|
+
def self.lines_for(file_name, name = nil); end
|
16
|
+
def self.source_helper(source_location, name = nil); end
|
17
|
+
def self.valid_expression?(str); end
|
18
|
+
extend MethodSource::CodeHelpers
|
19
|
+
end
|
20
|
+
module MethodSource::ReeSourceLocation
|
21
|
+
def source_location; end
|
22
|
+
end
|
23
|
+
module MethodSource::SourceLocation
|
24
|
+
end
|
25
|
+
module MethodSource::SourceLocation::MethodExtensions
|
26
|
+
def source_location; end
|
27
|
+
def trace_func(event, file, line, id, binding, classname); end
|
28
|
+
end
|
29
|
+
module MethodSource::SourceLocation::ProcExtensions
|
30
|
+
def source_location; end
|
31
|
+
end
|
32
|
+
module MethodSource::SourceLocation::UnboundMethodExtensions
|
33
|
+
def source_location; end
|
34
|
+
end
|
35
|
+
module MethodSource::CodeHelpers
|
36
|
+
def comment_describing(file, line_number); end
|
37
|
+
def complete_expression?(str); end
|
38
|
+
def expression_at(file, line_number, options = nil); end
|
39
|
+
def extract_first_expression(lines, consume = nil, &block); end
|
40
|
+
def extract_last_comment(lines); end
|
41
|
+
end
|
42
|
+
module MethodSource::CodeHelpers::IncompleteExpression
|
43
|
+
def self.===(ex); end
|
44
|
+
def self.rbx?; end
|
45
|
+
end
|
46
|
+
class MethodSource::SourceNotFoundError < StandardError
|
47
|
+
end
|
48
|
+
module MethodSource::MethodExtensions
|
49
|
+
def comment; end
|
50
|
+
def self.included(klass); end
|
51
|
+
def source; end
|
52
|
+
end
|
53
|
+
class Method
|
54
|
+
include MethodSource::MethodExtensions
|
55
|
+
include MethodSource::SourceLocation::MethodExtensions
|
56
|
+
end
|
57
|
+
class UnboundMethod
|
58
|
+
include MethodSource::MethodExtensions
|
59
|
+
include MethodSource::SourceLocation::UnboundMethodExtensions
|
60
|
+
end
|
61
|
+
class Proc
|
62
|
+
include MethodSource::MethodExtensions
|
63
|
+
include MethodSource::SourceLocation::ProcExtensions
|
64
|
+
end
|
@@ -0,0 +1,62 @@
|
|
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/multi_json/all/multi_json.rbi
|
9
|
+
#
|
10
|
+
# multi_json-1.15.0
|
11
|
+
|
12
|
+
module MultiJson
|
13
|
+
def adapter; end
|
14
|
+
def adapter=(new_adapter); end
|
15
|
+
def cached_options(*arg0); end
|
16
|
+
def current_adapter(options = nil); end
|
17
|
+
def decode(string, options = nil); end
|
18
|
+
def default_adapter; end
|
19
|
+
def default_engine; end
|
20
|
+
def default_options; end
|
21
|
+
def default_options=(value); end
|
22
|
+
def dump(object, options = nil); end
|
23
|
+
def encode(object, options = nil); end
|
24
|
+
def engine; end
|
25
|
+
def engine=(new_adapter); end
|
26
|
+
def load(string, options = nil); end
|
27
|
+
def load_adapter(new_adapter); end
|
28
|
+
def load_adapter_from_string_name(name); end
|
29
|
+
def reset_cached_options!(*arg0); end
|
30
|
+
def use(new_adapter); end
|
31
|
+
def with_adapter(new_adapter); end
|
32
|
+
def with_engine(new_adapter); end
|
33
|
+
extend MultiJson
|
34
|
+
include MultiJson::Options
|
35
|
+
end
|
36
|
+
module MultiJson::Options
|
37
|
+
def default_dump_options; end
|
38
|
+
def default_load_options; end
|
39
|
+
def dump_options(*args); end
|
40
|
+
def dump_options=(options); end
|
41
|
+
def get_options(options, *args); end
|
42
|
+
def load_options(*args); end
|
43
|
+
def load_options=(options); end
|
44
|
+
end
|
45
|
+
class MultiJson::Version
|
46
|
+
def self.to_s; end
|
47
|
+
end
|
48
|
+
class MultiJson::AdapterError < ArgumentError
|
49
|
+
def cause; end
|
50
|
+
def self.build(original_exception); end
|
51
|
+
end
|
52
|
+
class MultiJson::ParseError < StandardError
|
53
|
+
def cause; end
|
54
|
+
def data; end
|
55
|
+
def self.build(original_exception, data); end
|
56
|
+
end
|
57
|
+
module MultiJson::OptionsCache
|
58
|
+
def fetch(type, key, &block); end
|
59
|
+
def reset; end
|
60
|
+
def write(cache, key); end
|
61
|
+
extend MultiJson::OptionsCache
|
62
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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/nenv/all/nenv.rbi
|
9
|
+
#
|
10
|
+
# nenv-0.3.0
|
11
|
+
|
12
|
+
module Nenv
|
13
|
+
def self.instance; end
|
14
|
+
def self.method_missing(meth, *args); end
|
15
|
+
def self.reset; end
|
16
|
+
def self.respond_to?(meth); end
|
17
|
+
end
|
18
|
+
class Nenv::Environment
|
19
|
+
def _namespaced_sanitize(meth); end
|
20
|
+
def _sanitize(meth); end
|
21
|
+
def create_method(meth, &block); end
|
22
|
+
def initialize(namespace = nil); end
|
23
|
+
def self._create_env_accessor(klass, meth, &block); end
|
24
|
+
def self._create_env_reader(klass, meth, &block); end
|
25
|
+
def self._create_env_writer(klass, meth, &block); end
|
26
|
+
def self._fail_if_accessor_exists(klass, meth); end
|
27
|
+
def self.create_method(meth, &block); end
|
28
|
+
end
|
29
|
+
module Nenv::Environment::Dumper::Default
|
30
|
+
def self.call(raw_value); end
|
31
|
+
end
|
32
|
+
module Nenv::Environment::Dumper
|
33
|
+
def self.setup(&callback); end
|
34
|
+
end
|
35
|
+
module Nenv::Environment::Loader::Predicate
|
36
|
+
def self.call(raw_value); end
|
37
|
+
end
|
38
|
+
module Nenv::Environment::Loader::Default
|
39
|
+
def self.call(raw_value); end
|
40
|
+
end
|
41
|
+
module Nenv::Environment::Loader
|
42
|
+
def self.setup(meth, &callback); end
|
43
|
+
end
|
44
|
+
class Nenv::Environment::Error < ArgumentError
|
45
|
+
end
|
46
|
+
class Nenv::Environment::MethodError < Nenv::Environment::Error
|
47
|
+
def initialize(meth); end
|
48
|
+
end
|
49
|
+
class Nenv::Environment::AlreadyExistsError < Nenv::Environment::MethodError
|
50
|
+
def message; end
|
51
|
+
end
|
52
|
+
class Nenv::AutoEnvironment < Nenv::Environment
|
53
|
+
def method_missing(meth, *args); end
|
54
|
+
end
|
55
|
+
module Nenv::Builder
|
56
|
+
def self.build(&block); end
|
57
|
+
end
|
58
|
+
class Object < BasicObject
|
59
|
+
def Nenv(namespace = nil); end
|
60
|
+
end
|
@@ -0,0 +1,215 @@
|
|
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/notiffany/all/notiffany.rbi
|
9
|
+
#
|
10
|
+
# notiffany-0.1.3
|
11
|
+
|
12
|
+
module Notiffany
|
13
|
+
def self.connect(options = nil); end
|
14
|
+
end
|
15
|
+
class Notiffany::Notifier
|
16
|
+
def _activate; end
|
17
|
+
def _check_server!; end
|
18
|
+
def _client?; end
|
19
|
+
def _detect_or_add_notifiers; end
|
20
|
+
def _env; end
|
21
|
+
def _notification_wanted?; end
|
22
|
+
def _turn_on_notifiers(options); end
|
23
|
+
def active?; end
|
24
|
+
def available; end
|
25
|
+
def config; end
|
26
|
+
def disconnect; end
|
27
|
+
def enabled?; end
|
28
|
+
def initialize(opts); end
|
29
|
+
def notify(message, message_opts = nil); end
|
30
|
+
def turn_off; end
|
31
|
+
def turn_on(options = nil); end
|
32
|
+
end
|
33
|
+
class Notiffany::Notifier::Base
|
34
|
+
def _check_available(_options); end
|
35
|
+
def _check_host_supported; end
|
36
|
+
def _gem_name; end
|
37
|
+
def _image_path(image); end
|
38
|
+
def _notification_type(image); end
|
39
|
+
def _notify_options(overrides = nil); end
|
40
|
+
def _perform_notify(_message, _opts); end
|
41
|
+
def _require_gem; end
|
42
|
+
def _supported_hosts; end
|
43
|
+
def initialize(opts = nil); end
|
44
|
+
def name; end
|
45
|
+
def notify(message, opts = nil); end
|
46
|
+
def options; end
|
47
|
+
def title; end
|
48
|
+
end
|
49
|
+
class Notiffany::Notifier::Base::UnavailableError < RuntimeError
|
50
|
+
def initialize(reason); end
|
51
|
+
def message; end
|
52
|
+
end
|
53
|
+
class Notiffany::Notifier::Base::RequireFailed < Notiffany::Notifier::Base::UnavailableError
|
54
|
+
def initialize(gem_name); end
|
55
|
+
end
|
56
|
+
class Notiffany::Notifier::Base::UnsupportedPlatform < Notiffany::Notifier::Base::UnavailableError
|
57
|
+
def initialize; end
|
58
|
+
end
|
59
|
+
class Notiffany::Notifier::Emacs < Notiffany::Notifier::Base
|
60
|
+
def _check_available(options); end
|
61
|
+
def _emacs_color(type, options = nil); end
|
62
|
+
def _erb_for(filename); end
|
63
|
+
def _gem_name; end
|
64
|
+
def _perform_notify(message, opts = nil); end
|
65
|
+
end
|
66
|
+
class Notiffany::Notifier::Emacs::Client
|
67
|
+
def _emacs_eval(env, code); end
|
68
|
+
def available?; end
|
69
|
+
def elisp_erb; end
|
70
|
+
def initialize(options); end
|
71
|
+
def notify(color, bgcolor, message = nil); end
|
72
|
+
end
|
73
|
+
class Notiffany::Notifier::Emacs::Client::Elisp < ERB
|
74
|
+
def bgcolor; end
|
75
|
+
def color; end
|
76
|
+
def initialize(code, color, bgcolor, message); end
|
77
|
+
def message; end
|
78
|
+
def result; end
|
79
|
+
end
|
80
|
+
class Notiffany::Notifier::File < Notiffany::Notifier::Base
|
81
|
+
def _check_available(opts = nil); end
|
82
|
+
def _gem_name; end
|
83
|
+
def _perform_notify(message, opts = nil); end
|
84
|
+
end
|
85
|
+
class Notiffany::Notifier::GNTP < Notiffany::Notifier::Base
|
86
|
+
def _check_available(_opts); end
|
87
|
+
def _gem_name; end
|
88
|
+
def _gntp_client(opts = nil); end
|
89
|
+
def _perform_notify(message, opts = nil); end
|
90
|
+
def _supported_hosts; end
|
91
|
+
end
|
92
|
+
class Notiffany::Notifier::Growl < Notiffany::Notifier::Base
|
93
|
+
def _check_available(_opts = nil); end
|
94
|
+
def _perform_notify(message, opts = nil); end
|
95
|
+
def _supported_hosts; end
|
96
|
+
end
|
97
|
+
class Notiffany::Notifier::Libnotify < Notiffany::Notifier::Base
|
98
|
+
def _check_available(_opts = nil); end
|
99
|
+
def _perform_notify(message, opts = nil); end
|
100
|
+
def _supported_hosts; end
|
101
|
+
end
|
102
|
+
class Notiffany::Notifier::NotifySend < Notiffany::Notifier::Base
|
103
|
+
def _check_available(_opts = nil); end
|
104
|
+
def _gem_name; end
|
105
|
+
def _notifysend_urgency(type); end
|
106
|
+
def _perform_notify(message, opts = nil); end
|
107
|
+
def _supported_hosts; end
|
108
|
+
def _to_arguments(command, supported, opts = nil); end
|
109
|
+
end
|
110
|
+
class Notiffany::Notifier::Notifu < Notiffany::Notifier::Base
|
111
|
+
def _check_available(_opts = nil); end
|
112
|
+
def _gem_name; end
|
113
|
+
def _notifu_type(type); end
|
114
|
+
def _perform_notify(message, opts = nil); end
|
115
|
+
def _supported_hosts; end
|
116
|
+
end
|
117
|
+
class Notiffany::Notifier::TerminalNotifier < Notiffany::Notifier::Base
|
118
|
+
def _check_available(_opts = nil); end
|
119
|
+
def _gem_name; end
|
120
|
+
def _perform_notify(message, opts = nil); end
|
121
|
+
def _supported_hosts; end
|
122
|
+
end
|
123
|
+
class Notiffany::Notifier::TerminalTitle < Notiffany::Notifier::Base
|
124
|
+
def _check_available(_options); end
|
125
|
+
def _gem_name; end
|
126
|
+
def _perform_notify(message, opts = nil); end
|
127
|
+
def turn_off; end
|
128
|
+
end
|
129
|
+
class Notiffany::Notifier::Tmux < Notiffany::Notifier::Base
|
130
|
+
def _check_available(opts = nil); end
|
131
|
+
def _gem_name; end
|
132
|
+
def _perform_notify(message, options = nil); end
|
133
|
+
def self._end_session; end
|
134
|
+
def self._session; end
|
135
|
+
def self._start_session; end
|
136
|
+
def turn_off; end
|
137
|
+
def turn_on; end
|
138
|
+
end
|
139
|
+
class Notiffany::Notifier::Tmux::Client
|
140
|
+
def _all_args_for(key, value, client); end
|
141
|
+
def _capture(*args); end
|
142
|
+
def _parse_option(line); end
|
143
|
+
def _run(*args); end
|
144
|
+
def clients; end
|
145
|
+
def display_message(message); end
|
146
|
+
def display_time=(time); end
|
147
|
+
def initialize(client); end
|
148
|
+
def message_bg=(color); end
|
149
|
+
def message_fg=(color); end
|
150
|
+
def parse_options; end
|
151
|
+
def self._capture(*args); end
|
152
|
+
def self._run(*args); end
|
153
|
+
def self.version; end
|
154
|
+
def set(key, value); end
|
155
|
+
def title=(string); end
|
156
|
+
def unset(key, value); end
|
157
|
+
end
|
158
|
+
class Notiffany::Notifier::Tmux::Session
|
159
|
+
def close; end
|
160
|
+
def initialize; end
|
161
|
+
end
|
162
|
+
class Notiffany::Notifier::Tmux::Notification
|
163
|
+
def _message_for(title, message); end
|
164
|
+
def _value_for(field); end
|
165
|
+
def client; end
|
166
|
+
def color; end
|
167
|
+
def colorize(locations); end
|
168
|
+
def display_message(title, message); end
|
169
|
+
def display_title(title, message); end
|
170
|
+
def initialize(type, options); end
|
171
|
+
def message_color; end
|
172
|
+
def options; end
|
173
|
+
def separator; end
|
174
|
+
def type; end
|
175
|
+
end
|
176
|
+
class Notiffany::Notifier::Tmux::Error < RuntimeError
|
177
|
+
end
|
178
|
+
class Notiffany::Notifier::YamlEnvStorage < Nenv::Environment
|
179
|
+
def notifiers; end
|
180
|
+
def notifiers=(raw_value); end
|
181
|
+
end
|
182
|
+
class Notiffany::Notifier::Detected
|
183
|
+
def _add(name, opts); end
|
184
|
+
def _notifiers; end
|
185
|
+
def _to_module(name); end
|
186
|
+
def add(name, opts); end
|
187
|
+
def available; end
|
188
|
+
def detect; end
|
189
|
+
def initialize(supported, env_namespace, logger); end
|
190
|
+
def reset; end
|
191
|
+
end
|
192
|
+
class Notiffany::Notifier::Detected::NoneAvailableError < RuntimeError
|
193
|
+
end
|
194
|
+
class Notiffany::Notifier::Detected::UnknownNotifier < RuntimeError
|
195
|
+
def initialize(name); end
|
196
|
+
def message; end
|
197
|
+
def name; end
|
198
|
+
end
|
199
|
+
class Notiffany::Notifier::Config
|
200
|
+
def _setup_logger(opts); end
|
201
|
+
def env_namespace; end
|
202
|
+
def initialize(opts); end
|
203
|
+
def logger; end
|
204
|
+
def notifiers; end
|
205
|
+
def notify?; end
|
206
|
+
end
|
207
|
+
class Notiffany::Notifier::Env < Nenv::Environment
|
208
|
+
def notify?; end
|
209
|
+
def notify_active=(raw_value); end
|
210
|
+
def notify_active?; end
|
211
|
+
def notify_pid; end
|
212
|
+
def notify_pid=(raw_value); end
|
213
|
+
end
|
214
|
+
class Notiffany::Notifier::NotServer < RuntimeError
|
215
|
+
end
|
@@ -0,0 +1,82 @@
|
|
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.19.2
|
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.handle_exception(exception, results); end
|
23
|
+
def self.in_processes(options = nil, &block); end
|
24
|
+
def self.in_threads(options = nil); end
|
25
|
+
def self.map(source, options = nil, &block); end
|
26
|
+
def self.map_with_index(array, options = nil, &block); end
|
27
|
+
def self.process_incoming_jobs(read, write, job_factory, options, &block); end
|
28
|
+
def self.replace_worker(job_factory, workers, i, options, blk); end
|
29
|
+
def self.with_instrumentation(item, index, options); end
|
30
|
+
def self.work_direct(job_factory, options, &block); end
|
31
|
+
def self.work_in_processes(job_factory, options, &blk); end
|
32
|
+
def self.work_in_threads(job_factory, options, &block); end
|
33
|
+
def self.worker(job_factory, options, &block); end
|
34
|
+
def self.worker_number; end
|
35
|
+
def self.worker_number=(worker_num); end
|
36
|
+
extend Parallel::ProcessorCount
|
37
|
+
end
|
38
|
+
module Parallel::ProcessorCount
|
39
|
+
def physical_processor_count; end
|
40
|
+
def processor_count; end
|
41
|
+
end
|
42
|
+
class Parallel::DeadWorker < StandardError
|
43
|
+
end
|
44
|
+
class Parallel::Break < StandardError
|
45
|
+
end
|
46
|
+
class Parallel::Kill < StandardError
|
47
|
+
end
|
48
|
+
class Parallel::UndumpableException < StandardError
|
49
|
+
def backtrace; end
|
50
|
+
def initialize(original); end
|
51
|
+
end
|
52
|
+
class Parallel::ExceptionWrapper
|
53
|
+
def exception; end
|
54
|
+
def initialize(exception); end
|
55
|
+
end
|
56
|
+
class Parallel::Worker
|
57
|
+
def close_pipes; end
|
58
|
+
def initialize(read, write, pid); end
|
59
|
+
def pid; end
|
60
|
+
def read; end
|
61
|
+
def stop; end
|
62
|
+
def thread; end
|
63
|
+
def thread=(arg0); end
|
64
|
+
def wait; end
|
65
|
+
def work(data); end
|
66
|
+
def write; end
|
67
|
+
end
|
68
|
+
class Parallel::JobFactory
|
69
|
+
def initialize(source, mutex); end
|
70
|
+
def next; end
|
71
|
+
def pack(item, index); end
|
72
|
+
def producer?; end
|
73
|
+
def queue_wrapper(array); end
|
74
|
+
def size; end
|
75
|
+
def unpack(data); end
|
76
|
+
end
|
77
|
+
class Parallel::UserInterruptHandler
|
78
|
+
def self.kill(thing); end
|
79
|
+
def self.kill_on_ctrl_c(pids, options); end
|
80
|
+
def self.restore_interrupt(old, signal); end
|
81
|
+
def self.trap_interrupt(signal); end
|
82
|
+
end
|