diff --git a/Gemfile.lock b/Gemfile.lock index 6276959d..ceb7f502 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -58,10 +58,11 @@ GEM faraday (< 3.0) oauth2 (~> 1.1) erubi (1.13.0) - faraday (2.10.0) - faraday-net_http (>= 2.0, < 3.2) + faraday (2.12.0) + faraday-net_http (>= 2.0, < 3.4) + json logger - faraday-net_http (3.1.0) + faraday-net_http (3.3.0) net-http ffi (1.17.0-x86_64-linux-gnu) filelock (1.1.1) @@ -98,7 +99,7 @@ GEM multi_json (~> 1.3) multi_xml (~> 0.5) rack (>= 1.2, < 4) - octokit (9.1.0) + octokit (9.2.0) faraday (>= 1, < 3) sawyer (~> 0.9) openssl (3.2.0) @@ -109,7 +110,7 @@ GEM prism (1.2.0) psych (5.1.2) stringio - public_suffix (6.0.0) + public_suffix (6.0.1) racc (1.8.1) rack (3.0.10) rainbow (3.1.1) @@ -182,7 +183,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) - uri (0.13.0) + uri (0.13.1) winrm (2.3.9) builder (>= 2.1.2) erubi (~> 1.8) diff --git a/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi b/sorbet/rbi/gems/faraday-net_http@3.3.0.rbi similarity index 73% rename from sorbet/rbi/gems/faraday-net_http@3.1.0.rbi rename to sorbet/rbi/gems/faraday-net_http@3.3.0.rbi index 57741c52..afe9577e 100644 --- a/sorbet/rbi/gems/faraday-net_http@3.1.0.rbi +++ b/sorbet/rbi/gems/faraday-net_http@3.3.0.rbi @@ -4,84 +4,85 @@ # This is an autogenerated file for types exported from the `faraday-net_http` gem. # Please instead update this file by running `bin/tapioca gem faraday-net_http`. + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#12 module Faraday class << self - # source://faraday/2.9.0/lib/faraday.rb#55 + # source://faraday/2.12.0/lib/faraday.rb#55 def default_adapter; end - # source://faraday/2.9.0/lib/faraday.rb#102 + # source://faraday/2.12.0/lib/faraday.rb#102 def default_adapter=(adapter); end - # source://faraday/2.9.0/lib/faraday.rb#59 + # source://faraday/2.12.0/lib/faraday.rb#59 def default_adapter_options; end - # source://faraday/2.9.0/lib/faraday.rb#59 + # source://faraday/2.12.0/lib/faraday.rb#59 def default_adapter_options=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#120 + # source://faraday/2.12.0/lib/faraday.rb#120 def default_connection; end - # source://faraday/2.9.0/lib/faraday.rb#62 + # source://faraday/2.12.0/lib/faraday.rb#62 def default_connection=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#127 + # source://faraday/2.12.0/lib/faraday.rb#127 def default_connection_options; end - # source://faraday/2.9.0/lib/faraday.rb#134 + # source://faraday/2.12.0/lib/faraday.rb#134 def default_connection_options=(options); end - # source://faraday/2.9.0/lib/faraday.rb#67 + # source://faraday/2.12.0/lib/faraday.rb#67 def ignore_env_proxy; end - # source://faraday/2.9.0/lib/faraday.rb#67 + # source://faraday/2.12.0/lib/faraday.rb#67 def ignore_env_proxy=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#46 + # source://faraday/2.12.0/lib/faraday.rb#46 def lib_path; end - # source://faraday/2.9.0/lib/faraday.rb#46 + # source://faraday/2.12.0/lib/faraday.rb#46 def lib_path=(_arg0); end - # source://faraday/2.9.0/lib/faraday.rb#96 + # source://faraday/2.12.0/lib/faraday.rb#96 def new(url = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://faraday/2.9.0/lib/faraday.rb#107 + # source://faraday/2.12.0/lib/faraday.rb#107 def respond_to_missing?(symbol, include_private = T.unsafe(nil)); end - # source://faraday/2.9.0/lib/faraday.rb#42 + # source://faraday/2.12.0/lib/faraday.rb#42 def root_path; end - # source://faraday/2.9.0/lib/faraday.rb#42 + # source://faraday/2.12.0/lib/faraday.rb#42 def root_path=(_arg0); end private - # source://faraday/2.9.0/lib/faraday.rb#143 + # source://faraday/2.12.0/lib/faraday.rb#143 def method_missing(name, *args, &block); end end end # source://faraday-net_http//lib/faraday/adapter/net_http.rb#13 class Faraday::Adapter - # source://faraday/2.9.0/lib/faraday/adapter.rb#28 + # source://faraday/2.12.0/lib/faraday/adapter.rb#28 def initialize(_app = T.unsafe(nil), opts = T.unsafe(nil), &block); end - # source://faraday/2.9.0/lib/faraday/adapter.rb#55 + # source://faraday/2.12.0/lib/faraday/adapter.rb#55 def call(env); end - # source://faraday/2.9.0/lib/faraday/adapter.rb#50 + # source://faraday/2.12.0/lib/faraday/adapter.rb#50 def close; end - # source://faraday/2.9.0/lib/faraday/adapter.rb#41 + # source://faraday/2.12.0/lib/faraday/adapter.rb#41 def connection(env); end private - # source://faraday/2.9.0/lib/faraday/adapter.rb#85 + # source://faraday/2.12.0/lib/faraday/adapter.rb#85 def request_timeout(type, options); end - # source://faraday/2.9.0/lib/faraday/adapter.rb#62 + # source://faraday/2.12.0/lib/faraday/adapter.rb#62 def save_response(env, status, body, headers = T.unsafe(nil), reason_phrase = T.unsafe(nil), finished: T.unsafe(nil)); end end @@ -95,44 +96,44 @@ class Faraday::Adapter::NetHttp < ::Faraday::Adapter # source://faraday-net_http//lib/faraday/adapter/net_http.rb#43 def build_connection(env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#63 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#62 def call(env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#51 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#50 def net_http_connection(env); end private - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#148 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#151 def configure_request(http, req); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#131 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#130 def configure_ssl(http, ssl); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#79 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#78 def create_request(env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#185 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#188 def encoded_body(http_response); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#95 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#94 def perform_request(http, env); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#109 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#108 def request_with_wrapped_block(http, env, &block); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#121 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#120 def save_http_response(env, http_response); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#168 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#171 def ssl_cert_store(ssl); end - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#175 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#178 def ssl_verify_mode(ssl); end # @return [Boolean] # - # source://faraday-net_http//lib/faraday/adapter/net_http.rb#197 + # source://faraday-net_http//lib/faraday/adapter/net_http.rb#200 def verify_hostname_enabled?(http, ssl); end end diff --git a/sorbet/rbi/gems/faraday@2.10.0.rbi b/sorbet/rbi/gems/faraday@2.12.0.rbi similarity index 97% rename from sorbet/rbi/gems/faraday@2.10.0.rbi rename to sorbet/rbi/gems/faraday@2.12.0.rbi index f0682be0..c033a59a 100644 --- a/sorbet/rbi/gems/faraday@2.10.0.rbi +++ b/sorbet/rbi/gems/faraday@2.12.0.rbi @@ -587,7 +587,7 @@ class Faraday::Connection # replace the query values # @return [URI] # - # source://faraday//lib/faraday/connection.rb#470 + # source://faraday//lib/faraday/connection.rb#478 def build_exclusive_url(url = T.unsafe(nil), params = T.unsafe(nil), params_encoder = T.unsafe(nil)); end # Creates and configures the request object. @@ -596,7 +596,7 @@ class Faraday::Connection # @return [Faraday::Request] # @yield [Faraday::Request] if block given # - # source://faraday//lib/faraday/connection.rb#453 + # source://faraday//lib/faraday/connection.rb#461 def build_request(method); end # Takes a relative url for a request and combines it with the defaults @@ -616,7 +616,7 @@ class Faraday::Connection # @param url [String, URI, nil] # @param extra_params [Hash] # - # source://faraday//lib/faraday/connection.rb#407 + # source://faraday//lib/faraday/connection.rb#415 def build_url(url = T.unsafe(nil), extra_params = T.unsafe(nil)); end # @return [Faraday::RackBuilder] Builder for this Connection. @@ -653,10 +653,10 @@ class Faraday::Connection # @api private # @return [Faraday::Connection] # - # source://faraday//lib/faraday/connection.rb#491 + # source://faraday//lib/faraday/connection.rb#499 def dup; end - # source://faraday//lib/faraday/connection.rb#534 + # source://faraday//lib/faraday/connection.rb#542 def find_default_proxy; end # source://faraday//lib/faraday/connection.rb#199 @@ -691,7 +691,7 @@ class Faraday::Connection # @yield a block to execute multiple requests. # # source://faraday//lib/faraday/connection.rb#317 - def in_parallel(manager = T.unsafe(nil)); end + def in_parallel(manager = T.unsafe(nil), &block); end # Determine if this Faraday::Connection can make parallel requests. # @@ -742,7 +742,7 @@ class Faraday::Connection # @param value [String] # @return [String] the new path prefix # - # source://faraday//lib/faraday/connection.rb#382 + # source://faraday//lib/faraday/connection.rb#390 def path_prefix=(value); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -763,13 +763,13 @@ class Faraday::Connection # # @param new_value [Object] # - # source://faraday//lib/faraday/connection.rb#333 + # source://faraday//lib/faraday/connection.rb#341 def proxy=(new_value); end - # source://faraday//lib/faraday/connection.rb#542 + # source://faraday//lib/faraday/connection.rb#550 def proxy_for_request(url); end - # source://faraday//lib/faraday/connection.rb#514 + # source://faraday//lib/faraday/connection.rb#522 def proxy_from_env(url); end # source://faraday//lib/faraday/connection.rb#279 @@ -790,7 +790,7 @@ class Faraday::Connection # @param headers [Hash, nil] unencoded HTTP header key/value pairs. # @return [Faraday::Response] # - # source://faraday//lib/faraday/connection.rb#431 + # source://faraday//lib/faraday/connection.rb#439 def run_request(method, url, body, headers); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -799,7 +799,7 @@ class Faraday::Connection # source://forwardable/1.3.3/forwardable.rb#231 def scheme=(*args, **_arg1, &block); end - # source://faraday//lib/faraday/connection.rb#371 + # source://faraday//lib/faraday/connection.rb#379 def set_basic_auth(user, password); end # @return [Hash] SSL options. @@ -809,7 +809,7 @@ class Faraday::Connection # @return [Boolean] # - # source://faraday//lib/faraday/connection.rb#552 + # source://faraday//lib/faraday/connection.rb#560 def support_parallel?(adapter); end # source://faraday//lib/faraday/connection.rb#199 @@ -836,7 +836,7 @@ class Faraday::Connection # @param url [String, URI] # @param encoder [Object] # - # source://faraday//lib/faraday/connection.rb#356 + # source://faraday//lib/faraday/connection.rb#364 def url_prefix=(url, encoder = T.unsafe(nil)); end # source://forwardable/1.3.3/forwardable.rb#231 @@ -851,7 +851,7 @@ class Faraday::Connection # @yieldparam username [String] any username from URI # @yieldparam password [String] any password from URI # - # source://faraday//lib/faraday/connection.rb#508 + # source://faraday//lib/faraday/connection.rb#516 def with_uri_credentials(uri); end end @@ -1392,7 +1392,7 @@ class Faraday::Middleware # @return [Middleware] a new instance of Middleware # - # source://faraday//lib/faraday/middleware.rb#14 + # source://faraday//lib/faraday/middleware.rb#15 def initialize(app = T.unsafe(nil), options = T.unsafe(nil)); end # Returns the value of attribute app. @@ -1400,10 +1400,10 @@ class Faraday::Middleware # source://faraday//lib/faraday/middleware.rb#10 def app; end - # source://faraday//lib/faraday/middleware.rb#57 + # source://faraday//lib/faraday/middleware.rb#54 def call(env); end - # source://faraday//lib/faraday/middleware.rb#67 + # source://faraday//lib/faraday/middleware.rb#64 def close; end # Returns the value of attribute options. @@ -1416,7 +1416,7 @@ class Faraday::Middleware # with the values of any Faraday::Middleware defaults, and merges with # subclass defaults # - # source://faraday//lib/faraday/middleware.rb#38 + # source://faraday//lib/faraday/middleware.rb#39 def default_options; end # Faraday::Middleware::default_options= allows user to set default options at the Faraday::Middleware @@ -1428,17 +1428,14 @@ class Faraday::Middleware # # @example Set the Faraday::Response::RaiseError option, `include_request` to `false` # - # source://faraday//lib/faraday/middleware.rb#28 + # source://faraday//lib/faraday/middleware.rb#29 def default_options=(options = T.unsafe(nil)); end private - # source://faraday//lib/faraday/middleware.rb#44 - def lock; end - # @raise [Faraday::InitializationError] # - # source://faraday//lib/faraday/middleware.rb#48 + # source://faraday//lib/faraday/middleware.rb#45 def validate_default_options(options); end end end @@ -1446,6 +1443,9 @@ end # source://faraday//lib/faraday/middleware.rb#12 Faraday::Middleware::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) +# source://faraday//lib/faraday/middleware.rb#13 +Faraday::Middleware::LOCK = T.let(T.unsafe(nil), Thread::Mutex) + # Adds the ability for other modules to register and lookup # middleware classes. # @@ -2469,10 +2469,10 @@ end # # source://faraday//lib/faraday/response/raise_error.rb#7 class Faraday::Response::RaiseError < ::Faraday::Middleware - # source://faraday//lib/faraday/response/raise_error.rb#15 + # source://faraday//lib/faraday/response/raise_error.rb#25 def on_complete(env); end - # source://faraday//lib/faraday/response/raise_error.rb#77 + # source://faraday//lib/faraday/response/raise_error.rb#75 def query_params(env); end # Returns a hash of response data with the following keys: @@ -2484,14 +2484,17 @@ class Faraday::Response::RaiseError < ::Faraday::Middleware # The `request` key is omitted when the middleware is explicitly # configured with the option `include_request: false`. # - # source://faraday//lib/faraday/response/raise_error.rb#54 + # source://faraday//lib/faraday/response/raise_error.rb#52 def response_values(env); end end # source://faraday//lib/faraday/response/raise_error.rb#9 Faraday::Response::RaiseError::ClientErrorStatuses = T.let(T.unsafe(nil), Range) -# source://faraday//lib/faraday/response/raise_error.rb#13 +# source://faraday//lib/faraday/response/raise_error.rb#11 +Faraday::Response::RaiseError::ClientErrorStatusesWithCustomExceptions = T.let(T.unsafe(nil), Hash) + +# source://faraday//lib/faraday/response/raise_error.rb#23 Faraday::Response::RaiseError::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) # source://faraday//lib/faraday/response/raise_error.rb#10 @@ -2504,7 +2507,7 @@ class Faraday::SSLError < ::Faraday::Error; end # SSL-related options. # -# source://faraday//lib/faraday/options/ssl_options.rb#50 +# source://faraday//lib/faraday/options/ssl_options.rb#53 class Faraday::SSLOptions < ::Faraday::Options # @return [String] CA file def ca_file; end @@ -2530,6 +2533,12 @@ class Faraday::SSLOptions < ::Faraday::Options # @return [OpenSSL::X509::Certificate] certificate (Excon only) def certificate=(_); end + # @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D) + def ciphers; end + + # @return [String] cipher list in OpenSSL format (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-ciphers-3D) + def ciphers=(_); end + # @return [String, OpenSSL::X509::Certificate] client certificate def client_cert; end @@ -2542,7 +2551,7 @@ class Faraday::SSLOptions < ::Faraday::Options # @return [String, OpenSSL::PKey::RSA, OpenSSL::PKey::DSA] client key def client_key=(_); end - # source://faraday//lib/faraday/options/ssl_options.rb#61 + # source://faraday//lib/faraday/options/ssl_options.rb#64 def disable?; end # @return [String, Symbol] maximum SSL version (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL/SSLContext.html#method-i-max_version-3D) @@ -2569,7 +2578,7 @@ class Faraday::SSLOptions < ::Faraday::Options # @return [Boolean] whether to verify SSL certificates or not def verify=(_); end - # source://faraday//lib/faraday/options/ssl_options.rb#56 + # source://faraday//lib/faraday/options/ssl_options.rb#59 def verify?; end # @return [Integer] maximum depth for the certificate chain verification @@ -2586,7 +2595,7 @@ class Faraday::SSLOptions < ::Faraday::Options # during the handshake or not (see https://github.com/ruby/openssl/pull/60) def verify_hostname=(_); end - # source://faraday//lib/faraday/options/ssl_options.rb#66 + # source://faraday//lib/faraday/options/ssl_options.rb#69 def verify_hostname?; end # @return [Integer] Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) diff --git a/sorbet/rbi/gems/octokit@9.1.0.rbi b/sorbet/rbi/gems/octokit@9.2.0.rbi similarity index 98% rename from sorbet/rbi/gems/octokit@9.1.0.rbi rename to sorbet/rbi/gems/octokit@9.2.0.rbi index 378166e6..8c2f7040 100644 --- a/sorbet/rbi/gems/octokit@9.1.0.rbi +++ b/sorbet/rbi/gems/octokit@9.2.0.rbi @@ -5956,14 +5956,15 @@ module Octokit::Client::PullRequests # @param body [String] Comment content # @param commit_id [String] Sha of the commit to comment on. # @param path [String] Relative path of the file to comment on. - # @param line [Integer] Line index in the diff to comment on. + # @param line [Integer] Optional line index in the diff to comment on. # For a multi-line comment, the last line of the range # and specify 'start_line' in the 'options'. + # If not specified, the comment will be on the whole file. # @return [Sawyer::Resource] Hash representing the new comment # @see https://developer.github.com/v3/pulls/comments/#create-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#209 - def create_pull_comment(repo, pull_id, body, commit_id, path, line, options = T.unsafe(nil)); end + # source://octokit//lib/octokit/client/pull_requests.rb#210 + def create_pull_comment(repo, pull_id, body, commit_id, path, line = T.unsafe(nil), options = T.unsafe(nil)); end # Create reply to a pull request comment # @@ -5976,7 +5977,7 @@ module Octokit::Client::PullRequests # @return [Sawyer::Resource] Hash representing new comment # @see https://developer.github.com/v3/pulls/comments/#create-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#231 + # source://octokit//lib/octokit/client/pull_requests.rb#239 def create_pull_reply(repo, pull_id, body, comment_id, options = T.unsafe(nil)); end # Create a pull request @@ -6009,14 +6010,15 @@ module Octokit::Client::PullRequests # @param body [String] Comment content # @param commit_id [String] Sha of the commit to comment on. # @param path [String] Relative path of the file to comment on. - # @param line [Integer] Line index in the diff to comment on. + # @param line [Integer] Optional line index in the diff to comment on. # For a multi-line comment, the last line of the range # and specify 'start_line' in the 'options'. + # If not specified, the comment will be on the whole file. # @return [Sawyer::Resource] Hash representing the new comment # @see https://developer.github.com/v3/pulls/comments/#create-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#209 - def create_pull_request_comment(repo, pull_id, body, commit_id, path, line, options = T.unsafe(nil)); end + # source://octokit//lib/octokit/client/pull_requests.rb#210 + def create_pull_request_comment(repo, pull_id, body, commit_id, path, line = T.unsafe(nil), options = T.unsafe(nil)); end # Create reply to a pull request comment # @@ -6029,7 +6031,7 @@ module Octokit::Client::PullRequests # @return [Sawyer::Resource] Hash representing new comment # @see https://developer.github.com/v3/pulls/comments/#create-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#231 + # source://octokit//lib/octokit/client/pull_requests.rb#239 def create_pull_request_comment_reply(repo, pull_id, body, comment_id, options = T.unsafe(nil)); end # Create a pull request from existing issue @@ -6058,7 +6060,7 @@ module Octokit::Client::PullRequests # @return [Sawyer::Resource] Hash representing new comment # @see https://developer.github.com/v3/pulls/comments/#create-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#231 + # source://octokit//lib/octokit/client/pull_requests.rb#239 def create_review_reply(repo, pull_id, body, comment_id, options = T.unsafe(nil)); end # Create a pull request comment @@ -6072,14 +6074,15 @@ module Octokit::Client::PullRequests # @param body [String] Comment content # @param commit_id [String] Sha of the commit to comment on. # @param path [String] Relative path of the file to comment on. - # @param line [Integer] Line index in the diff to comment on. + # @param line [Integer] Optional line index in the diff to comment on. # For a multi-line comment, the last line of the range # and specify 'start_line' in the 'options'. + # If not specified, the comment will be on the whole file. # @return [Sawyer::Resource] Hash representing the new comment # @see https://developer.github.com/v3/pulls/comments/#create-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#209 - def create_view_comment(repo, pull_id, body, commit_id, path, line, options = T.unsafe(nil)); end + # source://octokit//lib/octokit/client/pull_requests.rb#210 + def create_view_comment(repo, pull_id, body, commit_id, path, line = T.unsafe(nil), options = T.unsafe(nil)); end # Delete pull request comment # @@ -6090,7 +6093,7 @@ module Octokit::Client::PullRequests # @return [Boolean] True if deleted, false otherwise # @see https://developer.github.com/v3/pulls/comments/#delete-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#265 + # source://octokit//lib/octokit/client/pull_requests.rb#273 def delete_pull_comment(repo, comment_id, options = T.unsafe(nil)); end # Delete pull request comment @@ -6102,7 +6105,7 @@ module Octokit::Client::PullRequests # @return [Boolean] True if deleted, false otherwise # @see https://developer.github.com/v3/pulls/comments/#delete-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#265 + # source://octokit//lib/octokit/client/pull_requests.rb#273 def delete_pull_request_comment(repo, comment_id, options = T.unsafe(nil)); end # Delete pull request comment @@ -6114,7 +6117,7 @@ module Octokit::Client::PullRequests # @return [Boolean] True if deleted, false otherwise # @see https://developer.github.com/v3/pulls/comments/#delete-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#265 + # source://octokit//lib/octokit/client/pull_requests.rb#273 def delete_review_comment(repo, comment_id, options = T.unsafe(nil)); end # Merge a pull request @@ -6125,7 +6128,7 @@ module Octokit::Client::PullRequests # @return [Array] Merge commit info if successful # @see https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button # - # source://octokit//lib/octokit/client/pull_requests.rb#300 + # source://octokit//lib/octokit/client/pull_requests.rb#308 def merge_pull_request(repo, number, commit_message = T.unsafe(nil), options = T.unsafe(nil)); end # Get a pull request @@ -6179,7 +6182,7 @@ module Octokit::Client::PullRequests # @return [Array] List of files # @see https://developer.github.com/v3/pulls/#list-pull-requests-files # - # source://octokit//lib/octokit/client/pull_requests.rb#277 + # source://octokit//lib/octokit/client/pull_requests.rb#285 def pull_files(repo, number, options = T.unsafe(nil)); end # Check pull request merge status @@ -6189,7 +6192,7 @@ module Octokit::Client::PullRequests # @return [Boolean] True if the pull request has been merged # @see https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged # - # source://octokit//lib/octokit/client/pull_requests.rb#310 + # source://octokit//lib/octokit/client/pull_requests.rb#318 def pull_merged?(repo, number, options = T.unsafe(nil)); end # Get a pull request @@ -6243,7 +6246,7 @@ module Octokit::Client::PullRequests # @return [Array] List of files # @see https://developer.github.com/v3/pulls/#list-pull-requests-files # - # source://octokit//lib/octokit/client/pull_requests.rb#277 + # source://octokit//lib/octokit/client/pull_requests.rb#285 def pull_request_files(repo, number, options = T.unsafe(nil)); end # Check pull request merge status @@ -6253,7 +6256,7 @@ module Octokit::Client::PullRequests # @return [Boolean] True if the pull request has been merged # @see https://developer.github.com/v3/pulls/#get-if-a-pull-request-has-been-merged # - # source://octokit//lib/octokit/client/pull_requests.rb#310 + # source://octokit//lib/octokit/client/pull_requests.rb#318 def pull_request_merged?(repo, number, options = T.unsafe(nil)); end # List pull requests for a repository @@ -6379,7 +6382,7 @@ module Octokit::Client::PullRequests # @return [Sawyer::Resource] Hash representing the updated comment # @see https://developer.github.com/v3/pulls/comments/#edit-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#250 + # source://octokit//lib/octokit/client/pull_requests.rb#258 def update_pull_comment(repo, comment_id, body, options = T.unsafe(nil)); end # Update a pull request @@ -6406,7 +6409,7 @@ module Octokit::Client::PullRequests # @return [Boolean] True if the pull request branch has been updated # @see https://developer.github.com/v3/pulls/#update-a-pull-request-branch # - # source://octokit//lib/octokit/client/pull_requests.rb#289 + # source://octokit//lib/octokit/client/pull_requests.rb#297 def update_pull_request_branch(repo, number, options = T.unsafe(nil)); end # Update pull request comment @@ -6419,7 +6422,7 @@ module Octokit::Client::PullRequests # @return [Sawyer::Resource] Hash representing the updated comment # @see https://developer.github.com/v3/pulls/comments/#edit-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#250 + # source://octokit//lib/octokit/client/pull_requests.rb#258 def update_pull_request_comment(repo, comment_id, body, options = T.unsafe(nil)); end # Update pull request comment @@ -6432,7 +6435,7 @@ module Octokit::Client::PullRequests # @return [Sawyer::Resource] Hash representing the updated comment # @see https://developer.github.com/v3/pulls/comments/#edit-a-comment # - # source://octokit//lib/octokit/client/pull_requests.rb#250 + # source://octokit//lib/octokit/client/pull_requests.rb#258 def update_review_comment(repo, comment_id, body, options = T.unsafe(nil)); end end @@ -7126,6 +7129,19 @@ module Octokit::Client::Repositories # source://octokit//lib/octokit/client/repositories.rb#87 def all_repositories(options = T.unsafe(nil)); end + # Check to see if automated security fixes are enabled for a repository + # + # The authenticated user must have admin access to the repository. + # + # @example + # @client.automated_security_fixes_enabled?("octokit/octokit.rb") + # @param repo [Integer, String, Hash, Repository] A GitHub repository. + # @return [Boolean] True if automated security fixes are enabled, false otherwise. + # @see https://docs.github.com/en/rest/reference/repos#check-if-automated-security-fixes-are-enabled-for-a-repository + # + # source://octokit//lib/octokit/client/repositories.rb#788 + def automated_security_fixes_enabled?(repo, options = T.unsafe(nil)); end + # Get a single branch from a repository # # @example Get branch 'master` from octokit/octokit.rb @@ -7417,6 +7433,18 @@ module Octokit::Client::Repositories # source://octokit//lib/octokit/client/repositories.rb#238 def deploy_keys(repo, options = T.unsafe(nil)); end + # Disable automated security fixes for a repository + # + # @example Disable automated security fixes for a repository + # @client.disable_automated_security_fixes("octokit/octokit.rb") + # @param repo [Integer, String, Hash, Repository] A GitHub repository. + # @param options [Hash] + # @return [Boolean] True if vulnerability alerts disabled, false otherwise. + # @see https://docs.github.com/en/rest/reference/repos#automated-security-fixes + # + # source://octokit//lib/octokit/client/repositories.rb#817 + def disable_automated_security_fixes(repo, options = T.unsafe(nil)); end + # Disable vulnerability alerts for a repository # # @example Disable vulnerability alerts for a repository @@ -7500,6 +7528,18 @@ module Octokit::Client::Repositories # source://octokit//lib/octokit/client/repositories.rb#46 def edit_repository(repo, options = T.unsafe(nil)); end + # Enable automated security fixes for a repository + # + # @example Enable automated security fixes for a repository + # @client.enable_automated_security_fixes("octokit/octokit.rb") + # @param repo [Integer, String, Hash, Repository] A GitHub repository. + # @param options [Hash] + # @return [Boolean] True if vulnerability alerts enabled, false otherwise. + # @see https://docs.github.com/en/rest/reference/repos#automated-security-fixes + # + # source://octokit//lib/octokit/client/repositories.rb#804 + def enable_automated_security_fixes(repo, options = T.unsafe(nil)); end + # Enable vulnerability alerts for a repository # # @example Enable vulnerability alerts for a repository @@ -9829,7 +9869,7 @@ module Octokit::Connection # # @return [Sawyer::Response] # - # source://octokit//lib/octokit/connection.rb#131 + # source://octokit//lib/octokit/connection.rb#133 def last_response; end # Make one or more HTTP GET requests, optionally fetching @@ -9878,12 +9918,12 @@ module Octokit::Connection # # @return [Sawyer::Resource] # - # source://octokit//lib/octokit/connection.rb#124 + # source://octokit//lib/octokit/connection.rb#126 def root; end protected - # source://octokit//lib/octokit/connection.rb#137 + # source://octokit//lib/octokit/connection.rb#139 def endpoint; end private @@ -9892,22 +9932,22 @@ module Octokit::Connection # # @return [Boolean] True on success, false otherwise # - # source://octokit//lib/octokit/connection.rb#166 + # source://octokit//lib/octokit/connection.rb#168 def boolean_from_response(method, path, options = T.unsafe(nil)); end - # source://octokit//lib/octokit/connection.rb#194 + # source://octokit//lib/octokit/connection.rb#196 def parse_query_and_convenience_headers(options); end - # source://octokit//lib/octokit/connection.rb#147 + # source://octokit//lib/octokit/connection.rb#149 def request(method, path, data, options = T.unsafe(nil)); end - # source://octokit//lib/octokit/connection.rb#143 + # source://octokit//lib/octokit/connection.rb#145 def reset_agent; end - # source://octokit//lib/octokit/connection.rb#210 + # source://octokit//lib/octokit/connection.rb#212 def response_data_correctly_encoded(response); end - # source://octokit//lib/octokit/connection.rb#173 + # source://octokit//lib/octokit/connection.rb#175 def sawyer_options; end end @@ -9918,105 +9958,105 @@ Octokit::Connection::CONVENIENCE_HEADERS = T.let(T.unsafe(nil), Set) # Default configuration options for {Client} # -# source://octokit//lib/octokit/default.rb#24 +# source://octokit//lib/octokit/default.rb#19 module Octokit::Default class << self # Default access token from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#64 + # source://octokit//lib/octokit/default.rb#59 def access_token; end # Default API endpoint from ENV or {API_ENDPOINT} # # @return [String] # - # source://octokit//lib/octokit/default.rb#70 + # source://octokit//lib/octokit/default.rb#65 def api_endpoint; end # Default pagination preference from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#76 + # source://octokit//lib/octokit/default.rb#71 def auto_paginate; end # Default bearer token from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#82 + # source://octokit//lib/octokit/default.rb#77 def bearer_token; end # Default OAuth app key from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#88 + # source://octokit//lib/octokit/default.rb#83 def client_id; end # Default OAuth app secret from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#94 + # source://octokit//lib/octokit/default.rb#89 def client_secret; end # Default options for Faraday::Connection # # @return [Hash] # - # source://octokit//lib/octokit/default.rb#130 + # source://octokit//lib/octokit/default.rb#125 def connection_options; end # Default media type from ENV or {MEDIA_TYPE} # # @return [String] # - # source://octokit//lib/octokit/default.rb#141 + # source://octokit//lib/octokit/default.rb#136 def default_media_type; end # Default GitHub username for Basic Auth from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#147 + # source://octokit//lib/octokit/default.rb#142 def login; end # Default GHES Manage API endpoint from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#112 + # source://octokit//lib/octokit/default.rb#107 def manage_ghes_endpoint; end # Default GHES Manage API password from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#124 + # source://octokit//lib/octokit/default.rb#119 def manage_ghes_password; end # Default GHES Manage API username from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#118 + # source://octokit//lib/octokit/default.rb#113 def manage_ghes_username; end # Default management console endpoint from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#106 + # source://octokit//lib/octokit/default.rb#101 def management_console_endpoint; end # Default management console password from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#100 + # source://octokit//lib/octokit/default.rb#95 def management_console_password; end # Default middleware stack for Faraday::Connection @@ -10024,97 +10064,97 @@ module Octokit::Default # # @return [Faraday::RackBuilder or Faraday::Builder] # - # source://octokit//lib/octokit/default.rb#154 + # source://octokit//lib/octokit/default.rb#149 def middleware; end # Default behavior for reading .netrc file # # @return [Boolean] # - # source://octokit//lib/octokit/default.rb#201 + # source://octokit//lib/octokit/default.rb#196 def netrc; end # Default path for .netrc file # # @return [String] # - # source://octokit//lib/octokit/default.rb#207 + # source://octokit//lib/octokit/default.rb#202 def netrc_file; end # Configuration options # # @return [Hash] # - # source://octokit//lib/octokit/default.rb#58 + # source://octokit//lib/octokit/default.rb#53 def options; end # Default GitHub password for Basic Auth from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#160 + # source://octokit//lib/octokit/default.rb#155 def password; end # Default pagination page size from ENV # # @return [Integer] Page size # - # source://octokit//lib/octokit/default.rb#166 + # source://octokit//lib/octokit/default.rb#161 def per_page; end # Default proxy server URI for Faraday connection from ENV # # @return [String] # - # source://octokit//lib/octokit/default.rb#174 + # source://octokit//lib/octokit/default.rb#169 def proxy; end # Default SSL verify mode from ENV # # @return [Integer] # - # source://octokit//lib/octokit/default.rb#180 + # source://octokit//lib/octokit/default.rb#175 def ssl_verify_mode; end # Default User-Agent header string from ENV or {USER_AGENT} # # @return [String] # - # source://octokit//lib/octokit/default.rb#189 + # source://octokit//lib/octokit/default.rb#184 def user_agent; end # Default web endpoint from ENV or {WEB_ENDPOINT} # # @return [String] # - # source://octokit//lib/octokit/default.rb#195 + # source://octokit//lib/octokit/default.rb#190 def web_endpoint; end end end # Default API endpoint # -# source://octokit//lib/octokit/default.rb#26 +# source://octokit//lib/octokit/default.rb#21 Octokit::Default::API_ENDPOINT = T.let(T.unsafe(nil), String) # Default media type # -# source://octokit//lib/octokit/default.rb#32 +# source://octokit//lib/octokit/default.rb#27 Octokit::Default::MEDIA_TYPE = T.let(T.unsafe(nil), String) # Default Faraday middleware stack # -# source://octokit//lib/octokit/default.rb#38 +# source://octokit//lib/octokit/default.rb#33 Octokit::Default::MIDDLEWARE = T.let(T.unsafe(nil), Faraday::RackBuilder) # Default User Agent header string # -# source://octokit//lib/octokit/default.rb#29 +# source://octokit//lib/octokit/default.rb#24 Octokit::Default::USER_AGENT = T.let(T.unsafe(nil), String) # Default WEB endpoint # -# source://octokit//lib/octokit/default.rb#35 +# source://octokit//lib/octokit/default.rb#30 Octokit::Default::WEB_ENDPOINT = T.let(T.unsafe(nil), String) # Raised when GHES Manage return a 410 HTTP status code @@ -10915,24 +10955,24 @@ class Octokit::ManageGHESClient # @param key Either the file path to a key, a File handler to the key, or the contents of the key itself # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#92 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#99 def add_authorized_key(key); end - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#82 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#89 def authorized_keys; end # Get information about the Enterprise installation # # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#57 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#64 def config_check; end # Get information about the Enterprise installation # # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#57 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#64 def config_status; end # Removes an authorized SSH keys from the Enterprise install @@ -10940,7 +10980,7 @@ class Octokit::ManageGHESClient # @param key Either the file path to a key, a File handler to the key, or the contents of the key itself # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#117 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#124 def delete_authorized_key(key); end # Modify the Enterprise settings @@ -10948,17 +10988,17 @@ class Octokit::ManageGHESClient # @param settings [Hash] A hash configuration of the new settings # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#77 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#84 def edit_settings(settings); end - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#82 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#89 def get_authorized_keys; end # Get information about the Enterprise installation # # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#66 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#73 def get_settings; end # Removes an authorized SSH keys from the Enterprise install @@ -10966,21 +11006,21 @@ class Octokit::ManageGHESClient # @param key Either the file path to a key, a File handler to the key, or the contents of the key itself # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#117 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#124 def remove_authorized_key(key); end # Get information about the Enterprise installation # # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#66 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#73 def settings; end # Start a configuration process. # # @return [nil] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#49 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#56 def start_configuration; end # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#37 @@ -11014,19 +11054,19 @@ class Octokit::ManageGHESClient private - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#150 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#157 def authenticated_client; end # @return [Boolean] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#141 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#148 def basic_authenticated?; end # If no username is provided, we assume root site admin should be used # # @return [Boolean] # - # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#146 + # source://octokit//lib/octokit/manage_ghes_client/manage_ghes.rb#153 def root_site_admin_assumed?; end end @@ -11387,10 +11427,10 @@ class Octokit::Repository # @raise [Octokit::InvalidRepository] # - # source://octokit//lib/octokit/repository.rb#90 + # source://octokit//lib/octokit/repository.rb#96 def raise_invalid_repository!(repo); end - # source://octokit//lib/octokit/repository.rb#84 + # source://octokit//lib/octokit/repository.rb#90 def validate_owner_and_name!(repo); end class << self @@ -11411,6 +11451,11 @@ class Octokit::Repository end end +# Ruby 3.4+ +# +# source://octokit//lib/octokit/repository.rb#84 +Octokit::Repository::ABS_URI_REGEXP = T.let(T.unsafe(nil), Regexp) + # source://octokit//lib/octokit/repository.rb#9 Octokit::Repository::NAME_WITH_OWNER_PATTERN = T.let(T.unsafe(nil), Regexp) diff --git a/sorbet/rbi/gems/public_suffix@6.0.0.rbi b/sorbet/rbi/gems/public_suffix@6.0.1.rbi similarity index 100% rename from sorbet/rbi/gems/public_suffix@6.0.0.rbi rename to sorbet/rbi/gems/public_suffix@6.0.1.rbi diff --git a/sorbet/rbi/gems/uri@0.13.0.rbi b/sorbet/rbi/gems/uri@0.13.1.rbi similarity index 97% rename from sorbet/rbi/gems/uri@0.13.0.rbi rename to sorbet/rbi/gems/uri@0.13.1.rbi index 77340e37..a3226c13 100644 --- a/sorbet/rbi/gems/uri@0.13.0.rbi +++ b/sorbet/rbi/gems/uri@0.13.1.rbi @@ -4,9 +4,10 @@ # This is an autogenerated file for types exported from the `uri` gem. # Please instead update this file by running `bin/tapioca gem uri`. + # module URI # -# source://uri//lib/uri/common.rb#829 +# source://uri//lib/uri/common.rb#831 module Kernel private @@ -20,7 +21,7 @@ module Kernel # URI(uri) # # => # # - # source://uri//lib/uri/common.rb#842 + # source://uri//lib/uri/common.rb#844 def URI(uri); end class << self @@ -34,7 +35,7 @@ module Kernel # URI(uri) # # => # # - # source://uri//lib/uri/common.rb#842 + # source://uri//lib/uri/common.rb#844 def URI(uri); end end end @@ -46,7 +47,7 @@ module URI class << self # Like URI.decode_www_form_component, except that '+' is preserved. # - # source://uri//lib/uri/common.rb#379 + # source://uri//lib/uri/common.rb#381 def decode_uri_component(str, enc = T.unsafe(nil)); end # Returns name/value pairs derived from the given string +str+, @@ -84,7 +85,7 @@ module URI # # @raise [ArgumentError] # - # source://uri//lib/uri/common.rb#554 + # source://uri//lib/uri/common.rb#556 def decode_www_form(str, enc = T.unsafe(nil), separator: T.unsafe(nil), use__charset_: T.unsafe(nil), isindex: T.unsafe(nil)); end # Returns a string decoded from the given \URL-encoded string +str+. @@ -117,13 +118,13 @@ module URI # # Related: URI.decode_uri_component (preserves '+'). # - # source://uri//lib/uri/common.rb#368 + # source://uri//lib/uri/common.rb#370 def decode_www_form_component(str, enc = T.unsafe(nil)); end # Like URI.encode_www_form_component, except that ' ' (space) # is encoded as '%20' (instead of '+'). # - # source://uri//lib/uri/common.rb#374 + # source://uri//lib/uri/common.rb#376 def encode_uri_component(str, enc = T.unsafe(nil)); end # Returns a URL-encoded string derived from the given @@ -224,7 +225,7 @@ module URI # URI.encode_www_form({foo: [0, 1], bar: 2}) # # => "foo=0&foo=1&bar=2" # - # source://uri//lib/uri/common.rb#501 + # source://uri//lib/uri/common.rb#503 def encode_www_form(enum, enc = T.unsafe(nil)); end # Returns a URL-encoded string derived from the given string +str+. @@ -264,7 +265,7 @@ module URI # # Related: URI.encode_uri_component (encodes ' ' as '%20'). # - # source://uri//lib/uri/common.rb#335 + # source://uri//lib/uri/common.rb#337 def encode_www_form_component(str, enc = T.unsafe(nil)); end # == Synopsis @@ -290,7 +291,7 @@ module URI # URI.extract("text here http://foo.example.org/bla and here mailto:test@example.com and here also.") # # => ["http://foo.example.com/bla", "mailto:test@example.com"] # - # source://uri//lib/uri/common.rb#239 + # source://uri//lib/uri/common.rb#241 def extract(str, schemes = T.unsafe(nil), &block); end # Returns a new object constructed from the given +scheme+, +arguments+, @@ -309,13 +310,13 @@ module URI # URI.for('foo', *values, default: URI::HTTP) # # => # # - # source://uri//lib/uri/common.rb#123 + # source://uri//lib/uri/common.rb#125 def for(scheme, *arguments, default: T.unsafe(nil)); end # return encoding or nil # http://encoding.spec.whatwg.org/#concept-encoding-get # - # source://uri//lib/uri/common.rb#824 + # source://uri//lib/uri/common.rb#826 def get_encoding(label); end # Merges the given URI strings +str+ @@ -341,7 +342,7 @@ module URI # URI.join('http://example.com', '/foo/', 'bar') # # => # # - # source://uri//lib/uri/common.rb#211 + # source://uri//lib/uri/common.rb#213 def join(*str); end # Returns a new \URI object constructed from the given string +uri+: @@ -354,7 +355,7 @@ module URI # It's recommended to first ::escape string +uri+ # if it may contain invalid URI characters. # - # source://uri//lib/uri/common.rb#184 + # source://uri//lib/uri/common.rb#186 def parse(uri); end # == Synopsis @@ -388,7 +389,7 @@ module URI # p $& # end # - # source://uri//lib/uri/common.rb#276 + # source://uri//lib/uri/common.rb#278 def regexp(schemes = T.unsafe(nil)); end # Registers the given +klass+ as the class to be instantiated @@ -400,7 +401,7 @@ module URI # Note that after calling String#upcase on +scheme+, it must be a valid # constant name. # - # source://uri//lib/uri/common.rb#79 + # source://uri//lib/uri/common.rb#81 def register_scheme(scheme, klass); end # Returns a hash of the defined schemes: @@ -418,7 +419,7 @@ module URI # # Related: URI.register_scheme. # - # source://uri//lib/uri/common.rb#97 + # source://uri//lib/uri/common.rb#99 def scheme_list; end # Returns a 9-element array representing the parts of the \URI @@ -439,17 +440,17 @@ module URI # ["query", "tag=networking&order=newest"], # ["fragment", "top"]] # - # source://uri//lib/uri/common.rb#170 + # source://uri//lib/uri/common.rb#172 def split(uri); end private # @raise [ArgumentError] # - # source://uri//lib/uri/common.rb#397 + # source://uri//lib/uri/common.rb#399 def _decode_uri_component(regexp, str, enc); end - # source://uri//lib/uri/common.rb#383 + # source://uri//lib/uri/common.rb#385 def _encode_uri_component(regexp, table, str, enc); end end end @@ -1679,7 +1680,7 @@ class URI::HTTP < ::URI::Generic end end -# source://uri//lib/uri/common.rb#103 +# source://uri//lib/uri/common.rb#105 URI::INITIAL_SCHEMES = T.let(T.unsafe(nil), Hash) # LDAP URI SCHEMA (described in RFC2255). @@ -2201,64 +2202,64 @@ URI::RFC3986_Parser::SEG_NC = T.let(T.unsafe(nil), String) # source://uri//lib/uri/rfc3986_parser.rb#28 URI::RFC3986_Parser::USERINFO = T.let(T.unsafe(nil), Regexp) -# source://uri//lib/uri/common.rb#67 +# source://uri//lib/uri/common.rb#69 module URI::Schemes; end -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::FILE = URI::File -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::FTP = URI::FTP -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::HTTP = URI::HTTP -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::HTTPS = URI::HTTPS -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::LDAP = URI::LDAP -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::LDAPS = URI::LDAPS -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::MAILTO = URI::MailTo -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::SOURCE = URI::Source -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::WS = URI::WS -# source://uri//lib/uri/common.rb#80 +# source://uri//lib/uri/common.rb#82 URI::Schemes::WSS = URI::WSS class URI::Source < ::URI::File - # source://tapioca/0.12.0/lib/tapioca/helpers/source_uri.rb#58 + # source://tapioca/0.16.2/lib/tapioca/helpers/source_uri.rb#58 sig { params(v: T.nilable(::String)).returns(T::Boolean) } def check_host(v); end # source://uri//lib/uri/generic.rb#243 def gem_name; end - # source://tapioca/0.12.0/lib/tapioca/helpers/source_uri.rb#25 + # source://tapioca/0.16.2/lib/tapioca/helpers/source_uri.rb#25 sig { returns(T.nilable(::String)) } def gem_version; end # source://uri//lib/uri/generic.rb#283 def line_number; end - # source://tapioca/0.12.0/lib/tapioca/helpers/source_uri.rb#51 + # source://tapioca/0.16.2/lib/tapioca/helpers/source_uri.rb#51 sig { params(v: T.nilable(::String)).void } def set_path(v); end - # source://tapioca/0.12.0/lib/tapioca/helpers/source_uri.rb#70 + # source://tapioca/0.16.2/lib/tapioca/helpers/source_uri.rb#70 sig { returns(::String) } def to_s; end class << self - # source://tapioca/0.12.0/lib/tapioca/helpers/source_uri.rb#38 + # source://tapioca/0.16.2/lib/tapioca/helpers/source_uri.rb#38 sig do params( gem_name: ::String, @@ -2271,18 +2272,18 @@ class URI::Source < ::URI::File end end -# source://uri//lib/uri/common.rb#285 +# source://uri//lib/uri/common.rb#287 URI::TBLENCURICOMP_ = T.let(T.unsafe(nil), Hash) -# source://uri//lib/uri/common.rb#35 +# source://uri//lib/uri/common.rb#37 module URI::Util private - # source://uri//lib/uri/common.rb#36 + # source://uri//lib/uri/common.rb#38 def make_components_hash(klass, array_hash); end class << self - # source://uri//lib/uri/common.rb#36 + # source://uri//lib/uri/common.rb#38 def make_components_hash(klass, array_hash); end end end