sord 0.10.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  3. data/.github/ISSUE_TEMPLATE/feature-request.md +0 -0
  4. data/.gitignore +0 -0
  5. data/.parlour +6 -2
  6. data/.rspec +0 -0
  7. data/.travis.yml +0 -0
  8. data/CHANGELOG.md +68 -0
  9. data/CODE_OF_CONDUCT.md +0 -0
  10. data/Gemfile +0 -0
  11. data/LICENSE.txt +0 -0
  12. data/README.md +72 -44
  13. data/Rakefile +26 -7
  14. data/exe/sord +46 -6
  15. data/lib/sord.rb +1 -1
  16. data/lib/sord/generator.rb +592 -0
  17. data/lib/sord/logging.rb +0 -0
  18. data/lib/sord/parlour_plugin.rb +23 -2
  19. data/lib/sord/resolver.rb +0 -0
  20. data/lib/sord/type_converter.rb +71 -63
  21. data/lib/sord/version.rb +1 -1
  22. data/rbi/sord.rbi +211 -30
  23. data/sord.gemspec +3 -3
  24. metadata +11 -30
  25. data/lib/sord/rbi_generator.rb +0 -391
  26. data/sorbet/config +0 -0
  27. data/sorbet/rbi/gems/docile.rbi +0 -31
  28. data/sorbet/rbi/gems/parlour.rbi +0 -214
  29. data/sorbet/rbi/gems/rainbow.rbi +0 -117
  30. data/sorbet/rbi/gems/rake.rbi +0 -643
  31. data/sorbet/rbi/gems/rspec-core.rbi +0 -1658
  32. data/sorbet/rbi/gems/rspec-expectations.rbi +0 -389
  33. data/sorbet/rbi/gems/rspec-mocks.rbi +0 -823
  34. data/sorbet/rbi/gems/rspec-support.rbi +0 -268
  35. data/sorbet/rbi/gems/rspec.rbi +0 -14
  36. data/sorbet/rbi/gems/simplecov-html.rbi +0 -30
  37. data/sorbet/rbi/gems/simplecov.rbi +0 -225
  38. data/sorbet/rbi/gems/sorbet-runtime.rbi +0 -670
  39. data/sorbet/rbi/gems/yard.rbi +0 -310
  40. data/sorbet/rbi/hidden-definitions/errors.txt +0 -9285
  41. data/sorbet/rbi/hidden-definitions/hidden.rbi +0 -26604
  42. data/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +0 -8575
  43. data/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +0 -111
  44. data/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +0 -543
@@ -1,268 +0,0 @@
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/rspec-support/all/rspec-support.rbi
9
- #
10
- # rspec-support-3.8.2
11
- module RSpec
12
- extend RSpec::Support::Warnings
13
- end
14
- module RSpec::Support
15
- def self.class_of(object); end
16
- def self.define_optimized_require_for_rspec(lib, &require_relative); end
17
- def self.deregister_matcher_definition(&block); end
18
- def self.failure_notifier; end
19
- def self.failure_notifier=(callable); end
20
- def self.is_a_matcher?(object); end
21
- def self.matcher_definitions; end
22
- def self.method_handle_for(object, method_name); end
23
- def self.notify_failure(failure, options = nil); end
24
- def self.register_matcher_definition(&block); end
25
- def self.require_rspec_support(f); end
26
- def self.rspec_description_for_object(object); end
27
- def self.thread_local_data; end
28
- def self.warning_notifier; end
29
- def self.warning_notifier=(arg0); end
30
- def self.with_failure_notifier(callable); end
31
- end
32
- module RSpec::Support::Version
33
- end
34
- class RSpec::Support::ComparableVersion
35
- def <=>(other); end
36
- def initialize(string); end
37
- def segments; end
38
- def string; end
39
- include Comparable
40
- end
41
- module RSpec::Support::OS
42
- def self.windows?; end
43
- def self.windows_file_path?; end
44
- def windows?; end
45
- def windows_file_path?; end
46
- end
47
- module RSpec::Support::Ruby
48
- def jruby?; end
49
- def jruby_9000?; end
50
- def jruby_version; end
51
- def mri?; end
52
- def non_mri?; end
53
- def rbx?; end
54
- def self.jruby?; end
55
- def self.jruby_9000?; end
56
- def self.jruby_version; end
57
- def self.mri?; end
58
- def self.non_mri?; end
59
- def self.rbx?; end
60
- end
61
- module RSpec::Support::RubyFeatures
62
- def caller_locations_supported?; end
63
- def fork_supported?; end
64
- def kw_args_supported?; end
65
- def module_prepends_supported?; end
66
- def module_refinement_supported?; end
67
- def optional_and_splat_args_supported?; end
68
- def required_kw_args_supported?; end
69
- def ripper_supported?; end
70
- def self.caller_locations_supported?; end
71
- def self.fork_supported?; end
72
- def self.kw_args_supported?; end
73
- def self.module_prepends_supported?; end
74
- def self.module_refinement_supported?; end
75
- def self.optional_and_splat_args_supported?; end
76
- def self.required_kw_args_supported?; end
77
- def self.ripper_supported?; end
78
- def self.supports_exception_cause?; end
79
- def self.supports_rebinding_module_methods?; end
80
- def supports_exception_cause?; end
81
- def supports_rebinding_module_methods?; end
82
- end
83
- module RSpec::Support::AllExceptionsExceptOnesWeMustNotRescue
84
- def self.===(exception); end
85
- end
86
- class RSpec::CallerFilter
87
- def self.first_non_rspec_line(skip_frames = nil, increment = nil); end
88
- end
89
- module RSpec::Support::Warnings
90
- def deprecate(deprecated, options = nil); end
91
- def warn_deprecation(message, options = nil); end
92
- def warn_with(message, options = nil); end
93
- def warning(text, options = nil); end
94
- end
95
- class RSpec::Support::EncodedString
96
- def <<(string); end
97
- def ==(*args, &block); end
98
- def detect_source_encoding(string); end
99
- def empty?(*args, &block); end
100
- def encoding(*args, &block); end
101
- def eql?(*args, &block); end
102
- def initialize(string, encoding = nil); end
103
- def lines(*args, &block); end
104
- def matching_encoding(string); end
105
- def remove_invalid_bytes(string); end
106
- def self.pick_encoding(source_a, source_b); end
107
- def source_encoding; end
108
- def split(regex_or_string); end
109
- def to_s; end
110
- def to_str; end
111
- end
112
- class RSpec::Support::ReentrantMutex
113
- def enter; end
114
- def exit; end
115
- def initialize; end
116
- def synchronize; end
117
- end
118
- class RSpec::Support::DirectoryMaker
119
- def self.directory_exists?(dirname); end
120
- def self.generate_path(stack, part); end
121
- def self.generate_stack(path); end
122
- def self.mkdir_p(path); end
123
- end
124
- module RSpec::Support::RecursiveConstMethods
125
- def const_defined_on?(mod, const_name); end
126
- def constants_defined_on(mod); end
127
- def get_const_defined_on(mod, const_name); end
128
- def normalize_const_name(const_name); end
129
- def recursive_const_defined?(const_name); end
130
- def recursive_const_get(const_name); end
131
- end
132
- class RSpec::Support::ObjectFormatter
133
- def format(object); end
134
- def initialize(max_formatted_output_length = nil); end
135
- def max_formatted_output_length; end
136
- def max_formatted_output_length=(arg0); end
137
- def prepare_array(array); end
138
- def prepare_element(element); end
139
- def prepare_for_inspection(object); end
140
- def prepare_hash(input_hash); end
141
- def recursive_structure?(object); end
142
- def self.default_instance; end
143
- def self.format(object); end
144
- def self.prepare_for_inspection(object); end
145
- def sort_hash_keys(input_hash); end
146
- def truncate_string(str, start_index, end_index); end
147
- def with_entering_structure(structure); end
148
- end
149
- class RSpec::Support::ObjectFormatter::InspectableItem < Struct
150
- def inspect; end
151
- def pretty_print(pp); end
152
- def self.[](*arg0); end
153
- def self.inspect; end
154
- def self.members; end
155
- def self.new(*arg0); end
156
- def text; end
157
- def text=(_); end
158
- end
159
- class RSpec::Support::ObjectFormatter::BaseInspector < Struct
160
- def formatter; end
161
- def formatter=(_); end
162
- def inspect; end
163
- def object; end
164
- def object=(_); end
165
- def pretty_print(pp); end
166
- def self.[](*arg0); end
167
- def self.can_inspect?(_object); end
168
- def self.inspect; end
169
- def self.members; end
170
- def self.new(*arg0); end
171
- end
172
- class RSpec::Support::ObjectFormatter::TimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
173
- def inspect; end
174
- def self.can_inspect?(object); end
175
- end
176
- class RSpec::Support::ObjectFormatter::DateTimeInspector < RSpec::Support::ObjectFormatter::BaseInspector
177
- def inspect; end
178
- def self.can_inspect?(object); end
179
- end
180
- class RSpec::Support::ObjectFormatter::BigDecimalInspector < RSpec::Support::ObjectFormatter::BaseInspector
181
- def inspect; end
182
- def self.can_inspect?(object); end
183
- end
184
- class RSpec::Support::ObjectFormatter::DescribableMatcherInspector < RSpec::Support::ObjectFormatter::BaseInspector
185
- def inspect; end
186
- def self.can_inspect?(object); end
187
- end
188
- class RSpec::Support::ObjectFormatter::UninspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
189
- def inspect; end
190
- def klass; end
191
- def native_object_id; end
192
- def self.can_inspect?(object); end
193
- end
194
- class RSpec::Support::ObjectFormatter::DelegatorInspector < RSpec::Support::ObjectFormatter::BaseInspector
195
- def inspect; end
196
- def self.can_inspect?(object); end
197
- end
198
- class RSpec::Support::ObjectFormatter::InspectableObjectInspector < RSpec::Support::ObjectFormatter::BaseInspector
199
- def inspect; end
200
- def self.can_inspect?(object); end
201
- end
202
- module RSpec::Support::FuzzyMatcher
203
- def self.arrays_match?(expected_list, actual_list); end
204
- def self.hashes_match?(expected_hash, actual_hash); end
205
- def self.values_match?(expected, actual); end
206
- end
207
- class RSpec::Support::MethodSignature
208
- def arbitrary_kw_args?; end
209
- def classify_arity(arity = nil); end
210
- def classify_parameters; end
211
- def could_contain_kw_args?(args); end
212
- def description; end
213
- def has_kw_args_in?(args); end
214
- def initialize(method); end
215
- def invalid_kw_args_from(given_kw_args); end
216
- def max_non_kw_args; end
217
- def min_non_kw_args; end
218
- def missing_kw_args_from(given_kw_args); end
219
- def non_kw_args_arity_description; end
220
- def optional_kw_args; end
221
- def required_kw_args; end
222
- def unlimited_args?; end
223
- def valid_non_kw_args?(positional_arg_count, optional_max_arg_count = nil); end
224
- end
225
- class RSpec::Support::MethodSignatureExpectation
226
- def empty?; end
227
- def expect_arbitrary_keywords; end
228
- def expect_arbitrary_keywords=(arg0); end
229
- def expect_unlimited_arguments; end
230
- def expect_unlimited_arguments=(arg0); end
231
- def initialize; end
232
- def keywords; end
233
- def keywords=(values); end
234
- def max_count; end
235
- def max_count=(number); end
236
- def min_count; end
237
- def min_count=(number); end
238
- end
239
- class RSpec::Support::BlockSignature < RSpec::Support::MethodSignature
240
- def classify_parameters; end
241
- end
242
- class RSpec::Support::MethodSignatureVerifier
243
- def arbitrary_kw_args?; end
244
- def error_message; end
245
- def initialize(signature, args = nil); end
246
- def invalid_kw_args; end
247
- def kw_args; end
248
- def max_non_kw_args; end
249
- def min_non_kw_args; end
250
- def missing_kw_args; end
251
- def non_kw_args; end
252
- def split_args(*args); end
253
- def unlimited_args?; end
254
- def valid?; end
255
- def valid_non_kw_args?; end
256
- def with_expectation(expectation); end
257
- end
258
- class RSpec::Support::LooseSignatureVerifier < RSpec::Support::MethodSignatureVerifier
259
- def split_args(*args); end
260
- end
261
- class RSpec::Support::LooseSignatureVerifier::SignatureWithKeywordArgumentsMatcher
262
- def has_kw_args_in?(args); end
263
- def initialize(signature); end
264
- def invalid_kw_args_from(_kw_args); end
265
- def missing_kw_args_from(_kw_args); end
266
- def non_kw_args_arity_description; end
267
- def valid_non_kw_args?(*args); end
268
- end
@@ -1,14 +0,0 @@
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/rspec/all/rspec.rbi
9
- #
10
- # rspec-3.8.0
11
- module RSpec
12
- end
13
- module RSpec::Version
14
- end
@@ -1,30 +0,0 @@
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/simplecov-html/all/simplecov-html.rbi
9
- #
10
- # simplecov-html-0.10.2
11
- module SimpleCov
12
- end
13
- module SimpleCov::Formatter
14
- end
15
- class SimpleCov::Formatter::HTMLFormatter
16
- def asset_output_path; end
17
- def assets_path(name); end
18
- def coverage_css_class(covered_percent); end
19
- def format(result); end
20
- def formatted_file_list(title, source_files); end
21
- def formatted_source_file(source_file); end
22
- def id(source_file); end
23
- def link_to_source_file(source_file); end
24
- def output_message(result); end
25
- def output_path; end
26
- def shortened_filename(source_file); end
27
- def strength_css_class(covered_strength); end
28
- def template(name); end
29
- def timeago(time); end
30
- end
@@ -1,225 +0,0 @@
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/simplecov/all/simplecov.rbi
9
- #
10
- # simplecov-0.17.0
11
- module SimpleCov
12
- def self.add_not_loaded_files(result); end
13
- def self.clear_result; end
14
- def self.exit_exception; end
15
- def self.exit_status_from_exception; end
16
- def self.filtered(files); end
17
- def self.final_result_process?; end
18
- def self.grouped(files); end
19
- def self.load_adapter(name); end
20
- def self.load_profile(name); end
21
- def self.pid; end
22
- def self.pid=(arg0); end
23
- def self.process_result(result, exit_status); end
24
- def self.result; end
25
- def self.result?; end
26
- def self.result_exit_status(result, covered_percent); end
27
- def self.run_exit_tasks!; end
28
- def self.running; end
29
- def self.running=(arg0); end
30
- def self.set_exit_exception; end
31
- def self.start(profile = nil, &block); end
32
- def self.usable?; end
33
- def self.wait_for_other_processes; end
34
- def self.write_last_run(covered_percent); end
35
- extend SimpleCov::Configuration
36
- end
37
- module SimpleCov::Formatter
38
- end
39
- class SimpleCov::Formatter::MultiFormatter
40
- def self.[](*args); end
41
- def self.new(formatters = nil); end
42
- end
43
- module SimpleCov::Formatter::MultiFormatter::InstanceMethods
44
- def format(result); end
45
- end
46
- module SimpleCov::Configuration
47
- def adapters; end
48
- def add_filter(filter_argument = nil, &filter_proc); end
49
- def add_group(group_name, filter_argument = nil, &filter_proc); end
50
- def at_exit(&block); end
51
- def command_name(name = nil); end
52
- def configure(&block); end
53
- def coverage_dir(dir = nil); end
54
- def coverage_path; end
55
- def filters; end
56
- def filters=(arg0); end
57
- def formatter(formatter = nil); end
58
- def formatter=(arg0); end
59
- def formatters; end
60
- def formatters=(formatters); end
61
- def groups; end
62
- def groups=(arg0); end
63
- def maximum_coverage_drop(coverage_drop = nil); end
64
- def merge_timeout(seconds = nil); end
65
- def minimum_coverage(coverage = nil); end
66
- def minimum_coverage_by_file(coverage = nil); end
67
- def nocov_token(nocov_token = nil); end
68
- def parse_filter(filter_argument = nil, &filter_proc); end
69
- def profiles; end
70
- def project_name(new_name = nil); end
71
- def refuse_coverage_drop; end
72
- def root(root = nil); end
73
- def skip_token(nocov_token = nil); end
74
- def track_files(glob); end
75
- def tracked_files; end
76
- def use_merging(use = nil); end
77
- end
78
- module SimpleCov::ExitCodes
79
- end
80
- class SimpleCov::Profiles < Hash
81
- def define(name, &blk); end
82
- def load(name); end
83
- end
84
- class SimpleCov::SourceFile
85
- def build_lines; end
86
- def coverage; end
87
- def coverage_exceeding_source_warn; end
88
- def covered_lines; end
89
- def covered_percent; end
90
- def covered_strength; end
91
- def filename; end
92
- def initialize(filename, coverage); end
93
- def line(number); end
94
- def lines; end
95
- def lines_of_code; end
96
- def lines_strength; end
97
- def missed_lines; end
98
- def never_lines; end
99
- def no_lines?; end
100
- def process_skipped_lines(lines); end
101
- def project_filename; end
102
- def relevant_lines; end
103
- def round_float(float, places); end
104
- def skipped_lines; end
105
- def source; end
106
- def source_lines; end
107
- def src; end
108
- end
109
- class SimpleCov::SourceFile::Line
110
- def coverage; end
111
- def covered?; end
112
- def initialize(src, line_number, coverage); end
113
- def line; end
114
- def line_number; end
115
- def missed?; end
116
- def never?; end
117
- def number; end
118
- def skipped!; end
119
- def skipped; end
120
- def skipped?; end
121
- def source; end
122
- def src; end
123
- def status; end
124
- end
125
- class SimpleCov::FileList < Array
126
- def covered_lines; end
127
- def covered_percent; end
128
- def covered_percentages; end
129
- def covered_strength; end
130
- def least_covered_file; end
131
- def lines_of_code; end
132
- def missed_lines; end
133
- def never_lines; end
134
- def skipped_lines; end
135
- end
136
- class SimpleCov::Result
137
- def command_name; end
138
- def command_name=(arg0); end
139
- def coverage; end
140
- def covered_lines(*args, &block); end
141
- def covered_percent(*args, &block); end
142
- def covered_percentages(*args, &block); end
143
- def covered_strength(*args, &block); end
144
- def created_at; end
145
- def created_at=(arg0); end
146
- def filenames; end
147
- def files; end
148
- def filter!; end
149
- def format!; end
150
- def groups; end
151
- def initialize(original_result); end
152
- def least_covered_file(*args, &block); end
153
- def missed_lines(*args, &block); end
154
- def original_result; end
155
- def self.from_hash(hash); end
156
- def source_files; end
157
- def to_hash; end
158
- def total_lines(*args, &block); end
159
- extend Forwardable
160
- end
161
- class SimpleCov::Filter
162
- def filter_argument; end
163
- def initialize(filter_argument); end
164
- def matches?(_); end
165
- def passes?(source_file); end
166
- def self.build_filter(filter_argument); end
167
- def self.class_for_argument(filter_argument); end
168
- end
169
- class SimpleCov::StringFilter < SimpleCov::Filter
170
- def matches?(source_file); end
171
- end
172
- class SimpleCov::RegexFilter < SimpleCov::Filter
173
- def matches?(source_file); end
174
- end
175
- class SimpleCov::BlockFilter < SimpleCov::Filter
176
- def matches?(source_file); end
177
- end
178
- class SimpleCov::ArrayFilter < SimpleCov::Filter
179
- def initialize(filter_argument); end
180
- def matches?(source_files_list); end
181
- end
182
- class SimpleCov::Formatter::SimpleFormatter
183
- def format(result); end
184
- end
185
- module SimpleCov::LastRun
186
- def self.last_run_path; end
187
- def self.read; end
188
- def self.write(json); end
189
- end
190
- class SimpleCov::LinesClassifier
191
- def classify(lines); end
192
- def self.no_cov_line; end
193
- def self.no_cov_line?(line); end
194
- def self.whitespace_line?(line); end
195
- end
196
- module SimpleCov::RawCoverage
197
- def merge_file_coverage(file1, file2); end
198
- def merge_line_coverage(count1, count2); end
199
- def merge_results(*results); end
200
- def merge_resultsets(result1, result2); end
201
- def self.merge_file_coverage(file1, file2); end
202
- def self.merge_line_coverage(count1, count2); end
203
- def self.merge_results(*results); end
204
- def self.merge_resultsets(result1, result2); end
205
- end
206
- module SimpleCov::ResultMerger
207
- def self.clear_resultset; end
208
- def self.merge_results(*results); end
209
- def self.merged_result; end
210
- def self.results; end
211
- def self.resultset; end
212
- def self.resultset_path; end
213
- def self.resultset_writelock; end
214
- def self.store_result(result); end
215
- def self.stored_data; end
216
- def self.synchronize_resultset; end
217
- end
218
- module SimpleCov::CommandGuesser
219
- def self.from_command_line_options; end
220
- def self.from_defined_constants; end
221
- def self.from_env; end
222
- def self.guess; end
223
- def self.original_run_command; end
224
- def self.original_run_command=(arg0); end
225
- end