repeatable 1.2.0 → 1.2.1

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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +19 -23
  3. data/.ruby-version +1 -0
  4. data/.yardopts +1 -0
  5. data/CHANGELOG.md +16 -2
  6. data/Gemfile +1 -0
  7. data/Gemfile.lock +86 -73
  8. data/README.md +8 -5
  9. data/lib/repeatable/expression/date.rb +1 -0
  10. data/lib/repeatable/expression/range_in_year.rb +2 -0
  11. data/lib/repeatable/version.rb +1 -1
  12. data/rbi/repeatable.rbi +1 -1
  13. data/sorbet/rbi/gems/{ast@2.4.2.rbi → ast@2.4.3.rbi} +3 -3
  14. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  15. data/sorbet/rbi/gems/{commander@4.6.0.rbi → commander@5.0.0.rbi} +1 -0
  16. data/sorbet/rbi/gems/{diff-lcs@1.4.4.rbi → diff-lcs@1.6.2.rbi} +135 -83
  17. data/sorbet/rbi/gems/{erubi@1.12.0.rbi → erubi@1.13.1.rbi} +25 -15
  18. data/sorbet/rbi/gems/{highline@2.0.3.rbi → highline@3.0.1.rbi} +1 -0
  19. data/sorbet/rbi/gems/{json@2.7.2.rbi → json@2.13.2.rbi} +759 -233
  20. data/sorbet/rbi/gems/{language_server-protocol@3.17.0.3.rbi → language_server-protocol@3.17.0.5.rbi} +11 -5
  21. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  22. data/sorbet/rbi/gems/{method_source@1.0.0.rbi → method_source@1.1.0.rbi} +41 -9
  23. data/sorbet/rbi/gems/{parallel@1.24.0.rbi → parallel@1.27.0.rbi} +32 -21
  24. data/sorbet/rbi/gems/{parlour@8.1.0.rbi → parlour@9.1.2.rbi} +86 -68
  25. data/sorbet/rbi/gems/{parser@3.3.1.0.rbi → parser@3.3.9.0.rbi} +908 -891
  26. data/sorbet/rbi/gems/{prism@0.28.0.rbi → prism@1.4.0.rbi} +14078 -10249
  27. data/sorbet/rbi/gems/{pry@0.14.0.rbi → pry@0.15.2.rbi} +437 -244
  28. data/sorbet/rbi/gems/{racc@1.7.3.rbi → racc@1.8.1.rbi} +36 -33
  29. data/sorbet/rbi/gems/{rake@13.0.3.rbi → rake@13.3.0.rbi} +83 -76
  30. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  31. data/sorbet/rbi/gems/rbs@3.9.5.rbi +6976 -0
  32. data/sorbet/rbi/gems/{regexp_parser@2.9.0.rbi → regexp_parser@2.11.2.rbi} +1089 -1015
  33. data/sorbet/rbi/gems/{rexml@3.2.6.rbi → rexml@3.4.3.rbi} +833 -329
  34. data/sorbet/rbi/gems/{rspec-core@3.10.1.rbi → rspec-core@3.13.5.rbi} +1014 -613
  35. data/sorbet/rbi/gems/{rspec-expectations@3.10.1.rbi → rspec-expectations@3.13.5.rbi} +897 -638
  36. data/sorbet/rbi/gems/{rspec-mocks@3.10.2.rbi → rspec-mocks@3.13.5.rbi} +547 -444
  37. data/sorbet/rbi/gems/{rspec-support@3.10.2.rbi → rspec-support@3.13.5.rbi} +337 -304
  38. data/sorbet/rbi/gems/rspec@3.13.1.rbi +83 -0
  39. data/sorbet/rbi/gems/{rubocop-ast@1.31.3.rbi → rubocop-ast@1.46.0.rbi} +1678 -958
  40. data/sorbet/rbi/gems/{rubocop-performance@1.20.2.rbi → rubocop-performance@1.25.0.rbi} +1 -0
  41. data/sorbet/rbi/gems/{rubocop@1.62.1.rbi → rubocop@1.80.2.rbi} +11243 -5431
  42. data/sorbet/rbi/gems/simplecov-html@0.13.2.rbi +225 -0
  43. data/sorbet/rbi/gems/{simplecov@0.21.2.rbi → simplecov@0.22.0.rbi} +39 -25
  44. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +233 -2
  45. data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
  46. data/sorbet/rbi/gems/{standard-performance@1.3.1.rbi → standard-performance@1.8.0.rbi} +1 -0
  47. data/sorbet/rbi/gems/{standard@1.35.1.rbi → standard@1.51.0.rbi} +181 -96
  48. data/sorbet/rbi/gems/{tapioca@0.13.3.rbi → tapioca@0.16.11.rbi} +489 -388
  49. data/sorbet/rbi/gems/{thor@1.3.1.rbi → thor@1.4.0.rbi} +94 -46
  50. data/sorbet/rbi/gems/unicode-display_width@3.2.0.rbi +132 -0
  51. data/sorbet/rbi/gems/unicode-emoji@4.1.0.rbi +251 -0
  52. data/sorbet/rbi/gems/{yard-sorbet@0.8.1.rbi → yard-sorbet@0.9.0.rbi} +36 -29
  53. data/sorbet/rbi/gems/{yard@0.9.36.rbi → yard@0.9.37.rbi} +394 -236
  54. metadata +46 -40
  55. data/sorbet/rbi/gems/rbi@0.1.13.rbi +0 -3071
  56. data/sorbet/rbi/gems/rspec@3.10.0.rbi +0 -76
  57. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +0 -216
  58. data/sorbet/rbi/gems/spoom@1.3.2.rbi +0 -4420
  59. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +0 -65
  60. /data/sorbet/rbi/gems/{docile@1.4.0.rbi → docile@1.4.1.rbi} +0 -0
@@ -4,7 +4,8 @@
4
4
  # This is an autogenerated file for types exported from the `method_source` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem method_source`.
6
6
 
7
- # source://method_source//lib/method_source.rb#127
7
+
8
+ # source://method_source//lib/method_source.rb#163
8
9
  class Method
9
10
  include ::MethodSource::SourceLocation::MethodExtensions
10
11
  include ::MethodSource::MethodExtensions
@@ -15,6 +16,11 @@ module MethodSource
15
16
  extend ::MethodSource::CodeHelpers
16
17
 
17
18
  class << self
19
+ # Clear cache.
20
+ #
21
+ # source://method_source//lib/method_source.rb#59
22
+ def clear_cache; end
23
+
18
24
  # Helper method responsible for opening source file and buffering up
19
25
  # the comments for a specified method. Defined here to avoid polluting
20
26
  # `Method` class.
@@ -29,7 +35,7 @@ module MethodSource
29
35
 
30
36
  # @deprecated — use MethodSource::CodeHelpers#expression_at
31
37
  #
32
- # source://method_source//lib/method_source.rb#66
38
+ # source://method_source//lib/method_source.rb#71
33
39
  def extract_code(source_location); end
34
40
 
35
41
  # Load a memoized copy of the lines in a file.
@@ -55,7 +61,7 @@ module MethodSource
55
61
  # @deprecated — use MethodSource::CodeHelpers#complete_expression?
56
62
  # @return [Boolean]
57
63
  #
58
- # source://method_source//lib/method_source.rb#59
64
+ # source://method_source//lib/method_source.rb#64
59
65
  def valid_expression?(str); end
60
66
  end
61
67
  end
@@ -154,8 +160,21 @@ MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsa
154
160
  # This module is to be included by `Method` and `UnboundMethod` and
155
161
  # provides the `#source` functionality
156
162
  #
157
- # source://method_source//lib/method_source.rb#72
163
+ # source://method_source//lib/method_source.rb#77
158
164
  module MethodSource::MethodExtensions
165
+ # Return the comments associated with the method class/module.
166
+ #
167
+ # @example
168
+ # MethodSource::MethodExtensions.method(:included).module_comment
169
+ # =>
170
+ # # This module is to be included by `Method` and `UnboundMethod` and
171
+ # # provides the `#source` functionality
172
+ # @raise SourceNotFoundException
173
+ # @return [String] The method's comments as a string
174
+ #
175
+ # source://method_source//lib/method_source.rb#139
176
+ def class_comment; end
177
+
159
178
  # Return the comments associated with the method as a string.
160
179
  #
161
180
  # @example
@@ -165,9 +184,22 @@ module MethodSource::MethodExtensions
165
184
  # @raise SourceNotFoundException
166
185
  # @return [String] The method's comments as a string
167
186
  #
168
- # source://method_source//lib/method_source.rb#121
187
+ # source://method_source//lib/method_source.rb#126
169
188
  def comment; end
170
189
 
190
+ # Return the comments associated with the method class/module.
191
+ #
192
+ # @example
193
+ # MethodSource::MethodExtensions.method(:included).module_comment
194
+ # =>
195
+ # # This module is to be included by `Method` and `UnboundMethod` and
196
+ # # provides the `#source` functionality
197
+ # @raise SourceNotFoundException
198
+ # @return [String] The method's comments as a string
199
+ #
200
+ # source://method_source//lib/method_source.rb#139
201
+ def module_comment; end
202
+
171
203
  # Return the sourcecode for the method as a string
172
204
  #
173
205
  # @example
@@ -180,7 +212,7 @@ module MethodSource::MethodExtensions
180
212
  # @raise SourceNotFoundException
181
213
  # @return [String] The method sourcecode as a string
182
214
  #
183
- # source://method_source//lib/method_source.rb#109
215
+ # source://method_source//lib/method_source.rb#114
184
216
  def source; end
185
217
 
186
218
  class << self
@@ -191,7 +223,7 @@ module MethodSource::MethodExtensions
191
223
  #
192
224
  # @param klass [Class] The class that includes the module.
193
225
  #
194
- # source://method_source//lib/method_source.rb#79
226
+ # source://method_source//lib/method_source.rb#84
195
227
  def included(klass); end
196
228
  end
197
229
  end
@@ -259,13 +291,13 @@ class MethodSource::SourceNotFoundError < ::StandardError; end
259
291
  # source://method_source//lib/method_source/version.rb#2
260
292
  MethodSource::VERSION = T.let(T.unsafe(nil), String)
261
293
 
262
- # source://method_source//lib/method_source.rb#137
294
+ # source://method_source//lib/method_source.rb#173
263
295
  class Proc
264
296
  include ::MethodSource::SourceLocation::ProcExtensions
265
297
  include ::MethodSource::MethodExtensions
266
298
  end
267
299
 
268
- # source://method_source//lib/method_source.rb#132
300
+ # source://method_source//lib/method_source.rb#168
269
301
  class UnboundMethod
270
302
  include ::MethodSource::SourceLocation::UnboundMethodExtensions
271
303
  include ::MethodSource::MethodExtensions
@@ -4,6 +4,7 @@
4
4
  # This is an autogenerated file for types exported from the `parallel` gem.
5
5
  # Please instead update this file by running `bin/tapioca gem parallel`.
6
6
 
7
+
7
8
  # source://parallel//lib/parallel/version.rb#2
8
9
  module Parallel
9
10
  class << self
@@ -24,10 +25,10 @@ module Parallel
24
25
  def each_with_index(array, options = T.unsafe(nil), &block); end
25
26
 
26
27
  # source://parallel//lib/parallel.rb#307
27
- def filter_map(*args, &block); end
28
+ def filter_map(*_arg0, **_arg1, &_arg2); end
28
29
 
29
30
  # source://parallel//lib/parallel.rb#303
30
- def flat_map(*args, &block); end
31
+ def flat_map(*_arg0, **_arg1, &_arg2); end
31
32
 
32
33
  # source://parallel//lib/parallel.rb#228
33
34
  def in_processes(options = T.unsafe(nil), &block); end
@@ -46,70 +47,80 @@ module Parallel
46
47
  # source://parallel//lib/parallel.rb#312
47
48
  def physical_processor_count; end
48
49
 
49
- # Number of processors seen by the OS, used for process scheduling
50
+ # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
51
+ # used for process scheduling
50
52
  #
51
- # source://parallel//lib/parallel.rb#345
53
+ # source://parallel//lib/parallel.rb#342
52
54
  def processor_count; end
53
55
 
54
- # source://parallel//lib/parallel.rb#350
56
+ # source://parallel//lib/parallel.rb#346
55
57
  def worker_number; end
56
58
 
57
59
  # TODO: this does not work when doing threads in forks, so should remove and yield the number instead if needed
58
60
  #
59
- # source://parallel//lib/parallel.rb#355
61
+ # source://parallel//lib/parallel.rb#351
60
62
  def worker_number=(worker_num); end
61
63
 
62
64
  private
63
65
 
64
- # source://parallel//lib/parallel.rb#361
66
+ # source://parallel//lib/parallel.rb#384
65
67
  def add_progress_bar!(job_factory, options); end
66
68
 
67
- # source://parallel//lib/parallel.rb#624
69
+ # source://parallel//lib/parallel.rb#699
70
+ def available_processor_count; end
71
+
72
+ # source://parallel//lib/parallel.rb#647
68
73
  def call_with_index(item, index, options, &block); end
69
74
 
70
- # source://parallel//lib/parallel.rb#556
75
+ # source://parallel//lib/parallel.rb#579
71
76
  def create_workers(job_factory, options, &block); end
72
77
 
73
78
  # options is either a Integer or a Hash with :count
74
79
  #
75
- # source://parallel//lib/parallel.rb#614
80
+ # source://parallel//lib/parallel.rb#637
76
81
  def extract_count_from_options(options); end
77
82
 
78
- # source://parallel//lib/parallel.rb#642
83
+ # source://parallel//lib/parallel.rb#665
79
84
  def instrument_finish(item, index, result, options); end
80
85
 
81
86
  # yield results in the order of the input items
82
87
  # needs to use `options` to store state between executions
83
88
  # needs to use `done` index since a nil result would also be valid
84
89
  #
85
- # source://parallel//lib/parallel.rb#651
90
+ # source://parallel//lib/parallel.rb#674
86
91
  def instrument_finish_in_order(item, index, result, options); end
87
92
 
88
- # source://parallel//lib/parallel.rb#671
93
+ # source://parallel//lib/parallel.rb#694
89
94
  def instrument_start(item, index, options); end
90
95
 
91
- # source://parallel//lib/parallel.rb#590
96
+ # source://parallel//lib/parallel.rb#357
97
+ def physical_processor_count_windows; end
98
+
99
+ # source://parallel//lib/parallel.rb#613
92
100
  def process_incoming_jobs(read, write, job_factory, options, &block); end
93
101
 
94
- # source://parallel//lib/parallel.rb#544
102
+ # source://parallel//lib/parallel.rb#567
95
103
  def replace_worker(job_factory, workers, index, options, blk); end
96
104
 
97
- # source://parallel//lib/parallel.rb#635
105
+ # source://parallel//lib/parallel.rb#378
106
+ def run(command); end
107
+
108
+ # source://parallel//lib/parallel.rb#658
98
109
  def with_instrumentation(item, index, options); end
99
110
 
100
- # source://parallel//lib/parallel.rb#386
111
+ # source://parallel//lib/parallel.rb#409
101
112
  def work_direct(job_factory, options, &block); end
102
113
 
103
- # source://parallel//lib/parallel.rb#496
114
+ # source://parallel//lib/parallel.rb#519
104
115
  def work_in_processes(job_factory, options, &blk); end
105
116
 
106
- # source://parallel//lib/parallel.rb#430
117
+ # source://parallel//lib/parallel.rb#453
107
118
  def work_in_ractors(job_factory, options); end
108
119
 
109
- # source://parallel//lib/parallel.rb#405
120
+ # source://parallel//lib/parallel.rb#428
110
121
  def work_in_threads(job_factory, options, &block); end
111
122
 
112
- # source://parallel//lib/parallel.rb#564
123
+ # source://parallel//lib/parallel.rb#587
113
124
  def worker(job_factory, options, &block); end
114
125
  end
115
126
  end