From c0683719b0f602961d013cdcfdfe35556c0c55f9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:21:33 +0000 Subject: [PATCH 1/2] Bump sidekiq from 7.2.2 to 7.2.4 Bumps [sidekiq](https://github.com/sidekiq/sidekiq) from 7.2.2 to 7.2.4. - [Changelog](https://github.com/sidekiq/sidekiq/blob/main/Changes.md) - [Commits](https://github.com/sidekiq/sidekiq/compare/v7.2.2...v7.2.4) --- updated-dependencies: - dependency-name: sidekiq dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 65efd715e..5db75fd37 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -240,7 +240,7 @@ GEM stringio public_suffix (5.0.4) racc (1.7.3) - rack (3.0.9.1) + rack (3.0.10) rack-session (2.0.0) rack (>= 3.0.0) rack-test (2.1.0) @@ -286,7 +286,7 @@ GEM psych (>= 4.0.0) redis (5.0.8) redis-client (>= 0.17.0) - redis-client (0.20.0) + redis-client (0.22.1) connection_pool regexp_parser (2.9.0) reline (0.5.0) @@ -323,7 +323,7 @@ GEM ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) shopify-money (2.2.0) - sidekiq (7.2.2) + sidekiq (7.2.4) concurrent-ruby (< 2) connection_pool (>= 2.3.0) rack (>= 2.2.4) From 904d26e295f01a0ba0c0077804a589d42e4b4a28 Mon Sep 17 00:00:00 2001 From: Emily Samp Date: Mon, 29 Apr 2024 08:36:05 -0500 Subject: [PATCH 2/2] Run `bundle exec tapioca gem` --- .../{rack@3.0.9.1.rbi => rack@3.0.10.rbi} | 32 +- ...ent@0.20.0.rbi => redis-client@0.22.1.rbi} | 381 ++++++++++-------- .../{sidekiq@7.2.2.rbi => sidekiq@7.2.4.rbi} | 98 ++--- 3 files changed, 278 insertions(+), 233 deletions(-) rename sorbet/rbi/gems/{rack@3.0.9.1.rbi => rack@3.0.10.rbi} (99%) rename sorbet/rbi/gems/{redis-client@0.20.0.rbi => redis-client@0.22.1.rbi} (84%) rename sorbet/rbi/gems/{sidekiq@7.2.2.rbi => sidekiq@7.2.4.rbi} (95%) diff --git a/sorbet/rbi/gems/rack@3.0.9.1.rbi b/sorbet/rbi/gems/rack@3.0.10.rbi similarity index 99% rename from sorbet/rbi/gems/rack@3.0.9.1.rbi rename to sorbet/rbi/gems/rack@3.0.10.rbi index 10a63c7ee..3ea618963 100644 --- a/sorbet/rbi/gems/rack@3.0.9.1.rbi +++ b/sorbet/rbi/gems/rack@3.0.10.rbi @@ -2442,10 +2442,10 @@ class Rack::Multipart::Parser # source://rack//lib/rack/multipart/parser.rb#205 def initialize(boundary, tempfile, bufsize, query_parser); end - # source://rack//lib/rack/multipart/parser.rb#220 + # source://rack//lib/rack/multipart/parser.rb#221 def parse(io); end - # source://rack//lib/rack/multipart/parser.rb#243 + # source://rack//lib/rack/multipart/parser.rb#244 def result; end # Returns the value of attribute state. @@ -2460,21 +2460,21 @@ class Rack::Multipart::Parser # end of the boundary. If we don't find the start or end of the # boundary, clear the buffer and return nil. # - # source://rack//lib/rack/multipart/parser.rb#346 + # source://rack//lib/rack/multipart/parser.rb#354 def consume_boundary; end # From WEBrick::HTTPUtils # - # source://rack//lib/rack/multipart/parser.rb#255 + # source://rack//lib/rack/multipart/parser.rb#256 def dequote(str); end - # source://rack//lib/rack/multipart/parser.rb#355 + # source://rack//lib/rack/multipart/parser.rb#363 def get_filename(head); end - # source://rack//lib/rack/multipart/parser.rb#290 + # source://rack//lib/rack/multipart/parser.rb#298 def handle_consume_token; end - # source://rack//lib/rack/multipart/parser.rb#427 + # source://rack//lib/rack/multipart/parser.rb#435 def handle_empty_content!(content); end # This handles the initial parser state. We read until we find the starting @@ -2485,19 +2485,19 @@ class Rack::Multipart::Parser # boundary. The client would have to deliberately craft a response # with the opening boundary beyond the buffer size for that to happen. # - # source://rack//lib/rack/multipart/parser.rb#274 + # source://rack//lib/rack/multipart/parser.rb#275 def handle_fast_forward; end - # source://rack//lib/rack/multipart/parser.rb#323 + # source://rack//lib/rack/multipart/parser.rb#331 def handle_mime_body; end - # source://rack//lib/rack/multipart/parser.rb#300 + # source://rack//lib/rack/multipart/parser.rb#308 def handle_mime_head; end - # source://rack//lib/rack/multipart/parser.rb#261 + # source://rack//lib/rack/multipart/parser.rb#262 def read_data(io, outbuf); end - # source://rack//lib/rack/multipart/parser.rb#393 + # source://rack//lib/rack/multipart/parser.rb#401 def tag_multipart_encoding(filename, content_type, name, body); end class << self @@ -2523,7 +2523,7 @@ class Rack::Multipart::Parser::BoundedIO def read(size, outbuf = T.unsafe(nil)); end end -# source://rack//lib/rack/multipart/parser.rb#390 +# source://rack//lib/rack/multipart/parser.rb#398 Rack::Multipart::Parser::CHARSET = T.let(T.unsafe(nil), String) # source://rack//lib/rack/multipart/parser.rb#112 @@ -3152,13 +3152,13 @@ class Rack::Request # source://rack//lib/rack/request.rb#71 def update_param(k, v); end - # source://yard/0.9.28/lib/yard/server/rack_adapter.rb#86 + # source://yard/0.9.36/lib/yard/server/rack_adapter.rb#94 def version_supplied; end - # source://yard/0.9.28/lib/yard/server/rack_adapter.rb#86 + # source://yard/0.9.36/lib/yard/server/rack_adapter.rb#94 def version_supplied=(_arg0); end - # source://yard/0.9.28/lib/yard/server/rack_adapter.rb#88 + # source://yard/0.9.36/lib/yard/server/rack_adapter.rb#96 def xhr?; end class << self diff --git a/sorbet/rbi/gems/redis-client@0.20.0.rbi b/sorbet/rbi/gems/redis-client@0.22.1.rbi similarity index 84% rename from sorbet/rbi/gems/redis-client@0.20.0.rbi rename to sorbet/rbi/gems/redis-client@0.22.1.rbi index 01e3cb5ec..2640a915d 100644 --- a/sorbet/rbi/gems/redis-client@0.20.0.rbi +++ b/sorbet/rbi/gems/redis-client@0.22.1.rbi @@ -16,142 +16,142 @@ class RedisClient # @return [RedisClient] a new instance of RedisClient # - # source://redis-client//lib/redis_client.rb#166 + # source://redis-client//lib/redis_client.rb#188 def initialize(config, **_arg1); end - # source://redis-client//lib/redis_client.rb#313 + # source://redis-client//lib/redis_client.rb#335 def blocking_call(timeout, *command, **kwargs); end - # source://redis-client//lib/redis_client.rb#333 + # source://redis-client//lib/redis_client.rb#355 def blocking_call_v(timeout, command); end - # source://redis-client//lib/redis_client.rb#253 + # source://redis-client//lib/redis_client.rb#275 def call(*command, **kwargs); end - # source://redis-client//lib/redis_client.rb#283 + # source://redis-client//lib/redis_client.rb#305 def call_once(*command, **kwargs); end - # source://redis-client//lib/redis_client.rb#298 + # source://redis-client//lib/redis_client.rb#320 def call_once_v(command); end - # source://redis-client//lib/redis_client.rb#268 + # source://redis-client//lib/redis_client.rb#290 def call_v(command); end - # source://redis-client//lib/redis_client.rb#393 + # source://redis-client//lib/redis_client.rb#415 def close; end # @return [Boolean] # - # source://redis-client//lib/redis_client.rb#389 + # source://redis-client//lib/redis_client.rb#411 def connected?; end - # source://redis-client//lib/redis_client.rb#190 + # source://redis-client//lib/redis_client.rb#212 def db; end - # source://redis-client//lib/redis_client.rb#398 + # source://redis-client//lib/redis_client.rb#420 def disable_reconnection(&block); end - # source://redis-client//lib/redis_client.rb#194 + # source://redis-client//lib/redis_client.rb#216 def host; end - # source://redis-client//lib/redis_client.rb#371 + # source://redis-client//lib/redis_client.rb#393 def hscan(key, *args, **kwargs, &block); end - # source://redis-client//lib/redis_client.rb#182 + # source://redis-client//lib/redis_client.rb#204 def id; end - # source://redis-client//lib/redis_client.rb#173 + # source://redis-client//lib/redis_client.rb#195 def inspect; end - # source://redis-client//lib/redis_client.rb#245 + # source://redis-client//lib/redis_client.rb#267 def measure_round_trip_delay; end - # source://redis-client//lib/redis_client.rb#420 + # source://redis-client//lib/redis_client.rb#442 def multi(watch: T.unsafe(nil), &block); end - # source://redis-client//lib/redis_client.rb#210 + # source://redis-client//lib/redis_client.rb#232 def password; end - # source://redis-client//lib/redis_client.rb#202 + # source://redis-client//lib/redis_client.rb#224 def path; end # @yield [pipeline] # - # source://redis-client//lib/redis_client.rb#402 - def pipelined; end + # source://redis-client//lib/redis_client.rb#424 + def pipelined(exception: T.unsafe(nil)); end - # source://redis-client//lib/redis_client.rb#198 + # source://redis-client//lib/redis_client.rb#220 def port; end - # source://redis-client//lib/redis_client.rb#239 + # source://redis-client//lib/redis_client.rb#261 def pubsub; end - # source://redis-client//lib/redis_client.rb#229 + # source://redis-client//lib/redis_client.rb#251 def read_timeout=(timeout); end - # source://redis-client//lib/redis_client.rb#353 + # source://redis-client//lib/redis_client.rb#375 def scan(*args, **kwargs, &block); end - # source://redis-client//lib/redis_client.rb#178 + # source://redis-client//lib/redis_client.rb#200 def server_url; end - # source://redis-client//lib/redis_client.rb#214 + # source://redis-client//lib/redis_client.rb#236 def size; end - # source://redis-client//lib/redis_client.rb#362 + # source://redis-client//lib/redis_client.rb#384 def sscan(key, *args, **kwargs, &block); end # @yield [_self] # @yieldparam _self [RedisClient] the object that the method was called on # - # source://redis-client//lib/redis_client.rb#218 + # source://redis-client//lib/redis_client.rb#240 def then(_options = T.unsafe(nil)); end - # source://redis-client//lib/redis_client.rb#186 + # source://redis-client//lib/redis_client.rb#208 def timeout; end - # source://redis-client//lib/redis_client.rb#223 + # source://redis-client//lib/redis_client.rb#245 def timeout=(timeout); end - # source://redis-client//lib/redis_client.rb#206 + # source://redis-client//lib/redis_client.rb#228 def username; end # @yield [_self] # @yieldparam _self [RedisClient] the object that the method was called on # - # source://redis-client//lib/redis_client.rb#218 + # source://redis-client//lib/redis_client.rb#240 def with(_options = T.unsafe(nil)); end - # source://redis-client//lib/redis_client.rb#234 + # source://redis-client//lib/redis_client.rb#256 def write_timeout=(timeout); end - # source://redis-client//lib/redis_client.rb#380 + # source://redis-client//lib/redis_client.rb#402 def zscan(key, *args, **kwargs, &block); end private # @yield [transaction] # - # source://redis-client//lib/redis_client.rb#627 + # source://redis-client//lib/redis_client.rb#649 def build_transaction; end - # source://redis-client//lib/redis_client.rb#715 + # source://redis-client//lib/redis_client.rb#737 def connect; end - # source://redis-client//lib/redis_client.rb#661 + # source://redis-client//lib/redis_client.rb#683 def ensure_connected(retryable: T.unsafe(nil)); end - # source://redis-client//lib/redis_client.rb#708 + # source://redis-client//lib/redis_client.rb#730 def raw_connection; end - # source://redis-client//lib/redis_client.rb#635 + # source://redis-client//lib/redis_client.rb#657 def scan_list(cursor_index, command, &block); end - # source://redis-client//lib/redis_client.rb#645 + # source://redis-client//lib/redis_client.rb#667 def scan_pairs(cursor_index, command); end class << self - # source://redis-client//lib/redis_client.rb#143 + # source://redis-client//lib/redis_client.rb#165 def config(**kwargs); end # source://redis-client//lib/redis_client.rb#33 @@ -163,21 +163,21 @@ class RedisClient # source://redis-client//lib/redis_client.rb#22 def driver(name); end - # source://redis-client//lib/redis_client.rb#151 + # source://redis-client//lib/redis_client.rb#173 def new(arg = T.unsafe(nil), **kwargs); end - # source://redis-client//lib/redis_client.rb#159 + # source://redis-client//lib/redis_client.rb#181 def register(middleware); end # source://redis-client//lib/redis_client.rb#18 def register_driver(name, &block); end - # source://redis-client//lib/redis_client.rb#147 + # source://redis-client//lib/redis_client.rb#169 def sentinel(**kwargs); end end end -# source://redis-client//lib/redis_client.rb#122 +# source://redis-client//lib/redis_client.rb#144 class RedisClient::AuthenticationError < ::RedisClient::CommandError; end # source://redis-client//lib/redis_client/middlewares.rb#4 @@ -206,10 +206,10 @@ class RedisClient::BasicMiddleware def connect(_config); end end -# source://redis-client//lib/redis_client.rb#86 +# source://redis-client//lib/redis_client.rb#108 class RedisClient::CannotConnectError < ::RedisClient::ConnectionError; end -# source://redis-client//lib/redis_client.rb#93 +# source://redis-client//lib/redis_client.rb#115 class RedisClient::CheckoutTimeoutError < ::RedisClient::TimeoutError; end # source://redis-client//lib/redis_client/circuit_breaker.rb#4 @@ -277,17 +277,17 @@ module RedisClient::CommandBuilder def generate(args, kwargs = T.unsafe(nil)); end end -# source://redis-client//lib/redis_client.rb#103 +# source://redis-client//lib/redis_client.rb#125 class RedisClient::CommandError < ::RedisClient::Error include ::RedisClient::HasCommand class << self - # source://redis-client//lib/redis_client.rb#107 + # source://redis-client//lib/redis_client.rb#129 def parse(error_message); end end end -# source://redis-client//lib/redis_client.rb#133 +# source://redis-client//lib/redis_client.rb#155 RedisClient::CommandError::ERRORS = T.let(T.unsafe(nil), Hash) # source://redis-client//lib/redis_client.rb#55 @@ -351,22 +351,22 @@ class RedisClient::Config # @return [Config] a new instance of Config # - # source://redis-client//lib/redis_client/config.rb#168 + # source://redis-client//lib/redis_client/config.rb#179 def initialize(url: T.unsafe(nil), host: T.unsafe(nil), port: T.unsafe(nil), path: T.unsafe(nil), username: T.unsafe(nil), password: T.unsafe(nil), **kwargs); end # Returns the value of attribute host. # - # source://redis-client//lib/redis_client/config.rb#166 + # source://redis-client//lib/redis_client/config.rb#177 def host; end # Returns the value of attribute path. # - # source://redis-client//lib/redis_client/config.rb#166 + # source://redis-client//lib/redis_client/config.rb#177 def path; end # Returns the value of attribute port. # - # source://redis-client//lib/redis_client/config.rb#166 + # source://redis-client//lib/redis_client/config.rb#177 def port; end end @@ -425,10 +425,10 @@ module RedisClient::Config::Common # source://redis-client//lib/redis_client/config.rb#15 def middlewares_stack; end - # source://redis-client//lib/redis_client/config.rb#103 + # source://redis-client//lib/redis_client/config.rb#107 def new_client(**kwargs); end - # source://redis-client//lib/redis_client/config.rb#98 + # source://redis-client//lib/redis_client/config.rb#102 def new_pool(**kwargs); end # Returns the value of attribute password. @@ -448,15 +448,20 @@ module RedisClient::Config::Common # @return [Boolean] # - # source://redis-client//lib/redis_client/config.rb#107 + # source://redis-client//lib/redis_client/config.rb#94 + def resolved?; end + + # @return [Boolean] + # + # source://redis-client//lib/redis_client/config.rb#111 def retry_connecting?(attempt, _error); end # @return [Boolean] # - # source://redis-client//lib/redis_client/config.rb#94 + # source://redis-client//lib/redis_client/config.rb#98 def sentinel?; end - # source://redis-client//lib/redis_client/config.rb#125 + # source://redis-client//lib/redis_client/config.rb#129 def server_url; end # Returns the value of attribute ssl. @@ -467,7 +472,7 @@ module RedisClient::Config::Common # Returns the value of attribute ssl. def ssl?; end - # source://redis-client//lib/redis_client/config.rb#119 + # source://redis-client//lib/redis_client/config.rb#123 def ssl_context; end # Returns the value of attribute ssl_params. @@ -485,7 +490,7 @@ module RedisClient::Config::Common private - # source://redis-client//lib/redis_client/config.rb#135 + # source://redis-client//lib/redis_client/config.rb#146 def build_connection_prelude; end end @@ -504,7 +509,7 @@ RedisClient::Config::DEFAULT_TIMEOUT = T.let(T.unsafe(nil), Float) # source://redis-client//lib/redis_client/config.rb#11 RedisClient::Config::DEFAULT_USERNAME = T.let(T.unsafe(nil), String) -# source://redis-client//lib/redis_client.rb#85 +# source://redis-client//lib/redis_client.rb#107 class RedisClient::ConnectionError < ::RedisClient::Error; end # source://redis-client//lib/redis_client/connection_mixin.rb#4 @@ -515,8 +520,8 @@ module RedisClient::ConnectionMixin # source://redis-client//lib/redis_client/connection_mixin.rb#28 def call(command, timeout); end - # source://redis-client//lib/redis_client/connection_mixin.rb#41 - def call_pipelined(commands, timeouts); end + # source://redis-client//lib/redis_client/connection_mixin.rb#42 + def call_pipelined(commands, timeouts, exception: T.unsafe(nil)); end # source://redis-client//lib/redis_client/connection_mixin.rb#14 def close; end @@ -567,7 +572,7 @@ class RedisClient::Decorator::Client def multi(**kwargs); end # source://redis-client//lib/redis_client/decorator.rb#50 - def pipelined; end + def pipelined(exception: T.unsafe(nil)); end # source://redis-client//lib/redis_client/decorator.rb#69 def pubsub; end @@ -632,24 +637,45 @@ class RedisClient::Decorator::Pipeline include ::RedisClient::Decorator::CommandsMixin end -# source://redis-client//lib/redis_client.rb#80 -class RedisClient::Error < ::StandardError; end +# source://redis-client//lib/redis_client.rb#94 +class RedisClient::Error < ::StandardError + include ::RedisClient::HasConfig + + class << self + # source://redis-client//lib/redis_client.rb#97 + def with_config(message, config = T.unsafe(nil)); end + end +end -# source://redis-client//lib/redis_client.rb#88 +# source://redis-client//lib/redis_client.rb#110 class RedisClient::FailoverError < ::RedisClient::ConnectionError; end -# source://redis-client//lib/redis_client.rb#95 +# source://redis-client//lib/redis_client.rb#117 module RedisClient::HasCommand - # source://redis-client//lib/redis_client.rb#98 + # source://redis-client//lib/redis_client.rb#120 def _set_command(command); end # Returns the value of attribute command. # - # source://redis-client//lib/redis_client.rb#96 + # source://redis-client//lib/redis_client.rb#118 def command; end end -# source://redis-client//lib/redis_client.rb#130 +# source://redis-client//lib/redis_client.rb#80 +module RedisClient::HasConfig + # source://redis-client//lib/redis_client.rb#83 + def _set_config(config); end + + # Returns the value of attribute config. + # + # source://redis-client//lib/redis_client.rb#81 + def config; end + + # source://redis-client//lib/redis_client.rb#87 + def message; end +end + +# source://redis-client//lib/redis_client.rb#152 class RedisClient::MasterDownError < ::RedisClient::ConnectionError include ::RedisClient::HasCommand end @@ -657,52 +683,52 @@ end # source://redis-client//lib/redis_client/middlewares.rb#21 class RedisClient::Middlewares < ::RedisClient::BasicMiddleware; end -# source://redis-client//lib/redis_client.rb#501 +# source://redis-client//lib/redis_client.rb#523 class RedisClient::Multi # @return [Multi] a new instance of Multi # - # source://redis-client//lib/redis_client.rb#502 + # source://redis-client//lib/redis_client.rb#524 def initialize(command_builder); end - # source://redis-client//lib/redis_client.rb#544 + # source://redis-client//lib/redis_client.rb#566 def _blocks; end - # source://redis-client//lib/redis_client.rb#564 + # source://redis-client//lib/redis_client.rb#586 def _coerce!(results); end - # source://redis-client//lib/redis_client.rb#540 + # source://redis-client//lib/redis_client.rb#562 def _commands; end # @return [Boolean] # - # source://redis-client//lib/redis_client.rb#552 + # source://redis-client//lib/redis_client.rb#574 def _empty?; end # @return [Boolean] # - # source://redis-client//lib/redis_client.rb#560 + # source://redis-client//lib/redis_client.rb#582 def _retryable?; end - # source://redis-client//lib/redis_client.rb#548 + # source://redis-client//lib/redis_client.rb#570 def _size; end - # source://redis-client//lib/redis_client.rb#556 + # source://redis-client//lib/redis_client.rb#578 def _timeouts; end - # source://redis-client//lib/redis_client.rb#510 + # source://redis-client//lib/redis_client.rb#532 def call(*command, **kwargs, &block); end - # source://redis-client//lib/redis_client.rb#524 + # source://redis-client//lib/redis_client.rb#546 def call_once(*command, **kwargs, &block); end - # source://redis-client//lib/redis_client.rb#532 + # source://redis-client//lib/redis_client.rb#554 def call_once_v(command, &block); end - # source://redis-client//lib/redis_client.rb#517 + # source://redis-client//lib/redis_client.rb#539 def call_v(command, &block); end end -# source://redis-client//lib/redis_client.rb#125 +# source://redis-client//lib/redis_client.rb#147 class RedisClient::OutOfMemoryError < ::RedisClient::CommandError; end # source://redis-client//lib/redis_client/pid_cache.rb#4 @@ -724,31 +750,31 @@ module RedisClient::PIDCache::CoreExt def _fork; end end -# source://redis-client//lib/redis_client.rb#123 +# source://redis-client//lib/redis_client.rb#145 class RedisClient::PermissionError < ::RedisClient::CommandError; end -# source://redis-client//lib/redis_client.rb#580 +# source://redis-client//lib/redis_client.rb#602 class RedisClient::Pipeline < ::RedisClient::Multi # @return [Pipeline] a new instance of Pipeline # - # source://redis-client//lib/redis_client.rb#581 + # source://redis-client//lib/redis_client.rb#603 def initialize(_command_builder); end - # source://redis-client//lib/redis_client.rb#612 + # source://redis-client//lib/redis_client.rb#634 def _coerce!(results); end # @return [Boolean] # - # source://redis-client//lib/redis_client.rb#608 + # source://redis-client//lib/redis_client.rb#630 def _empty?; end - # source://redis-client//lib/redis_client.rb#604 + # source://redis-client//lib/redis_client.rb#626 def _timeouts; end - # source://redis-client//lib/redis_client.rb#586 + # source://redis-client//lib/redis_client.rb#608 def blocking_call(timeout, *command, **kwargs, &block); end - # source://redis-client//lib/redis_client.rb#595 + # source://redis-client//lib/redis_client.rb#617 def blocking_call_v(timeout, command, &block); end end @@ -824,33 +850,33 @@ end # source://redis-client//lib/redis_client/pooled.rb#7 RedisClient::Pooled::EMPTY_HASH = T.let(T.unsafe(nil), Hash) -# source://redis-client//lib/redis_client.rb#82 +# source://redis-client//lib/redis_client.rb#104 class RedisClient::ProtocolError < ::RedisClient::Error; end -# source://redis-client//lib/redis_client.rb#464 +# source://redis-client//lib/redis_client.rb#486 class RedisClient::PubSub # @return [PubSub] a new instance of PubSub # - # source://redis-client//lib/redis_client.rb#465 + # source://redis-client//lib/redis_client.rb#487 def initialize(raw_connection, command_builder); end - # source://redis-client//lib/redis_client.rb#470 + # source://redis-client//lib/redis_client.rb#492 def call(*command, **kwargs); end - # source://redis-client//lib/redis_client.rb#475 + # source://redis-client//lib/redis_client.rb#497 def call_v(command); end - # source://redis-client//lib/redis_client.rb#480 + # source://redis-client//lib/redis_client.rb#502 def close; end - # source://redis-client//lib/redis_client.rb#486 + # source://redis-client//lib/redis_client.rb#508 def next_event(timeout = T.unsafe(nil)); end private # Returns the value of attribute raw_connection. # - # source://redis-client//lib/redis_client.rb#498 + # source://redis-client//lib/redis_client.rb#520 def raw_connection; end end @@ -891,43 +917,43 @@ module RedisClient::RESP3 # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#112 def parse(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#142 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#166 def parse_array(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#194 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#218 def parse_blob(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#131 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#155 def parse_boolean(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#176 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#200 def parse_double(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#127 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#151 def parse_error(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#172 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#196 def parse_integer(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#150 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#174 def parse_map(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#189 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#213 def parse_null(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#158 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#182 def parse_push(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#162 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#186 def parse_sequence(io, size); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#146 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#170 def parse_set(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#120 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#145 def parse_string(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#204 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#227 def parse_verbatim_string(io); end class << self @@ -964,43 +990,43 @@ module RedisClient::RESP3 # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#112 def parse(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#142 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#166 def parse_array(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#194 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#218 def parse_blob(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#131 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#155 def parse_boolean(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#176 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#200 def parse_double(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#127 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#151 def parse_error(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#172 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#196 def parse_integer(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#150 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#174 def parse_map(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#189 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#213 def parse_null(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#158 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#182 def parse_push(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#162 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#186 def parse_sequence(io, size); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#146 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#170 def parse_set(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#120 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#145 def parse_string(io); end - # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#204 + # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#227 def parse_verbatim_string(io); end end end @@ -1029,12 +1055,12 @@ class RedisClient::RESP3::SyntaxError < ::RedisClient::RESP3::Error; end # source://redis-client//lib/redis_client/ruby_connection/resp3.rb#8 class RedisClient::RESP3::UnknownType < ::RedisClient::RESP3::Error; end -# source://redis-client//lib/redis_client.rb#127 +# source://redis-client//lib/redis_client.rb#149 class RedisClient::ReadOnlyError < ::RedisClient::ConnectionError include ::RedisClient::HasCommand end -# source://redis-client//lib/redis_client.rb#91 +# source://redis-client//lib/redis_client.rb#113 class RedisClient::ReadTimeoutError < ::RedisClient::TimeoutError; end # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#6 @@ -1043,43 +1069,48 @@ class RedisClient::RubyConnection # @return [RubyConnection] a new instance of RubyConnection # - # source://redis-client//lib/redis_client/ruby_connection.rb#43 + # source://redis-client//lib/redis_client/ruby_connection.rb#45 def initialize(config, connect_timeout:, read_timeout:, write_timeout:); end - # source://redis-client//lib/redis_client/ruby_connection.rb#56 + # source://redis-client//lib/redis_client/ruby_connection.rb#58 def close; end + # Returns the value of attribute config. + # + # source://redis-client//lib/redis_client/ruby_connection.rb#43 + def config; end + # @return [Boolean] # - # source://redis-client//lib/redis_client/ruby_connection.rb#52 + # source://redis-client//lib/redis_client/ruby_connection.rb#54 def connected?; end - # source://redis-client//lib/redis_client/ruby_connection.rb#104 + # source://redis-client//lib/redis_client/ruby_connection.rb#106 def measure_round_trip_delay; end - # source://redis-client//lib/redis_client/ruby_connection.rb#92 + # source://redis-client//lib/redis_client/ruby_connection.rb#94 def read(timeout = T.unsafe(nil)); end - # source://redis-client//lib/redis_client/ruby_connection.rb#61 + # source://redis-client//lib/redis_client/ruby_connection.rb#63 def read_timeout=(timeout); end - # source://redis-client//lib/redis_client/ruby_connection.rb#71 + # source://redis-client//lib/redis_client/ruby_connection.rb#73 def write(command); end - # source://redis-client//lib/redis_client/ruby_connection.rb#80 + # source://redis-client//lib/redis_client/ruby_connection.rb#82 def write_multi(commands); end - # source://redis-client//lib/redis_client/ruby_connection.rb#66 + # source://redis-client//lib/redis_client/ruby_connection.rb#68 def write_timeout=(timeout); end private - # source://redis-client//lib/redis_client/ruby_connection.rb#112 + # source://redis-client//lib/redis_client/ruby_connection.rb#114 def connect; end # unknown # - # source://redis-client//lib/redis_client/ruby_connection.rb#170 + # source://redis-client//lib/redis_client/ruby_connection.rb#172 def enable_socket_keep_alive(socket); end class << self @@ -1092,29 +1123,32 @@ end class RedisClient::RubyConnection::BufferedIO # @return [BufferedIO] a new instance of BufferedIO # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#13 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#16 def initialize(io, read_timeout:, write_timeout:, chunk_size: T.unsafe(nil)); end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#23 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#89 def close; end # @return [Boolean] # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#27 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#93 def closed?; end # @return [Boolean] # - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#31 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#97 def eof?; end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#84 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#150 def getbyte; end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#91 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#26 def gets_chomp; end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#102 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#159 + def gets_integer; end + + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#37 def read_chomp(bytes); end # Returns the value of attribute read_timeout. @@ -1129,13 +1163,13 @@ class RedisClient::RubyConnection::BufferedIO # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#11 def read_timeout=(_arg0); end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#55 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#121 def skip(offset); end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#35 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#101 def with_timeout(new_timeout); end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#61 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#127 def write(string); end # Returns the value of attribute write_timeout. @@ -1152,13 +1186,19 @@ class RedisClient::RubyConnection::BufferedIO private - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#111 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#44 + def ensure_line; end + + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#184 def ensure_remaining(bytes); end - # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#118 + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#191 def fill_buffer(strict, size = T.unsafe(nil)); end end +# source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#14 +RedisClient::RubyConnection::BufferedIO::ENCODING = T.let(T.unsafe(nil), Encoding) + # source://redis-client//lib/redis_client/ruby_connection/buffered_io.rb#8 RedisClient::RubyConnection::BufferedIO::EOL = T.let(T.unsafe(nil), String) @@ -1167,15 +1207,15 @@ RedisClient::RubyConnection::BufferedIO::EOL_SIZE = T.let(T.unsafe(nil), Integer # Same as hiredis defaults # -# source://redis-client//lib/redis_client/ruby_connection.rb#155 +# source://redis-client//lib/redis_client/ruby_connection.rb#157 RedisClient::RubyConnection::KEEP_ALIVE_INTERVAL = T.let(T.unsafe(nil), Integer) -# source://redis-client//lib/redis_client/ruby_connection.rb#157 +# source://redis-client//lib/redis_client/ruby_connection.rb#159 RedisClient::RubyConnection::KEEP_ALIVE_PROBES = T.let(T.unsafe(nil), Integer) # Longer than hiredis defaults # -# source://redis-client//lib/redis_client/ruby_connection.rb#156 +# source://redis-client//lib/redis_client/ruby_connection.rb#158 RedisClient::RubyConnection::KEEP_ALIVE_TTL = T.let(T.unsafe(nil), Integer) # source://redis-client//lib/redis_client/ruby_connection.rb#41 @@ -1210,6 +1250,11 @@ class RedisClient::SentinelConfig # source://redis-client//lib/redis_client/sentinel_config.rb#74 def reset; end + # @return [Boolean] + # + # source://redis-client//lib/redis_client/sentinel_config.rb#115 + def resolved?; end + # @return [Boolean] # # source://redis-client//lib/redis_client/sentinel_config.rb#92 @@ -1225,25 +1270,25 @@ class RedisClient::SentinelConfig private - # source://redis-client//lib/redis_client/sentinel_config.rb#128 + # source://redis-client//lib/redis_client/sentinel_config.rb#134 def config; end - # source://redis-client//lib/redis_client/sentinel_config.rb#175 + # source://redis-client//lib/redis_client/sentinel_config.rb#181 def each_sentinel; end - # source://redis-client//lib/redis_client/sentinel_config.rb#197 + # source://redis-client//lib/redis_client/sentinel_config.rb#207 def refresh_sentinels(sentinel_client); end - # source://redis-client//lib/redis_client/sentinel_config.rb#138 + # source://redis-client//lib/redis_client/sentinel_config.rb#144 def resolve_master; end - # source://redis-client//lib/redis_client/sentinel_config.rb#157 + # source://redis-client//lib/redis_client/sentinel_config.rb#163 def resolve_replica; end - # source://redis-client//lib/redis_client/sentinel_config.rb#153 + # source://redis-client//lib/redis_client/sentinel_config.rb#159 def sentinel_client(sentinel_config); end - # source://redis-client//lib/redis_client/sentinel_config.rb#117 + # source://redis-client//lib/redis_client/sentinel_config.rb#123 def sentinels_to_configs(sentinels); end end @@ -1253,7 +1298,7 @@ RedisClient::SentinelConfig::DEFAULT_RECONNECT_ATTEMPTS = T.let(T.unsafe(nil), I # source://redis-client//lib/redis_client/sentinel_config.rb#7 RedisClient::SentinelConfig::SENTINEL_DELAY = T.let(T.unsafe(nil), Float) -# source://redis-client//lib/redis_client.rb#90 +# source://redis-client//lib/redis_client.rb#112 class RedisClient::TimeoutError < ::RedisClient::ConnectionError; end # source://redis-client//lib/redis_client/url_config.rb#6 @@ -1297,14 +1342,14 @@ class RedisClient::URLConfig def username; end end -# source://redis-client//lib/redis_client.rb#83 +# source://redis-client//lib/redis_client.rb#105 class RedisClient::UnsupportedServer < ::RedisClient::Error; end # source://redis-client//lib/redis_client/version.rb#4 RedisClient::VERSION = T.let(T.unsafe(nil), String) -# source://redis-client//lib/redis_client.rb#92 +# source://redis-client//lib/redis_client.rb#114 class RedisClient::WriteTimeoutError < ::RedisClient::TimeoutError; end -# source://redis-client//lib/redis_client.rb#124 +# source://redis-client//lib/redis_client.rb#146 class RedisClient::WrongTypeError < ::RedisClient::CommandError; end diff --git a/sorbet/rbi/gems/sidekiq@7.2.2.rbi b/sorbet/rbi/gems/sidekiq@7.2.4.rbi similarity index 95% rename from sorbet/rbi/gems/sidekiq@7.2.2.rbi rename to sorbet/rbi/gems/sidekiq@7.2.4.rbi index c1b40de4f..7e4400248 100644 --- a/sorbet/rbi/gems/sidekiq@7.2.2.rbi +++ b/sorbet/rbi/gems/sidekiq@7.2.4.rbi @@ -1070,7 +1070,7 @@ Sidekiq::NAME = T.let(T.unsafe(nil), String) # source://sidekiq//lib/sidekiq/rails.rb#7 class Sidekiq::Rails < ::Rails::Engine class << self - # source://activesupport/7.1.3/lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.2/lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -1130,154 +1130,154 @@ end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#15 module Sidekiq::RedisClientAdapter::CompatMethods # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def bitfield(*args); end + def bitfield(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def bitfield_ro(*args); end + def bitfield_ro(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def del(*args); end + def del(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#20 def evalsha(sha, keys, argv); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def exists(*args); end + def exists(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def expire(*args); end + def expire(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def flushdb(*args); end + def flushdb(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def get(*args); end + def get(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hdel(*args); end + def hdel(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hget(*args); end + def hget(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hgetall(*args); end + def hgetall(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hincrby(*args); end + def hincrby(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hlen(*args); end + def hlen(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hmget(*args); end + def hmget(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hset(*args); end + def hset(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def hsetnx(*args); end + def hsetnx(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def incr(*args); end + def incr(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def incrby(*args); end + def incrby(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#16 def info; end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lindex(*args); end + def lindex(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def llen(*args); end + def llen(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lmove(*args); end + def lmove(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lpop(*args); end + def lpop(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lpush(*args); end + def lpush(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lrange(*args); end + def lrange(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def lrem(*args); end + def lrem(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def mget(*args); end + def mget(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def mset(*args); end + def mset(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def ping(*args); end + def ping(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def pttl(*args); end + def pttl(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def publish(*args); end + def publish(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def rpop(*args); end + def rpop(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def rpush(*args); end + def rpush(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def sadd(*args); end + def sadd(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def scard(*args); end + def scard(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def script(*args); end + def script(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def set(*args); end + def set(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def sismember(*args); end + def sismember(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def smembers(*args); end + def smembers(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def srem(*args); end + def srem(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def ttl(*args); end + def ttl(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def type(*args); end + def type(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def unlink(*args); end + def unlink(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zadd(*args); end + def zadd(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zcard(*args); end + def zcard(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zincrby(*args); end + def zincrby(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zrange(*args); end + def zrange(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zrem(*args); end + def zrem(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zremrangebyrank(*args); end + def zremrangebyrank(*args, **kwargs); end # source://sidekiq//lib/sidekiq/redis_client_adapter.rb#35 - def zremrangebyscore(*args); end + def zremrangebyscore(*args, **kwargs); end private