diff --git a/.github/workflows/dependabot-tapioca.yml b/.github/workflows/dependabot-tapioca.yml new file mode 100644 index 0000000..722a226 --- /dev/null +++ b/.github/workflows/dependabot-tapioca.yml @@ -0,0 +1,39 @@ +name: Update Dependabot RBIs + +# Dependency bumps can change gem APIs, so regenerate the Sorbet gem RBIs +# (`bundle exec tapioca gems`) and push the result back onto the Dependabot PR. +on: + pull_request: + +permissions: + contents: write + +jobs: + tapioca-gems: + name: Regenerate gem RBIs + if: startsWith(github.head_ref, 'dependabot/') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + ref: ${{ github.head_ref }} + - uses: ruby/setup-ruby@4c56a21280b36d862b5fc31348f463d60bdc55d5 # v1 + with: + ruby-version: '3.4' + bundler-cache: true + - name: Regenerate gem RBIs + run: bundle exec tapioca gems + - name: Commit, push, and type-check updated RBIs + run: | + if [[ -z "$(git status --porcelain sorbet/rbi)" ]]; then + echo "No RBI changes to commit." + exit 0 + fi + git config user.name 'github-actions[bot]' + git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + git add sorbet/rbi + git commit -m "Regenerate gem RBIs [dependabot skip]" + git push + # The push above uses GITHUB_TOKEN, which doesn't re-trigger CI. + # RBI changes only affect Sorbet, so type-check them here instead. + bundle exec srb tc diff --git a/Gemfile b/Gemfile index 02f3c1f..7f4f5e9 100644 --- a/Gemfile +++ b/Gemfile @@ -3,7 +3,3 @@ source 'https://rubygems.org' gemspec - -# Pinned to main for the not-yet-released `Sorbet/RedundantTLet` and -# `Sorbet/RedundantTLetForLiteral` cops (see Shopify/rubocop-sorbet#372 and #367). -gem 'rubocop-sorbet', github: 'Shopify/rubocop-sorbet', ref: '7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd' diff --git a/Gemfile.lock b/Gemfile.lock index a5c353b..cb78149 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,12 +1,3 @@ -GIT - remote: https://github.com/Shopify/rubocop-sorbet.git - revision: 7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd - ref: 7b7d3cb5a41cee8207b3cd00c21f5ef43f7140fd - specs: - rubocop-sorbet (0.12.0) - lint_roller - rubocop (>= 1.75.2) - PATH remote: . specs: @@ -18,9 +9,9 @@ PATH GEM remote: https://rubygems.org/ specs: - actionpack (8.1.2) - actionview (= 8.1.2) - activesupport (= 8.1.2) + actionpack (8.1.3) + actionview (= 8.1.3) + activesupport (= 8.1.3) nokogiri (>= 1.8.5) rack (>= 2.2.4) rack-session (>= 1.0.1) @@ -28,13 +19,13 @@ GEM rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actionview (8.1.2) - activesupport (= 8.1.2) + actionview (8.1.3) + activesupport (= 8.1.3) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activesupport (8.1.2) + activesupport (8.1.3) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) @@ -47,8 +38,6 @@ GEM securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) uri (>= 0.13.1) - addressable (2.8.9) - public_suffix (>= 2.0.2, < 8.0) ast (2.4.3) base64 (0.3.0) benchmark (0.5.0) @@ -59,7 +48,7 @@ GEM erubi (~> 1.4) parser (>= 2.4) smart_properties - bigdecimal (4.0.1) + bigdecimal (4.1.2) builder (3.3.0) coderay (1.1.3) concurrent-ruby (1.3.6) @@ -78,44 +67,39 @@ GEM prism (>= 1.3.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.18.1) - json-schema (6.1.0) - addressable (~> 2.8) - bigdecimal (>= 3.1, < 5) + json (2.19.7) language_server-protocol (3.17.0.5) lint_roller (1.1.0) logger (1.7.0) - loofah (2.25.0) + loofah (2.25.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) - mcp (0.8.0) - json-schema (>= 4.1) method_source (1.1.0) - minitest (6.0.2) + minitest (6.0.6) drb (~> 2.0) prism (~> 1.5) - mocha (3.0.2) + mocha (3.1.0) ruby2_keywords (>= 0.0.5) netrc (0.11.0) - nokogiri (1.19.1-arm64-darwin) + nokogiri (1.19.3-arm64-darwin) racc (~> 1.4) - nokogiri (1.19.1-x86_64-darwin) + nokogiri (1.19.3-x86_64-darwin) racc (~> 1.4) - nokogiri (1.19.1-x86_64-linux-gnu) + nokogiri (1.19.3-x86_64-linux-gnu) racc (~> 1.4) - packwerk (3.2.3) + packwerk (3.3.0) activesupport (>= 6.0) ast + benchmark better_html bundler constant_resolver (>= 0.3) - parallel + parallel (< 2) parser - prism (>= 0.25.0) - sorbet-runtime (>= 0.5.9914) + prism (>= 1.4.0) zeitwerk (>= 2.6.1) parallel (1.28.0) - parser (3.3.10.2) + parser (3.3.11.1) ast (~> 2.4.1) racc pp (0.6.3) @@ -129,7 +113,6 @@ GEM psych (5.3.1) date stringio - public_suffix (7.0.5) racc (1.8.1) rack (3.2.5) rack-session (2.1.1) @@ -146,9 +129,9 @@ GEM rails-html-sanitizer (1.7.0) loofah (~> 2.25) nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) - railties (8.1.2) - actionpack (= 8.1.2) - activesupport (= 8.1.2) + railties (8.1.3) + actionpack (= 8.1.3) + activesupport (= 8.1.3) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -156,7 +139,7 @@ GEM tsort (>= 0.2) zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.3.1) + rake (13.4.2) rbi (0.3.12) prism (~> 1.0) rbs (>= 4.0.1) @@ -168,27 +151,26 @@ GEM erb psych (>= 4.0.0) tsort - regexp_parser (2.11.3) + regexp_parser (2.12.0) reline (0.6.3) io-console (~> 0.5) require-hooks (0.4.0) rexml (3.4.4) - rubocop (1.85.1) + rubocop (1.86.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) - mcp (~> 0.6) - parallel (~> 1.10) + parallel (>= 1.10) parser (>= 3.3.0.2) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 2.9.3, < 3.0) rubocop-ast (>= 1.49.0, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.49.0) + rubocop-ast (1.49.1) parser (>= 3.3.7.2) prism (~> 1.7) - rubocop-gusto (10.6.0) + rubocop-gusto (10.9.3) lint_roller rubocop (>= 1.76) rubocop-performance @@ -206,6 +188,9 @@ GEM rubocop-rspec (3.9.0) lint_roller (~> 1.1) rubocop (~> 1.81) + rubocop-sorbet (0.12.0) + lint_roller + rubocop (>= 1.75.2) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) rubydex (0.2.5-arm64-darwin) @@ -213,14 +198,14 @@ GEM rubydex (0.2.5-x86_64-linux) securerandom (0.4.1) smart_properties (1.17.0) - sorbet (0.6.13258) - sorbet-static (= 0.6.13258) - sorbet-runtime (0.6.13258) - sorbet-static (0.6.13258-universal-darwin) - sorbet-static (0.6.13258-x86_64-linux) - sorbet-static-and-runtime (0.6.13258) - sorbet (= 0.6.13258) - sorbet-runtime (= 0.6.13258) + sorbet (0.6.13261) + sorbet-static (= 0.6.13261) + sorbet-runtime (0.6.13261) + sorbet-static (0.6.13261-universal-darwin) + sorbet-static (0.6.13261-x86_64-linux) + sorbet-static-and-runtime (0.6.13261) + sorbet (= 0.6.13261) + sorbet-runtime (= 0.6.13261) spoom (1.7.16) erubi (>= 1.10.0) prism (>= 0.28.0) @@ -251,7 +236,7 @@ GEM unicode-emoji (4.2.0) uri (1.1.1) useragent (0.16.11) - zeitwerk (2.7.5) + zeitwerk (2.8.2) PLATFORMS arm64-darwin @@ -266,7 +251,6 @@ DEPENDENCIES rake rubocop rubocop-gusto - rubocop-sorbet! sorbet tapioca diff --git a/sorbet/rbi/gems/actionpack@8.1.2.rbi b/sorbet/rbi/gems/actionpack@8.1.3.rbi similarity index 99% rename from sorbet/rbi/gems/actionpack@8.1.2.rbi rename to sorbet/rbi/gems/actionpack@8.1.3.rbi index a355e70..c1570a1 100644 --- a/sorbet/rbi/gems/actionpack@8.1.2.rbi +++ b/sorbet/rbi/gems/actionpack@8.1.3.rbi @@ -12419,7 +12419,7 @@ module ActionDispatch::Integration::RequestHelpers def put(path, **args); end end -# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:334 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:335 module ActionDispatch::Integration::Runner include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -12429,55 +12429,55 @@ module ActionDispatch::Integration::Runner include ::ActionDispatch::Assertions extend ::ActionDispatch::Assertions::RoutingAssertions::ClassMethods - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:342 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:343 def initialize(*args, &blk); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:339 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:340 def app; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:412 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:413 def assertions; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:416 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:417 def assertions=(assertions); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def assigns(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:347 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:348 def before_setup; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def cookies(*_arg0, **_arg1, &_arg2); end # Copy the instance variables from the current session instance into the test # instance. # - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:422 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:423 def copy_session_variables!; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:362 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:363 def create_session(app); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:428 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:429 def default_url_options; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:432 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:433 def default_url_options=(options); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def delete(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def follow_redirect!(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def get(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def head(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:352 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:353 def integration_session; end # Open a new session instance. If a block is given, the new session is yielded @@ -12490,45 +12490,45 @@ module ActionDispatch::Integration::Runner # By default, a single session is automatically created for you, but you can use # this method to open multiple sessions that ought to be tested simultaneously. # - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:404 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:405 def open_session; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def patch(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def post(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:384 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:385 def put(*_arg0, **_arg1, &_arg2); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:374 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:375 def remove!; end # Reset the current session. This is useful for testing multiple sessions in a # single test case. # - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:358 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:359 def reset!; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:340 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:341 def root_session; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:340 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:341 def root_session=(_arg0); end private # Delegate unhandled messages to the current session instance. # - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:442 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:443 def method_missing(method, *_arg1, **_arg2, &_arg3); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:437 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:438 def respond_to_missing?(method, _); end end -# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:337 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:338 ActionDispatch::Integration::Runner::APP_SESSIONS = T.let(T.unsafe(nil), Hash) # An instance of this class represents a set of requests and responses performed @@ -12605,7 +12605,7 @@ class ActionDispatch::Integration::Session # # session.host! "www.example.com" # - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:315 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:316 def host!(_arg0); end # The hostname used in the last request. @@ -12624,7 +12624,7 @@ class ActionDispatch::Integration::Session # Returns `true` if the session is mimicking a secure HTTPS request. # # if session.https? - # ... + # # ... # end # # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:189 @@ -12646,7 +12646,7 @@ class ActionDispatch::Integration::Session # * `env`: Additional env to pass, as a Hash. The headers will be merged into # the Rack env hash. # * `xhr`: Set to `true` if you want to make an Ajax request. Adds request - # headers characteristic of XMLHttpRequest e.g. HTTP_X_REQUESTED_WITH. The + # headers characteristic of `XMLHttpRequest`, e.g. `HTTP_X_REQUESTED_WITH`. The # headers will be merged into the Rack env hash. # * `as`: Used for encoding the request with different content type. Supports # `:json` by default and will set the appropriate request headers. The @@ -12661,12 +12661,13 @@ class ActionDispatch::Integration::Session # This method returns the response status, after performing the request. # Furthermore, if this method was called from an ActionDispatch::IntegrationTest # object, then that object's `@response` instance variable will point to a - # Response object which one can use to inspect the details of the response. + # ActionDispatch::TestResponse object which one can use to inspect the details of the response. # # Example: + # # process :get, '/author', params: { since: 201501011400 } # - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:225 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:226 def process(method, path, params: T.unsafe(nil), headers: T.unsafe(nil), env: T.unsafe(nil), xhr: T.unsafe(nil), as: T.unsafe(nil)); end # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:97 @@ -12721,13 +12722,13 @@ class ActionDispatch::Integration::Session private - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:318 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:319 def _mock_session; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:326 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:327 def build_expanded_path(path); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:322 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:323 def build_full_uri(path, env); end class << self @@ -12948,7 +12949,7 @@ ActionDispatch::Integration::Session::DEFAULT_HOST = T.let(T.unsafe(nil), String # Consult the [Rails Testing Guide](https://guides.rubyonrails.org/testing.html) # for more. # -# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:649 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:650 class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase include ::ActionDispatch::TestProcess::FixtureFile include ::ActionDispatch::Assertions::RoutingAssertions @@ -12969,7 +12970,7 @@ class ActionDispatch::IntegrationTest < ::ActiveSupport::TestCase extend ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods end -# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:659 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:660 module ActionDispatch::IntegrationTest::Behavior include ::ActionDispatch::Assertions::RoutingAssertions include ::ActionDispatch::Assertions::ResponseAssertions @@ -12988,30 +12989,30 @@ module ActionDispatch::IntegrationTest::Behavior mixes_in_class_methods ::ActionDispatch::IntegrationTest::Behavior::ClassMethods mixes_in_class_methods ::ActionDispatch::Assertions::RoutingAssertions::WithIntegrationRouting::ClassMethods - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:692 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:693 def app; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:696 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:697 def document_root_element; end end -# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:674 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:675 module ActionDispatch::IntegrationTest::Behavior::ClassMethods - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:675 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:676 def app; end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:683 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:684 def app=(app); end - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:687 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:688 def register_encoder(*args, **options); end end -# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:652 +# pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:653 module ActionDispatch::IntegrationTest::UrlOptions extend ::ActiveSupport::Concern - # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:654 + # pkg:gem/actionpack#lib/action_dispatch/testing/integration.rb:655 def url_options; end end diff --git a/sorbet/rbi/gems/actionview@8.1.2.rbi b/sorbet/rbi/gems/actionview@8.1.3.rbi similarity index 99% rename from sorbet/rbi/gems/actionview@8.1.2.rbi rename to sorbet/rbi/gems/actionview@8.1.3.rbi index 4fc2463..286eb13 100644 --- a/sorbet/rbi/gems/actionview@8.1.2.rbi +++ b/sorbet/rbi/gems/actionview@8.1.3.rbi @@ -8772,10 +8772,10 @@ module ActionView::Helpers::TagHelper # cdata_section("hello]]>world") # # => world]]> # - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:555 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:558 def cdata_section(content); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:540 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:543 def class_names(*args); end # Returns an HTML block tag of type +name+ surrounding the +content+. Add @@ -8807,7 +8807,7 @@ module ActionView::Helpers::TagHelper # <% end -%> # # =>
Hello world!
# - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:513 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:516 def content_tag(name, content_or_options_with_block = T.unsafe(nil), options = T.unsafe(nil), escape = T.unsafe(nil), &block); end # Returns an escaped version of +html+ without affecting existing escaped entities. @@ -8818,7 +8818,7 @@ module ActionView::Helpers::TagHelper # escape_once("<< Accept & Checkout") # # => "<< Accept & Checkout" # - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:567 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:570 def escape_once(html); end # Returns an HTML tag. @@ -8968,7 +8968,7 @@ module ActionView::Helpers::TagHelper # tag("div", class: { highlight: current_user.admin? }) # # =>
# - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:476 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:479 def tag(name = T.unsafe(nil), options = T.unsafe(nil), open = T.unsafe(nil), escape = T.unsafe(nil)); end # Returns a string of tokens built from +args+. @@ -8983,25 +8983,25 @@ module ActionView::Helpers::TagHelper # token_list(nil, false, 123, "", "foo", { bar: true }) # # => "123 foo bar" # - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:535 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:538 def token_list(*args); end private - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:577 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:580 def build_tag_values(*args); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:572 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:575 def ensure_valid_html5_tag_name(name); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:597 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:600 def tag_builder; end class << self - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:595 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:598 def build_tag_values(*args); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:575 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:578 def ensure_valid_html5_tag_name(name); end end end @@ -9427,25 +9427,25 @@ class ActionView::Helpers::TagHelper::TagBuilder private - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:288 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:291 def boolean_tag_option(key); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:321 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:324 def method_missing(called, *args, escape: T.unsafe(nil), **options, &block); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:309 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:312 def prefix_tag_option(prefix, key, value, escape); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:317 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:320 def respond_to_missing?(*args); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:284 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:287 def self_closing_tag_string(name, options, escape = T.unsafe(nil), tag_suffix = T.unsafe(nil)); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:292 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:295 def tag_option(key, value, escape); end - # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:278 + # pkg:gem/actionview#lib/action_view/helpers/tag_helper.rb:281 def tag_string(name, content = T.unsafe(nil), options, escape: T.unsafe(nil), &block); end class << self @@ -13007,7 +13007,7 @@ end # * Support streaming from child templates, partials and so on. # * Rack::Cache needs to support streaming bodies # -# pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:9 +# pkg:gem/actionview#lib/action_view/renderer/streaming_template_renderer.rb:12 class ActionView::StreamingTemplateRenderer < ::ActionView::TemplateRenderer # For streaming, instead of rendering a given a template, we return a Body # object that responds to each. This object is initialized with a block @@ -13160,13 +13160,13 @@ class ActionView::Template # to ensure that references to the template object can be marshalled as well. This means forgoing # the marshalling of the compiler mutex and instantiating that again on unmarshalling. # - # pkg:gem/actionview#lib/action_view/template.rb:387 + # pkg:gem/actionview#lib/action_view/template.rb:393 def marshal_dump; end - # pkg:gem/actionview#lib/action_view/template.rb:391 + # pkg:gem/actionview#lib/action_view/template.rb:397 def marshal_load(array); end - # pkg:gem/actionview#lib/action_view/template.rb:396 + # pkg:gem/actionview#lib/action_view/template.rb:402 def method_name; end # Render a template. If the template was not compiled yet, it is done @@ -13203,7 +13203,7 @@ class ActionView::Template # Returns whether a template is using strict locals. # - # pkg:gem/actionview#lib/action_view/template.rb:380 + # pkg:gem/actionview#lib/action_view/template.rb:386 def strict_locals?; end # Returns whether the underlying handler supports streaming. If so, @@ -13244,44 +13244,44 @@ class ActionView::Template # In general, this means that templates will be UTF-8 inside of Rails, # regardless of the original source encoding. # - # pkg:gem/actionview#lib/action_view/template.rb:500 + # pkg:gem/actionview#lib/action_view/template.rb:506 def compile(mod); end # Compile a template. This method ensures a template is compiled # just once and removes the source after it is compiled. # - # pkg:gem/actionview#lib/action_view/template.rb:418 + # pkg:gem/actionview#lib/action_view/template.rb:424 def compile!(view); end # This method compiles the source of the template. The compilation of templates # involves setting strict_locals! if applicable, encoding the template, and setting # frozen string literal. # - # pkg:gem/actionview#lib/action_view/template.rb:443 + # pkg:gem/actionview#lib/action_view/template.rb:449 def compiled_source; end - # pkg:gem/actionview#lib/action_view/template.rb:405 + # pkg:gem/actionview#lib/action_view/template.rb:411 def find_node_by_id(node, node_id); end - # pkg:gem/actionview#lib/action_view/template.rb:549 + # pkg:gem/actionview#lib/action_view/template.rb:555 def handle_render_error(view, e); end - # pkg:gem/actionview#lib/action_view/template.rb:574 + # pkg:gem/actionview#lib/action_view/template.rb:580 def identifier_method_name; end - # pkg:gem/actionview#lib/action_view/template.rb:578 + # pkg:gem/actionview#lib/action_view/template.rb:584 def instrument(action, &block); end - # pkg:gem/actionview#lib/action_view/template.rb:586 + # pkg:gem/actionview#lib/action_view/template.rb:592 def instrument_payload; end - # pkg:gem/actionview#lib/action_view/template.rb:582 + # pkg:gem/actionview#lib/action_view/template.rb:588 def instrument_render_template(&block); end - # pkg:gem/actionview#lib/action_view/template.rb:561 + # pkg:gem/actionview#lib/action_view/template.rb:567 def locals_code; end - # pkg:gem/actionview#lib/action_view/template.rb:541 + # pkg:gem/actionview#lib/action_view/template.rb:547 def offset; end class << self @@ -13658,7 +13658,7 @@ class ActionView::Template::Handlers::Raw def call(template, source); end end -# pkg:gem/actionview#lib/action_view/template/inline.rb:5 +# pkg:gem/actionview#lib/action_view/template/inline.rb:7 class ActionView::Template::Inline < ::ActionView::Template # pkg:gem/actionview#lib/action_view/template/inline.rb:16 def compile(mod); end @@ -13676,7 +13676,7 @@ ActionView::Template::LEADING_ENCODING_REGEXP = T.let(T.unsafe(nil), Regexp) # pkg:gem/actionview#lib/action_view/template.rb:197 ActionView::Template::NONE = T.let(T.unsafe(nil), Object) -# pkg:gem/actionview#lib/action_view/template.rb:558 +# pkg:gem/actionview#lib/action_view/template.rb:564 ActionView::Template::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) # = Action View RawFile Template diff --git a/sorbet/rbi/gems/activesupport@8.1.2.rbi b/sorbet/rbi/gems/activesupport@8.1.3.rbi similarity index 99% rename from sorbet/rbi/gems/activesupport@8.1.2.rbi rename to sorbet/rbi/gems/activesupport@8.1.3.rbi index 0b0508f..63e74e1 100644 --- a/sorbet/rbi/gems/activesupport@8.1.2.rbi +++ b/sorbet/rbi/gems/activesupport@8.1.3.rbi @@ -5597,7 +5597,7 @@ end # pkg:gem/activesupport#lib/active_support/core_ext/enumerable.rb:25 ActiveSupport::EnumerableCoreExt::SoleItemExpectedError = Enumerable::SoleItemExpectedError -# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:7 +# pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:9 class ActiveSupport::EnvironmentInquirer < ::ActiveSupport::StringInquirer # pkg:gem/activesupport#lib/active_support/environment_inquirer.rb:15 def initialize(env); end @@ -6332,42 +6332,45 @@ end # pkg:gem/activesupport#lib/active_support/execution_context.rb:4 module ActiveSupport::ExecutionContext class << self - # pkg:gem/activesupport#lib/active_support/execution_context.rb:69 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:76 def []=(key, value); end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:40 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:47 def after_change(&block); end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:96 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:103 def clear; end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:100 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:111 def current_attributes_instances; end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:38 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:107 + def flush; end + + # pkg:gem/activesupport#lib/active_support/execution_context.rb:45 def nestable; end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:38 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:45 def nestable=(_arg0); end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:87 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:94 def pop; end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:78 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:85 def push; end # Updates the execution context. If a block is given, it resets the provided keys to their # previous value once the block exits. # - # pkg:gem/activesupport#lib/active_support/execution_context.rb:46 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:53 def set(**options); end - # pkg:gem/activesupport#lib/active_support/execution_context.rb:74 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:81 def to_h; end private - # pkg:gem/activesupport#lib/active_support/execution_context.rb:105 + # pkg:gem/activesupport#lib/active_support/execution_context.rb:116 def record; end end end @@ -6380,6 +6383,9 @@ class ActiveSupport::ExecutionContext::Record # pkg:gem/activesupport#lib/active_support/execution_context.rb:6 def current_attributes_instances; end + # pkg:gem/activesupport#lib/active_support/execution_context.rb:27 + def flush; end + # pkg:gem/activesupport#lib/active_support/execution_context.rb:21 def pop; end @@ -7267,7 +7273,7 @@ module ActiveSupport::Inflector # The capitalization of the first word can be turned off by setting the # +:capitalize+ option to false (default is true). # - # The trailing '_id' can be kept and capitalized by setting the + # The trailing '_id' can be kept by setting the # optional parameter +keep_id_suffix+ to true (default is false). # # humanize('employee_salary') # => "Employee salary" @@ -7292,7 +7298,7 @@ module ActiveSupport::Inflector # inflect.uncountable 'rails' # end # - # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:282 + # pkg:gem/activesupport#lib/active_support/inflector/inflections.rb:283 def inflections(locale = T.unsafe(nil)); end # Returns the suffix that should be added to a number to denote the position @@ -7945,22 +7951,22 @@ ActiveSupport::JSON::DATE_REGEX = T.let(T.unsafe(nil), Regexp) # pkg:gem/activesupport#lib/active_support/json/encoding.rb:59 module ActiveSupport::JSON::Encoding class << self - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:239 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:241 def encode_without_escape(value); end - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:235 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:237 def encode_without_options(value); end # If true, encode >, <, & as escaped unicode sequences (e.g. > as \u003e) # as a safety measure. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:212 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:214 def escape_html_entities_in_json; end # If true, encode >, <, & as escaped unicode sequences (e.g. > as \u003e) # as a safety measure. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:212 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:214 def escape_html_entities_in_json=(_arg0); end # If true, encode LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) @@ -7969,7 +7975,7 @@ module ActiveSupport::JSON::Encoding # but that changed in ECMAScript 2019. As such it's no longer a concern in # modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:219 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:221 def escape_js_separators_in_json; end # If true, encode LINE SEPARATOR (U+2028) and PARAGRAPH SEPARATOR (U+2029) @@ -7978,40 +7984,40 @@ module ActiveSupport::JSON::Encoding # but that changed in ECMAScript 2019. As such it's no longer a concern in # modern browsers: https://caniuse.com/mdn-javascript_builtins_json_json_superset. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:219 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:221 def escape_js_separators_in_json=(_arg0); end # Sets the encoder used by \Rails to encode Ruby objects into JSON strings # in +Object#to_json+ and +ActiveSupport::JSON.encode+. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:227 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:229 def json_encoder; end - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:229 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:231 def json_encoder=(encoder); end # Sets the precision of encoded time values. # Defaults to 3 (equivalent to millisecond precision) # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:223 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:225 def time_precision; end # Sets the precision of encoded time values. # Defaults to 3 (equivalent to millisecond precision) # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:223 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:225 def time_precision=(_arg0); end # If true, use ISO 8601 format for dates and times. Otherwise, fall back # to the Active Support legacy format. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:208 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:210 def use_standard_json_time_format; end # If true, use ISO 8601 format for dates and times. Otherwise, fall back # to the Active Support legacy format. # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:208 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:210 def use_standard_json_time_format=(_arg0); end end end @@ -8027,12 +8033,12 @@ ActiveSupport::JSON::Encoding::HTML_ENTITIES_REGEX = T.let(T.unsafe(nil), Regexp # pkg:gem/activesupport#lib/active_support/json/encoding.rb:150 class ActiveSupport::JSON::Encoding::JSONGemCoderEncoder - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:171 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:173 def initialize(options = T.unsafe(nil)); end # Encode the given object into a JSON string # - # pkg:gem/activesupport#lib/active_support/json/encoding.rb:183 + # pkg:gem/activesupport#lib/active_support/json/encoding.rb:185 def encode(value); end end @@ -10985,7 +10991,7 @@ class ActiveSupport::NumberHelper::NumberToDelimitedConverter < ::ActiveSupport: private - # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:25 + # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:40 def delimiter_pattern; end # pkg:gem/activesupport#lib/active_support/number_helper/number_to_delimited_converter.rb:17 @@ -11737,28 +11743,28 @@ class ActiveSupport::SafeBuffer < ::String # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:103 def []=(arg1, arg2, arg3 = T.unsafe(nil)); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:143 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:147 def as_json(*_arg0); end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:87 def bytesplice(*args, value); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def capitalize(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def capitalize!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def chomp(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def chomp!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def chop(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def chop!(*args); end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:59 @@ -11767,55 +11773,55 @@ class ActiveSupport::SafeBuffer < ::String # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:79 def concat(value); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def delete(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def delete!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def delete_prefix(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def delete_prefix!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def delete_suffix(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def delete_suffix!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def downcase(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def downcase!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:151 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:155 def encode_with(coder); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:175 def gsub(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:175 def gsub!(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:135 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:139 def html_safe?; end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:91 def insert(index, value); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def lstrip(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def lstrip!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def next(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def next!(*args); end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:95 @@ -11824,25 +11830,25 @@ class ActiveSupport::SafeBuffer < ::String # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:99 def replace(value); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def reverse(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def reverse!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def rstrip(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def rstrip!(*args); end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:65 def safe_concat(value); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def scrub(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def scrub!(*args); end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:49 @@ -11851,72 +11857,77 @@ class ActiveSupport::SafeBuffer < ::String # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:51 def slice!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def squeeze(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def squeeze!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def strip(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def strip!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:175 def sub(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:171 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:175 def sub!(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def succ(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def succ!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def swapcase(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def swapcase!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:147 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:151 def to_param; end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:139 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:143 def to_s; end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def tr(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def tr!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def tr_s(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def tr_s!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def unicode_normalize(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def unicode_normalize!(*args); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def upcase(*args, &block); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:157 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:161 def upcase!(*args); end + protected + + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:202 + def mark_unsafe!; end + private - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:198 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:207 def explicit_html_escape_interpolated_argument(arg); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:202 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:211 def implicit_html_escape_interpolated_argument(arg); end # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:74 @@ -11925,10 +11936,10 @@ class ActiveSupport::SafeBuffer < ::String # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:28 def original_concat(*_arg0); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:210 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:219 def set_block_back_references(block, match_data); end - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:216 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:225 def string_into_safe_buffer(new_string, is_html_safe); end end @@ -13550,16 +13561,16 @@ class ActiveSupport::Testing::Parallelization::Worker # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:7 def initialize(number, url); end - # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:82 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:84 def after_fork; end # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:42 def perform_job(job); end - # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:90 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:92 def run_cleanup; end - # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:58 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:60 def safe_record(reporter, result); end # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:14 @@ -13570,10 +13581,10 @@ class ActiveSupport::Testing::Parallelization::Worker private - # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:97 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:99 def add_setup_exception(result); end - # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:101 + # pkg:gem/activesupport#lib/active_support/testing/parallelization/worker.rb:103 def set_process_title(status); end end @@ -17518,6 +17529,8 @@ class Integer < ::Numeric def years; end end +Integer::GMP_VERSION = T.let(T.unsafe(nil), String) + # pkg:gem/activesupport#lib/active_support/core_ext/kernel/reporting.rb:3 module Kernel private @@ -19325,7 +19338,7 @@ class String # +raw+ helper in views. It is recommended that you use +sanitize+ instead of # this method. It should never be called on user input. # - # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:232 + # pkg:gem/activesupport#lib/active_support/core_ext/string/output_safety.rb:241 def html_safe; end # Capitalizes the first word, turns underscores into spaces, and (by default) strips a @@ -19336,7 +19349,7 @@ class String # optional parameter +capitalize+ to false. # By default, this parameter is true. # - # The trailing '_id' can be kept and capitalized by setting the + # The trailing '_id' can be kept by setting the # optional parameter +keep_id_suffix+ to true. # By default, this parameter is false. # diff --git a/sorbet/rbi/gems/addressable@2.8.9.rbi b/sorbet/rbi/gems/addressable@2.8.9.rbi deleted file mode 100644 index 6999fe2..0000000 --- a/sorbet/rbi/gems/addressable@2.8.9.rbi +++ /dev/null @@ -1,9 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `addressable` gem. -# Please instead update this file by running `bin/tapioca gem addressable`. - - -# THIS IS AN EMPTY RBI FILE. -# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/base64@0.3.0.rbi b/sorbet/rbi/gems/base64@0.3.0.rbi deleted file mode 100644 index 9995f72..0000000 --- a/sorbet/rbi/gems/base64@0.3.0.rbi +++ /dev/null @@ -1,545 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `base64` gem. -# Please instead update this file by running `bin/tapioca gem base64`. - - -# \Module \Base64 provides methods for: -# -# - \Encoding a binary string (containing non-ASCII characters) -# as a string of printable ASCII characters. -# - Decoding such an encoded string. -# -# \Base64 is commonly used in contexts where binary data -# is not allowed or supported: -# -# - Images in HTML or CSS files, or in URLs. -# - Email attachments. -# -# A \Base64-encoded string is about one-third larger that its source. -# See the {Wikipedia article}[https://en.wikipedia.org/wiki/Base64] -# for more information. -# -# This module provides three pairs of encode/decode methods. -# Your choices among these methods should depend on: -# -# - Which character set is to be used for encoding and decoding. -# - Whether "padding" is to be used. -# - Whether encoded strings are to contain newlines. -# -# Note: Examples on this page assume that the including program has executed: -# -# require 'base64' -# -# == \Encoding Character Sets -# -# A \Base64-encoded string consists only of characters from a 64-character set: -# -# - ('A'..'Z'). -# - ('a'..'z'). -# - ('0'..'9'). -# - =, the 'padding' character. -# - Either: -# - %w[+ /]: -# {RFC-2045-compliant}[https://datatracker.ietf.org/doc/html/rfc2045]; -# _not_ safe for URLs. -# - %w[- _]: -# {RFC-4648-compliant}[https://datatracker.ietf.org/doc/html/rfc4648]; -# safe for URLs. -# -# If you are working with \Base64-encoded strings that will come from -# or be put into URLs, you should choose this encoder-decoder pair -# of RFC-4648-compliant methods: -# -# - Base64.urlsafe_encode64 and Base64.urlsafe_decode64. -# -# Otherwise, you may choose any of the pairs in this module, -# including the pair above, or the RFC-2045-compliant pairs: -# -# - Base64.encode64 and Base64.decode64. -# - Base64.strict_encode64 and Base64.strict_decode64. -# -# == Padding -# -# \Base64-encoding changes a triplet of input bytes -# into a quartet of output characters. -# -# Padding in Encode Methods -# -# Padding -- extending an encoded string with zero, one, or two trailing -# = characters -- is performed by methods Base64.encode64, -# Base64.strict_encode64, and, by default, Base64.urlsafe_encode64: -# -# Base64.encode64('s') # => "cw==\n" -# Base64.strict_encode64('s') # => "cw==" -# Base64.urlsafe_encode64('s') # => "cw==" -# Base64.urlsafe_encode64('s', padding: false) # => "cw" -# -# When padding is performed, the encoded string is always of length 4n, -# where +n+ is a non-negative integer: -# -# - Input bytes of length 3n generate unpadded output characters -# of length 4n: -# -# # n = 1: 3 bytes => 4 characters. -# Base64.strict_encode64('123') # => "MDEy" -# # n = 2: 6 bytes => 8 characters. -# Base64.strict_encode64('123456') # => "MDEyMzQ1" -# -# - Input bytes of length 3n+1 generate padded output characters -# of length 4(n+1), with two padding characters at the end: -# -# # n = 1: 4 bytes => 8 characters. -# Base64.strict_encode64('1234') # => "MDEyMw==" -# # n = 2: 7 bytes => 12 characters. -# Base64.strict_encode64('1234567') # => "MDEyMzQ1Ng==" -# -# - Input bytes of length 3n+2 generate padded output characters -# of length 4(n+1), with one padding character at the end: -# -# # n = 1: 5 bytes => 8 characters. -# Base64.strict_encode64('12345') # => "MDEyMzQ=" -# # n = 2: 8 bytes => 12 characters. -# Base64.strict_encode64('12345678') # => "MDEyMzQ1Njc=" -# -# When padding is suppressed, for a positive integer n: -# -# - Input bytes of length 3n generate unpadded output characters -# of length 4n: -# -# # n = 1: 3 bytes => 4 characters. -# Base64.urlsafe_encode64('123', padding: false) # => "MDEy" -# # n = 2: 6 bytes => 8 characters. -# Base64.urlsafe_encode64('123456', padding: false) # => "MDEyMzQ1" -# -# - Input bytes of length 3n+1 generate unpadded output characters -# of length 4n+2, with two padding characters at the end: -# -# # n = 1: 4 bytes => 6 characters. -# Base64.urlsafe_encode64('1234', padding: false) # => "MDEyMw" -# # n = 2: 7 bytes => 10 characters. -# Base64.urlsafe_encode64('1234567', padding: false) # => "MDEyMzQ1Ng" -# -# - Input bytes of length 3n+2 generate unpadded output characters -# of length 4n+3, with one padding character at the end: -# -# # n = 1: 5 bytes => 7 characters. -# Base64.urlsafe_encode64('12345', padding: false) # => "MDEyMzQ" -# # m = 2: 8 bytes => 11 characters. -# Base64.urlsafe_encode64('12345678', padding: false) # => "MDEyMzQ1Njc" -# -# Padding in Decode Methods -# -# All of the \Base64 decode methods support (but do not require) padding. -# -# \Method Base64.decode64 does not check the size of the padding: -# -# Base64.decode64("MDEyMzQ1Njc") # => "01234567" -# Base64.decode64("MDEyMzQ1Njc=") # => "01234567" -# Base64.decode64("MDEyMzQ1Njc==") # => "01234567" -# -# \Method Base64.strict_decode64 strictly enforces padding size: -# -# Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError -# Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" -# Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError -# -# \Method Base64.urlsafe_decode64 allows padding in the encoded string, -# which if present, must be correct: -# see {Padding}[Base64.html#module-Base64-label-Padding], above: -# -# Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" -# Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" -# Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. -# -# == Newlines -# -# An encoded string returned by Base64.encode64 or Base64.urlsafe_encode64 -# has an embedded newline character -# after each 60-character sequence, and, if non-empty, at the end: -# -# # No newline if empty. -# encoded = Base64.encode64("\x00" * 0) -# encoded.index("\n") # => nil -# -# # Newline at end of short output. -# encoded = Base64.encode64("\x00" * 1) -# encoded.size # => 4 -# encoded.index("\n") # => 4 -# -# # Newline at end of longer output. -# encoded = Base64.encode64("\x00" * 45) -# encoded.size # => 60 -# encoded.index("\n") # => 60 -# -# # Newlines embedded and at end of still longer output. -# encoded = Base64.encode64("\x00" * 46) -# encoded.size # => 65 -# encoded.rindex("\n") # => 65 -# encoded.split("\n").map {|s| s.size } # => [60, 4] -# -# The string to be encoded may itself contain newlines, -# which are encoded as \Base64: -# -# # Base64.encode64("\n\n\n") # => "CgoK\n" -# s = "This is line 1\nThis is line 2\n" -# Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" -# -# pkg:gem/base64#lib/base64.rb:184 -module Base64 - private - - # :call-seq: - # Base64.decode(encoded_string) -> decoded_string - # - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +encoded_string+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # Base64.decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +encoded_string+ are ignored; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.decode64("\x00\n-_") # => "" - # - # Padding in +encoded_string+ (even if incorrect) is ignored: - # - # Base64.decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" - # - # pkg:gem/base64#lib/base64.rb:247 - def decode64(str); end - - # :call-seq: - # Base64.encode64(string) -> encoded_string - # - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.encode64('*') # => "Kg==\n" - # - # The returned string ends with a newline character, and if sufficiently long - # will have one or more embedded newline characters; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.encode64('*') # => "Kg==\n" - # Base64.encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.encode64("\n\n\n") # => "CgoK\n" - # s = "This is line 1\nThis is line 2\n" - # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # - # pkg:gem/base64#lib/base64.rb:222 - def encode64(bin); end - - # :call-seq: - # Base64.strict_decode64(encoded_string) -> decoded_string - # - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +encoded_string+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +encoded_string+ are not allowed; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.strict_decode64("\n") # Raises ArgumentError - # Base64.strict_decode64('-') # Raises ArgumentError - # Base64.strict_decode64('_') # Raises ArgumentError - # - # Padding in +encoded_string+, if present, must be correct: - # - # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError - # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError - # - # pkg:gem/base64#lib/base64.rb:309 - def strict_decode64(str); end - - # :call-seq: - # Base64.strict_encode64(string) -> encoded_string - # - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.strict_encode64('*') # => "Kg==\n" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.strict_encode64('*') # => "Kg==" - # Base64.strict_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.strict_encode64("\n\n\n") # => "CgoK" - # s = "This is line 1\nThis is line 2\n" - # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # - # pkg:gem/base64#lib/base64.rb:282 - def strict_encode64(bin); end - - # :call-seq: - # Base64.urlsafe_decode64(encoded_string) -> decoded_string - # - # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +encoded_string+: - # - # +encoded_string+ may not contain non-Base64 characters; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_decode64('+') # Raises ArgumentError. - # Base64.urlsafe_decode64('/') # Raises ArgumentError. - # Base64.urlsafe_decode64("\n") # Raises ArgumentError. - # - # Padding in +encoded_string+, if present, must be correct: - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. - # - # pkg:gem/base64#lib/base64.rb:369 - def urlsafe_decode64(str); end - - # :call-seq: - # Base64.urlsafe_encode64(string) -> encoded_string - # - # Returns the RFC-4648-compliant \Base64-encoding of +string+. - # - # Per RFC 4648, the returned string will not contain the URL-unsafe characters - # + or /, - # but instead may contain the URL-safe characters - # - and _; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----" - # Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____" - # - # By default, the returned string may have padding; - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # - # Optionally, you can suppress padding: - # - # Base64.urlsafe_encode64('*', padding: false) # => "Kg" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # Base64.urlsafe_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # pkg:gem/base64#lib/base64.rb:343 - def urlsafe_encode64(bin, padding: T.unsafe(nil)); end - - class << self - # :call-seq: - # Base64.decode(encoded_string) -> decoded_string - # - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +encoded_string+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # Base64.decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +encoded_string+ are ignored; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.decode64("\x00\n-_") # => "" - # - # Padding in +encoded_string+ (even if incorrect) is ignored: - # - # Base64.decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.decode64("MDEyMzQ1Njc==") # => "01234567" - # - # pkg:gem/base64#lib/base64.rb:247 - def decode64(str); end - - # :call-seq: - # Base64.encode64(string) -> encoded_string - # - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.encode64('*') # => "Kg==\n" - # - # The returned string ends with a newline character, and if sufficiently long - # will have one or more embedded newline characters; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.encode64('*') # => "Kg==\n" - # Base64.encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq\nKg==\n" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.encode64("\n\n\n") # => "CgoK\n" - # s = "This is line 1\nThis is line 2\n" - # Base64.encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK\n" - # - # pkg:gem/base64#lib/base64.rb:222 - def encode64(bin); end - - # :call-seq: - # Base64.strict_decode64(encoded_string) -> decoded_string - # - # Returns a string containing the decoding of an RFC-2045-compliant - # \Base64-encoded string +encoded_string+: - # - # s = "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # Base64.strict_decode64(s) # => "This is line 1\nThis is line 2\n" - # - # Non-\Base64 characters in +encoded_string+ are not allowed; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # these include newline characters and characters - and /: - # - # Base64.strict_decode64("\n") # Raises ArgumentError - # Base64.strict_decode64('-') # Raises ArgumentError - # Base64.strict_decode64('_') # Raises ArgumentError - # - # Padding in +encoded_string+, if present, must be correct: - # - # Base64.strict_decode64("MDEyMzQ1Njc") # Raises ArgumentError - # Base64.strict_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.strict_decode64("MDEyMzQ1Njc==") # Raises ArgumentError - # - # pkg:gem/base64#lib/base64.rb:309 - def strict_decode64(str); end - - # :call-seq: - # Base64.strict_encode64(string) -> encoded_string - # - # Returns a string containing the RFC-2045-compliant \Base64-encoding of +string+. - # - # Per RFC 2045, the returned string may contain the URL-unsafe characters - # + or /; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.strict_encode64("\xFB\xEF\xBE") # => "++++\n" - # Base64.strict_encode64("\xFF\xFF\xFF") # => "////\n" - # - # The returned string may include padding; - # see {Padding}[Base64.html#module-Base64-label-Padding] above. - # - # Base64.strict_encode64('*') # => "Kg==\n" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.strict_encode64('*') # => "Kg==" - # Base64.strict_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # The string to be encoded may itself contain newlines, - # which will be encoded as ordinary \Base64: - # - # Base64.strict_encode64("\n\n\n") # => "CgoK" - # s = "This is line 1\nThis is line 2\n" - # Base64.strict_encode64(s) # => "VGhpcyBpcyBsaW5lIDEKVGhpcyBpcyBsaW5lIDIK" - # - # pkg:gem/base64#lib/base64.rb:282 - def strict_encode64(bin); end - - # :call-seq: - # Base64.urlsafe_decode64(encoded_string) -> decoded_string - # - # Returns the decoding of an RFC-4648-compliant \Base64-encoded string +encoded_string+: - # - # +encoded_string+ may not contain non-Base64 characters; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_decode64('+') # Raises ArgumentError. - # Base64.urlsafe_decode64('/') # Raises ArgumentError. - # Base64.urlsafe_decode64("\n") # Raises ArgumentError. - # - # Padding in +encoded_string+, if present, must be correct: - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_decode64("MDEyMzQ1Njc") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc=") # => "01234567" - # Base64.urlsafe_decode64("MDEyMzQ1Njc==") # Raises ArgumentError. - # - # pkg:gem/base64#lib/base64.rb:369 - def urlsafe_decode64(str); end - - # :call-seq: - # Base64.urlsafe_encode64(string) -> encoded_string - # - # Returns the RFC-4648-compliant \Base64-encoding of +string+. - # - # Per RFC 4648, the returned string will not contain the URL-unsafe characters - # + or /, - # but instead may contain the URL-safe characters - # - and _; - # see {Encoding Character Set}[Base64.html#module-Base64-label-Encoding+Character+Sets] above: - # - # Base64.urlsafe_encode64("\xFB\xEF\xBE") # => "----" - # Base64.urlsafe_encode64("\xFF\xFF\xFF") # => "____" - # - # By default, the returned string may have padding; - # see {Padding}[Base64.html#module-Base64-label-Padding], above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # - # Optionally, you can suppress padding: - # - # Base64.urlsafe_encode64('*', padding: false) # => "Kg" - # - # The returned string will have no newline characters, regardless of its length; - # see {Newlines}[Base64.html#module-Base64-label-Newlines] above: - # - # Base64.urlsafe_encode64('*') # => "Kg==" - # Base64.urlsafe_encode64('*' * 46) - # # => "KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg==" - # - # pkg:gem/base64#lib/base64.rb:343 - def urlsafe_encode64(bin, padding: T.unsafe(nil)); end - end -end - -# pkg:gem/base64#lib/base64.rb:186 -Base64::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/benchmark@0.5.0.rbi b/sorbet/rbi/gems/benchmark@0.5.0.rbi deleted file mode 100644 index 1c75f8e..0000000 --- a/sorbet/rbi/gems/benchmark@0.5.0.rbi +++ /dev/null @@ -1,621 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `benchmark` gem. -# Please instead update this file by running `bin/tapioca gem benchmark`. - - -# The Benchmark module provides methods to measure and report the time -# used to execute Ruby code. -# -# * Measure the time to construct the string given by the expression -# "a"*1_000_000_000: -# -# require 'benchmark' -# -# puts Benchmark.measure { "a"*1_000_000_000 } -# -# On my machine (OSX 10.8.3 on i5 1.7 GHz) this generates: -# -# 0.350000 0.400000 0.750000 ( 0.835234) -# -# This report shows the user CPU time, system CPU time, the total time -# (sum of user CPU time, system CPU time, children's user CPU time, -# and children's system CPU time), and the elapsed real time. The unit -# of time is seconds. -# -# * Do some experiments sequentially using the #bm method: -# -# require 'benchmark' -# -# n = 5000000 -# Benchmark.bm do |x| -# x.report { for i in 1..n; a = "1"; end } -# x.report { n.times do ; a = "1"; end } -# x.report { 1.upto(n) do ; a = "1"; end } -# end -# -# The result: -# -# user system total real -# 1.010000 0.000000 1.010000 ( 1.014479) -# 1.000000 0.000000 1.000000 ( 0.998261) -# 0.980000 0.000000 0.980000 ( 0.981335) -# -# * Continuing the previous example, put a label in each report: -# -# require 'benchmark' -# -# n = 5000000 -# Benchmark.bm(7) do |x| -# x.report("for:") { for i in 1..n; a = "1"; end } -# x.report("times:") { n.times do ; a = "1"; end } -# x.report("upto:") { 1.upto(n) do ; a = "1"; end } -# end -# -# The result: -# -# user system total real -# for: 1.010000 0.000000 1.010000 ( 1.015688) -# times: 1.000000 0.000000 1.000000 ( 1.003611) -# upto: 1.030000 0.000000 1.030000 ( 1.028098) -# -# * The times for some benchmarks depend on the order in which items -# are run. These differences are due to the cost of memory -# allocation and garbage collection. To avoid these discrepancies, -# the #bmbm method is provided. For example, to compare ways to -# sort an array of floats: -# -# require 'benchmark' -# -# array = (1..1000000).map { rand } -# -# Benchmark.bmbm do |x| -# x.report("sort!") { array.dup.sort! } -# x.report("sort") { array.dup.sort } -# end -# -# The result: -# -# Rehearsal ----------------------------------------- -# sort! 1.490000 0.010000 1.500000 ( 1.490520) -# sort 1.460000 0.000000 1.460000 ( 1.463025) -# -------------------------------- total: 2.960000sec -# -# user system total real -# sort! 1.460000 0.000000 1.460000 ( 1.460465) -# sort 1.450000 0.010000 1.460000 ( 1.448327) -# -# * Report statistics of sequential experiments with unique labels, -# using the #benchmark method: -# -# require 'benchmark' -# include Benchmark # we need the CAPTION and FORMAT constants -# -# n = 5000000 -# Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x| -# tf = x.report("for:") { for i in 1..n; a = "1"; end } -# tt = x.report("times:") { n.times do ; a = "1"; end } -# tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end } -# [tf+tt+tu, (tf+tt+tu)/3] -# end -# -# The result: -# -# user system total real -# for: 0.950000 0.000000 0.950000 ( 0.952039) -# times: 0.980000 0.000000 0.980000 ( 0.984938) -# upto: 0.950000 0.000000 0.950000 ( 0.946787) -# >total: 2.880000 0.000000 2.880000 ( 2.883764) -# >avg: 0.960000 0.000000 0.960000 ( 0.961255) -# -# pkg:gem/benchmark#lib/benchmark.rb:123 -module Benchmark - private - - # Invokes the block with a Benchmark::Report object, which - # may be used to collect and report on the results of individual - # benchmark tests. Reserves +label_width+ leading spaces for - # labels on each line. Prints +caption+ at the top of the - # report, and uses +format+ to format each line. - # (Note: +caption+ must contain a terminating newline character, - # see the default Benchmark::Tms::CAPTION for an example.) - # - # Returns an array of Benchmark::Tms objects. - # - # If the block returns an array of - # Benchmark::Tms objects, these will be used to format - # additional lines of output. If +labels+ parameter are - # given, these are used to label these extra lines. - # - # _Note_: Other methods provide a simpler interface to this one, and are - # suitable for nearly all benchmarking requirements. See the examples in - # Benchmark, and the #bm and #bmbm methods. - # - # Example: - # - # require 'benchmark' - # include Benchmark # we need the CAPTION and FORMAT constants - # - # n = 5000000 - # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x| - # tf = x.report("for:") { for i in 1..n; a = "1"; end } - # tt = x.report("times:") { n.times do ; a = "1"; end } - # tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end } - # [tf+tt+tu, (tf+tt+tu)/3] - # end - # - # Generates: - # - # user system total real - # for: 0.970000 0.000000 0.970000 ( 0.970493) - # times: 0.990000 0.000000 0.990000 ( 0.989542) - # upto: 0.970000 0.000000 0.970000 ( 0.972854) - # >total: 2.930000 0.000000 2.930000 ( 2.932889) - # >avg: 0.976667 0.000000 0.976667 ( 0.977630) - # - # pkg:gem/benchmark#lib/benchmark.rb:171 - def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end - - # A simple interface to the #benchmark method, #bm generates sequential - # reports with labels. +label_width+ and +labels+ parameters have the same - # meaning as for #benchmark. - # - # require 'benchmark' - # - # n = 5000000 - # Benchmark.bm(7) do |x| - # x.report("for:") { for i in 1..n; a = "1"; end } - # x.report("times:") { n.times do ; a = "1"; end } - # x.report("upto:") { 1.upto(n) do ; a = "1"; end } - # end - # - # Generates: - # - # user system total real - # for: 0.960000 0.000000 0.960000 ( 0.957966) - # times: 0.960000 0.000000 0.960000 ( 0.960423) - # upto: 0.950000 0.000000 0.950000 ( 0.954864) - # - # pkg:gem/benchmark#lib/benchmark.rb:216 - def bm(label_width = T.unsafe(nil), *labels, &blk); end - - # Sometimes benchmark results are skewed because code executed - # earlier encounters different garbage collection overheads than - # that run later. #bmbm attempts to minimize this effect by running - # the tests twice, the first time as a rehearsal in order to get the - # runtime environment stable, the second time for - # real. GC.start is executed before the start of each of - # the real timings; the cost of this is not included in the - # timings. In reality, though, there's only so much that #bmbm can - # do, and the results are not guaranteed to be isolated from garbage - # collection and other effects. - # - # Because #bmbm takes two passes through the tests, it can - # calculate the required label width. - # - # require 'benchmark' - # - # array = (1..1000000).map { rand } - # - # Benchmark.bmbm do |x| - # x.report("sort!") { array.dup.sort! } - # x.report("sort") { array.dup.sort } - # end - # - # Generates: - # - # Rehearsal ----------------------------------------- - # sort! 1.440000 0.010000 1.450000 ( 1.446833) - # sort 1.440000 0.000000 1.440000 ( 1.448257) - # -------------------------------- total: 2.890000sec - # - # user system total real - # sort! 1.460000 0.000000 1.460000 ( 1.458065) - # sort 1.450000 0.000000 1.450000 ( 1.455963) - # - # #bmbm yields a Benchmark::Job object and returns an array of - # Benchmark::Tms objects. - # - # pkg:gem/benchmark#lib/benchmark.rb:258 - def bmbm(width = T.unsafe(nil)); end - - # Returns the time used to execute the given block as a - # Benchmark::Tms object. Takes +label+ option. - # - # require 'benchmark' - # - # n = 1000000 - # - # time = Benchmark.measure do - # n.times { a = "1" } - # end - # puts time - # - # Generates: - # - # 0.220000 0.000000 0.220000 ( 0.227313) - # - # pkg:gem/benchmark#lib/benchmark.rb:303 - def measure(label = T.unsafe(nil)); end - - # Returns the elapsed real time used to execute the given block. - # The unit of time is milliseconds. - # - # Benchmark.ms { "a" * 1_000_000_000 } - # #=> 509.8029999935534 - # - # pkg:gem/benchmark#lib/benchmark.rb:335 - def ms; end - - # Returns the elapsed real time used to execute the given block. - # The unit of time is seconds. - # - # Benchmark.realtime { "a" * 1_000_000_000 } - # #=> 0.5098029999935534 - # - # pkg:gem/benchmark#lib/benchmark.rb:322 - def realtime; end - - class << self - # Invokes the block with a Benchmark::Report object, which - # may be used to collect and report on the results of individual - # benchmark tests. Reserves +label_width+ leading spaces for - # labels on each line. Prints +caption+ at the top of the - # report, and uses +format+ to format each line. - # (Note: +caption+ must contain a terminating newline character, - # see the default Benchmark::Tms::CAPTION for an example.) - # - # Returns an array of Benchmark::Tms objects. - # - # If the block returns an array of - # Benchmark::Tms objects, these will be used to format - # additional lines of output. If +labels+ parameter are - # given, these are used to label these extra lines. - # - # _Note_: Other methods provide a simpler interface to this one, and are - # suitable for nearly all benchmarking requirements. See the examples in - # Benchmark, and the #bm and #bmbm methods. - # - # Example: - # - # require 'benchmark' - # include Benchmark # we need the CAPTION and FORMAT constants - # - # n = 5000000 - # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x| - # tf = x.report("for:") { for i in 1..n; a = "1"; end } - # tt = x.report("times:") { n.times do ; a = "1"; end } - # tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end } - # [tf+tt+tu, (tf+tt+tu)/3] - # end - # - # Generates: - # - # user system total real - # for: 0.970000 0.000000 0.970000 ( 0.970493) - # times: 0.990000 0.000000 0.990000 ( 0.989542) - # upto: 0.970000 0.000000 0.970000 ( 0.972854) - # >total: 2.930000 0.000000 2.930000 ( 2.932889) - # >avg: 0.976667 0.000000 0.976667 ( 0.977630) - # - # pkg:gem/benchmark#lib/benchmark.rb:341 - def benchmark(caption = T.unsafe(nil), label_width = T.unsafe(nil), format = T.unsafe(nil), *labels); end - - # A simple interface to the #benchmark method, #bm generates sequential - # reports with labels. +label_width+ and +labels+ parameters have the same - # meaning as for #benchmark. - # - # require 'benchmark' - # - # n = 5000000 - # Benchmark.bm(7) do |x| - # x.report("for:") { for i in 1..n; a = "1"; end } - # x.report("times:") { n.times do ; a = "1"; end } - # x.report("upto:") { 1.upto(n) do ; a = "1"; end } - # end - # - # Generates: - # - # user system total real - # for: 0.960000 0.000000 0.960000 ( 0.957966) - # times: 0.960000 0.000000 0.960000 ( 0.960423) - # upto: 0.950000 0.000000 0.950000 ( 0.954864) - # - # pkg:gem/benchmark#lib/benchmark.rb:341 - def bm(label_width = T.unsafe(nil), *labels, &blk); end - - # Sometimes benchmark results are skewed because code executed - # earlier encounters different garbage collection overheads than - # that run later. #bmbm attempts to minimize this effect by running - # the tests twice, the first time as a rehearsal in order to get the - # runtime environment stable, the second time for - # real. GC.start is executed before the start of each of - # the real timings; the cost of this is not included in the - # timings. In reality, though, there's only so much that #bmbm can - # do, and the results are not guaranteed to be isolated from garbage - # collection and other effects. - # - # Because #bmbm takes two passes through the tests, it can - # calculate the required label width. - # - # require 'benchmark' - # - # array = (1..1000000).map { rand } - # - # Benchmark.bmbm do |x| - # x.report("sort!") { array.dup.sort! } - # x.report("sort") { array.dup.sort } - # end - # - # Generates: - # - # Rehearsal ----------------------------------------- - # sort! 1.440000 0.010000 1.450000 ( 1.446833) - # sort 1.440000 0.000000 1.440000 ( 1.448257) - # -------------------------------- total: 2.890000sec - # - # user system total real - # sort! 1.460000 0.000000 1.460000 ( 1.458065) - # sort 1.450000 0.000000 1.450000 ( 1.455963) - # - # #bmbm yields a Benchmark::Job object and returns an array of - # Benchmark::Tms objects. - # - # pkg:gem/benchmark#lib/benchmark.rb:341 - def bmbm(width = T.unsafe(nil)); end - - # Returns the time used to execute the given block as a - # Benchmark::Tms object. Takes +label+ option. - # - # require 'benchmark' - # - # n = 1000000 - # - # time = Benchmark.measure do - # n.times { a = "1" } - # end - # puts time - # - # Generates: - # - # 0.220000 0.000000 0.220000 ( 0.227313) - # - # pkg:gem/benchmark#lib/benchmark.rb:341 - def measure(label = T.unsafe(nil)); end - - # Returns the elapsed real time used to execute the given block. - # The unit of time is milliseconds. - # - # Benchmark.ms { "a" * 1_000_000_000 } - # #=> 509.8029999935534 - # - # pkg:gem/benchmark#lib/benchmark.rb:341 - def ms; end - - # Returns the elapsed real time used to execute the given block. - # The unit of time is seconds. - # - # Benchmark.realtime { "a" * 1_000_000_000 } - # #=> 0.5098029999935534 - # - # pkg:gem/benchmark#lib/benchmark.rb:341 - def realtime; end - end -end - -# A Job is a sequence of labelled blocks to be processed by the -# Benchmark.bmbm method. It is of little direct interest to the user. -# -# pkg:gem/benchmark#lib/benchmark.rb:347 -class Benchmark::Job - # Returns an initialized Job instance. - # Usually, one doesn't call this method directly, as new - # Job objects are created by the #bmbm method. - # +width+ is a initial value for the label offset used in formatting; - # the #bmbm method passes its +width+ argument to this constructor. - # - # pkg:gem/benchmark#lib/benchmark.rb:355 - def initialize(width); end - - # Registers the given label and block pair in the job list. - # - # pkg:gem/benchmark#lib/benchmark.rb:363 - def item(label = T.unsafe(nil), &blk); end - - # An array of 2-element arrays, consisting of label and block pairs. - # - # pkg:gem/benchmark#lib/benchmark.rb:375 - def list; end - - # pkg:gem/benchmark#lib/benchmark.rb:372 - def report(label = T.unsafe(nil), &blk); end - - # Length of the widest label in the #list. - # - # pkg:gem/benchmark#lib/benchmark.rb:378 - def width; end -end - -# This class is used by the Benchmark.benchmark and Benchmark.bm methods. -# It is of little direct interest to the user. -# -# pkg:gem/benchmark#lib/benchmark.rb:385 -class Benchmark::Report - # Returns an initialized Report instance. - # Usually, one doesn't call this method directly, as new - # Report objects are created by the #benchmark and #bm methods. - # +width+ and +format+ are the label offset and - # format string used by Tms#format. - # - # pkg:gem/benchmark#lib/benchmark.rb:393 - def initialize(width = T.unsafe(nil), format = T.unsafe(nil)); end - - # An array of Benchmark::Tms objects representing each item. - # - # pkg:gem/benchmark#lib/benchmark.rb:412 - def format; end - - # Prints the +label+ and measured time for the block, - # formatted by +format+. See Tms#format for the - # formatting rules. - # - # pkg:gem/benchmark#lib/benchmark.rb:402 - def item(label = T.unsafe(nil), *format, &blk); end - - # An array of Benchmark::Tms objects representing each item. - # - # pkg:gem/benchmark#lib/benchmark.rb:412 - def list; end - - # pkg:gem/benchmark#lib/benchmark.rb:409 - def report(label = T.unsafe(nil), *format, &blk); end - - # An array of Benchmark::Tms objects representing each item. - # - # pkg:gem/benchmark#lib/benchmark.rb:412 - def width; end -end - -# A data object, representing the times associated with a benchmark -# measurement. -# -# pkg:gem/benchmark#lib/benchmark.rb:421 -class Benchmark::Tms - # Returns an initialized Tms object which has - # +utime+ as the user CPU time, +stime+ as the system CPU time, - # +cutime+ as the children's user CPU time, +cstime+ as the children's - # system CPU time, +real+ as the elapsed real time and +label+ as the label. - # - # pkg:gem/benchmark#lib/benchmark.rb:456 - def initialize(utime = T.unsafe(nil), stime = T.unsafe(nil), cutime = T.unsafe(nil), cstime = T.unsafe(nil), real = T.unsafe(nil), label = T.unsafe(nil)); end - - # Returns a new Tms object obtained by memberwise multiplication - # of the individual times for this Tms object by +x+. - # - # pkg:gem/benchmark#lib/benchmark.rb:504 - def *(x); end - - # Returns a new Tms object obtained by memberwise summation - # of the individual times for this Tms object with those of the +other+ - # Tms object. - # This method and #/() are useful for taking statistics. - # - # pkg:gem/benchmark#lib/benchmark.rb:491 - def +(other); end - - # Returns a new Tms object obtained by memberwise subtraction - # of the individual times for the +other+ Tms object from those of this - # Tms object. - # - # pkg:gem/benchmark#lib/benchmark.rb:498 - def -(other); end - - # Returns a new Tms object obtained by memberwise division - # of the individual times for this Tms object by +x+. - # This method and #+() are useful for taking statistics. - # - # pkg:gem/benchmark#lib/benchmark.rb:511 - def /(x); end - - # Returns a new Tms object whose times are the sum of the times for this - # Tms object, plus the time required to execute the code block (+blk+). - # - # pkg:gem/benchmark#lib/benchmark.rb:465 - def add(&blk); end - - # An in-place version of #add. - # Changes the times of this Tms object by making it the sum of the times - # for this Tms object, plus the time required to execute - # the code block (+blk+). - # - # pkg:gem/benchmark#lib/benchmark.rb:475 - def add!(&blk); end - - # System CPU time of children - # - # pkg:gem/benchmark#lib/benchmark.rb:439 - def cstime; end - - # User CPU time of children - # - # pkg:gem/benchmark#lib/benchmark.rb:436 - def cutime; end - - # Returns the contents of this Tms object as - # a formatted string, according to a +format+ string - # like that passed to Kernel.format. In addition, #format - # accepts the following extensions: - # - # %u:: Replaced by the user CPU time, as reported by Tms#utime. - # %y:: Replaced by the system CPU time, as reported by Tms#stime (Mnemonic: y of "s*y*stem") - # %U:: Replaced by the children's user CPU time, as reported by Tms#cutime - # %Y:: Replaced by the children's system CPU time, as reported by Tms#cstime - # %t:: Replaced by the total CPU time, as reported by Tms#total - # %r:: Replaced by the elapsed real time, as reported by Tms#real - # %n:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame") - # - # If +format+ is not given, FORMAT is used as default value, detailing the - # user, system, total and real elapsed time. - # - # pkg:gem/benchmark#lib/benchmark.rb:530 - def format(format = T.unsafe(nil), *args); end - - # Label - # - # pkg:gem/benchmark#lib/benchmark.rb:448 - def label; end - - # Elapsed real time - # - # pkg:gem/benchmark#lib/benchmark.rb:442 - def real; end - - # System CPU time - # - # pkg:gem/benchmark#lib/benchmark.rb:433 - def stime; end - - # Returns a new 6-element array, consisting of the - # label, user CPU time, system CPU time, children's - # user CPU time, children's system CPU time and elapsed - # real time. - # - # pkg:gem/benchmark#lib/benchmark.rb:555 - def to_a; end - - # Returns a hash containing the same data as `to_a`. - # - # pkg:gem/benchmark#lib/benchmark.rb:562 - def to_h; end - - # Same as #format. - # - # pkg:gem/benchmark#lib/benchmark.rb:545 - def to_s; end - - # Total time, that is +utime+ + +stime+ + +cutime+ + +cstime+ - # - # pkg:gem/benchmark#lib/benchmark.rb:445 - def total; end - - # User CPU time - # - # pkg:gem/benchmark#lib/benchmark.rb:430 - def utime; end - - protected - - # Returns a new Tms object obtained by memberwise operation +op+ - # of the individual times for this Tms object with those of the other - # Tms object (+x+). - # - # +op+ can be a mathematical operation such as +, -, - # *, / - # - # pkg:gem/benchmark#lib/benchmark.rb:583 - def memberwise(op, x); end -end - -# pkg:gem/benchmark#lib/benchmark.rb:125 -Benchmark::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/bigdecimal@4.0.1.rbi b/sorbet/rbi/gems/bigdecimal@4.0.1.rbi deleted file mode 100644 index 29f24d6..0000000 --- a/sorbet/rbi/gems/bigdecimal@4.0.1.rbi +++ /dev/null @@ -1,450 +0,0 @@ -# typed: false - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `bigdecimal` gem. -# Please instead update this file by running `bin/tapioca gem bigdecimal`. - - -# pkg:gem/bigdecimal#lib/bigdecimal.rb:10 -class BigDecimal < ::Numeric - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def %(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def *(_arg0); end - - # call-seq: - # self ** other -> bigdecimal - # - # Returns the \BigDecimal value of +self+ raised to power +other+: - # - # b = BigDecimal('3.14') - # b ** 2 # => 0.98596e1 - # b ** 2.0 # => 0.98596e1 - # b ** Rational(2, 1) # => 0.98596e1 - # - # Related: BigDecimal#power. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:77 - def **(y); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def +(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def +@; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def -(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def -@; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def /(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def <(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def <=(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def <=>(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def ==(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def ===(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def >(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def >=(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def _decimal_shift(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def _dump(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def abs; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def add(_arg0, _arg1); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def ceil(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def clone; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def coerce(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def div(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def divmod(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def dup; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def eql?(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def exponent; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def finite?; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def fix; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def floor(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def frac; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def hash; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def infinite?; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def inspect; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def modulo(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def mult(_arg0, _arg1); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def n_significant_digits; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def nan?; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def nonzero?; end - - # call-seq: - # power(n) - # power(n, prec) - # - # Returns the value raised to the power of n. - # - # Also available as the operator **. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:97 - def power(y, prec = T.unsafe(nil)); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def precision; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def precision_scale; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def quo(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def remainder(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def round(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def scale; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def sign; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def split; end - - # Returns the square root of the value. - # - # Result has at least prec significant digits. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:212 - def sqrt(prec); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def sub(_arg0, _arg1); end - - # call-seq: - # a.to_d -> bigdecimal - # - # Returns self. - # - # require 'bigdecimal/util' - # - # d = BigDecimal("3.14") - # d.to_d # => 0.314e1 - # - # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:110 - def to_d; end - - # call-seq: - # a.to_digits -> string - # - # Converts a BigDecimal to a String of the form "nnnnnn.mmm". - # This method is deprecated; use BigDecimal#to_s("F") instead. - # - # require 'bigdecimal/util' - # - # d = BigDecimal("3.14") - # d.to_digits # => "3.14" - # - # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:90 - def to_digits; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def to_f; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def to_i; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def to_int; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def to_r; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def to_s(format = T.unsafe(nil)); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def truncate(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def zero?; end - - class << self - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def _load(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def double_fig; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def interpret_loosely(_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def limit(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def mode(*_arg0); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def save_exception_mode; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def save_limit; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:10 - def save_rounding_mode; end - end -end - -# pkg:gem/bigdecimal#lib/bigdecimal.rb:14 -module BigDecimal::Internal - class << self - # Coerce x to BigDecimal with the specified precision. - # TODO: some methods (example: BigMath.exp) require more precision than specified to coerce. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:18 - def coerce_to_bigdecimal(x, prec, method_name); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:30 - def coerce_validate_prec(prec, method_name, accept_zero: T.unsafe(nil)); end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:50 - def infinity_computation_result; end - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:57 - def nan_computation_result; end - end -end - -# Core BigMath methods for BigDecimal (log, exp) are defined here. -# Other methods (sin, cos, atan) are defined in 'bigdecimal/math.rb'. -# -# -- -# Contents: -# sqrt(x, prec) -# cbrt(x, prec) -# hypot(x, y, prec) -# sin (x, prec) -# cos (x, prec) -# tan (x, prec) -# asin(x, prec) -# acos(x, prec) -# atan(x, prec) -# atan2(y, x, prec) -# sinh (x, prec) -# cosh (x, prec) -# tanh (x, prec) -# asinh(x, prec) -# acosh(x, prec) -# atanh(x, prec) -# log2 (x, prec) -# log10(x, prec) -# log1p(x, prec) -# expm1(x, prec) -# erf (x, prec) -# erfc(x, prec) -# gamma(x, prec) -# lgamma(x, prec) -# frexp(x) -# ldexp(x, exponent) -# PI (prec) -# E (prec) == exp(1.0,prec) -# -# where: -# x, y ... BigDecimal number to be computed. -# prec ... Number of digits to be obtained. -# ++ -# -# Provides mathematical functions. -# -# Example: -# -# require "bigdecimal/math" -# -# include BigMath -# -# a = BigDecimal((PI(49)/2).to_s) -# puts sin(a,100) # => 0.9999999999...9999999986e0 -# -# pkg:gem/bigdecimal#lib/bigdecimal.rb:240 -module BigMath - private - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:310 - def _exp_taylor(x, prec); end - - # call-seq: - # BigMath.exp(decimal, numeric) -> BigDecimal - # - # Computes the value of e (the base of natural logarithms) raised to the - # power of +decimal+, to the specified number of digits of precision. - # - # If +decimal+ is infinity, returns Infinity. - # - # If +decimal+ is NaN, returns NaN. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:332 - def exp(x, prec); end - - # call-seq: - # BigMath.log(decimal, numeric) -> BigDecimal - # - # Computes the natural logarithm of +decimal+ to the specified number of - # digits of precision, +numeric+. - # - # If +decimal+ is zero or negative, raises Math::DomainError. - # - # If +decimal+ is positive infinity, returns Infinity. - # - # If +decimal+ is NaN, returns NaN. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:255 - def log(x, prec); end - - class << self - # call-seq: - # BigMath.exp(decimal, numeric) -> BigDecimal - # - # Computes the value of e (the base of natural logarithms) raised to the - # power of +decimal+, to the specified number of digits of precision. - # - # If +decimal+ is infinity, returns Infinity. - # - # If +decimal+ is NaN, returns NaN. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:332 - def exp(x, prec); end - - # call-seq: - # BigMath.log(decimal, numeric) -> BigDecimal - # - # Computes the natural logarithm of +decimal+ to the specified number of - # digits of precision, +numeric+. - # - # If +decimal+ is zero or negative, raises Math::DomainError. - # - # If +decimal+ is positive infinity, returns Infinity. - # - # If +decimal+ is NaN, returns NaN. - # - # pkg:gem/bigdecimal#lib/bigdecimal.rb:255 - def log(x, prec); end - - private - - # pkg:gem/bigdecimal#lib/bigdecimal.rb:310 - def _exp_taylor(x, prec); end - end -end - -# pkg:gem/bigdecimal#lib/bigdecimal/util.rb:141 -class Complex < ::Numeric - # call-seq: - # cmp.to_d -> bigdecimal - # cmp.to_d(precision) -> bigdecimal - # - # Returns the value as a BigDecimal. - # If the imaginary part is not +0+, an error is raised - # - # The +precision+ parameter is used to determine the number of - # significant digits for the result. When +precision+ is set to +0+, - # the number of digits to represent the float being converted is determined - # automatically. - # The default +precision+ is +0+. - # - # require 'bigdecimal' - # require 'bigdecimal/util' - # - # Complex(0.1234567, 0).to_d(4) # => 0.1235e0 - # Complex(Rational(22, 7), 0).to_d(3) # => 0.314e1 - # Complex(1, 1).to_d # raises ArgumentError - # - # See also Kernel.BigDecimal. - # - # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:164 - def to_d(precision = T.unsafe(nil)); end -end - -# pkg:gem/bigdecimal#lib/bigdecimal/util.rb:116 -class Rational < ::Numeric - # call-seq: - # rat.to_d(precision) -> bigdecimal - # - # Returns the value as a BigDecimal. - # - # The +precision+ parameter is used to determine the number of - # significant digits for the result. When +precision+ is set to +0+, - # the number of digits to represent the float being converted is determined - # automatically. - # The default +precision+ is +0+. - # - # require 'bigdecimal' - # require 'bigdecimal/util' - # - # Rational(22, 7).to_d(3) # => 0.314e1 - # - # See also Kernel.BigDecimal. - # - # pkg:gem/bigdecimal#lib/bigdecimal/util.rb:135 - def to_d(precision = T.unsafe(nil)); end -end diff --git a/sorbet/rbi/gems/date@3.5.1.rbi b/sorbet/rbi/gems/date@3.5.1.rbi deleted file mode 100644 index 2135e86..0000000 --- a/sorbet/rbi/gems/date@3.5.1.rbi +++ /dev/null @@ -1,391 +0,0 @@ -# typed: false - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `date` gem. -# Please instead update this file by running `bin/tapioca gem date`. - - -# pkg:gem/date#lib/date.rb:4 -class Date - include ::Comparable - - # pkg:gem/date#lib/date.rb:4 - def initialize(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def +(other); end - - # pkg:gem/date#lib/date.rb:4 - def -(other); end - - # pkg:gem/date#lib/date.rb:4 - def <<(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def <=>(other); end - - # pkg:gem/date#lib/date.rb:4 - def ===(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def >>(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def ajd; end - - # pkg:gem/date#lib/date.rb:4 - def amjd; end - - # pkg:gem/date#lib/date.rb:4 - def asctime; end - - # pkg:gem/date#lib/date.rb:4 - def ctime; end - - # pkg:gem/date#lib/date.rb:4 - def cwday; end - - # pkg:gem/date#lib/date.rb:4 - def cweek; end - - # pkg:gem/date#lib/date.rb:4 - def cwyear; end - - # pkg:gem/date#lib/date.rb:4 - def day; end - - # pkg:gem/date#lib/date.rb:4 - def day_fraction; end - - # pkg:gem/date#lib/date.rb:4 - def deconstruct_keys(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def downto(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def england; end - - # pkg:gem/date#lib/date.rb:4 - def eql?(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def friday?; end - - # pkg:gem/date#lib/date.rb:4 - def gregorian; end - - # pkg:gem/date#lib/date.rb:4 - def gregorian?; end - - # pkg:gem/date#lib/date.rb:4 - def hash; end - - # pkg:gem/date#lib/date.rb:4 - def httpdate; end - - # call-seq: - # infinite? -> false - # - # Returns +false+ - # - # pkg:gem/date#lib/date.rb:13 - def infinite?; end - - # pkg:gem/date#lib/date.rb:4 - def inspect; end - - # pkg:gem/date#lib/date.rb:4 - def iso8601; end - - # pkg:gem/date#lib/date.rb:4 - def italy; end - - # pkg:gem/date#lib/date.rb:4 - def jd; end - - # pkg:gem/date#lib/date.rb:4 - def jisx0301; end - - # pkg:gem/date#lib/date.rb:4 - def julian; end - - # pkg:gem/date#lib/date.rb:4 - def julian?; end - - # pkg:gem/date#lib/date.rb:4 - def ld; end - - # pkg:gem/date#lib/date.rb:4 - def leap?; end - - # pkg:gem/date#lib/date.rb:4 - def marshal_dump; end - - # pkg:gem/date#lib/date.rb:4 - def marshal_load(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def mday; end - - # pkg:gem/date#lib/date.rb:4 - def mjd; end - - # pkg:gem/date#lib/date.rb:4 - def mon; end - - # pkg:gem/date#lib/date.rb:4 - def monday?; end - - # pkg:gem/date#lib/date.rb:4 - def month; end - - # pkg:gem/date#lib/date.rb:4 - def new_start(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def next; end - - # pkg:gem/date#lib/date.rb:4 - def next_day(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def next_month(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def next_year(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def prev_day(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def prev_month(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def prev_year(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def rfc2822; end - - # pkg:gem/date#lib/date.rb:4 - def rfc3339; end - - # pkg:gem/date#lib/date.rb:4 - def rfc822; end - - # pkg:gem/date#lib/date.rb:4 - def saturday?; end - - # pkg:gem/date#lib/date.rb:4 - def start; end - - # pkg:gem/date#lib/date.rb:4 - def step(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def strftime(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def succ; end - - # pkg:gem/date#lib/date.rb:4 - def sunday?; end - - # pkg:gem/date#lib/date.rb:4 - def thursday?; end - - # pkg:gem/date#lib/date.rb:4 - def to_date; end - - # pkg:gem/date#lib/date.rb:4 - def to_datetime; end - - # pkg:gem/date#lib/date.rb:4 - def to_s; end - - # pkg:gem/date#lib/date.rb:4 - def to_time(form = T.unsafe(nil)); end - - # pkg:gem/date#lib/date.rb:4 - def tuesday?; end - - # pkg:gem/date#lib/date.rb:4 - def upto(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def wday; end - - # pkg:gem/date#lib/date.rb:4 - def wednesday?; end - - # pkg:gem/date#lib/date.rb:4 - def xmlschema; end - - # pkg:gem/date#lib/date.rb:4 - def yday; end - - # pkg:gem/date#lib/date.rb:4 - def year; end - - private - - # pkg:gem/date#lib/date.rb:4 - def hour; end - - # pkg:gem/date#lib/date.rb:4 - def initialize_copy(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def min; end - - # pkg:gem/date#lib/date.rb:4 - def minute; end - - # pkg:gem/date#lib/date.rb:4 - def sec; end - - # pkg:gem/date#lib/date.rb:4 - def second; end - - class << self - # pkg:gem/date#lib/date.rb:4 - def _httpdate(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _iso8601(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _jisx0301(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _load(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _parse(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _rfc2822(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _rfc3339(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _rfc822(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _strptime(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def _xmlschema(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def civil(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def commercial(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def gregorian_leap?(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def httpdate(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def iso8601(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def jd(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def jisx0301(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def julian_leap?(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def leap?(_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def ordinal(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def parse(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def rfc2822(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def rfc3339(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def rfc822(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def strptime(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def today(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def valid_civil?(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def valid_commercial?(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def valid_date?(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def valid_jd?(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def valid_ordinal?(*_arg0); end - - # pkg:gem/date#lib/date.rb:4 - def xmlschema(*_arg0); end - end -end - -# pkg:gem/date#lib/date.rb:17 -class Date::Infinity < ::Numeric - # pkg:gem/date#lib/date.rb:19 - def initialize(d = T.unsafe(nil)); end - - # pkg:gem/date#lib/date.rb:33 - def +@; end - - # pkg:gem/date#lib/date.rb:32 - def -@; end - - # pkg:gem/date#lib/date.rb:35 - def <=>(other); end - - # pkg:gem/date#lib/date.rb:30 - def abs; end - - # pkg:gem/date#lib/date.rb:51 - def coerce(other); end - - # pkg:gem/date#lib/date.rb:26 - def finite?; end - - # pkg:gem/date#lib/date.rb:27 - def infinite?; end - - # pkg:gem/date#lib/date.rb:28 - def nan?; end - - # pkg:gem/date#lib/date.rb:59 - def to_f; end - - # pkg:gem/date#lib/date.rb:25 - def zero?; end - - protected - - # pkg:gem/date#lib/date.rb:21 - def d; end -end - -# pkg:gem/date#lib/date.rb:7 -Date::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/drb@2.2.3.rbi b/sorbet/rbi/gems/drb@2.2.3.rbi deleted file mode 100644 index a8dd54b..0000000 --- a/sorbet/rbi/gems/drb@2.2.3.rbi +++ /dev/null @@ -1,1589 +0,0 @@ -# typed: false - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `drb` gem. -# Please instead update this file by running `bin/tapioca gem drb`. - - -# == Overview -# -# dRuby is a distributed object system for Ruby. It is written in -# pure Ruby and uses its own protocol. No add-in services are needed -# beyond those provided by the Ruby runtime, such as TCP sockets. It -# does not rely on or interoperate with other distributed object -# systems such as CORBA, RMI, or .NET. -# -# dRuby allows methods to be called in one Ruby process upon a Ruby -# object located in another Ruby process, even on another machine. -# References to objects can be passed between processes. Method -# arguments and return values are dumped and loaded in marshalled -# format. All of this is done transparently to both the caller of the -# remote method and the object that it is called upon. -# -# An object in a remote process is locally represented by a -# DRb::DRbObject instance. This acts as a sort of proxy for the -# remote object. Methods called upon this DRbObject instance are -# forwarded to its remote object. This is arranged dynamically at run -# time. There are no statically declared interfaces for remote -# objects, such as CORBA's IDL. -# -# dRuby calls made into a process are handled by a DRb::DRbServer -# instance within that process. This reconstitutes the method call, -# invokes it upon the specified local object, and returns the value to -# the remote caller. Any object can receive calls over dRuby. There -# is no need to implement a special interface, or mixin special -# functionality. Nor, in the general case, does an object need to -# explicitly register itself with a DRbServer in order to receive -# dRuby calls. -# -# One process wishing to make dRuby calls upon another process must -# somehow obtain an initial reference to an object in the remote -# process by some means other than as the return value of a remote -# method call, as there is initially no remote object reference it can -# invoke a method upon. This is done by attaching to the server by -# URI. Each DRbServer binds itself to a URI such as -# 'druby://example.com:8787'. A DRbServer can have an object attached -# to it that acts as the server's *front* *object*. A DRbObject can -# be explicitly created from the server's URI. This DRbObject's -# remote object will be the server's front object. This front object -# can then return references to other Ruby objects in the DRbServer's -# process. -# -# Method calls made over dRuby behave largely the same as normal Ruby -# method calls made within a process. Method calls with blocks are -# supported, as are raising exceptions. In addition to a method's -# standard errors, a dRuby call may also raise one of the -# dRuby-specific errors, all of which are subclasses of DRb::DRbError. -# -# Any type of object can be passed as an argument to a dRuby call or -# returned as its return value. By default, such objects are dumped -# or marshalled at the local end, then loaded or unmarshalled at the -# remote end. The remote end therefore receives a copy of the local -# object, not a distributed reference to it; methods invoked upon this -# copy are executed entirely in the remote process, not passed on to -# the local original. This has semantics similar to pass-by-value. -# -# However, if an object cannot be marshalled, a dRuby reference to it -# is passed or returned instead. This will turn up at the remote end -# as a DRbObject instance. All methods invoked upon this remote proxy -# are forwarded to the local object, as described in the discussion of -# DRbObjects. This has semantics similar to the normal Ruby -# pass-by-reference. -# -# The easiest way to signal that we want an otherwise marshallable -# object to be passed or returned as a DRbObject reference, rather -# than marshalled and sent as a copy, is to include the -# DRb::DRbUndumped mixin module. -# -# dRuby supports calling remote methods with blocks. As blocks (or -# rather the Proc objects that represent them) are not marshallable, -# the block executes in the local, not the remote, context. Each -# value yielded to the block is passed from the remote object to the -# local block, then the value returned by each block invocation is -# passed back to the remote execution context to be collected, before -# the collected values are finally returned to the local context as -# the return value of the method invocation. -# -# == Examples of usage -# -# For more dRuby samples, see the +samples+ directory in the full -# dRuby distribution. -# -# === dRuby in client/server mode -# -# This illustrates setting up a simple client-server drb -# system. Run the server and client code in different terminals, -# starting the server code first. -# -# ==== Server code -# -# require 'drb/drb' -# -# # The URI for the server to connect to -# URI="druby://localhost:8787" -# -# class TimeServer -# -# def get_current_time -# return Time.now -# end -# -# end -# -# # The object that handles requests on the server -# FRONT_OBJECT=TimeServer.new -# -# DRb.start_service(URI, FRONT_OBJECT) -# # Wait for the drb server thread to finish before exiting. -# DRb.thread.join -# -# ==== Client code -# -# require 'drb/drb' -# -# # The URI to connect to -# SERVER_URI="druby://localhost:8787" -# -# # Start a local DRbServer to handle callbacks. -# # -# # Not necessary for this small example, but will be required -# # as soon as we pass a non-marshallable object as an argument -# # to a dRuby call. -# # -# # Note: this must be called at least once per process to take any effect. -# # This is particularly important if your application forks. -# DRb.start_service -# -# timeserver = DRbObject.new_with_uri(SERVER_URI) -# puts timeserver.get_current_time -# -# === Remote objects under dRuby -# -# This example illustrates returning a reference to an object -# from a dRuby call. The Logger instances live in the server -# process. References to them are returned to the client process, -# where methods can be invoked upon them. These methods are -# executed in the server process. -# -# ==== Server code -# -# require 'drb/drb' -# -# URI="druby://localhost:8787" -# -# class Logger -# -# # Make dRuby send Logger instances as dRuby references, -# # not copies. -# include DRb::DRbUndumped -# -# def initialize(n, fname) -# @name = n -# @filename = fname -# end -# -# def log(message) -# File.open(@filename, "a") do |f| -# f.puts("#{Time.now}: #{@name}: #{message}") -# end -# end -# -# end -# -# # We have a central object for creating and retrieving loggers. -# # This retains a local reference to all loggers created. This -# # is so an existing logger can be looked up by name, but also -# # to prevent loggers from being garbage collected. A dRuby -# # reference to an object is not sufficient to prevent it being -# # garbage collected! -# class LoggerFactory -# -# def initialize(bdir) -# @basedir = bdir -# @loggers = {} -# end -# -# def get_logger(name) -# if !@loggers.has_key? name -# # make the filename safe, then declare it to be so -# fname = name.gsub(/[.\/\\\:]/, "_") -# @loggers[name] = Logger.new(name, @basedir + "/" + fname) -# end -# return @loggers[name] -# end -# -# end -# -# FRONT_OBJECT=LoggerFactory.new("/tmp/dlog") -# -# DRb.start_service(URI, FRONT_OBJECT) -# DRb.thread.join -# -# ==== Client code -# -# require 'drb/drb' -# -# SERVER_URI="druby://localhost:8787" -# -# DRb.start_service -# -# log_service=DRbObject.new_with_uri(SERVER_URI) -# -# ["loga", "logb", "logc"].each do |logname| -# -# logger=log_service.get_logger(logname) -# -# logger.log("Hello, world!") -# logger.log("Goodbye, world!") -# logger.log("=== EOT ===") -# -# end -# -# == Security -# -# As with all network services, security needs to be considered when -# using dRuby. By allowing external access to a Ruby object, you are -# not only allowing outside clients to call the methods you have -# defined for that object, but by default to execute arbitrary Ruby -# code on your server. Consider the following: -# -# # !!! UNSAFE CODE !!! -# ro = DRbObject::new_with_uri("druby://your.server.com:8989") -# class << ro -# undef :instance_eval # force call to be passed to remote object -# end -# ro.instance_eval("`rm -rf *`") -# -# The dangers posed by instance_eval and friends are such that a -# DRbServer should only be used when clients are trusted. -# -# A DRbServer can be configured with an access control list to -# selectively allow or deny access from specified IP addresses. The -# main druby distribution provides the ACL class for this purpose. In -# general, this mechanism should only be used alongside, rather than -# as a replacement for, a good firewall. -# -# == dRuby internals -# -# dRuby is implemented using three main components: a remote method -# call marshaller/unmarshaller; a transport protocol; and an -# ID-to-object mapper. The latter two can be directly, and the first -# indirectly, replaced, in order to provide different behaviour and -# capabilities. -# -# Marshalling and unmarshalling of remote method calls is performed by -# a DRb::DRbMessage instance. This uses the Marshal module to dump -# the method call before sending it over the transport layer, then -# reconstitute it at the other end. There is normally no need to -# replace this component, and no direct way is provided to do so. -# However, it is possible to implement an alternative marshalling -# scheme as part of an implementation of the transport layer. -# -# The transport layer is responsible for opening client and server -# network connections and forwarding dRuby request across them. -# Normally, it uses DRb::DRbMessage internally to manage marshalling -# and unmarshalling. The transport layer is managed by -# DRb::DRbProtocol. Multiple protocols can be installed in -# DRbProtocol at the one time; selection between them is determined by -# the scheme of a dRuby URI. The default transport protocol is -# selected by the scheme 'druby:', and implemented by -# DRb::DRbTCPSocket. This uses plain TCP/IP sockets for -# communication. An alternative protocol, using UNIX domain sockets, -# is implemented by DRb::DRbUNIXSocket in the file drb/unix.rb, and -# selected by the scheme 'drbunix:'. A sample implementation over -# HTTP can be found in the samples accompanying the main dRuby -# distribution. -# -# The ID-to-object mapping component maps dRuby object ids to the -# objects they refer to, and vice versa. The implementation to use -# can be specified as part of a DRb::DRbServer's configuration. The -# default implementation is provided by DRb::DRbIdConv. It uses an -# object's ObjectSpace id as its dRuby id. This means that the dRuby -# reference to that object only remains meaningful for the lifetime of -# the object's process and the lifetime of the object within that -# process. A modified implementation is provided by DRb::TimerIdConv -# in the file drb/timeridconv.rb. This implementation retains a local -# reference to all objects exported over dRuby for a configurable -# period of time (defaulting to ten minutes), to prevent them being -# garbage-collected within this time. Another sample implementation -# is provided in sample/name.rb in the main dRuby distribution. This -# allows objects to specify their own id or "name". A dRuby reference -# can be made persistent across processes by having each process -# register an object using the same dRuby name. -# -# pkg:gem/drb#lib/drb/eq.rb:2 -module DRb - private - - # Get the configuration of the current server. - # - # If there is no current server, this returns the default configuration. - # See #current_server and DRbServer::make_config. - # - # pkg:gem/drb#lib/drb/drb.rb:1882 - def config; end - - # Get the 'current' server. - # - # In the context of execution taking place within the main - # thread of a dRuby server (typically, as a result of a remote - # call on the server or one of its objects), the current - # server is that server. Otherwise, the current server is - # the primary server. - # - # If the above rule fails to find a server, a DRbServerNotFound - # error is raised. - # - # pkg:gem/drb#lib/drb/drb.rb:1839 - def current_server; end - - # Retrieves the server with the given +uri+. - # - # See also regist_server and remove_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1984 - def fetch_server(uri); end - - # Get the front object of the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1893 - def front; end - - # Is +uri+ the URI for the current local server? - # - # pkg:gem/drb#lib/drb/drb.rb:1872 - def here?(uri); end - - # Set the default ACL to +acl+. - # - # See DRb::DRbServer.default_acl. - # - # pkg:gem/drb#lib/drb/drb.rb:1938 - def install_acl(acl); end - - # Set the default id conversion object. - # - # This is expected to be an instance such as DRb::DRbIdConv that responds to - # #to_id and #to_obj that can convert objects to and from DRb references. - # - # See DRbServer#default_id_conv. - # - # pkg:gem/drb#lib/drb/drb.rb:1930 - def install_id_conv(idconv); end - - # pkg:gem/drb#lib/drb/drb.rb:1944 - def mutex; end - - # The primary local dRuby server. - # - # This is the server created by the #start_service call. - # - # pkg:gem/drb#lib/drb/drb.rb:1826 - def primary_server; end - - # The primary local dRuby server. - # - # This is the server created by the #start_service call. - # - # pkg:gem/drb#lib/drb/drb.rb:1826 - def primary_server=(_arg0); end - - # Registers +server+ with DRb. - # - # This is called when a new DRb::DRbServer is created. - # - # If there is no primary server then +server+ becomes the primary server. - # - # Example: - # - # require 'drb' - # - # s = DRb::DRbServer.new # automatically calls regist_server - # DRb.fetch_server s.uri #=> # - # - # pkg:gem/drb#lib/drb/drb.rb:1962 - def regist_server(server); end - - # Removes +server+ from the list of registered servers. - # - # pkg:gem/drb#lib/drb/drb.rb:1971 - def remove_server(server); end - - # Start a dRuby server locally. - # - # The new dRuby server will become the primary server, even - # if another server is currently the primary server. - # - # +uri+ is the URI for the server to bind to. If nil, - # the server will bind to random port on the default local host - # name and use the default dRuby protocol. - # - # +front+ is the server's front object. This may be nil. - # - # +config+ is the configuration for the new server. This may - # be nil. - # - # See DRbServer::new. - # - # pkg:gem/drb#lib/drb/drb.rb:1818 - def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end - - # Stop the local dRuby server. - # - # This operates on the primary server. If there is no primary - # server currently running, it is a noop. - # - # pkg:gem/drb#lib/drb/drb.rb:1851 - def stop_service; end - - # Get the thread of the primary server. - # - # This returns nil if there is no primary server. See #primary_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1919 - def thread; end - - # Get a reference id for an object using the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1910 - def to_id(obj); end - - # Convert a reference into an object using the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1902 - def to_obj(ref); end - - # Get the URI defining the local dRuby space. - # - # This is the URI of the current server. See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1860 - def uri; end - - class << self - # Get the configuration of the current server. - # - # If there is no current server, this returns the default configuration. - # See #current_server and DRbServer::make_config. - # - # pkg:gem/drb#lib/drb/drb.rb:1887 - def config; end - - # Get the 'current' server. - # - # In the context of execution taking place within the main - # thread of a dRuby server (typically, as a result of a remote - # call on the server or one of its objects), the current - # server is that server. Otherwise, the current server is - # the primary server. - # - # If the above rule fails to find a server, a DRbServerNotFound - # error is raised. - # - # pkg:gem/drb#lib/drb/drb.rb:1845 - def current_server; end - - # Retrieves the server with the given +uri+. - # - # See also regist_server and remove_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1987 - def fetch_server(uri); end - - # Get the front object of the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1896 - def front; end - - # Is +uri+ the URI for the current local server? - # - # pkg:gem/drb#lib/drb/drb.rb:1876 - def here?(uri); end - - # Set the default ACL to +acl+. - # - # See DRb::DRbServer.default_acl. - # - # pkg:gem/drb#lib/drb/drb.rb:1941 - def install_acl(acl); end - - # Set the default id conversion object. - # - # This is expected to be an instance such as DRb::DRbIdConv that responds to - # #to_id and #to_obj that can convert objects to and from DRb references. - # - # See DRbServer#default_id_conv. - # - # pkg:gem/drb#lib/drb/drb.rb:1933 - def install_id_conv(idconv); end - - # pkg:gem/drb#lib/drb/drb.rb:1947 - def mutex; end - - # The primary local dRuby server. - # - # This is the server created by the #start_service call. - # - # pkg:gem/drb#lib/drb/drb.rb:1827 - def primary_server; end - - # pkg:gem/drb#lib/drb/drb.rb:1827 - def primary_server=(_arg0); end - - # Registers +server+ with DRb. - # - # This is called when a new DRb::DRbServer is created. - # - # If there is no primary server then +server+ becomes the primary server. - # - # Example: - # - # require 'drb' - # - # s = DRb::DRbServer.new # automatically calls regist_server - # DRb.fetch_server s.uri #=> # - # - # pkg:gem/drb#lib/drb/drb.rb:1968 - def regist_server(server); end - - # Removes +server+ from the list of registered servers. - # - # pkg:gem/drb#lib/drb/drb.rb:1979 - def remove_server(server); end - - # Start a dRuby server locally. - # - # The new dRuby server will become the primary server, even - # if another server is currently the primary server. - # - # +uri+ is the URI for the server to bind to. If nil, - # the server will bind to random port on the default local host - # name and use the default dRuby protocol. - # - # +front+ is the server's front object. This may be nil. - # - # +config+ is the configuration for the new server. This may - # be nil. - # - # See DRbServer::new. - # - # pkg:gem/drb#lib/drb/drb.rb:1821 - def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end - - # Stop the local dRuby server. - # - # This operates on the primary server. If there is no primary - # server currently running, it is a noop. - # - # pkg:gem/drb#lib/drb/drb.rb:1855 - def stop_service; end - - # Get the thread of the primary server. - # - # This returns nil if there is no primary server. See #primary_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1922 - def thread; end - - # Get a reference id for an object using the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1913 - def to_id(obj); end - - # Convert a reference into an object using the current server. - # - # This raises a DRbServerNotFound error if there is no current server. - # See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1914 - def to_obj(ref); end - - # Get the URI defining the local dRuby space. - # - # This is the URI of the current server. See #current_server. - # - # pkg:gem/drb#lib/drb/drb.rb:1869 - def uri; end - end -end - -# This is an internal singleton instance. This must not be used -# by users. -# -# pkg:gem/drb#lib/drb/drb.rb:382 -DRb::DRB_OBJECT_SPACE = T.let(T.unsafe(nil), DRb::DRbObjectSpace) - -# An Array wrapper that can be sent to another server via DRb. -# -# All entries in the array will be dumped or be references that point to -# the local server. -# -# pkg:gem/drb#lib/drb/drb.rb:546 -class DRb::DRbArray - # Creates a new DRbArray that either dumps or wraps all the items in the - # Array +ary+ so they can be loaded by a remote DRb server. - # - # pkg:gem/drb#lib/drb/drb.rb:551 - def initialize(ary); end - - # pkg:gem/drb#lib/drb/drb.rb:570 - def _dump(lv); end - - class << self - # pkg:gem/drb#lib/drb/drb.rb:566 - def _load(s); end - end -end - -# Class handling the connection between a DRbObject and the -# server the real object lives on. -# -# This class maintains a pool of connections, to reduce the -# overhead of starting and closing down connections for each -# method call. -# -# This class is used internally by DRbObject. The user does -# not normally need to deal with it directly. -# -# pkg:gem/drb#lib/drb/drb.rb:1284 -class DRb::DRbConn - # pkg:gem/drb#lib/drb/drb.rb:1345 - def initialize(remote_uri); end - - # pkg:gem/drb#lib/drb/drb.rb:1361 - def alive?; end - - # pkg:gem/drb#lib/drb/drb.rb:1356 - def close; end - - # pkg:gem/drb#lib/drb/drb.rb:1351 - def send_message(ref, msg_id, arg, block); end - - # pkg:gem/drb#lib/drb/drb.rb:1349 - def uri; end - - class << self - # pkg:gem/drb#lib/drb/drb.rb:1287 - def make_pool; end - - # pkg:gem/drb#lib/drb/drb.rb:1325 - def open(remote_uri); end - - # pkg:gem/drb#lib/drb/drb.rb:1320 - def stop_pool; end - end -end - -# Class responsible for converting between an object and its id. -# -# This, the default implementation, uses an object's local ObjectSpace -# __id__ as its id. This means that an object's identification over -# drb remains valid only while that object instance remains alive -# within the server runtime. -# -# For alternative mechanisms, see DRb::TimerIdConv in drb/timeridconv.rb -# and DRbNameIdConv in sample/name.rb in the full drb distribution. -# -# pkg:gem/drb#lib/drb/drb.rb:393 -class DRb::DRbIdConv - # Convert an object into a reference id. - # - # This implementation returns the object's __id__ in the local - # object space. - # - # pkg:gem/drb#lib/drb/drb.rb:407 - def to_id(obj); end - - # Convert an object reference id to an object. - # - # This implementation looks up the reference id in the local object - # space and returns the object it refers to. - # - # pkg:gem/drb#lib/drb/drb.rb:399 - def to_obj(ref); end -end - -# Handler for sending and receiving drb messages. -# -# This takes care of the low-level marshalling and unmarshalling -# of drb requests and responses sent over the wire between server -# and client. This relieves the implementor of a new drb -# protocol layer with having to deal with these details. -# -# The user does not have to directly deal with this object in -# normal use. -# -# pkg:gem/drb#lib/drb/drb.rb:584 -class DRb::DRbMessage - # pkg:gem/drb#lib/drb/drb.rb:585 - def initialize(config); end - - # pkg:gem/drb#lib/drb/drb.rb:590 - def dump(obj, error = T.unsafe(nil)); end - - # pkg:gem/drb#lib/drb/drb.rb:607 - def load(soc); end - - # pkg:gem/drb#lib/drb/drb.rb:667 - def recv_reply(stream); end - - # pkg:gem/drb#lib/drb/drb.rb:647 - def recv_request(stream); end - - # pkg:gem/drb#lib/drb/drb.rb:661 - def send_reply(stream, succ, result); end - - # pkg:gem/drb#lib/drb/drb.rb:633 - def send_request(stream, ref, msg_id, arg, b); end - - private - - # pkg:gem/drb#lib/drb/drb.rb:674 - def make_proxy(obj, error = T.unsafe(nil)); end -end - -# Object wrapping a reference to a remote drb object. -# -# Method calls on this object are relayed to the remote -# object that this object is a stub for. -# -# pkg:gem/drb#lib/drb/eq.rb:3 -class DRb::DRbObject - # Create a new remote object stub. - # - # +obj+ is the (local) object we want to create a stub for. Normally - # this is +nil+. +uri+ is the URI of the remote object that this - # will be a stub for. - # - # pkg:gem/drb#lib/drb/drb.rb:1117 - def initialize(obj, uri = T.unsafe(nil)); end - - # pkg:gem/drb#lib/drb/eq.rb:4 - def ==(other); end - - # Get the reference of the object, if local. - # - # pkg:gem/drb#lib/drb/drb.rb:1143 - def __drbref; end - - # Get the URI of the remote object. - # - # pkg:gem/drb#lib/drb/drb.rb:1138 - def __drburi; end - - # Marshall this object. - # - # The URI and ref of the object are marshalled. - # - # pkg:gem/drb#lib/drb/drb.rb:1108 - def _dump(lv); end - - # pkg:gem/drb#lib/drb/eq.rb:13 - def eql?(other); end - - # pkg:gem/drb#lib/drb/eq.rb:9 - def hash; end - - # pkg:gem/drb#lib/drb/drb.rb:1163 - def method_missing(msg_id, *a, **_arg2, &b); end - - # pkg:gem/drb#lib/drb/drb.rb:1215 - def pretty_print(q); end - - # pkg:gem/drb#lib/drb/drb.rb:1219 - def pretty_print_cycle(q); end - - # Routes respond_to? to the referenced remote object. - # - # pkg:gem/drb#lib/drb/drb.rb:1151 - def respond_to?(msg_id, priv = T.unsafe(nil)); end - - class << self - # Unmarshall a marshalled DRbObject. - # - # If the referenced object is located within the local server, then - # the object itself is returned. Otherwise, a new DRbObject is - # created to act as a stub for the remote referenced object. - # - # pkg:gem/drb#lib/drb/drb.rb:1079 - def _load(s); end - - # Creates a DRb::DRbObject given the reference information to the remote - # host +uri+ and object +ref+. - # - # pkg:gem/drb#lib/drb/drb.rb:1093 - def new_with(uri, ref); end - - # Create a new DRbObject from a URI alone. - # - # pkg:gem/drb#lib/drb/drb.rb:1101 - def new_with_uri(uri); end - - # Returns a modified backtrace from +result+ with the +uri+ where each call - # in the backtrace came from. - # - # pkg:gem/drb#lib/drb/drb.rb:1201 - def prepare_backtrace(uri, result); end - - # Given the +uri+ of another host executes the block provided. - # - # pkg:gem/drb#lib/drb/drb.rb:1188 - def with_friend(uri); end - end -end - -# pkg:gem/drb#lib/drb/drb.rb:351 -class DRb::DRbObjectSpace - include ::MonitorMixin - - # pkg:gem/drb#lib/drb/drb.rb:357 - def initialize; end - - # pkg:gem/drb#lib/drb/drb.rb:362 - def to_id(obj); end - - # pkg:gem/drb#lib/drb/drb.rb:369 - def to_obj(ref); end -end - -# Module managing the underlying network protocol(s) used by drb. -# -# By default, drb uses the DRbTCPSocket protocol. Other protocols -# can be defined. A protocol must define the following class methods: -# -# [open(uri, config)] Open a client connection to the server at +uri+, -# using configuration +config+. Return a protocol -# instance for this connection. -# [open_server(uri, config)] Open a server listening at +uri+, -# using configuration +config+. Return a -# protocol instance for this listener. -# [uri_option(uri, config)] Take a URI, possibly containing an option -# component (e.g. a trailing '?param=val'), -# and return a [uri, option] tuple. -# -# All of these methods should raise a DRbBadScheme error if the URI -# does not identify the protocol they support (e.g. "druby:" for -# the standard Ruby protocol). This is how the DRbProtocol module, -# given a URI, determines which protocol implementation serves that -# protocol. -# -# The protocol instance returned by #open_server must have the -# following methods: -# -# [accept] Accept a new connection to the server. Returns a protocol -# instance capable of communicating with the client. -# [close] Close the server connection. -# [uri] Get the URI for this server. -# -# The protocol instance returned by #open must have the following methods: -# -# [send_request (ref, msg_id, arg, b)] -# Send a request to +ref+ with the given message id and arguments. -# This is most easily implemented by calling DRbMessage.send_request, -# providing a stream that sits on top of the current protocol. -# [recv_reply] -# Receive a reply from the server and return it as a [success-boolean, -# reply-value] pair. This is most easily implemented by calling -# DRb.recv_reply, providing a stream that sits on top of the -# current protocol. -# [alive?] -# Is this connection still alive? -# [close] -# Close this connection. -# -# The protocol instance returned by #open_server().accept() must have -# the following methods: -# -# [recv_request] -# Receive a request from the client and return a [object, message, -# args, block] tuple. This is most easily implemented by calling -# DRbMessage.recv_request, providing a stream that sits on top of -# the current protocol. -# [send_reply(succ, result)] -# Send a reply to the client. This is most easily implemented -# by calling DRbMessage.send_reply, providing a stream that sits -# on top of the current protocol. -# [close] -# Close this connection. -# -# A new protocol is registered with the DRbProtocol module using -# the add_protocol method. -# -# For examples of other protocols, see DRbUNIXSocket in drb/unix.rb, -# and HTTP0 in sample/http0.rb and sample/http0serv.rb in the full -# drb distribution. -# -# pkg:gem/drb#lib/drb/drb.rb:749 -module DRb::DRbProtocol - private - - # Add a new protocol to the DRbProtocol module. - # - # pkg:gem/drb#lib/drb/drb.rb:752 - def add_protocol(prot); end - - # pkg:gem/drb#lib/drb/drb.rb:830 - def auto_load(uri); end - - # Open a client connection to +uri+ with the configuration +config+. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to open the URI. Each protocol signals that it does not handle that - # URI by raising a DRbBadScheme error. If no protocol recognises the - # URI, then a DRbBadURI error is raised. If a protocol accepts the - # URI, but an error occurs in opening it, a DRbConnError is raised. - # - # pkg:gem/drb#lib/drb/drb.rb:764 - def open(uri, config, first = T.unsafe(nil)); end - - # Open a server listening for connections at +uri+ with - # configuration +config+. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to open a server at the URI. Each protocol signals that it does - # not handle that URI by raising a DRbBadScheme error. If no protocol - # recognises the URI, then a DRbBadURI error is raised. If a protocol - # accepts the URI, but an error occurs in opening it, the underlying - # error is passed on to the caller. - # - # pkg:gem/drb#lib/drb/drb.rb:792 - def open_server(uri, config, first = T.unsafe(nil)); end - - # Parse +uri+ into a [uri, option] pair. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to parse the URI. Each protocol signals that it does not handle that - # URI by raising a DRbBadScheme error. If no protocol recognises the - # URI, then a DRbBadURI error is raised. - # - # pkg:gem/drb#lib/drb/drb.rb:813 - def uri_option(uri, config, first = T.unsafe(nil)); end - - class << self - # Add a new protocol to the DRbProtocol module. - # - # pkg:gem/drb#lib/drb/drb.rb:755 - def add_protocol(prot); end - - # pkg:gem/drb#lib/drb/drb.rb:835 - def auto_load(uri); end - - # Open a client connection to +uri+ with the configuration +config+. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to open the URI. Each protocol signals that it does not handle that - # URI by raising a DRbBadScheme error. If no protocol recognises the - # URI, then a DRbBadURI error is raised. If a protocol accepts the - # URI, but an error occurs in opening it, a DRbConnError is raised. - # - # pkg:gem/drb#lib/drb/drb.rb:781 - def open(uri, config, first = T.unsafe(nil)); end - - # Open a server listening for connections at +uri+ with - # configuration +config+. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to open a server at the URI. Each protocol signals that it does - # not handle that URI by raising a DRbBadScheme error. If no protocol - # recognises the URI, then a DRbBadURI error is raised. If a protocol - # accepts the URI, but an error occurs in opening it, the underlying - # error is passed on to the caller. - # - # pkg:gem/drb#lib/drb/drb.rb:805 - def open_server(uri, config, first = T.unsafe(nil)); end - - # Parse +uri+ into a [uri, option] pair. - # - # The DRbProtocol module asks each registered protocol in turn to - # try to parse the URI. Each protocol signals that it does not handle that - # URI by raising a DRbBadScheme error. If no protocol recognises the - # URI, then a DRbBadURI error is raised. - # - # pkg:gem/drb#lib/drb/drb.rb:828 - def uri_option(uri, config, first = T.unsafe(nil)); end - end -end - -# An exception wrapping an error object -# -# pkg:gem/drb#lib/drb/drb.rb:459 -class DRb::DRbRemoteError < ::DRb::DRbError - # Creates a new remote error that wraps the Exception +error+ - # - # pkg:gem/drb#lib/drb/drb.rb:462 - def initialize(error); end - - # the class of the error, as a string. - # - # pkg:gem/drb#lib/drb/drb.rb:469 - def reason; end -end - -# Class representing a drb server instance. -# -# A DRbServer must be running in the local process before any incoming -# dRuby calls can be accepted, or any local objects can be passed as -# dRuby references to remote processes, even if those local objects are -# never actually called remotely. You do not need to start a DRbServer -# in the local process if you are only making outgoing dRuby calls -# passing marshalled parameters. -# -# Unless multiple servers are being used, the local DRbServer is normally -# started by calling DRb.start_service. -# -# pkg:gem/drb#lib/drb/drb.rb:1378 -class DRb::DRbServer - # Create a new DRbServer instance. - # - # +uri+ is the URI to bind to. This is normally of the form - # 'druby://:' where is a hostname of - # the local machine. If nil, then the system's default hostname - # will be bound to, on a port selected by the system; these value - # can be retrieved from the +uri+ attribute. 'druby:' specifies - # the default dRuby transport protocol: another protocol, such - # as 'drbunix:', can be specified instead. - # - # +front+ is the front object for the server, that is, the object - # to which remote method calls on the server will be passed. If - # nil, then the server will not accept remote method calls. - # - # If +config_or_acl+ is a hash, it is the configuration to - # use for this server. The following options are recognised: - # - # :idconv :: an id-to-object conversion object. This defaults - # to an instance of the class DRb::DRbIdConv. - # :verbose :: if true, all unsuccessful remote calls on objects - # in the server will be logged to $stdout. false - # by default. - # :tcp_acl :: the access control list for this server. See - # the ACL class from the main dRuby distribution. - # :load_limit :: the maximum message size in bytes accepted by - # the server. Defaults to 25 MB (26214400). - # :argc_limit :: the maximum number of arguments to a remote - # method accepted by the server. Defaults to - # 256. - # The default values of these options can be modified on - # a class-wide basis by the class methods #default_argc_limit, - # #default_load_limit, #default_acl, #default_id_conv, - # and #verbose= - # - # If +config_or_acl+ is not a hash, but is not nil, it is - # assumed to be the access control list for this server. - # See the :tcp_acl option for more details. - # - # If no other server is currently set as the primary server, - # this will become the primary server. - # - # The server will immediately start running in its own thread. - # - # pkg:gem/drb#lib/drb/drb.rb:1479 - def initialize(uri = T.unsafe(nil), front = T.unsafe(nil), config_or_acl = T.unsafe(nil)); end - - # Is this server alive? - # - # pkg:gem/drb#lib/drb/drb.rb:1534 - def alive?; end - - # Check that a method is callable via dRuby. - # - # +obj+ is the object we want to invoke the method on. +msg_id+ is the - # method name, as a Symbol. - # - # If the method is an insecure method (see #insecure_method?) a - # SecurityError is thrown. If the method is private or undefined, - # a NameError is thrown. - # - # pkg:gem/drb#lib/drb/drb.rb:1622 - def check_insecure_method(obj, msg_id); end - - # The configuration of this DRbServer - # - # pkg:gem/drb#lib/drb/drb.rb:1521 - def config; end - - # The front object of the DRbServer. - # - # This object receives remote method calls made on the server's - # URI alone, with an object id. - # - # pkg:gem/drb#lib/drb/drb.rb:1518 - def front; end - - # Is +uri+ the URI for this server? - # - # pkg:gem/drb#lib/drb/drb.rb:1539 - def here?(uri); end - - # Stop this server. - # - # pkg:gem/drb#lib/drb/drb.rb:1544 - def stop_service; end - - # The main thread of this DRbServer. - # - # This is the thread that listens for and accepts connections - # from clients, not that handles each client's request-response - # session. - # - # pkg:gem/drb#lib/drb/drb.rb:1512 - def thread; end - - # Convert a local object to a dRuby reference. - # - # pkg:gem/drb#lib/drb/drb.rb:1561 - def to_id(obj); end - - # Convert a dRuby reference to the local object it refers to. - # - # pkg:gem/drb#lib/drb/drb.rb:1554 - def to_obj(ref); end - - # The URI of this DRbServer. - # - # pkg:gem/drb#lib/drb/drb.rb:1505 - def uri; end - - # Get whether the server is in verbose mode. - # - # In verbose mode, failed calls are logged to stdout. - # - # pkg:gem/drb#lib/drb/drb.rb:1531 - def verbose; end - - # Set whether to operate in verbose mode. - # - # In verbose mode, failed calls are logged to stdout. - # - # pkg:gem/drb#lib/drb/drb.rb:1526 - def verbose=(v); end - - private - - # Coerce an object to a string, providing our own representation if - # to_s is not defined for the object. - # - # pkg:gem/drb#lib/drb/drb.rb:1608 - def any_to_s(obj); end - - # pkg:gem/drb#lib/drb/drb.rb:1746 - def error_print(exception); end - - # Has a method been included in the list of insecure methods? - # - # pkg:gem/drb#lib/drb/drb.rb:1602 - def insecure_method?(msg_id); end - - # The main loop performed by a DRbServer's internal thread. - # - # Accepts a connection from a client, and starts up its own - # thread to handle it. This thread loops, receiving requests - # from the client, invoking them on a local object, and - # returning responses, until the client closes the connection - # or a local method call fails. - # - # pkg:gem/drb#lib/drb/drb.rb:1764 - def main_loop; end - - # Starts the DRb main loop in a new thread. - # - # pkg:gem/drb#lib/drb/drb.rb:1583 - def run; end - - # pkg:gem/drb#lib/drb/drb.rb:1568 - def shutdown; end - - class << self - # Set the default access control list to +acl+. The default ACL is +nil+. - # - # See also DRb::ACL and #new() - # - # pkg:gem/drb#lib/drb/drb.rb:1403 - def default_acl(acl); end - - # Set the default value for the :argc_limit option. - # - # See #new(). The initial default value is 256. - # - # pkg:gem/drb#lib/drb/drb.rb:1389 - def default_argc_limit(argc); end - - # Set the default value for the :id_conv option. - # - # See #new(). The initial default value is a DRbIdConv instance. - # - # pkg:gem/drb#lib/drb/drb.rb:1410 - def default_id_conv(idconv); end - - # Set the default value for the :load_limit option. - # - # See #new(). The initial default value is 25 MB. - # - # pkg:gem/drb#lib/drb/drb.rb:1396 - def default_load_limit(sz); end - - # pkg:gem/drb#lib/drb/drb.rb:1426 - def make_config(hash = T.unsafe(nil)); end - - # Get the default value of the :verbose option. - # - # pkg:gem/drb#lib/drb/drb.rb:1422 - def verbose; end - - # Set the default value of the :verbose option. - # - # See #new(). The initial default value is false. - # - # pkg:gem/drb#lib/drb/drb.rb:1417 - def verbose=(on); end - end -end - -# pkg:gem/drb#lib/drb/drb.rb:1652 -class DRb::DRbServer::InvokeMethod - # pkg:gem/drb#lib/drb/drb.rb:1653 - def initialize(drb_server, client); end - - # pkg:gem/drb#lib/drb/drb.rb:1658 - def perform; end - - private - - # pkg:gem/drb#lib/drb/drb.rb:1704 - def block_yield(x); end - - # pkg:gem/drb#lib/drb/drb.rb:1695 - def check_insecure_method; end - - # pkg:gem/drb#lib/drb/drb.rb:1687 - def init_with_client; end - - # pkg:gem/drb#lib/drb/drb.rb:1711 - def perform_with_block; end - - # pkg:gem/drb#lib/drb/drb.rb:1731 - def perform_without_block; end - - # pkg:gem/drb#lib/drb/drb.rb:1699 - def setup_message; end -end - -# The default drb protocol which communicates over a TCP socket. -# -# The DRb TCP protocol URI looks like: -# druby://:?. The option is optional. -# -# pkg:gem/drb#lib/drb/drb.rb:843 -class DRb::DRbTCPSocket - # Create a new DRbTCPSocket instance. - # - # +uri+ is the URI we are connected to. - # +soc+ is the tcp socket we are bound to. +config+ is our - # configuration. - # - # pkg:gem/drb#lib/drb/drb.rb:931 - def initialize(uri, soc, config = T.unsafe(nil)); end - - # On the server side, for an instance returned by #open_server, - # accept a client connection and return a new instance to handle - # the server's side of this client-server session. - # - # pkg:gem/drb#lib/drb/drb.rb:999 - def accept; end - - # Check to see if this connection is alive. - # - # pkg:gem/drb#lib/drb/drb.rb:1029 - def alive?; end - - # Close the connection. - # - # If this is an instance returned by #open_server, then this stops - # listening for new connections altogether. If this is an instance - # returned by #open or by #accept, then it closes this particular - # client-server session. - # - # pkg:gem/drb#lib/drb/drb.rb:981 - def close; end - - # Get the address of our TCP peer (the other end of the socket - # we are bound to. - # - # pkg:gem/drb#lib/drb/drb.rb:946 - def peeraddr; end - - # On the client side, receive a reply from the server. - # - # pkg:gem/drb#lib/drb/drb.rb:969 - def recv_reply; end - - # On the server side, receive a request from the client. - # - # pkg:gem/drb#lib/drb/drb.rb:959 - def recv_request; end - - # On the server side, send a reply to the client. - # - # pkg:gem/drb#lib/drb/drb.rb:964 - def send_reply(succ, result); end - - # On the client side, send a request to the server. - # - # pkg:gem/drb#lib/drb/drb.rb:954 - def send_request(ref, msg_id, arg, b); end - - # pkg:gem/drb#lib/drb/drb.rb:1038 - def set_sockopt(soc); end - - # Graceful shutdown - # - # pkg:gem/drb#lib/drb/drb.rb:1024 - def shutdown; end - - # Get the socket. - # - # pkg:gem/drb#lib/drb/drb.rb:951 - def stream; end - - # Get the URI that we are connected to. - # - # pkg:gem/drb#lib/drb/drb.rb:942 - def uri; end - - private - - # pkg:gem/drb#lib/drb/drb.rb:1014 - def accept_or_shutdown; end - - # pkg:gem/drb#lib/drb/drb.rb:990 - def close_shutdown_pipe; end - - class << self - # Returns the hostname of this server - # - # pkg:gem/drb#lib/drb/drb.rb:873 - def getservername; end - - # Open a client connection to +uri+ (DRb URI string) using configuration - # +config+. - # - # This can raise DRb::DRbBadScheme or DRb::DRbBadURI if +uri+ is not for a - # recognized protocol. See DRb::DRbServer.new for information on built-in - # URI protocols. - # - # pkg:gem/drb#lib/drb/drb.rb:866 - def open(uri, config); end - - # Open a server listening for connections at +uri+ using - # configuration +config+. - # - # pkg:gem/drb#lib/drb/drb.rb:904 - def open_server(uri, config); end - - # For the families available for +host+, returns a TCPServer on +port+. - # If +port+ is 0 the first available port is used. IPv4 servers are - # preferred over IPv6 servers. - # - # pkg:gem/drb#lib/drb/drb.rb:889 - def open_server_inaddr_any(host, port); end - - # pkg:gem/drb#lib/drb/drb.rb:846 - def parse_uri(uri); end - - # Parse +uri+ into a [uri, option] pair. - # - # pkg:gem/drb#lib/drb/drb.rb:921 - def uri_option(uri, config); end - end -end - -# Implements DRb over a UNIX socket -# -# DRb UNIX socket URIs look like drbunix:?. The -# option is optional. -# -# pkg:gem/drb#lib/drb/unix.rb:15 -class DRb::DRbUNIXSocket < ::DRb::DRbTCPSocket - # pkg:gem/drb#lib/drb/unix.rb:62 - def initialize(uri, soc, config = T.unsafe(nil), server_mode = T.unsafe(nil)); end - - # pkg:gem/drb#lib/drb/unix.rb:105 - def accept; end - - # pkg:gem/drb#lib/drb/unix.rb:95 - def close; end - - # pkg:gem/drb#lib/drb/unix.rb:111 - def set_sockopt(soc); end - - class << self - # pkg:gem/drb#lib/drb/unix.rb:28 - def open(uri, config); end - - # pkg:gem/drb#lib/drb/unix.rb:34 - def open_server(uri, config); end - - # :stopdoc: - # - # pkg:gem/drb#lib/drb/unix.rb:17 - def parse_uri(uri); end - - # pkg:gem/drb#lib/drb/unix.rb:72 - def temp_server; end - - # pkg:gem/drb#lib/drb/unix.rb:57 - def uri_option(uri, config); end - end -end - -# import from tempfile.rb -# -# pkg:gem/drb#lib/drb/unix.rb:70 -DRb::DRbUNIXSocket::Max_try = T.let(T.unsafe(nil), Integer) - -# pkg:gem/drb#lib/drb/drb.rb:1049 -class DRb::DRbURIOption - # pkg:gem/drb#lib/drb/drb.rb:1050 - def initialize(option); end - - # pkg:gem/drb#lib/drb/drb.rb:1056 - def ==(other); end - - # pkg:gem/drb#lib/drb/drb.rb:1065 - def eql?(other); end - - # pkg:gem/drb#lib/drb/drb.rb:1061 - def hash; end - - # pkg:gem/drb#lib/drb/drb.rb:1053 - def option; end - - # pkg:gem/drb#lib/drb/drb.rb:1054 - def to_s; end -end - -# Mixin module making an object undumpable or unmarshallable. -# -# If an object which includes this module is returned by method -# called over drb, then the object remains in the server space -# and a reference to the object is returned, rather than the -# object being marshalled and moved into the client space. -# -# pkg:gem/drb#lib/drb/drb.rb:418 -module DRb::DRbUndumped - # pkg:gem/drb#lib/drb/drb.rb:419 - def _dump(dummy); end -end - -# Class wrapping a marshalled object whose type is unknown locally. -# -# If an object is returned by a method invoked over drb, but the -# class of the object is unknown in the client namespace, or -# the object is a constant unknown in the client namespace, then -# the still-marshalled object is returned wrapped in a DRbUnknown instance. -# -# If this object is passed as an argument to a method invoked over -# drb, then the wrapped object is passed instead. -# -# The class or constant name of the object can be read from the -# +name+ attribute. The marshalled object is held in the +buf+ -# attribute. -# -# pkg:gem/drb#lib/drb/drb.rb:485 -class DRb::DRbUnknown - # Create a new DRbUnknown object. - # - # +buf+ is a string containing a marshalled object that could not - # be unmarshalled. +err+ is the error message that was raised - # when the unmarshalling failed. It is used to determine the - # name of the unmarshalled object. - # - # pkg:gem/drb#lib/drb/drb.rb:493 - def initialize(err, buf); end - - # pkg:gem/drb#lib/drb/drb.rb:522 - def _dump(lv); end - - # Buffer contained the marshalled, unknown object. - # - # pkg:gem/drb#lib/drb/drb.rb:512 - def buf; end - - # Create a DRbUnknownError exception containing this object. - # - # pkg:gem/drb#lib/drb/drb.rb:536 - def exception; end - - # The name of the unknown thing. - # - # Class name for unknown objects; variable name for unknown - # constants. - # - # pkg:gem/drb#lib/drb/drb.rb:509 - def name; end - - # Attempt to load the wrapped marshalled object again. - # - # If the class of the object is now known locally, the object - # will be unmarshalled and returned. Otherwise, a new - # but identical DRbUnknown object will be returned. - # - # pkg:gem/drb#lib/drb/drb.rb:531 - def reload; end - - class << self - # pkg:gem/drb#lib/drb/drb.rb:514 - def _load(s); end - end -end - -# An exception wrapping a DRb::DRbUnknown object -# -# pkg:gem/drb#lib/drb/drb.rb:438 -class DRb::DRbUnknownError < ::DRb::DRbError - # Create a new DRbUnknownError for the DRb::DRbUnknown object +unknown+ - # - # pkg:gem/drb#lib/drb/drb.rb:441 - def initialize(unknown); end - - # pkg:gem/drb#lib/drb/drb.rb:453 - def _dump(lv); end - - # Get the wrapped DRb::DRbUnknown object. - # - # pkg:gem/drb#lib/drb/drb.rb:447 - def unknown; end - - class << self - # pkg:gem/drb#lib/drb/drb.rb:449 - def _load(s); end - end -end - -# pkg:gem/drb#lib/drb/drb.rb:1227 -class DRb::ThreadObject - include ::MonitorMixin - - # pkg:gem/drb#lib/drb/drb.rb:1230 - def initialize(&blk); end - - # pkg:gem/drb#lib/drb/drb.rb:1265 - def _execute; end - - # pkg:gem/drb#lib/drb/drb.rb:1241 - def alive?; end - - # pkg:gem/drb#lib/drb/drb.rb:1245 - def kill; end - - # pkg:gem/drb#lib/drb/drb.rb:1250 - def method_missing(msg, *arg, &blk); end -end - -# pkg:gem/drb#lib/drb/version.rb:2 -DRb::VERSION = T.let(T.unsafe(nil), String) - -# pkg:gem/drb#lib/drb/drb.rb:1993 -DRbIdConv = DRb::DRbIdConv - -# :stopdoc: -# -# pkg:gem/drb#lib/drb/drb.rb:1991 -DRbObject = DRb::DRbObject - -# pkg:gem/drb#lib/drb/drb.rb:1992 -DRbUndumped = DRb::DRbUndumped diff --git a/sorbet/rbi/gems/erb@6.0.2.rbi b/sorbet/rbi/gems/erb@6.0.2.rbi deleted file mode 100644 index 117ad71..0000000 --- a/sorbet/rbi/gems/erb@6.0.2.rbi +++ /dev/null @@ -1,1537 +0,0 @@ -# typed: false - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `erb` gem. -# Please instead update this file by running `bin/tapioca gem erb`. - - -# :markup: markdown -# -# Class **ERB** (the name stands for **Embedded Ruby**) -# is an easy-to-use, but also very powerful, [template processor][template processor]. -# -# ## Usage -# -# Before you can use \ERB, you must first require it -# (examples on this page assume that this has been done): -# -# ``` -# require 'erb' -# ``` -# -# ## In Brief -# -# Here's how \ERB works: -# -# - You can create a *template*: a plain-text string that includes specially formatted *tags*.. -# - You can create an \ERB object to store the template. -# - You can call instance method ERB#result to get the *result*. -# -# \ERB supports tags of three kinds: -# -# - [Expression tags][expression tags]: -# each begins with `'<%='`, ends with `'%>'`; contains a Ruby expression; -# in the result, the value of the expression replaces the entire tag: -# -# template = 'The magic word is <%= magic_word %>.' -# erb = ERB.new(template) -# magic_word = 'xyzzy' -# erb.result(binding) # => "The magic word is xyzzy." -# -# The above call to #result passes argument `binding`, -# which contains the binding of variable `magic_word` to its string value `'xyzzy'`. -# -# The below call to #result need not pass a binding, -# because its expression `Date::DAYNAMES` is globally defined. -# -# ERB.new('Today is <%= Date::DAYNAMES[Date.today.wday] %>.').result # => "Today is Monday." -# -# - [Execution tags][execution tags]: -# each begins with `'<%'`, ends with `'%>'`; contains Ruby code to be executed: -# -# template = '<% File.write("t.txt", "Some stuff.") %>' -# ERB.new(template).result -# File.read('t.txt') # => "Some stuff." -# -# - [Comment tags][comment tags]: -# each begins with `'<%#'`, ends with `'%>'`; contains comment text; -# in the result, the entire tag is omitted. -# -# template = 'Some stuff;<%# Note to self: figure out what the stuff is. %> more stuff.' -# ERB.new(template).result # => "Some stuff; more stuff." -# -# ## Some Simple Examples -# -# Here's a simple example of \ERB in action: -# -# ``` -# template = 'The time is <%= Time.now %>.' -# erb = ERB.new(template) -# erb.result -# # => "The time is 2025-09-09 10:49:26 -0500." -# ``` -# -# Details: -# -# 1. A plain-text string is assigned to variable `template`. -# Its embedded [expression tag][expression tags] `'<%= Time.now %>'` includes a Ruby expression, `Time.now`. -# 2. The string is put into a new \ERB object, and stored in variable `erb`. -# 4. Method call `erb.result` generates a string that contains the run-time value of `Time.now`, -# as computed at the time of the call. -# -# The -# \ERB object may be re-used: -# -# ``` -# erb.result -# # => "The time is 2025-09-09 10:49:33 -0500." -# ``` -# -# Another example: -# -# ``` -# template = 'The magic word is <%= magic_word %>.' -# erb = ERB.new(template) -# magic_word = 'abracadabra' -# erb.result(binding) -# # => "The magic word is abracadabra." -# ``` -# -# Details: -# -# 1. As before, a plain-text string is assigned to variable `template`. -# Its embedded [expression tag][expression tags] `'<%= magic_word %>'` has a variable *name*, `magic_word`. -# 2. The string is put into a new \ERB object, and stored in variable `erb`; -# note that `magic_word` need not be defined before the \ERB object is created. -# 3. `magic_word = 'abracadabra'` assigns a value to variable `magic_word`. -# 4. Method call `erb.result(binding)` generates a string -# that contains the *value* of `magic_word`. -# -# As before, the \ERB object may be re-used: -# -# ``` -# magic_word = 'xyzzy' -# erb.result(binding) -# # => "The magic word is xyzzy." -# ``` -# -# ## Bindings -# -# A call to method #result, which produces the formatted result string, -# requires a [Binding object][binding object] as its argument. -# -# The binding object provides the bindings for expressions in [expression tags][expression tags]. -# -# There are three ways to provide the required binding: -# -# - [Default binding][default binding]. -# - [Local binding][local binding]. -# - [Augmented binding][augmented binding] -# -# ### Default Binding -# -# When you pass no `binding` argument to method #result, -# the method uses its default binding: the one returned by method #new_toplevel. -# This binding has the bindings defined by Ruby itself, -# which are those for Ruby's constants and variables. -# -# That binding is sufficient for an expression tag that refers only to Ruby's constants and variables; -# these expression tags refer only to Ruby's global constant `RUBY_COPYRIGHT` and global variable `$0`: -# -# ``` -# template = <