sorbet-struct-comparable 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +5 -0
- data/README.md +2 -2
- data/lib/sorbet-struct-comparable/version.rb +1 -1
- data/lib/t/struct/acts_as_comparable.rb +7 -12
- data/sorbet-struct-comparable.gemspec +1 -1
- data/sorbet/rbi/gems/docile.rbi +5 -1
- data/sorbet/rbi/gems/listen.rbi +44 -67
- data/sorbet/rbi/gems/rake.rbi +2 -4
- data/sorbet/rbi/gems/rspec-core.rbi +10 -53
- data/sorbet/rbi/gems/rspec-expectations.rbi +73 -48
- data/sorbet/rbi/gems/rspec-mocks.rbi +2 -1
- data/sorbet/rbi/gems/rspec-support.rbi +1 -1
- data/sorbet/rbi/gems/rspec.rbi +1 -1
- data/sorbet/rbi/gems/simplecov-html.rbi +1 -1
- data/sorbet/rbi/gems/simplecov.rbi +78 -20
- data/sorbet/rbi/gems/simplecov_json_formatter.rbi +45 -0
- data/sorbet/rbi/hidden-definitions/errors.txt +490 -2979
- data/sorbet/rbi/hidden-definitions/hidden.rbi +1190 -2389
- data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
- data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +1891 -0
- metadata +13 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2bcc9eb5d155248ce5512138442ea6807a1fde32e845d3cf9a8d51dccb08fac
|
4
|
+
data.tar.gz: 91a9e9ec13ee37d53415238dc191d45916dae5936d20de368a6392e4444a7956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8093306de472f2b197c4655159a1870ec0001a14d6f2e2efb8324190c27f483dadfa85e886c5477645baa36f5b7bbc91e5fe008777c17cd8c43e7c5690fde573
|
7
|
+
data.tar.gz: b8bc445ee4bb5d2195dd1aa5976058138cc80d7026671da8387ced8a5058576febe348989f4bdaa68c5e7f4f4ca04afd2bfa8f01eadd23111ef5e094fc1e314f
|
data/.github/workflows/ci.yml
CHANGED
@@ -16,9 +16,10 @@
|
|
16
16
|
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
17
17
|
id: extract_branch
|
18
18
|
- name: Set up Ruby
|
19
|
-
uses:
|
19
|
+
uses: ruby/setup-ruby@v1
|
20
20
|
with:
|
21
|
-
ruby-version: 2.
|
21
|
+
ruby-version: 2.6.6
|
22
|
+
bundler-cache: false
|
22
23
|
- name: Cache gems
|
23
24
|
uses: actions/cache@v1
|
24
25
|
with:
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.6
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Releases
|
2
2
|
|
3
|
+
1.1.0
|
4
|
+
|
5
|
+
* Fixed `T::Struct`'s of different classes returning `-1`; now returning `nil` as is expected of incomparable objects
|
6
|
+
* Fixed incomparable attributes of different returning `-1` instead of `nil`
|
7
|
+
|
3
8
|
1.0.0
|
4
9
|
|
5
10
|
* Initial release: Extracted from [https://bellroy.com/](Bellroy) projects.
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|

|
2
2
|
|
3
|
-
](https://badge.fury.io/rb/sorbet-struct-comparable) 
|
4
4
|
# Making T::Struct's comparable since 2020
|
5
5
|
|
6
6
|
If you just want some simple equality checking on your `T::Struct`'s then you've come to the right place.
|
@@ -67,4 +67,4 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
67
67
|
|
68
68
|
## Contributing
|
69
69
|
|
70
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
70
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bellroy/sorbet-struct-comparable.
|
@@ -7,24 +7,19 @@ module T
|
|
7
7
|
extend T::Sig
|
8
8
|
include ::Comparable
|
9
9
|
|
10
|
-
LESS_THAN_OTHER = -1
|
11
10
|
EQUAL = 0
|
11
|
+
NOT_COMPARABLE = nil
|
12
12
|
|
13
|
-
sig { params(other: Object).returns(Integer) }
|
13
|
+
sig { params(other: Object).returns(T.nilable(Integer)) }
|
14
14
|
def <=>(other)
|
15
|
-
|
16
|
-
return LESS_THAN_OTHER if other.class != T.unsafe(self).class
|
15
|
+
return NOT_COMPARABLE if other.class != T.unsafe(self).class
|
17
16
|
|
18
|
-
T.unsafe(self).class.decorator.props.keys.
|
17
|
+
T.unsafe(self).class.decorator.props.keys.each do |attribute_key|
|
19
18
|
compare_result = T.unsafe(self).send(attribute_key) <=> other.send(attribute_key)
|
20
|
-
|
21
|
-
LESS_THAN_OTHER
|
22
|
-
else
|
23
|
-
T.cast(compare_result, Integer)
|
24
|
-
end
|
25
|
-
break if result != EQUAL
|
19
|
+
return T.cast(compare_result, T.nilable(Integer)) if compare_result != EQUAL
|
26
20
|
end
|
27
|
-
|
21
|
+
|
22
|
+
return EQUAL
|
28
23
|
end
|
29
24
|
end
|
30
25
|
end
|
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.email = ['michael.webb@bellroy.com', 'sam@samuelgil.es']
|
8
8
|
|
9
9
|
spec.summary = "Comparable T::Struct's for the equality focused typed Ruby developer."
|
10
|
-
spec.homepage = 'https://github.com/
|
10
|
+
spec.homepage = 'https://github.com/bellroy/sorbet-struct-comparable'
|
11
11
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.0.0')
|
12
12
|
|
13
13
|
spec.metadata['homepage_uri'] = spec.homepage
|
data/sorbet/rbi/gems/docile.rbi
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/docile/all/docile.rbi
|
9
9
|
#
|
10
|
-
# docile-1.3.
|
10
|
+
# docile-1.3.5
|
11
11
|
|
12
12
|
module Docile
|
13
13
|
def dsl_eval(dsl, *args, &block); end
|
@@ -30,3 +30,7 @@ end
|
|
30
30
|
class Docile::ChainingFallbackContextProxy < Docile::FallbackContextProxy
|
31
31
|
def method_missing(method, *args, &block); end
|
32
32
|
end
|
33
|
+
module Docile::BacktraceFilter
|
34
|
+
def backtrace; end
|
35
|
+
def backtrace_locations; end
|
36
|
+
end
|
data/sorbet/rbi/gems/listen.rbi
CHANGED
@@ -7,25 +7,19 @@
|
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/listen/all/listen.rbi
|
9
9
|
#
|
10
|
-
# listen-3.
|
10
|
+
# listen-3.5.1
|
11
11
|
|
12
12
|
module Listen
|
13
|
+
def self.default_logger; end
|
13
14
|
def self.logger; end
|
14
|
-
def self.logger=(
|
15
|
-
def self.setup_default_logger_if_unset; end
|
15
|
+
def self.logger=(arg0); end
|
16
16
|
def self.stop; end
|
17
17
|
def self.to(*args, &block); end
|
18
18
|
end
|
19
|
-
class Listen::Logger
|
20
|
-
def self.debug(*args, &block); end
|
21
|
-
def self.error(*args, &block); end
|
22
|
-
def self.fatal(*args, &block); end
|
23
|
-
def self.info(*args, &block); end
|
24
|
-
def self.warn(*args, &block); end
|
25
|
-
end
|
26
19
|
class Listen::Options
|
27
20
|
def initialize(opts, defaults); end
|
28
21
|
def method_missing(name, *_); end
|
22
|
+
def respond_to_missing?(name, *_); end
|
29
23
|
end
|
30
24
|
class Listen::Record
|
31
25
|
def _auto_hash; end
|
@@ -39,7 +33,6 @@ class Listen::Record
|
|
39
33
|
def file_data(rel_path); end
|
40
34
|
def initialize(directory); end
|
41
35
|
def root; end
|
42
|
-
def tree; end
|
43
36
|
def unset_path(rel_path); end
|
44
37
|
def update_file(rel_path, data); end
|
45
38
|
end
|
@@ -56,13 +49,17 @@ class Listen::Record::Entry
|
|
56
49
|
def root; end
|
57
50
|
def sys_path; end
|
58
51
|
end
|
52
|
+
class Listen::Error < RuntimeError
|
53
|
+
end
|
54
|
+
class Listen::Error::NotStarted < Listen::Error
|
55
|
+
end
|
56
|
+
class Listen::Error::SymlinkLoop < Listen::Error
|
57
|
+
end
|
59
58
|
class Listen::Record::SymlinkDetector
|
60
59
|
def _fail(symlinked, real_path); end
|
61
60
|
def initialize; end
|
62
61
|
def verify_unwatched!(entry); end
|
63
62
|
end
|
64
|
-
class Listen::Record::SymlinkDetector::Error < RuntimeError
|
65
|
-
end
|
66
63
|
class Listen::File
|
67
64
|
def self.change(record, rel_path); end
|
68
65
|
def self.inaccurate_mac_time?(stat); end
|
@@ -75,7 +72,6 @@ class Listen::Directory
|
|
75
72
|
def self.scan(snapshot, rel_path, options); end
|
76
73
|
end
|
77
74
|
class Listen::Change
|
78
|
-
def config; end
|
79
75
|
def initialize(config, record); end
|
80
76
|
def invalidate(type, rel_path, options); end
|
81
77
|
def record; end
|
@@ -85,14 +81,18 @@ class Listen::Change::Config
|
|
85
81
|
def queue(*args); end
|
86
82
|
def silenced?(path, type); end
|
87
83
|
end
|
84
|
+
module Listen::Thread
|
85
|
+
def self._exception_with_causes(exception); end
|
86
|
+
def self._log_exception(exception, thread_name, caller_stack: nil); end
|
87
|
+
def self.new(name, &block); end
|
88
|
+
def self.rescue_and_log(method_name, *args, caller_stack: nil); end
|
89
|
+
end
|
88
90
|
module Listen::Adapter
|
89
|
-
def self._log(type, message); end
|
90
91
|
def self._usable_adapter_class; end
|
91
92
|
def self._warn_polling_fallback(options); end
|
92
93
|
def self.select(options = nil); end
|
93
94
|
end
|
94
95
|
class Listen::Adapter::Base
|
95
|
-
def _log(*args, &block); end
|
96
96
|
def _log_exception(msg, caller_stack); end
|
97
97
|
def _queue_change(type, dir, rel_path, options); end
|
98
98
|
def _stop; end
|
@@ -101,7 +101,6 @@ class Listen::Adapter::Base
|
|
101
101
|
def configure; end
|
102
102
|
def initialize(config); end
|
103
103
|
def options; end
|
104
|
-
def self._log(*args, &block); end
|
105
104
|
def self.usable?; end
|
106
105
|
def start; end
|
107
106
|
def started?; end
|
@@ -118,18 +117,12 @@ class Listen::Adapter::BSD < Listen::Adapter::Base
|
|
118
117
|
def _watch_for_new_file(event); end
|
119
118
|
def self.usable?; end
|
120
119
|
end
|
121
|
-
module Listen::Internals
|
122
|
-
end
|
123
|
-
module Listen::Internals::ThreadPool
|
124
|
-
def self.add(&block); end
|
125
|
-
def self.stop; end
|
126
|
-
end
|
127
120
|
class Listen::Adapter::Darwin < Listen::Adapter::Base
|
128
121
|
def _configure(dir, &callback); end
|
129
122
|
def _process_changes(dirs); end
|
130
123
|
def _process_event(dir, path); end
|
131
124
|
def _run; end
|
132
|
-
def
|
125
|
+
def _stop; end
|
133
126
|
def self.usable?; end
|
134
127
|
end
|
135
128
|
class Listen::Adapter::Linux < Listen::Adapter::Base
|
@@ -169,14 +162,15 @@ class Listen::Backend
|
|
169
162
|
extend Forwardable
|
170
163
|
end
|
171
164
|
class Listen::Silencer
|
165
|
+
def _ignore?(path); end
|
172
166
|
def _init_ignores(ignores, overrides); end
|
167
|
+
def _only?(path); end
|
173
168
|
def configure(options); end
|
174
169
|
def ignore_patterns; end
|
175
170
|
def ignore_patterns=(arg0); end
|
176
171
|
def initialize; end
|
177
172
|
def only_patterns; end
|
178
173
|
def only_patterns=(arg0); end
|
179
|
-
def options; end
|
180
174
|
def silenced?(relative_path, type); end
|
181
175
|
end
|
182
176
|
class Listen::Silencer::Controller
|
@@ -188,11 +182,11 @@ class Listen::Silencer::Controller
|
|
188
182
|
end
|
189
183
|
class Listen::QueueOptimizer
|
190
184
|
def _calculate_add_remove_difference(actions, path, default_if_exists); end
|
191
|
-
def _detect_possible_editor_save(changes); end
|
192
185
|
def _logical_action_for(path, actions); end
|
193
186
|
def _reinterpret_related_changes(cookies); end
|
194
187
|
def _squash_changes(changes); end
|
195
188
|
def config; end
|
189
|
+
def editor_modified?(changes); end
|
196
190
|
def initialize(config); end
|
197
191
|
def smoosh_changes(changes); end
|
198
192
|
end
|
@@ -204,40 +198,40 @@ class Listen::QueueOptimizer::Config
|
|
204
198
|
end
|
205
199
|
module Listen::FSM
|
206
200
|
def current_state; end
|
207
|
-
def
|
208
|
-
def default_state; end
|
209
|
-
def initialize; end
|
201
|
+
def initialize_fsm; end
|
210
202
|
def self.included(klass); end
|
211
203
|
def state; end
|
212
|
-
def
|
213
|
-
def transition
|
214
|
-
def
|
215
|
-
def
|
216
|
-
def
|
204
|
+
def transition!(new_state_name); end
|
205
|
+
def transition(new_state_name); end
|
206
|
+
def transition_with_callbacks!(new_state); end
|
207
|
+
def validate_and_sanitize_new_state(new_state_name); end
|
208
|
+
def wait_for_state(*wait_for_states, timeout: nil); end
|
217
209
|
end
|
218
210
|
module Listen::FSM::ClassMethods
|
219
|
-
def
|
220
|
-
def state(
|
211
|
+
def start_state(new_start_state = nil); end
|
212
|
+
def state(state_name, to: nil, &block); end
|
221
213
|
def states; end
|
222
214
|
end
|
223
215
|
class Listen::FSM::State
|
224
216
|
def call(obj); end
|
225
|
-
def initialize(name, transitions
|
217
|
+
def initialize(name, transitions, &block); end
|
226
218
|
def name; end
|
227
219
|
def transitions; end
|
228
220
|
def valid_transition?(new_state); end
|
229
221
|
end
|
222
|
+
module Listen::MonotonicTime
|
223
|
+
def self.now; end
|
224
|
+
end
|
230
225
|
module Listen::Event
|
231
226
|
end
|
232
227
|
class Listen::Event::Processor
|
233
228
|
def _check_stopped; end
|
234
229
|
def _deadline; end
|
235
230
|
def _flush_wakeup_reasons; end
|
236
|
-
def _process_changes; end
|
231
|
+
def _process_changes(event); end
|
237
232
|
def _remember_time_of_first_unprocessed_event; end
|
238
233
|
def _reset_no_unprocessed_events; end
|
239
|
-
def _sleep(
|
240
|
-
def _timestamp; end
|
234
|
+
def _sleep(seconds); end
|
241
235
|
def _wait_until_events; end
|
242
236
|
def _wait_until_events_calm_down; end
|
243
237
|
def _wait_until_no_longer_paused; end
|
@@ -248,37 +242,24 @@ end
|
|
248
242
|
class Listen::Event::Processor::Stopped < RuntimeError
|
249
243
|
end
|
250
244
|
class Listen::Event::Loop
|
251
|
-
def
|
252
|
-
def _sleep(*args); end
|
253
|
-
def _wait_for_changes(ready_queue, config); end
|
254
|
-
def _wait_until_resumed(ready_queue); end
|
245
|
+
def _process_changes; end
|
255
246
|
def _wakeup(reason); end
|
256
|
-
def config; end
|
257
247
|
def initialize(config); end
|
258
248
|
def pause; end
|
259
|
-
def
|
260
|
-
def
|
261
|
-
def
|
262
|
-
def setup; end
|
263
|
-
def state; end
|
264
|
-
def state=(arg0); end
|
249
|
+
def start; end
|
250
|
+
def started?; end
|
251
|
+
def stop; end
|
265
252
|
def stopped?; end
|
266
|
-
def teardown; end
|
267
|
-
def wait_thread; end
|
268
253
|
def wakeup_on_event; end
|
269
|
-
|
270
|
-
|
271
|
-
end
|
272
|
-
class Listen::Event::Loop::Error::NotStarted < Listen::Event::Loop::Error
|
254
|
+
extend Listen::FSM::ClassMethods
|
255
|
+
include Listen::FSM
|
273
256
|
end
|
274
257
|
class Listen::Event::Queue
|
275
258
|
def <<(args); end
|
276
259
|
def _safe_relative_from_cwd(dir); end
|
277
|
-
def block; end
|
278
|
-
def config; end
|
260
|
+
def close(*args, &block); end
|
279
261
|
def empty?(*args, &block); end
|
280
|
-
def
|
281
|
-
def initialize(config, &block); end
|
262
|
+
def initialize(config); end
|
282
263
|
def pop(*args, &block); end
|
283
264
|
extend Forwardable
|
284
265
|
end
|
@@ -294,13 +275,9 @@ class Listen::Event::Config
|
|
294
275
|
def listener; end
|
295
276
|
def min_delay_between_events; end
|
296
277
|
def optimize_changes(changes); end
|
297
|
-
def
|
298
|
-
def sleep(*args); end
|
299
|
-
def stopped?; end
|
300
|
-
def timestamp; end
|
278
|
+
def sleep(seconds); end
|
301
279
|
end
|
302
280
|
class Listen::Listener
|
303
|
-
def backend; end
|
304
281
|
def ignore!(regexps); end
|
305
282
|
def ignore(regexps); end
|
306
283
|
def initialize(*dirs, &block); end
|
@@ -308,9 +285,9 @@ class Listen::Listener
|
|
308
285
|
def pause; end
|
309
286
|
def paused?; end
|
310
287
|
def processing?; end
|
311
|
-
def processor; end
|
312
288
|
def start; end
|
313
289
|
def stop; end
|
290
|
+
def stopped?; end
|
314
291
|
extend Listen::FSM::ClassMethods
|
315
292
|
include Listen::FSM
|
316
293
|
end
|
data/sorbet/rbi/gems/rake.rbi
CHANGED
@@ -203,7 +203,6 @@ class Rake::FileList
|
|
203
203
|
def concat(*args, &block); end
|
204
204
|
def count(*args, &block); end
|
205
205
|
def cycle(*args, &block); end
|
206
|
-
def deconstruct(*args, &block); end
|
207
206
|
def delete(*args, &block); end
|
208
207
|
def delete_at(*args, &block); end
|
209
208
|
def delete_if(*args, &block); end
|
@@ -231,7 +230,6 @@ class Rake::FileList
|
|
231
230
|
def fill(*args, &block); end
|
232
231
|
def filter!(*args, &block); end
|
233
232
|
def filter(*args, &block); end
|
234
|
-
def filter_map(*args, &block); end
|
235
233
|
def find(*args, &block); end
|
236
234
|
def find_all(*args, &block); end
|
237
235
|
def find_index(*args, &block); end
|
@@ -252,7 +250,6 @@ class Rake::FileList
|
|
252
250
|
def inject(*args, &block); end
|
253
251
|
def insert(*args, &block); end
|
254
252
|
def inspect(*args, &block); end
|
255
|
-
def intersection(*args, &block); end
|
256
253
|
def is_a?(klass); end
|
257
254
|
def join(*args, &block); end
|
258
255
|
def keep_if(*args, &block); end
|
@@ -319,7 +316,6 @@ class Rake::FileList
|
|
319
316
|
def sum(*args, &block); end
|
320
317
|
def take(*args, &block); end
|
321
318
|
def take_while(*args, &block); end
|
322
|
-
def tally(*args, &block); end
|
323
319
|
def to_a; end
|
324
320
|
def to_ary; end
|
325
321
|
def to_h(*args, &block); end
|
@@ -549,6 +545,7 @@ end
|
|
549
545
|
class Rake::EarlyTime
|
550
546
|
def <=>(other); end
|
551
547
|
def self.allocate; end
|
548
|
+
def self.instance; end
|
552
549
|
def self.new(*arg0); end
|
553
550
|
def to_s; end
|
554
551
|
extend Singleton::SingletonClassMethods
|
@@ -627,6 +624,7 @@ end
|
|
627
624
|
class Rake::LateTime
|
628
625
|
def <=>(other); end
|
629
626
|
def self.allocate; end
|
627
|
+
def self.instance; end
|
630
628
|
def self.new(*arg0); end
|
631
629
|
def to_s; end
|
632
630
|
extend Singleton::SingletonClassMethods
|
@@ -7,7 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rspec-core/all/rspec-core.rbi
|
9
9
|
#
|
10
|
-
# rspec-core-3.
|
10
|
+
# rspec-core-3.10.1
|
11
11
|
|
12
12
|
module RSpec
|
13
13
|
def self.clear_examples; end
|
@@ -176,6 +176,7 @@ class RSpec::Core::Formatters::ExceptionPresenter
|
|
176
176
|
def exception_backtrace; end
|
177
177
|
def exception_class_name(exception = nil); end
|
178
178
|
def exception_lines; end
|
179
|
+
def exception_message_string(exception); end
|
179
180
|
def extra_detail_formatter; end
|
180
181
|
def extra_failure_lines; end
|
181
182
|
def failure_lines; end
|
@@ -577,7 +578,6 @@ module RSpec::Core::HashImitatable
|
|
577
578
|
def compare_by_identity?(*args, &block); end
|
578
579
|
def count(*args, &block); end
|
579
580
|
def cycle(*args, &block); end
|
580
|
-
def deconstruct_keys(*args, &block); end
|
581
581
|
def default(*args, &block); end
|
582
582
|
def default=(*args, &block); end
|
583
583
|
def default_proc(*args, &block); end
|
@@ -605,7 +605,6 @@ module RSpec::Core::HashImitatable
|
|
605
605
|
def fetch_values(*args, &block); end
|
606
606
|
def filter!(*args, &block); end
|
607
607
|
def filter(*args, &block); end
|
608
|
-
def filter_map(*args, &block); end
|
609
608
|
def find(*args, &block); end
|
610
609
|
def find_all(*args, &block); end
|
611
610
|
def find_index(*args, &block); end
|
@@ -666,7 +665,6 @@ module RSpec::Core::HashImitatable
|
|
666
665
|
def sum(*args, &block); end
|
667
666
|
def take(*args, &block); end
|
668
667
|
def take_while(*args, &block); end
|
669
|
-
def tally(*args, &block); end
|
670
668
|
def to_a(*args, &block); end
|
671
669
|
def to_h; end
|
672
670
|
def to_hash(*args, &block); end
|
@@ -935,13 +933,10 @@ class RSpec::Core::OutputWrapper
|
|
935
933
|
def advise(*args, &block); end
|
936
934
|
def autoclose=(*args, &block); end
|
937
935
|
def autoclose?(*args, &block); end
|
938
|
-
def beep(*args, &block); end
|
939
936
|
def binmode(*args, &block); end
|
940
937
|
def binmode?(*args, &block); end
|
941
938
|
def bytes(*args, &block); end
|
942
939
|
def chars(*args, &block); end
|
943
|
-
def check_winsize_changed(*args, &block); end
|
944
|
-
def clear_screen(*args, &block); end
|
945
940
|
def close(*args, &block); end
|
946
941
|
def close_on_exec=(*args, &block); end
|
947
942
|
def close_on_exec?(*args, &block); end
|
@@ -949,27 +944,13 @@ class RSpec::Core::OutputWrapper
|
|
949
944
|
def close_write(*args, &block); end
|
950
945
|
def closed?(*args, &block); end
|
951
946
|
def codepoints(*args, &block); end
|
952
|
-
def console_mode(*args, &block); end
|
953
|
-
def console_mode=(*args, &block); end
|
954
|
-
def cooked!(*args, &block); end
|
955
|
-
def cooked(*args, &block); end
|
956
|
-
def cursor(*args, &block); end
|
957
|
-
def cursor=(*args, &block); end
|
958
|
-
def cursor_down(*args, &block); end
|
959
|
-
def cursor_left(*args, &block); end
|
960
|
-
def cursor_right(*args, &block); end
|
961
|
-
def cursor_up(*args, &block); end
|
962
947
|
def each(*args, &block); end
|
963
948
|
def each_byte(*args, &block); end
|
964
949
|
def each_char(*args, &block); end
|
965
950
|
def each_codepoint(*args, &block); end
|
966
951
|
def each_line(*args, &block); end
|
967
|
-
def echo=(*args, &block); end
|
968
|
-
def echo?(*args, &block); end
|
969
952
|
def eof(*args, &block); end
|
970
953
|
def eof?(*args, &block); end
|
971
|
-
def erase_line(*args, &block); end
|
972
|
-
def erase_screen(*args, &block); end
|
973
954
|
def external_encoding(*args, &block); end
|
974
955
|
def fcntl(*args, &block); end
|
975
956
|
def fdatasync(*args, &block); end
|
@@ -978,25 +959,17 @@ class RSpec::Core::OutputWrapper
|
|
978
959
|
def fsync(*args, &block); end
|
979
960
|
def getbyte(*args, &block); end
|
980
961
|
def getc(*args, &block); end
|
981
|
-
def getch(*args, &block); end
|
982
|
-
def getpass(*args, &block); end
|
983
962
|
def gets(*args, &block); end
|
984
|
-
def goto(*args, &block); end
|
985
|
-
def goto_column(*args, &block); end
|
986
|
-
def iflush(*args, &block); end
|
987
963
|
def initialize(output); end
|
988
964
|
def inspect(*args, &block); end
|
989
965
|
def internal_encoding(*args, &block); end
|
990
966
|
def ioctl(*args, &block); end
|
991
|
-
def ioflush(*args, &block); end
|
992
967
|
def isatty(*args, &block); end
|
993
968
|
def lineno(*args, &block); end
|
994
969
|
def lineno=(*args, &block); end
|
995
970
|
def lines(*args, &block); end
|
996
971
|
def method_missing(name, *args, &block); end
|
997
|
-
def noecho(*args, &block); end
|
998
972
|
def nread(*args, &block); end
|
999
|
-
def oflush(*args, &block); end
|
1000
973
|
def output; end
|
1001
974
|
def output=(arg0); end
|
1002
975
|
def pathconf(*args, &block); end
|
@@ -1004,14 +977,11 @@ class RSpec::Core::OutputWrapper
|
|
1004
977
|
def pos(*args, &block); end
|
1005
978
|
def pos=(*args, &block); end
|
1006
979
|
def pread(*args, &block); end
|
1007
|
-
def pressed?(*args, &block); end
|
1008
980
|
def print(*args, &block); end
|
1009
981
|
def printf(*args, &block); end
|
1010
982
|
def putc(*args, &block); end
|
1011
983
|
def puts(*args, &block); end
|
1012
984
|
def pwrite(*args, &block); end
|
1013
|
-
def raw!(*args, &block); end
|
1014
|
-
def raw(*args, &block); end
|
1015
985
|
def read(*args, &block); end
|
1016
986
|
def read_nonblock(*args, &block); end
|
1017
987
|
def readbyte(*args, &block); end
|
@@ -1023,11 +993,8 @@ class RSpec::Core::OutputWrapper
|
|
1023
993
|
def reopen(*args, &block); end
|
1024
994
|
def respond_to?(name, priv = nil); end
|
1025
995
|
def rewind(*args, &block); end
|
1026
|
-
def scroll_backward(*args, &block); end
|
1027
|
-
def scroll_forward(*args, &block); end
|
1028
996
|
def seek(*args, &block); end
|
1029
997
|
def set_encoding(*args, &block); end
|
1030
|
-
def set_encoding_by_bom(*args, &block); end
|
1031
998
|
def stat(*args, &block); end
|
1032
999
|
def sync(*args, &block); end
|
1033
1000
|
def sync=(*args, &block); end
|
@@ -1043,8 +1010,6 @@ class RSpec::Core::OutputWrapper
|
|
1043
1010
|
def wait(*args, &block); end
|
1044
1011
|
def wait_readable(*args, &block); end
|
1045
1012
|
def wait_writable(*args, &block); end
|
1046
|
-
def winsize(*args, &block); end
|
1047
|
-
def winsize=(*args, &block); end
|
1048
1013
|
def write(*args, &block); end
|
1049
1014
|
def write_nonblock(*args, &block); end
|
1050
1015
|
end
|
@@ -1114,6 +1079,9 @@ class RSpec::Core::Configuration
|
|
1114
1079
|
def dry_run; end
|
1115
1080
|
def dry_run=(arg0); end
|
1116
1081
|
def dry_run?; end
|
1082
|
+
def error_exit_code; end
|
1083
|
+
def error_exit_code=(arg0); end
|
1084
|
+
def error_exit_code?; end
|
1117
1085
|
def error_stream; end
|
1118
1086
|
def error_stream=(arg0); end
|
1119
1087
|
def error_stream?; end
|
@@ -1244,8 +1212,8 @@ class RSpec::Core::Configuration
|
|
1244
1212
|
def seed_used?(*args, &block); end
|
1245
1213
|
def self.add_read_only_setting(name, opts = nil); end
|
1246
1214
|
def self.add_setting(name, opts = nil); end
|
1247
|
-
def self.
|
1248
|
-
def self.
|
1215
|
+
def self.define_alias(name, alias_name); end
|
1216
|
+
def self.define_predicate(name); end
|
1249
1217
|
def self.define_reader(name); end
|
1250
1218
|
def self.delegate_to_ordering_manager(*methods); end
|
1251
1219
|
def shared_context_metadata_behavior; end
|
@@ -1288,6 +1256,7 @@ module RSpec::Core::Configuration::Readers
|
|
1288
1256
|
def drb; end
|
1289
1257
|
def drb_port; end
|
1290
1258
|
def dry_run; end
|
1259
|
+
def error_exit_code; end
|
1291
1260
|
def error_stream; end
|
1292
1261
|
def example_status_persistence_file_path; end
|
1293
1262
|
def exclude_pattern; end
|
@@ -1302,7 +1271,6 @@ module RSpec::Core::Configuration::Readers
|
|
1302
1271
|
def output_stream; end
|
1303
1272
|
def pattern; end
|
1304
1273
|
def pending_color; end
|
1305
|
-
def profile_examples; end
|
1306
1274
|
def project_source_dirs; end
|
1307
1275
|
def requires; end
|
1308
1276
|
def run_all_when_everything_filtered; end
|
@@ -1366,6 +1334,7 @@ end
|
|
1366
1334
|
class RSpec::Core::Runner
|
1367
1335
|
def configuration; end
|
1368
1336
|
def configure(err, out); end
|
1337
|
+
def exit_code(examples_passed = nil); end
|
1369
1338
|
def initialize(options, configuration = nil, world = nil); end
|
1370
1339
|
def options; end
|
1371
1340
|
def persist_example_statuses; end
|
@@ -1497,7 +1466,6 @@ class RSpec::Core::Example::Procsy
|
|
1497
1466
|
def pending?(*a, &b); end
|
1498
1467
|
def reporter(*a, &b); end
|
1499
1468
|
def rerun_argument(*a, &b); end
|
1500
|
-
def ruby2_keywords(*a, &b); end
|
1501
1469
|
def run(*args, &block); end
|
1502
1470
|
def skip(*a, &b); end
|
1503
1471
|
def skipped?(*a, &b); end
|
@@ -1675,7 +1643,7 @@ module RSpec::Support
|
|
1675
1643
|
def self.require_rspec_core(f); end
|
1676
1644
|
end
|
1677
1645
|
class RSpec::Core::Time
|
1678
|
-
def self.now
|
1646
|
+
def self.now; end
|
1679
1647
|
end
|
1680
1648
|
class Module
|
1681
1649
|
def context(*a, &b); end
|
@@ -1917,14 +1885,3 @@ class RSpec::Core::Formatters::FailureListFormatter < RSpec::Core::Formatters::B
|
|
1917
1885
|
def example_failed(failure); end
|
1918
1886
|
def message(_message); end
|
1919
1887
|
end
|
1920
|
-
module RSpec::Core::MockingAdapters
|
1921
|
-
end
|
1922
|
-
module RSpec::Core::MockingAdapters::RSpec
|
1923
|
-
def self.configuration; end
|
1924
|
-
def self.framework_name; end
|
1925
|
-
def setup_mocks_for_rspec; end
|
1926
|
-
def teardown_mocks_for_rspec; end
|
1927
|
-
def verify_mocks_for_rspec; end
|
1928
|
-
include RSpec::Mocks::ExampleMethods
|
1929
|
-
include RSpec::Mocks::ExampleMethods::ExpectHost
|
1930
|
-
end
|