diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bbb61517..0945aae2 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,7 @@ updates: directory: "/" schedule: interval: "weekly" + open-pull-requests-limit: 100 reviewers: - "Shopify/ruby-dev-exp" labels: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37256ba6..b00f5bd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,10 @@ jobs: gemfile: - Gemfile - gemfiles/Gemfile-rails-main - ruby: ["3.0", "3.1", "3.2", "3.3"] + ruby: ["3.1", "3.2", "3.3"] include: - gemfile: "gemfiles/Gemfile-rails-main" experimental: true - exclude: - - os: "windows-latest" - ruby: "3.0" - - Gemfile: "gemfiles/Gemfile-rails-main" # needs Ruby 3.1 - ruby: "3.0" runs-on: ${{ matrix.os }} timeout-minutes: 15 env: @@ -42,15 +37,24 @@ jobs: bundler-cache: true cache-version: 7 - - name: Check if documentation is up to date - run: bundle exec rake ruby_lsp:check_docs + - name: Run tests + run: bundle exec rake + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + bundler: latest + bundler-cache: true - name: Typecheck - if: matrix.os != 'windows-latest' run: bundle exec srb tc - name: Lint Ruby files run: bin/rubocop - - name: Run tests - run: bin/rails db:setup && bin/rails db:migrate && bin/rails test + - name: Check if documentation is up to date + run: bundle exec rake ruby_lsp:check_docs diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..169bdec5 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,39 @@ +# CONTRIBUTING + +Bug reports and pull requests are welcome on GitHub at https://github.com/Shopify/ruby-lsp-rails. This project is +intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the +[Contributor Covenant](https://github.com/Shopify/ruby-lsp-rails/blob/main/CODE_OF_CONDUCT.md) code of conduct. + +# Developing on Ruby LSP + +For general information about developing, refer to the to the [documentation](https://github.com/Shopify/ruby-lsp/blob/main/CONTRIBUTING.md#debugging-with-vs-code) for Ruby LSP itself. + +### Manually testing a change + +The repo includes a dummy Rails app in `test/dummy`. If you're developing a feature, you can add new code to it for testing. + +To test with a real Rails application, you can add a Gemfile entry for `ruby-lsp-rails` and point it to your local checkout: + +```ruby +gem "ruby-lsp-rails", path: "../ruby-lsp-rails" +``` + +Or to a branch in your fork: + +```ruby +gem "ruby-lsp-rails", github: "USERNAME/ruby-lsp-rails", branch: "your_branch" +``` + +### Running the test suite + +To set up the database for the dummy Rails app, and run the full test suite: + +```shell +bundle exec rake +``` + +Tests are written as `ActiveSupport::TestCase` tests, so an individual test can be run with: + +```shell +bin/rails test test/my_test.rb +``` diff --git a/Gemfile b/Gemfile index 12542bec..47ef288e 100644 --- a/Gemfile +++ b/Gemfile @@ -20,3 +20,8 @@ gem "tapioca", "~> 0.13", require: false, platforms: :ruby gem "psych", "~> 5.1", require: false gem "rails" gem "webmock" + +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo" + gem "tzinfo-data" +end diff --git a/Gemfile.lock b/Gemfile.lock index 5c6d6cfa..a56e81dd 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -9,42 +9,41 @@ GIT PATH remote: . specs: - ruby-lsp-rails (0.3.5) - ruby-lsp (>= 0.16.5, < 0.17.0) - sorbet-runtime (>= 0.5.9897) + ruby-lsp-rails (0.3.7) + ruby-lsp (>= 0.17.2, < 0.18.0) GEM remote: https://rubygems.org/ specs: - actioncable (7.1.3.2) - actionpack (= 7.1.3.2) - activesupport (= 7.1.3.2) + actioncable (7.1.3.3) + actionpack (= 7.1.3.3) + activesupport (= 7.1.3.3) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.1.3.2) - actionpack (= 7.1.3.2) - activejob (= 7.1.3.2) - activerecord (= 7.1.3.2) - activestorage (= 7.1.3.2) - activesupport (= 7.1.3.2) + actionmailbox (7.1.3.3) + actionpack (= 7.1.3.3) + activejob (= 7.1.3.3) + activerecord (= 7.1.3.3) + activestorage (= 7.1.3.3) + activesupport (= 7.1.3.3) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.1.3.2) - actionpack (= 7.1.3.2) - actionview (= 7.1.3.2) - activejob (= 7.1.3.2) - activesupport (= 7.1.3.2) + actionmailer (7.1.3.3) + actionpack (= 7.1.3.3) + actionview (= 7.1.3.3) + activejob (= 7.1.3.3) + activesupport (= 7.1.3.3) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.2) - actionpack (7.1.3.2) - actionview (= 7.1.3.2) - activesupport (= 7.1.3.2) + actionpack (7.1.3.3) + actionview (= 7.1.3.3) + activesupport (= 7.1.3.3) nokogiri (>= 1.8.5) racc rack (>= 2.2.4) @@ -52,35 +51,35 @@ GEM rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - actiontext (7.1.3.2) - actionpack (= 7.1.3.2) - activerecord (= 7.1.3.2) - activestorage (= 7.1.3.2) - activesupport (= 7.1.3.2) + actiontext (7.1.3.3) + actionpack (= 7.1.3.3) + activerecord (= 7.1.3.3) + activestorage (= 7.1.3.3) + activesupport (= 7.1.3.3) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.1.3.2) - activesupport (= 7.1.3.2) + actionview (7.1.3.3) + activesupport (= 7.1.3.3) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.1.3.2) - activesupport (= 7.1.3.2) + activejob (7.1.3.3) + activesupport (= 7.1.3.3) globalid (>= 0.3.6) - activemodel (7.1.3.2) - activesupport (= 7.1.3.2) - activerecord (7.1.3.2) - activemodel (= 7.1.3.2) - activesupport (= 7.1.3.2) + activemodel (7.1.3.3) + activesupport (= 7.1.3.3) + activerecord (7.1.3.3) + activemodel (= 7.1.3.3) + activesupport (= 7.1.3.3) timeout (>= 0.4.0) - activestorage (7.1.3.2) - actionpack (= 7.1.3.2) - activejob (= 7.1.3.2) - activerecord (= 7.1.3.2) - activesupport (= 7.1.3.2) + activestorage (7.1.3.3) + actionpack (= 7.1.3.3) + activejob (= 7.1.3.3) + activerecord (= 7.1.3.3) + activesupport (= 7.1.3.3) marcel (~> 1.0) - activesupport (7.1.3.2) + activesupport (7.1.3.3) base64 bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) @@ -94,7 +93,7 @@ GEM public_suffix (>= 2.0.2, < 6.0) ast (2.4.2) base64 (0.2.0) - bigdecimal (3.1.6) + bigdecimal (3.1.8) builder (3.2.4) concurrent-ruby (1.2.3) connection_pool (2.4.1) @@ -106,17 +105,16 @@ GEM debug (1.9.2) irb (~> 1.10) reline (>= 0.3.8) - drb (2.2.0) - ruby2_keywords + drb (2.2.1) erubi (1.12.0) globalid (1.2.1) activesupport (>= 6.1) hashdiff (1.1.0) - i18n (1.14.1) + i18n (1.14.5) concurrent-ruby (~> 1.0) io-console (0.7.2) - irb (1.12.0) - rdoc + irb (1.13.1) + rdoc (>= 4.0.0) reline (>= 0.4.2) json (2.7.2) language_server-protocol (3.17.0.3) @@ -128,41 +126,41 @@ GEM net-imap net-pop net-smtp - marcel (1.0.2) + marcel (1.0.4) mini_mime (1.1.5) - minitest (5.22.2) - mocha (2.2.0) + minitest (5.23.0) + mocha (2.3.0) ruby2_keywords (>= 0.0.5) mutex_m (0.2.0) - net-imap (0.4.10) + net-imap (0.4.11) date net-protocol net-pop (0.1.2) net-protocol net-protocol (0.2.2) timeout - net-smtp (0.4.0.1) + net-smtp (0.5.0) net-protocol netrc (0.11.0) - nio4r (2.7.0) - nokogiri (1.16.2-arm64-darwin) + nio4r (2.7.3) + nokogiri (1.16.5-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.2-x86_64-darwin) + nokogiri (1.16.5-x86_64-darwin) racc (~> 1.4) - nokogiri (1.16.2-x86_64-linux) + nokogiri (1.16.5-x86_64-linux) racc (~> 1.4) parallel (1.24.0) parser (3.3.1.0) ast (~> 2.4.1) racc - prism (0.24.0) + prism (0.29.0) psych (5.1.2) stringio public_suffix (5.0.5) puma (6.4.2) nio4r (~> 2.0) racc (1.7.3) - rack (3.0.9.1) + rack (3.0.11) rack-session (2.0.0) rack (>= 3.0.0) rack-test (2.1.0) @@ -170,20 +168,20 @@ GEM rackup (2.1.0) rack (>= 3) webrick (~> 1.8) - rails (7.1.3.2) - actioncable (= 7.1.3.2) - actionmailbox (= 7.1.3.2) - actionmailer (= 7.1.3.2) - actionpack (= 7.1.3.2) - actiontext (= 7.1.3.2) - actionview (= 7.1.3.2) - activejob (= 7.1.3.2) - activemodel (= 7.1.3.2) - activerecord (= 7.1.3.2) - activestorage (= 7.1.3.2) - activesupport (= 7.1.3.2) + rails (7.1.3.3) + actioncable (= 7.1.3.3) + actionmailbox (= 7.1.3.3) + actionmailer (= 7.1.3.3) + actionpack (= 7.1.3.3) + actiontext (= 7.1.3.3) + actionview (= 7.1.3.3) + activejob (= 7.1.3.3) + activemodel (= 7.1.3.3) + activerecord (= 7.1.3.3) + activestorage (= 7.1.3.3) + activesupport (= 7.1.3.3) bundler (>= 1.15.0) - railties (= 7.1.3.2) + railties (= 7.1.3.3) rails-dom-testing (2.2.0) activesupport (>= 5.0.0) minitest @@ -191,23 +189,24 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.1.3.2) - actionpack (= 7.1.3.2) - activesupport (= 7.1.3.2) + railties (7.1.3.3) + actionpack (= 7.1.3.3) + activesupport (= 7.1.3.3) irb rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0, >= 1.2.2) zeitwerk (~> 2.6) rainbow (3.1.1) - rake (13.1.0) - rbi (0.1.10) - prism (>= 0.18.0, < 0.25) + rake (13.2.1) + rbi (0.1.13) + prism (>= 0.18.0, < 1.0.0) sorbet-runtime (>= 0.5.9204) regexp_parser (2.9.0) - reline (0.5.0) + reline (0.5.7) io-console (~> 0.5) - rexml (3.2.6) + rexml (3.2.8) + strscan (>= 3.0.9) rubocop (1.63.4) json (~> 2.3) language_server-protocol (>= 3.17.0) @@ -230,20 +229,20 @@ GEM rubocop (~> 1.51) rubocop-sorbet (0.8.3) rubocop (>= 0.90.0) - ruby-lsp (0.16.6) + ruby-lsp (0.17.2) language_server-protocol (~> 3.17.0) - prism (>= 0.23.0, < 0.28) + prism (>= 0.29.0, < 0.30) sorbet-runtime (>= 0.5.10782) ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) - sorbet (0.5.11361) - sorbet-static (= 0.5.11361) - sorbet-runtime (0.5.11361) - sorbet-static (0.5.11361-universal-darwin) - sorbet-static (0.5.11361-x86_64-linux) - sorbet-static-and-runtime (0.5.11361) - sorbet (= 0.5.11361) - sorbet-runtime (= 0.5.11361) + sorbet (0.5.11406) + sorbet-static (= 0.5.11406) + sorbet-runtime (0.5.11406) + sorbet-static (0.5.11406-universal-darwin) + sorbet-static (0.5.11406-x86_64-linux) + sorbet-static-and-runtime (0.5.11406) + sorbet (= 0.5.11406) + sorbet-runtime (= 0.5.11406) spoom (1.3.0) erubi (>= 1.10.0) prism (>= 0.19.0) @@ -253,6 +252,7 @@ GEM sqlite3 (1.7.3-x86_64-darwin) sqlite3 (1.7.3-x86_64-linux) stringio (3.1.0) + strscan (3.1.0) tapioca (0.13.3) bundler (>= 2.2.25) netrc (>= 0.11.0) @@ -267,7 +267,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.5.0) - webmock (3.23.0) + webmock (3.23.1) addressable (>= 2.8.0) crack (>= 0.3.2) hashdiff (>= 0.4.0, < 2.0.0) @@ -279,7 +279,7 @@ GEM yard-sorbet (0.8.1) sorbet-runtime (>= 0.5) yard (>= 0.9) - zeitwerk (2.6.13) + zeitwerk (2.6.14) PLATFORMS arm64-darwin @@ -301,6 +301,8 @@ DEPENDENCIES sorbet-static-and-runtime sqlite3 (< 2) tapioca (~> 0.13) + tzinfo + tzinfo-data webmock BUNDLED WITH diff --git a/README.md b/README.md index 9635820f..3d41a4ab 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Ruby DX Slack](https://img.shields.io/badge/Slack-Ruby%20DX-success?logo=slack)](https://join.slack.com/t/ruby-dx/shared_invite/zt-2c8zjlir6-uUDJl8oIwcen_FS_aA~b6Q) + # Ruby LSP Rails Ruby LSP Rails is a [Ruby LSP](https://github.com/Shopify/ruby-lsp) addon for extra Rails editor features, such as: @@ -37,9 +39,7 @@ When extension is stopped (e.g. by quitting the editor), the server instance is ## Contributing -Bug reports and pull requests are welcome on GitHub at https://github.com/Shopify/ruby-lsp-rails. This project is -intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the -[Contributor Covenant](https://github.com/Shopify/ruby-lsp-rails/blob/main/CODE_OF_CONDUCT.md) code of conduct. +See [CONTRIBUTING.md](https://github.com/Shopify/ruby-lsp-rails/blob/main/CONTRIBUTING.md) ## License diff --git a/Rakefile b/Rakefile index c1683b9b..a234dde9 100644 --- a/Rakefile +++ b/Rakefile @@ -30,4 +30,4 @@ end RubyLsp::CheckDocs.new(FileList["#{__dir__}/lib/ruby_lsp/**/*.rb"], FileList["#{__dir__}/misc/**/*.gif"]) -task default: :test +task default: [:"db:setup", :test] diff --git a/gemfiles/Gemfile-rails-main b/gemfiles/Gemfile-rails-main index 24bf5cd1..c3200b06 100644 --- a/gemfiles/Gemfile-rails-main +++ b/gemfiles/Gemfile-rails-main @@ -20,3 +20,8 @@ gem "tapioca", "~> 0.11", require: false, platforms: :ruby gem "psych", "~> 5.1", require: false gem "rails", github: "rails/rails", branch: "main" gem "webmock" + +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo" + gem "tzinfo-data" +end diff --git a/lib/ruby_lsp/ruby_lsp_rails/addon.rb b/lib/ruby_lsp/ruby_lsp_rails/addon.rb index 3b0bb80e..dd38420d 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/addon.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/addon.rb @@ -5,7 +5,9 @@ require_relative "../../ruby_lsp_rails/version" require_relative "support/active_support_test_case_helper" +require_relative "support/associations" require_relative "support/callbacks" +require_relative "support/location_builder" require_relative "runner_client" require_relative "hover" require_relative "code_lens" @@ -32,6 +34,7 @@ def activate(global_state, message_queue) $stderr.puts("Activating Ruby LSP Rails addon v#{VERSION}") # Start booting the real client in a background thread. Until this completes, the client will be a NullClient Thread.new { @client = RunnerClient.create_client } + register_additional_file_watchers(global_state: global_state, message_queue: message_queue) end sig { override.void } @@ -56,12 +59,12 @@ def create_code_lens_listener(response_builder, uri, dispatcher) sig do override.params( response_builder: ResponseBuilders::Hover, - nesting: T::Array[String], + node_context: NodeContext, dispatcher: Prism::Dispatcher, ).void end - def create_hover_listener(response_builder, nesting, dispatcher) - Hover.new(@client, response_builder, nesting, T.must(@global_state), dispatcher) + def create_hover_listener(response_builder, node_context, dispatcher) + Hover.new(@client, response_builder, node_context, T.must(@global_state), dispatcher) end sig do @@ -78,13 +81,13 @@ def create_document_symbol_listener(response_builder, dispatcher) override.params( response_builder: ResponseBuilders::CollectionResponseBuilder[Interface::Location], uri: URI::Generic, - nesting: T::Array[String], + node_context: NodeContext, dispatcher: Prism::Dispatcher, ).void end - def create_definition_listener(response_builder, uri, nesting, dispatcher) + def create_definition_listener(response_builder, uri, node_context, dispatcher) index = T.must(@global_state).index - Definition.new(@client, response_builder, nesting, index, dispatcher) + Definition.new(@client, response_builder, node_context, index, dispatcher) end sig { params(changes: T::Array[{ uri: String, type: Integer }]).void } @@ -96,6 +99,32 @@ def workspace_did_change_watched_files(changes) end end + sig { params(global_state: GlobalState, message_queue: Thread::Queue).void } + def register_additional_file_watchers(global_state:, message_queue:) + return unless global_state.supports_watching_files + + message_queue << Request.new( + id: "ruby-lsp-rails-file-watcher", + method: "client/registerCapability", + params: Interface::RegistrationParams.new( + registrations: [ + Interface::Registration.new( + id: "workspace/didChangeWatchedFilesRails", + method: "workspace/didChangeWatchedFiles", + register_options: Interface::DidChangeWatchedFilesRegistrationOptions.new( + watchers: [ + Interface::FileSystemWatcher.new( + glob_pattern: "**/*structure.sql", + kind: Constant::WatchKind::CREATE | Constant::WatchKind::CHANGE | Constant::WatchKind::DELETE, + ), + ], + ), + ), + ], + ), + ) + end + sig { override.returns(String) } def name "Ruby LSP Rails" diff --git a/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb b/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb index ef42be30..0f1f5807 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/code_lens.rb @@ -6,6 +6,7 @@ module Rails # ![CodeLens demo](../../code_lens.gif) # # This feature adds several CodeLens features for Rails applications using Active Support test cases: + # # - Run tests in the VS Terminal # - Run tests in the VS Code Test Explorer # - Debug tests diff --git a/lib/ruby_lsp/ruby_lsp_rails/definition.rb b/lib/ruby_lsp/ruby_lsp_rails/definition.rb index 9684208b..11a856df 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/definition.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/definition.rb @@ -10,6 +10,7 @@ module Rails # definition of the symbol under the cursor. # # Currently supported targets: + # # - Callbacks # - Named routes (e.g. `users_path`) # @@ -20,6 +21,7 @@ module Rails # ``` # # Notes for named routes: + # # - It is available only in Rails 7.1 or newer. # - Route may be defined across multiple files, e.g. using `draw`, rather than in `routes.rb`. # - Routes won't be found if not defined for the Rails development environment. @@ -33,18 +35,46 @@ class Definition params( client: RunnerClient, response_builder: ResponseBuilders::CollectionResponseBuilder[Interface::Location], - nesting: T::Array[String], + node_context: NodeContext, index: RubyIndexer::Index, dispatcher: Prism::Dispatcher, ).void end - def initialize(client, response_builder, nesting, index, dispatcher) + def initialize(client, response_builder, node_context, index, dispatcher) @client = client @response_builder = response_builder - @nesting = nesting + @node_context = node_context + @nesting = T.let(node_context.nesting, T::Array[String]) @index = index - dispatcher.register(self, :on_call_node_enter) + dispatcher.register(self, :on_call_node_enter, :on_symbol_node_enter, :on_string_node_enter) + end + + sig { params(node: Prism::SymbolNode).void } + def on_symbol_node_enter(node) + handle_possible_dsl(node) + end + + sig { params(node: Prism::StringNode).void } + def on_string_node_enter(node) + handle_possible_dsl(node) + end + + sig { params(node: T.any(Prism::SymbolNode, Prism::StringNode)).void } + def handle_possible_dsl(node) + node = @node_context.call_node + return unless node + return unless self_receiver?(node) + + message = node.message + + return unless message + + if Support::Associations::ALL.include?(message) + handle_association(node) + elsif Support::Callbacks::ALL.include?(message) + handle_callback(node) + end end sig { params(node: Prism::CallNode).void } @@ -55,9 +85,7 @@ def on_call_node_enter(node) return unless message - if Support::Callbacks::ALL.include?(message) - handle_callback(node) - elsif message.end_with?("_path") || message.end_with?("_url") + if message.end_with?("_path") || message.end_with?("_url") handle_route(node) end end @@ -83,20 +111,29 @@ def handle_callback(node) end end + sig { params(node: Prism::CallNode).void } + def handle_association(node) + first_argument = node.arguments&.arguments&.first + return unless first_argument.is_a?(Prism::SymbolNode) + + association_name = first_argument.unescaped + + result = @client.association_target_location( + model_name: @nesting.join("::"), + association_name: association_name, + ) + + return unless result + + @response_builder << Support::LocationBuilder.line_location_from_s(result.fetch(:location)) + end + sig { params(node: Prism::CallNode).void } def handle_route(node) result = @client.route_location(T.must(node.message)) return unless result - file_path, line = result.fetch(:location).split(":") - - @response_builder << Interface::Location.new( - uri: URI::Generic.from_path(path: file_path).to_s, - range: Interface::Range.new( - start: Interface::Position.new(line: Integer(line) - 1, character: 0), - end: Interface::Position.new(line: Integer(line) - 1, character: 0), - ), - ) + @response_builder << Support::LocationBuilder.line_location_from_s(result.fetch(:location)) end sig { params(name: String).void } diff --git a/lib/ruby_lsp/ruby_lsp_rails/hover.rb b/lib/ruby_lsp/ruby_lsp_rails/hover.rb index d7140009..ad43d659 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/hover.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/hover.rb @@ -24,15 +24,15 @@ class Hover params( client: RunnerClient, response_builder: ResponseBuilders::Hover, - nesting: T::Array[String], + node_context: NodeContext, global_state: GlobalState, dispatcher: Prism::Dispatcher, ).void end - def initialize(client, response_builder, nesting, global_state, dispatcher) + def initialize(client, response_builder, node_context, global_state, dispatcher) @client = client @response_builder = response_builder - @nesting = nesting + @nesting = T.let(node_context.nesting, T::Array[String]) @index = T.let(global_state.index, RubyIndexer::Index) dispatcher.register(self, :on_constant_path_node_enter, :on_constant_read_node_enter, :on_call_node_enter) end @@ -77,7 +77,7 @@ def generate_column_content(name) schema_file = model[:schema_file] @response_builder.push( - "[Schema](#{URI::Generic.build(scheme: "file", path: schema_file)})", + "[Schema](#{URI::Generic.from_path(path: schema_file)})", category: :links, ) if schema_file diff --git a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb index ced14267..1efb2e96 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/runner_client.rb @@ -46,10 +46,13 @@ def initialize Process.setsid rescue Errno::EPERM # If we can't set the session ID, continue + rescue NotImplementedError + # setpgrp() may be unimplemented on some platform + # https://github.com/Shopify/ruby-lsp-rails/issues/348 end stdin, stdout, stderr, wait_thread = Bundler.with_original_env do - Open3.popen3("bin/rails", "runner", "#{__dir__}/server.rb", "start") + Open3.popen3("bundle", "exec", "rails", "runner", "#{__dir__}/server.rb", "start") end @stdin = T.let(stdin, IO) @@ -77,7 +80,9 @@ def initialize if @wait_thread.alive? $stderr.puts("Ruby LSP Rails is force killing the server") sleep(0.5) # give the server a bit of time if we already issued a shutdown notification - Process.kill(T.must(Signal.list["TERM"]), @wait_thread.pid) + + # Windows does not support the `TERM` signal, so we're forced to use `KILL` here + Process.kill(T.must(Signal.list["KILL"]), @wait_thread.pid) end end end @@ -93,6 +98,22 @@ def model(name) nil end + sig do + params( + model_name: String, + association_name: String, + ).returns(T.nilable(T::Hash[Symbol, T.untyped])) + end + def association_target_location(model_name:, association_name:) + make_request( + "association_target_location", + model_name: model_name, + association_name: association_name, + ) + rescue => e + $stderr.puts("Ruby LSP Rails failed with #{e.message}: #{@stderr.read}") + end + sig { params(name: String).returns(T.nilable(T::Hash[Symbol, T.untyped])) } def route_location(name) make_request("route_location", name: name) diff --git a/lib/ruby_lsp/ruby_lsp_rails/server.rb b/lib/ruby_lsp/ruby_lsp_rails/server.rb index 95057ad3..5467d030 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/server.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/server.rb @@ -14,10 +14,16 @@ class Server def initialize $stdin.sync = true $stdout.sync = true + $stdin.binmode + $stdout.binmode @running = true end def start + # Load routes if they haven't been loaded yet (see https://github.com/rails/rails/pull/51614). + routes_reloader = ::Rails.application.routes_reloader + routes_reloader.execute_unless_loaded if routes_reloader&.respond_to?(:execute_unless_loaded) + initialize_result = { result: { message: "ok" } }.to_json $stdout.write("Content-Length: #{initialize_result.length}\r\n\r\n#{initialize_result}") @@ -41,6 +47,8 @@ def execute(request, params) VOID when "model" resolve_database_info_from_model(params.fetch(:name)) + when "association_target_location" + resolve_association_target(params) when "reload" ::Rails.application.reloader.reload! VOID @@ -108,10 +116,34 @@ def resolve_database_info_from_model(model_name) { error: e.full_message(highlight: false) } end + def resolve_association_target(params) + const = ActiveSupport::Inflector.safe_constantize(params[:model_name]) + unless active_record_model?(const) + return { + result: nil, + } + end + + association_klass = const.reflect_on_association(params[:association_name].intern).klass + + source_location = Object.const_source_location(association_klass.to_s) + + { + result: { + location: source_location.first + ":" + source_location.second.to_s, + }, + } + rescue NameError + { + result: nil, + } + end + def active_record_model?(const) !!( const && defined?(ActiveRecord) && + const.is_a?(Class) && ActiveRecord::Base > const && # We do this 'backwards' in case the class overwrites `<` !const.abstract_class? ) diff --git a/lib/ruby_lsp/ruby_lsp_rails/support/associations.rb b/lib/ruby_lsp/ruby_lsp_rails/support/associations.rb new file mode 100644 index 00000000..d723ac16 --- /dev/null +++ b/lib/ruby_lsp/ruby_lsp_rails/support/associations.rb @@ -0,0 +1,20 @@ +# typed: strict +# frozen_string_literal: true + +module RubyLsp + module Rails + module Support + module Associations + ALL = T.let( + [ + "belongs_to", + "has_many", + "has_one", + "has_and_belongs_to_many", + ].freeze, + T::Array[String], + ) + end + end + end +end diff --git a/lib/ruby_lsp/ruby_lsp_rails/support/callbacks.rb b/lib/ruby_lsp/ruby_lsp_rails/support/callbacks.rb index 77484b53..020b6f07 100644 --- a/lib/ruby_lsp/ruby_lsp_rails/support/callbacks.rb +++ b/lib/ruby_lsp/ruby_lsp_rails/support/callbacks.rb @@ -16,6 +16,10 @@ module Callbacks "around_create", "after_create", "after_commit", + "after_create_commit", + "after_update_commit", + "after_destroy_commit", + "after_save_commit", "after_rollback", "before_update", "around_update", diff --git a/lib/ruby_lsp/ruby_lsp_rails/support/location_builder.rb b/lib/ruby_lsp/ruby_lsp_rails/support/location_builder.rb new file mode 100644 index 00000000..b21c0ee7 --- /dev/null +++ b/lib/ruby_lsp/ruby_lsp_rails/support/location_builder.rb @@ -0,0 +1,33 @@ +# typed: strict +# frozen_string_literal: true + +module RubyLsp + module Rails + module Support + class LocationBuilder + class << self + extend T::Sig + + sig { params(location_string: String).returns(Interface::Location) } + def line_location_from_s(location_string) + *file_parts, line = location_string.split(":") + + raise ArgumentError, "Invalid location string given" unless file_parts + + # On Windows, file paths will look something like `C:/path/to/file.rb:123`. Only the last colon is the line + # number and all other parts compose the file path + file_path = file_parts.join(":") + + Interface::Location.new( + uri: URI::Generic.from_path(path: file_path).to_s, + range: Interface::Range.new( + start: Interface::Position.new(line: Integer(line) - 1, character: 0), + end: Interface::Position.new(line: Integer(line) - 1, character: 0), + ), + ) + end + end + end + end + end +end diff --git a/lib/ruby_lsp_rails/version.rb b/lib/ruby_lsp_rails/version.rb index 0cf42284..7c455e1b 100644 --- a/lib/ruby_lsp_rails/version.rb +++ b/lib/ruby_lsp_rails/version.rb @@ -3,6 +3,6 @@ module RubyLsp module Rails - VERSION = "0.3.5" + VERSION = "0.3.7" end end diff --git a/ruby-lsp-rails.gemspec b/ruby-lsp-rails.gemspec index f9ab4e6c..735f1968 100644 --- a/ruby-lsp-rails.gemspec +++ b/ruby-lsp-rails.gemspec @@ -23,6 +23,5 @@ Gem::Specification.new do |spec| Dir["lib/**/*", "LICENSE.txt", "Rakefile", "README.md"] end - spec.add_dependency("ruby-lsp", ">= 0.16.5", "< 0.17.0") - spec.add_dependency("sorbet-runtime", ">= 0.5.9897") + spec.add_dependency("ruby-lsp", ">= 0.17.2", "< 0.18.0") end diff --git a/sorbet/rbi/gems/actioncable@7.1.3.2.rbi b/sorbet/rbi/gems/actioncable@7.1.3.3.rbi similarity index 97% rename from sorbet/rbi/gems/actioncable@7.1.3.2.rbi rename to sorbet/rbi/gems/actioncable@7.1.3.3.rbi index 17a38421..2411388c 100644 --- a/sorbet/rbi/gems/actioncable@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actioncable@7.1.3.3.rbi @@ -154,22 +154,22 @@ class ActionCable::Channel::Base # source://actioncable/lib/action_cable/channel/base.rb#147 def initialize(connection, identifier, params = T.unsafe(nil)); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_subscribe_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_unsubscribe_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _subscribe_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _unsubscribe_callbacks; end # source://actioncable/lib/action_cable/channel/broadcasting.rb#11 @@ -209,13 +209,13 @@ class ActionCable::Channel::Base # source://actioncable/lib/action_cable/channel/periodic_timers.rb#9 def periodic_timers=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # This method is called after subscription has been added to the connection @@ -304,25 +304,25 @@ class ActionCable::Channel::Base def unsubscribed; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _subscribe_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _subscribe_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _unsubscribe_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _unsubscribe_callbacks=(value); end # A list of method names that should be considered actions. This @@ -346,13 +346,13 @@ class ActionCable::Channel::Base # source://actioncable/lib/action_cable/channel/periodic_timers.rb#9 def periodic_timers?; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end private @@ -1153,16 +1153,16 @@ class ActionCable::Connection::Base # source://actioncable/lib/action_cable/connection/base.rb#58 def initialize(server, env, coder: T.unsafe(nil)); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _command_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_command_callbacks(&block); end # source://actioncable/lib/action_cable/connection/base.rb#134 @@ -1239,13 +1239,13 @@ class ActionCable::Connection::Base # source://actioncable/lib/action_cable/connection/base.rb#86 def receive(websocket_message); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # Invoke a method on the connection asynchronously through the pool of thread workers. @@ -1343,19 +1343,19 @@ class ActionCable::Connection::Base def websocket; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _command_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _command_callbacks=(value); end # source://actioncable/lib/action_cable/connection/identification.rb#11 @@ -1367,13 +1367,13 @@ class ActionCable::Connection::Base # source://actioncable/lib/action_cable/connection/identification.rb#11 def identifiers?; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end end end @@ -2086,7 +2086,7 @@ end # source://actioncable/lib/action_cable/engine.rb#8 class ActionCable::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -2618,16 +2618,16 @@ class ActionCable::Server::Worker # source://actioncable/lib/action_cable/server/worker.rb#19 def initialize(max_size: T.unsafe(nil)); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_work_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _work_callbacks; end # source://actioncable/lib/action_cable/server/worker.rb#46 @@ -2636,10 +2636,10 @@ class ActionCable::Server::Worker # source://actioncable/lib/action_cable/server/worker.rb#50 def async_invoke(receiver, method, *args, connection: T.unsafe(nil), &block); end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#74 def connection; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#116 def connection=(obj); end # Returns the value of attribute executor. @@ -2670,25 +2670,25 @@ class ActionCable::Server::Worker def logger; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _work_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _work_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def connection; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def connection=(obj); end end end diff --git a/sorbet/rbi/gems/actionmailbox@7.1.3.2.rbi b/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi similarity index 87% rename from sorbet/rbi/gems/actionmailbox@7.1.3.2.rbi rename to sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi index cd28b83a..f759fa8c 100644 --- a/sorbet/rbi/gems/actionmailbox@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi @@ -86,13 +86,13 @@ module ActionMailbox # source://actionmailbox/lib/action_mailbox.rb#24 def queues=(val); end - # source://railties/7.1.3.2lib/rails/engine.rb#412 + # source://railties/7.1.3.3lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2lib/rails/engine.rb#395 + # source://railties/7.1.3.3lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2lib/rails/engine.rb#416 + # source://railties/7.1.3.3lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://actionmailbox/lib/action_mailbox.rb#25 @@ -101,10 +101,10 @@ module ActionMailbox # source://actionmailbox/lib/action_mailbox.rb#25 def storage_service=(val); end - # source://railties/7.1.3.2lib/rails/engine.rb#401 + # source://railties/7.1.3.3lib/rails/engine.rb#401 def table_name_prefix; end - # source://railties/7.1.3.2lib/rails/engine.rb#408 + # source://railties/7.1.3.3lib/rails/engine.rb#408 def use_relative_model_naming?; end # Returns the currently loaded version of Action Mailbox as a +Gem::Version+. @@ -189,16 +189,16 @@ class ActionMailbox::Base # source://actionmailbox/lib/action_mailbox/base.rb#79 def initialize(inbound_email); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _process_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_process_callbacks(&block); end # Immediately sends the given +message+ and changes the inbound email's status to +:bounced+. @@ -239,13 +239,13 @@ class ActionMailbox::Base # source://actionmailbox/lib/action_mailbox/base.rb#96 def process; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailbox/lib/action_mailbox/routing.rb#9 @@ -263,31 +263,31 @@ class ActionMailbox::Base def track_status_of_inbound_email; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _process_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _process_callbacks=(value); end # source://actionmailbox/lib/action_mailbox/base.rb#75 def receive(inbound_email); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailbox/lib/action_mailbox/routing.rb#9 @@ -301,7 +301,7 @@ end class ActionMailbox::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def authenticate_by_password; end @@ -310,10 +310,10 @@ class ActionMailbox::BaseController < ::ActionController::Base def password; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -363,7 +363,7 @@ ActionMailbox::Callbacks::TERMINATOR = T.let(T.unsafe(nil), Proc) # source://actionmailbox/lib/action_mailbox/engine.rb#12 class ActionMailbox::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -376,10 +376,10 @@ class ActionMailbox::InboundEmail < ::ActionMailbox::Record include ::ActionMailbox::InboundEmail::Incineratable extend ::ActionMailbox::InboundEmail::MessageId::ClassMethods - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_raw_email_attachment(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_raw_email_blob(*args); end def instrumentation_payload; end @@ -388,109 +388,109 @@ class ActionMailbox::InboundEmail < ::ActionMailbox::Record def source; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activestorage/7.1.3.2lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def bounced(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def delivered(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def failed(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def not_bounced(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def not_delivered(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def not_failed(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def not_pending(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def not_processing(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def pending(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def processing(*args, **_arg1); end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#242 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#242 def statuses; end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def with_attached_raw_email(*args, **_arg1); end end end module ActionMailbox::InboundEmail::GeneratedAssociationMethods - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#32 def build_raw_email_attachment(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#32 def build_raw_email_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#36 def create_raw_email_attachment(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#40 def create_raw_email_attachment!(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#36 def create_raw_email_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#40 def create_raw_email_blob!(*args, &block); end - # source://activestorage/7.1.3.2lib/active_storage/attached/model.rb#99 + # source://activestorage/7.1.3.3lib/active_storage/attached/model.rb#99 def raw_email; end - # source://activestorage/7.1.3.2lib/active_storage/attached/model.rb#104 + # source://activestorage/7.1.3.3lib/active_storage/attached/model.rb#104 def raw_email=(attachable); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def raw_email_attachment; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def raw_email_attachment=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def raw_email_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def raw_email_blob=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_raw_email_attachment; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_raw_email_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_raw_email_attachment; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_raw_email_blob; end end @@ -541,10 +541,10 @@ class ActionMailbox::IncinerationJob < ::ActiveJob::Base def perform(inbound_email); end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end def schedule(inbound_email); end @@ -559,7 +559,7 @@ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ::ActionMailb private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def authenticate; end @@ -568,10 +568,10 @@ class ActionMailbox::Ingresses::Mailgun::InboundEmailsController < ::ActionMailb def mail; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -600,7 +600,7 @@ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMail private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def authenticate; end @@ -610,10 +610,10 @@ class ActionMailbox::Ingresses::Mandrill::InboundEmailsController < ::ActionMail def raw_emails; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -639,14 +639,14 @@ class ActionMailbox::Ingresses::Postmark::InboundEmailsController < ::ActionMail private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -658,16 +658,16 @@ class ActionMailbox::Ingresses::Relay::InboundEmailsController < ::ActionMailbox private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def require_valid_rfc822_message; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -679,17 +679,17 @@ class ActionMailbox::Ingresses::Sendgrid::InboundEmailsController < ::ActionMail private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def envelope; end def mail; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -699,10 +699,10 @@ class ActionMailbox::Record < ::ActiveRecord::Base include ::ActionMailbox::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end end end @@ -793,7 +793,7 @@ class ActionMailbox::RoutingJob < ::ActiveJob::Base def perform(inbound_email); end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end end end @@ -1672,70 +1672,70 @@ end module Rails class << self - # source://railties/7.1.3.2lib/rails.rb#42 + # source://railties/7.1.3.3lib/rails.rb#42 def app_class; end - # source://railties/7.1.3.2lib/rails.rb#42 + # source://railties/7.1.3.3lib/rails.rb#42 def app_class=(_arg0); end - # source://railties/7.1.3.2lib/rails.rb#43 + # source://railties/7.1.3.3lib/rails.rb#43 def application; end - # source://railties/7.1.3.2lib/rails.rb#41 + # source://railties/7.1.3.3lib/rails.rb#41 def application=(_arg0); end - # source://railties/7.1.3.2lib/rails.rb#123 + # source://railties/7.1.3.3lib/rails.rb#123 def autoloaders; end - # source://railties/7.1.3.2lib/rails.rb#54 + # source://railties/7.1.3.3lib/rails.rb#54 def backtrace_cleaner; end - # source://railties/7.1.3.2lib/rails.rb#42 + # source://railties/7.1.3.3lib/rails.rb#42 def cache; end - # source://railties/7.1.3.2lib/rails.rb#42 + # source://railties/7.1.3.3lib/rails.rb#42 def cache=(_arg0); end - # source://railties/7.1.3.2lib/rails.rb#50 + # source://railties/7.1.3.3lib/rails.rb#50 def configuration; end - # source://railties/7.1.3.2lib/rails/deprecator.rb#4 + # source://railties/7.1.3.3lib/rails/deprecator.rb#4 def deprecator; end - # source://railties/7.1.3.2lib/rails.rb#72 + # source://railties/7.1.3.3lib/rails.rb#72 def env; end - # source://railties/7.1.3.2lib/rails.rb#79 + # source://railties/7.1.3.3lib/rails.rb#79 def env=(environment); end - # source://railties/7.1.3.2lib/rails.rb#90 + # source://railties/7.1.3.3lib/rails.rb#90 def error; end - # source://railties/7.1.3.2lib/rails/gem_version.rb#5 + # source://railties/7.1.3.3lib/rails/gem_version.rb#5 def gem_version; end - # source://railties/7.1.3.2lib/rails.rb#103 + # source://railties/7.1.3.3lib/rails.rb#103 def groups(*groups); end - # source://railties/7.1.3.2lib/rails.rb#47 + # source://railties/7.1.3.3lib/rails.rb#47 def initialize!(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2lib/rails.rb#47 + # source://railties/7.1.3.3lib/rails.rb#47 def initialized?(*_arg0, **_arg1, &_arg2); end - # source://railties/7.1.3.2lib/rails.rb#42 + # source://railties/7.1.3.3lib/rails.rb#42 def logger; end - # source://railties/7.1.3.2lib/rails.rb#42 + # source://railties/7.1.3.3lib/rails.rb#42 def logger=(_arg0); end - # source://railties/7.1.3.2lib/rails.rb#119 + # source://railties/7.1.3.3lib/rails.rb#119 def public_path; end - # source://railties/7.1.3.2lib/rails.rb#63 + # source://railties/7.1.3.3lib/rails.rb#63 def root; end - # source://railties/7.1.3.2lib/rails/version.rb#7 + # source://railties/7.1.3.3lib/rails/version.rb#7 def version; end end end @@ -1750,11 +1750,11 @@ class Rails::Conductor::ActionMailbox::InboundEmails::SourcesController < ::Rail private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1767,7 +1767,7 @@ class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conduc private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def create_inbound_email(mail); end @@ -1775,7 +1775,7 @@ class Rails::Conductor::ActionMailbox::InboundEmailsController < ::Rails::Conduc def new_mail; end class << self - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1785,11 +1785,11 @@ class Rails::Conductor::ActionMailbox::IncineratesController < ::Rails::Conducto private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1799,13 +1799,13 @@ class Rails::Conductor::ActionMailbox::ReroutesController < ::Rails::Conductor:: private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def reroute(inbound_email); end class << self - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -1813,22 +1813,22 @@ end class Rails::Conductor::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def ensure_development_env; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end diff --git a/sorbet/rbi/gems/actionmailer@7.1.3.2.rbi b/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi similarity index 93% rename from sorbet/rbi/gems/actionmailer@7.1.3.2.rbi rename to sorbet/rbi/gems/actionmailer@7.1.3.3.rbi index 4fb57298..443d1927 100644 --- a/sorbet/rbi/gems/actionmailer@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi @@ -543,55 +543,55 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#644 def initialize; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _deliver_callbacks; end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#12 def _helper_methods=(_arg0); end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#216 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#216 def _layout_conditions(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _process_action_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_deliver_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_process_action_callbacks(&block); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(_arg0); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def assets_dir=(value); end # Allows you to add attachments to an email, like so: @@ -626,10 +626,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#761 def attachments; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end # source://actionmailer/lib/action_mailer/base.rb#502 @@ -641,10 +641,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#502 def default_params?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionmailer/lib/action_mailer/queued_delivery.rb#9 @@ -690,10 +690,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#685 def email_address_with_name(address, name); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 @@ -705,13 +705,13 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 def file_settings?; end - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(_arg0); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end # Allows you to pass random and unusual headers to the new +Mail::Message+ @@ -752,16 +752,16 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#723 def headers(args = T.unsafe(nil)); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def logger=(value); end # The main method that creates the message and renders the email templates. There are @@ -861,10 +861,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#678 def mailer_name; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attr_internal.rb#33 def message; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attr_internal.rb#33 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attr_internal.rb#33 def message=(_arg0); end # source://actionmailer/lib/action_mailer/parameterized.rb#95 @@ -873,10 +873,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/parameterized.rb#93 def params=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionmailer/lib/action_mailer/delivery_methods.rb#16 @@ -900,25 +900,25 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/delivery_methods.rb#15 def raise_delivery_errors=(val); end - # source://actionpack/7.1.3.2lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.2lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 @@ -942,10 +942,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 def smtp_settings?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 @@ -959,7 +959,7 @@ class ActionMailer::Base < ::AbstractController::Base private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end # source://actionmailer/lib/action_mailer/base.rb#1071 @@ -1030,13 +1030,13 @@ class ActionMailer::Base < ::AbstractController::Base def wrap_inline_attachments(message); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end # source://actionmailer/lib/action_mailer/form_builder.rb#18 @@ -1048,67 +1048,67 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/form_builder.rb#18 def _default_form_builder?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _deliver_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _deliver_callbacks=(value); end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#12 def _helper_methods; end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#12 def _helper_methods=(value); end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#12 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#12 def _helper_methods?; end - # source://actionpack/7.1.3.2lib/abstract_controller/helpers.rb#16 + # source://actionpack/7.1.3.3lib/abstract_controller/helpers.rb#16 def _helpers; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#211 def _layout; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#211 def _layout=(value); end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#211 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#211 def _layout?; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#212 def _layout_conditions; end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#212 def _layout_conditions=(value); end - # source://actionview/7.1.3.2lib/action_view/layouts.rb#212 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#212 def _layout_conditions?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _process_action_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _process_action_callbacks=(value); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#42 def _view_cache_dependencies; end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#42 def _view_cache_dependencies=(value); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#42 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#42 def _view_cache_dependencies?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def asset_host; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def asset_host=(value); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def assets_dir; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def assets_dir=(value); end # Returns the name of the current mailer. This method is also being used as a path for a view lookup. @@ -1126,10 +1126,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#582 def default(value = T.unsafe(nil)); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def default_asset_host_protocol; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def default_asset_host_protocol=(value); end # Sets the defaults through app configuration: @@ -1153,10 +1153,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#502 def default_params?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def default_static_extension; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def default_static_extension=(value); end # source://actionmailer/lib/action_mailer/queued_delivery.rb#9 @@ -1212,10 +1212,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#607 def email_address_with_name(address, name); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def enable_fragment_cache_logging; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def enable_fragment_cache_logging=(value); end # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 @@ -1227,25 +1227,25 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 def file_settings?; end - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys; end - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys=(value); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#25 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#25 def fragment_cache_keys?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def javascripts_dir; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def javascripts_dir=(value); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def logger; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def logger=(value); end # Returns the name of the current mailer. This method is also being used as a path for a view lookup. @@ -1259,10 +1259,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#574 def mailer_name=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def perform_caching; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def perform_caching=(value); end # source://actionmailer/lib/action_mailer/delivery_methods.rb#16 @@ -1289,10 +1289,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/delivery_methods.rb#15 def raise_delivery_errors=(val); end - # source://actionpack/7.1.3.2lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions; end - # source://actionpack/7.1.3.2lib/abstract_controller/callbacks.rb#36 + # source://actionpack/7.1.3.3lib/abstract_controller/callbacks.rb#36 def raise_on_missing_callback_actions=(val); end # Register an Interceptor which will be called before mail is sent. @@ -1319,19 +1319,19 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/base.rb#511 def register_observers(*observers); end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def relative_url_root; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def relative_url_root=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 @@ -1358,10 +1358,10 @@ class ActionMailer::Base < ::AbstractController::Base # source://actionmailer/lib/action_mailer/delivery_methods.rb#53 def smtp_settings?; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#115 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#115 def stylesheets_dir; end - # source://activesupport/7.1.3.2lib/active_support/configurable.rb#116 + # source://activesupport/7.1.3.3lib/active_support/configurable.rb#116 def stylesheets_dir=(value); end # Emails do not support relative path links. @@ -1428,10 +1428,10 @@ module ActionMailer::Base::HelperMethods include ::ActionText::ContentHelper include ::ActionText::TagHelper - # source://actionpack/7.1.3.2lib/abstract_controller/caching/fragments.rb#33 + # source://actionpack/7.1.3.3lib/abstract_controller/caching/fragments.rb#33 def combined_fragment_cache_key(*args, **_arg1, &block); end - # source://actionpack/7.1.3.2lib/abstract_controller/caching.rb#43 + # source://actionpack/7.1.3.3lib/abstract_controller/caching.rb#43 def view_cache_dependencies(*args, **_arg1, &block); end end @@ -1741,7 +1741,7 @@ class ActionMailer::LogSubscriber < ::ActiveSupport::LogSubscriber def process(event); end class << self - # source://activesupport/7.1.3.2lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -1771,10 +1771,10 @@ class ActionMailer::MailDeliveryJob < ::ActiveJob::Base def mailer_class; end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2318,7 +2318,7 @@ class ActionMailer::TestCase < ::ActiveSupport::TestCase def _mailer_class?; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end # source://actionmailer/lib/action_mailer/test_case.rb#41 diff --git a/sorbet/rbi/gems/actionpack@7.1.3.2.rbi b/sorbet/rbi/gems/actionpack@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/actionpack@7.1.3.2.rbi rename to sorbet/rbi/gems/actionpack@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/actiontext@7.1.3.2.rbi b/sorbet/rbi/gems/actiontext@7.1.3.3.rbi similarity index 79% rename from sorbet/rbi/gems/actiontext@7.1.3.2.rbi rename to sorbet/rbi/gems/actiontext@7.1.3.3.rbi index c2bbdfcb..a446b3a1 100644 --- a/sorbet/rbi/gems/actiontext@7.1.3.2.rbi +++ b/sorbet/rbi/gems/actiontext@7.1.3.3.rbi @@ -26,19 +26,19 @@ module ActionText # source://actiontext/lib/action_text.rb#53 def html_document_fragment_class; end - # source://railties/7.1.3.2lib/rails/engine.rb#412 + # source://railties/7.1.3.3lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2lib/rails/engine.rb#395 + # source://railties/7.1.3.3lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2lib/rails/engine.rb#416 + # source://railties/7.1.3.3lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end - # source://railties/7.1.3.2lib/rails/engine.rb#401 + # source://railties/7.1.3.3lib/rails/engine.rb#401 def table_name_prefix; end - # source://railties/7.1.3.2lib/rails/engine.rb#408 + # source://railties/7.1.3.3lib/rails/engine.rb#408 def use_relative_model_naming?; end # Returns the currently loaded version of Action Text as a +Gem::Version+. @@ -188,22 +188,22 @@ class ActionText::Attachables::ContentAttachment extend ::ActiveModel::Validations::HelperMethods extend ::ActiveModel::Conversion::ClassMethods - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators?; end # source://actiontext/lib/action_text/attachables/content_attachment.rb#18 @@ -233,10 +233,10 @@ class ActionText::Attachables::ContentAttachment # source://actiontext/lib/action_text/attachables/content_attachment.rb#13 def content_type=(_arg0); end - # source://activemodel/7.1.3.2lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3lib/active_model/naming.rb#255 def model_name(&block); end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://actiontext/lib/action_text/attachables/content_attachment.rb#22 @@ -248,7 +248,7 @@ class ActionText::Attachables::ContentAttachment # source://actiontext/lib/action_text/attachables/content_attachment.rb#26 def to_s; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#67 def validation_context; end private @@ -256,44 +256,44 @@ class ActionText::Attachables::ContentAttachment # source://actiontext/lib/action_text/attachables/content_attachment.rb#35 def content_instance; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators?; end # source://actiontext/lib/action_text/attachables/content_attachment.rb#8 def from_node(node); end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter?; end end end @@ -310,7 +310,7 @@ class ActionText::Attachables::MissingAttachable # source://actiontext/lib/action_text/attachables/missing_attachable.rb#22 def model; end - # source://activemodel/7.1.3.2lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3lib/active_model/naming.rb#255 def model_name(&block); end # source://actiontext/lib/action_text/attachables/missing_attachable.rb#14 @@ -342,7 +342,7 @@ class ActionText::Attachables::RemoteImage # source://actiontext/lib/action_text/attachables/remote_image.rb#28 def height; end - # source://activemodel/7.1.3.2lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3lib/active_model/naming.rb#255 def model_name(&block); end # source://actiontext/lib/action_text/attachables/remote_image.rb#41 @@ -413,7 +413,7 @@ class ActionText::Attachment # source://actiontext/lib/action_text/attachment.rb#129 def inspect; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # Returns the value of attribute node. @@ -482,7 +482,7 @@ class ActionText::Attachment # source://actiontext/lib/action_text/attachment.rb#134 def node_attributes; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end # source://actiontext/lib/action_text/attachment.rb#142 @@ -548,22 +548,22 @@ class ActionText::AttachmentGallery # source://actiontext/lib/action_text/attachment_gallery.rb#52 def initialize(node); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators?; end # source://actiontext/lib/action_text/attachment_gallery.rb#56 @@ -572,7 +572,7 @@ class ActionText::AttachmentGallery # source://actiontext/lib/action_text/attachment_gallery.rb#66 def inspect; end - # source://activemodel/7.1.3.2lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3lib/active_model/naming.rb#255 def model_name(&block); end # Returns the value of attribute node. @@ -580,43 +580,43 @@ class ActionText::AttachmentGallery # source://actiontext/lib/action_text/attachment_gallery.rb#50 def node; end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end # source://actiontext/lib/action_text/attachment_gallery.rb#62 def size; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.2lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators?; end # source://actiontext/lib/action_text/attachment_gallery.rb#41 @@ -634,13 +634,13 @@ class ActionText::AttachmentGallery # source://actiontext/lib/action_text/attachment_gallery.rb#37 def from_node(node); end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter?; end # source://actiontext/lib/action_text/attachment_gallery.rb#45 @@ -868,10 +868,10 @@ class ActionText::Content # source://actiontext/lib/action_text/content.rb#30 def fragment_by_canonicalizing_content(content); end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#49 def renderer; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/attribute_accessors_per_thread.rb#108 def renderer=(obj); end end end @@ -909,16 +909,16 @@ class ActionText::EncryptedRichText < ::ActionText::RichText include ::ActionText::EncryptedRichText::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end end end @@ -954,7 +954,7 @@ end # source://actiontext/lib/action_text/engine.rb#11 class ActionText::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -1162,10 +1162,10 @@ class ActionText::Record < ::ActiveRecord::Base include ::ActionText::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end end end @@ -1196,13 +1196,13 @@ class ActionText::RichText < ::ActionText::Record include ::ActionText::RichText::GeneratedAttributeMethods include ::ActionText::RichText::GeneratedAssociationMethods - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_embeds_attachments(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_embeds_blobs(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_record(*args); end def blank?(*_arg0, **_arg1, &_arg2); end @@ -1213,83 +1213,83 @@ class ActionText::RichText < ::ActionText::Record def to_s(*_arg0, **_arg1, &_arg2); end def to_trix_html; end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def validate_associated_records_for_embeds_attachments(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def validate_associated_records_for_embeds_blobs(*args); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activestorage/7.1.3.2lib/active_storage/reflection.rb#53 + # source://activestorage/7.1.3.3lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def with_attached_embeds(*args, **_arg1); end end end module ActionText::RichText::GeneratedAssociationMethods - # source://activestorage/7.1.3.2lib/active_storage/attached/model.rb#187 + # source://activestorage/7.1.3.3lib/active_storage/attached/model.rb#187 def embeds; end - # source://activestorage/7.1.3.2lib/active_storage/attached/model.rb#192 + # source://activestorage/7.1.3.3lib/active_storage/attached/model.rb#192 def embeds=(attachables); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/collection_association.rb#62 def embeds_attachment_ids; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/collection_association.rb#72 def embeds_attachment_ids=(ids); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def embeds_attachments; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def embeds_attachments=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/collection_association.rb#62 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/collection_association.rb#62 def embeds_blob_ids; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/collection_association.rb#72 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/collection_association.rb#72 def embeds_blob_ids=(ids); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def embeds_blobs; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def embeds_blobs=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def record; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def record=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#145 def record_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#149 def record_previously_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -1425,216 +1425,216 @@ module ActionView::Helpers mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods class << self - # source://actionview/7.1.3.2lib/action_view/helpers.rb#35 + # source://actionview/7.1.3.3lib/action_view/helpers.rb#35 def eager_load!; end end end class ActionView::Helpers::FormBuilder - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1715 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1715 def initialize(object_name, object, template, options); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2644 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2644 def button(value = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2468 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2468 def check_box(method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#908 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#908 def collection_check_boxes(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#920 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#920 def collection_radio_buttons(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#860 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#860 def collection_select(method, collection, value_method, text_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def color_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def date_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/date_helper.rb#1237 + # source://actionview/7.1.3.3lib/action_view/helpers/date_helper.rb#1237 def date_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def datetime_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def datetime_local_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/date_helper.rb#1261 + # source://actionview/7.1.3.3lib/action_view/helpers/date_helper.rb#1261 def datetime_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def email_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2665 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2665 def emitted_hidden_id?; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1680 def field_helpers; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1680 def field_helpers=(_arg0); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1680 def field_helpers?; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1772 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1772 def field_id(method, *suffixes, namespace: T.unsafe(nil), index: T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1792 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1792 def field_name(method, *methods, multiple: T.unsafe(nil), index: T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2322 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2322 def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2284 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2284 def fields_for(record_name, record_object = T.unsafe(nil), fields_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2551 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2551 def file_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#872 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#872 def grouped_collection_select(method, collection, group_method, group_label_method, option_key_method, option_value_method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2512 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2512 def hidden_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1752 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1752 def id; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1692 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1692 def index; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2399 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2399 def label(method, text = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def month_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1692 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1692 def multipart; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1695 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1695 def multipart=(multipart); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1692 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1692 def multipart?; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def number_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1690 def object; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1690 def object=(_arg0); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1690 def object_name; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1690 def object_name=(_arg0); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1690 def options; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1690 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1690 def options=(_arg0); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def password_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def phone_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2490 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2490 def radio_button(method, tag_value, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def range_field(method, options = T.unsafe(nil)); end def rich_text_area(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def search_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#848 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#848 def select(method, choices = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2583 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2583 def submit(value = T.unsafe(nil), options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def telephone_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def text_area(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def text_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def time_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/date_helper.rb#1249 + # source://actionview/7.1.3.3lib/action_view/helpers/date_helper.rb#1249 def time_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#884 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#884 def time_zone_select(method, priority_zones = T.unsafe(nil), options = T.unsafe(nil), html_options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1711 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1711 def to_model; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1707 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1707 def to_partial_path; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def url_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2021 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2021 def week_field(method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_options_helper.rb#896 + # source://actionview/7.1.3.3lib/action_view/helpers/form_options_helper.rb#896 def weekday_select(method, options = T.unsafe(nil), html_options = T.unsafe(nil)); end private - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2750 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2750 def convert_to_legacy_options(options); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2732 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2732 def fields_for_nested_model(name, object, fields_options, block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2703 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2703 def fields_for_with_nested_attributes(association_name, association, options, block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2699 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2699 def nested_attributes_association?(association_name); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2745 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2745 def nested_child_index(name); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2670 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2670 def objectify_options(options); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#2676 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#2676 def submit_default_value; end class << self - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1703 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1703 def _to_partial_path; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1680 def field_helpers; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1680 def field_helpers=(value); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1680 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1680 def field_helpers?; end end end @@ -1648,141 +1648,141 @@ module ActionView::Helpers::FormHelper mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1586 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1586 def _object_for_form_builder(object); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1343 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1343 def check_box(object_name, method, options = T.unsafe(nil), checked_value = T.unsafe(nil), unchecked_value = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1373 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1373 def color_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1437 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1437 def date_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1510 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1510 def datetime_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1510 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1510 def datetime_local_field(object_name, method, options = T.unsafe(nil)); end def default_form_builder; end def default_form_builder=(_arg0); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1564 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1564 def email_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1077 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1077 def fields(scope = T.unsafe(nil), model: T.unsafe(nil), **options, &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1026 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1026 def fields_for(record_name, record_object = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1245 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1245 def file_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#434 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#434 def form_for(record, options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#755 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#755 def form_with(model: T.unsafe(nil), scope: T.unsafe(nil), url: T.unsafe(nil), format: T.unsafe(nil), **options, &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids=(val); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms=(val); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1212 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1212 def hidden_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1149 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1149 def label(object_name, method, content_or_options = T.unsafe(nil), options = T.unsafe(nil), &block); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1529 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1529 def month_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden=(val); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1573 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1573 def number_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1194 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1194 def password_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1405 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1405 def phone_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1365 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1365 def radio_button(object_name, method, tag_value, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1582 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1582 def range_field(object_name, method, options = T.unsafe(nil)); end def rich_text_area(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1396 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1396 def search_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1405 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1405 def telephone_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1275 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1275 def text_area(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1173 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1173 def text_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1475 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1475 def time_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1555 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1555 def url_field(object_name, method, options = T.unsafe(nil)); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1546 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1546 def week_field(object_name, method, options = T.unsafe(nil)); end private - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#464 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#464 def apply_form_for_options!(object, options); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1620 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1620 def default_form_builder_class; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1591 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1591 def html_options_for_form_with(url_for_options = T.unsafe(nil), model = T.unsafe(nil), html: T.unsafe(nil), local: T.unsafe(nil), skip_enforcing_utf8: T.unsafe(nil), **options); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#1606 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#1606 def instantiate_builder(record_name, record_object, options); end class << self - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#480 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#480 def form_with_generates_ids=(val); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#478 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#478 def form_with_generates_remote_forms=(val); end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden; end - # source://actionview/7.1.3.2lib/action_view/helpers/form_helper.rb#482 + # source://actionview/7.1.3.3lib/action_view/helpers/form_helper.rb#482 def multiple_file_field_include_hidden=(val); end end end diff --git a/sorbet/rbi/gems/actionview@7.1.3.2.rbi b/sorbet/rbi/gems/actionview@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/actionview@7.1.3.2.rbi rename to sorbet/rbi/gems/actionview@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/activejob@7.1.3.2.rbi b/sorbet/rbi/gems/activejob@7.1.3.3.rbi similarity index 98% rename from sorbet/rbi/gems/activejob@7.1.3.2.rbi rename to sorbet/rbi/gems/activejob@7.1.3.3.rbi index 54cf7f6d..cf4939e0 100644 --- a/sorbet/rbi/gems/activejob@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activejob@7.1.3.3.rbi @@ -208,22 +208,22 @@ class ActiveJob::Base extend ::ActiveJob::Exceptions::ClassMethods extend ::ActiveJob::TestHelper::TestQueueAdapter::ClassMethods - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _enqueue_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _perform_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_enqueue_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_perform_callbacks(&block); end # source://activejob/lib/active_job/exceptions.rb#12 @@ -253,35 +253,35 @@ class ActiveJob::Base # source://activejob/lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(_arg0); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _enqueue_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _enqueue_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _perform_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _perform_callbacks=(value); end # source://activejob/lib/active_job/queue_adapter.rb#24 @@ -362,13 +362,13 @@ class ActiveJob::Base # source://activejob/lib/active_job/queue_name.rb#57 def queue_name_prefix?; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers=(value); end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers?; end # source://activejob/lib/active_job/exceptions.rb#11 @@ -406,16 +406,16 @@ module ActiveJob::Callbacks mixes_in_class_methods ::ActiveJob::Callbacks::ClassMethods class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _execute_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_execute_callbacks(&block); end end @@ -1221,7 +1221,7 @@ class ActiveJob::LogSubscriber < ::ActiveSupport::LogSubscriber # source://activejob/lib/active_job/log_subscriber.rb#7 def backtrace_cleaner?; end - # source://activesupport/7.1.3.2lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3lib/active_support/log_subscriber.rb#87 def log_levels; end end end diff --git a/sorbet/rbi/gems/activemodel@7.1.3.2.rbi b/sorbet/rbi/gems/activemodel@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/activemodel@7.1.3.2.rbi rename to sorbet/rbi/gems/activemodel@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/activerecord@7.1.3.2.rbi b/sorbet/rbi/gems/activerecord@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/activerecord@7.1.3.2.rbi rename to sorbet/rbi/gems/activerecord@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/activestorage@7.1.3.2.rbi b/sorbet/rbi/gems/activestorage@7.1.3.3.rbi similarity index 74% rename from sorbet/rbi/gems/activestorage@7.1.3.2.rbi rename to sorbet/rbi/gems/activestorage@7.1.3.3.rbi index 7bd0ef55..cec324d3 100644 --- a/sorbet/rbi/gems/activestorage@7.1.3.2.rbi +++ b/sorbet/rbi/gems/activestorage@7.1.3.3.rbi @@ -10,100 +10,100 @@ class ActiveRecord::Base include ::ActiveModel::AttributeAssignment include ::ActiveModel::Serialization - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _before_commit_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _commit_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _create_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _destroy_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _find_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _initialize_callbacks; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _rollback_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_before_commit_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_commit_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_create_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_destroy_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_find_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_initialize_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_rollback_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_save_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_touch_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_update_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_validate_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#951 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#951 def _run_validation_callbacks(&block); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _save_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _touch_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _update_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _validate_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#963 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#963 def _validation_callbacks; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators?; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#12 def aggregate_reflections?; end # source://activestorage/lib/active_storage/reflection.rb#53 @@ -112,397 +112,397 @@ class ActiveRecord::Base # source://activestorage/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#178 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#178 def column_for_attribute(name, &block); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3lib/active_record/core.rb#97 def default_connection_handler; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3lib/active_record/core.rb#97 def default_connection_handler?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3lib/active_record/core.rb#99 def default_role; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3lib/active_record/core.rb#99 def default_role?; end - # source://activerecord/7.1.3.2lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.3.3lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/7.1.3.2lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.3.3lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3lib/active_record/core.rb#101 def default_shard; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3lib/active_record/core.rb#101 def default_shard?; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#47 + # source://activerecord/7.1.3.3lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#37 + # source://activerecord/7.1.3.3lib/active_record/core.rb#37 def destroy_association_async_job(&block); end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(_arg0); end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activemodel/7.1.3.2lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.2lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/7.1.3.2lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/7.1.3.2lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3lib/active_record/core.rb#22 def logger; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3lib/active_record/core.rb#22 def logger?; end - # source://activemodel/7.1.3.2lib/active_model/naming.rb#255 + # source://activemodel/7.1.3.3lib/active_model/naming.rb#255 def model_name(&block); end - # source://activerecord/7.1.3.2lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/7.1.3.2lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/7.1.3.2lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/7.1.3.2lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3lib/active_record/normalization.rb#8 def normalized_attributes=(_arg0); end - # source://activerecord/7.1.3.2lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter=(_arg0); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#163 def pluralize_table_names; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#163 def pluralize_table_names?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#158 def primary_key_prefix_type; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#158 def primary_key_prefix_type?; end - # source://activerecord/7.1.3.2lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/7.1.3.2lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3lib/active_record/timestamp.rb#47 def record_timestamps=(_arg0); end - # source://activerecord/7.1.3.2lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/7.1.3.2lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/7.1.3.2lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#159 def table_name_prefix; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#159 def table_name_prefix?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#160 def table_name_suffix; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#160 def table_name_suffix?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#178 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#178 def type_for_attribute(attr_name, &block); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#67 def validation_context; end private - # source://activemodel/7.1.3.2lib/active_model/validations.rb#67 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#67 def validation_context=(_arg0); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks?; end - # source://activerecord/7.1.3.2lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/readonly_attributes.rb#11 def _attr_readonly; end - # source://activerecord/7.1.3.2lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/readonly_attributes.rb#11 def _attr_readonly=(value); end - # source://activerecord/7.1.3.2lib/active_record/readonly_attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/readonly_attributes.rb#11 def _attr_readonly?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _before_commit_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _before_commit_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _commit_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _commit_callbacks=(value); end - # source://activerecord/7.1.3.2lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.3.3lib/active_record/counter_cache.rb#9 def _counter_cache_columns; end - # source://activerecord/7.1.3.2lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.3.3lib/active_record/counter_cache.rb#9 def _counter_cache_columns=(value); end - # source://activerecord/7.1.3.2lib/active_record/counter_cache.rb#9 + # source://activerecord/7.1.3.3lib/active_record/counter_cache.rb#9 def _counter_cache_columns?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _create_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _create_callbacks=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3lib/active_record/core.rb#24 def _destroy_association_async_job; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3lib/active_record/core.rb#24 def _destroy_association_async_job=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3lib/active_record/core.rb#24 def _destroy_association_async_job?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _destroy_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _destroy_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _find_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _find_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _initialize_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _initialize_callbacks=(value); end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections=(value); end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections?; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _rollback_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _rollback_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _save_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _save_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _touch_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _touch_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _update_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _update_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _validate_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _validate_callbacks=(value); end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#955 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#955 def _validation_callbacks; end - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#959 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#959 def _validation_callbacks=(value); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators=(value); end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators?; end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_create(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_find(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_initialize(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_save(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_touch(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#144 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#144 def after_update(*args, **options, &block); end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#12 def aggregate_reflections; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#12 def aggregate_reflections=(value); end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#12 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#12 def aggregate_reflections?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#105 + # source://activerecord/7.1.3.3lib/active_record/core.rb#105 def application_record_class?; end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#137 def around_create(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#137 def around_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#137 def around_save(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#137 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#137 def around_update(*args, **options, &block); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#125 + # source://activerecord/7.1.3.3lib/active_record/core.rb#125 def asynchronous_queries_session; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#129 + # source://activerecord/7.1.3.3lib/active_record/core.rb#129 def asynchronous_queries_tracker; end # source://activestorage/lib/active_storage/reflection.rb#53 @@ -514,489 +514,489 @@ class ActiveRecord::Base # source://activestorage/lib/active_storage/reflection.rb#53 def attachment_reflections?; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#72 def attribute_aliases; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#72 def attribute_aliases=(value); end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#72 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#72 def attribute_aliases?; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#73 def attribute_method_patterns; end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#73 def attribute_method_patterns=(value); end - # source://activemodel/7.1.3.2lib/active_model/attribute_methods.rb#73 + # source://activemodel/7.1.3.3lib/active_model/attribute_methods.rb#73 def attribute_method_patterns?; end - # source://activerecord/7.1.3.2lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads; end - # source://activerecord/7.1.3.2lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads=(value); end - # source://activerecord/7.1.3.2lib/active_record/attributes.rb#11 + # source://activerecord/7.1.3.3lib/active_record/attributes.rb#11 def attributes_to_define_after_schema_loads?; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#13 def automatic_scope_inversing; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#13 def automatic_scope_inversing=(value); end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#13 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#13 def automatic_scope_inversing?; end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#130 def before_create(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#130 def before_destroy(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#130 def before_save(*args, **options, &block); end - # source://activemodel/7.1.3.2lib/active_model/callbacks.rb#130 + # source://activemodel/7.1.3.3lib/active_model/callbacks.rb#130 def before_update(*args, **options, &block); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#89 + # source://activerecord/7.1.3.3lib/active_record/core.rb#89 def belongs_to_required_by_default; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#89 + # source://activerecord/7.1.3.3lib/active_record/core.rb#89 def belongs_to_required_by_default=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#89 + # source://activerecord/7.1.3.3lib/active_record/core.rb#89 def belongs_to_required_by_default?; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#16 def cache_timestamp_format; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#16 def cache_timestamp_format=(value); end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#16 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#16 def cache_timestamp_format?; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#24 def cache_versioning; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#24 def cache_versioning=(value); end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#24 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#24 def cache_versioning?; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#32 def collection_cache_versioning; end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#32 def collection_cache_versioning=(value); end - # source://activerecord/7.1.3.2lib/active_record/integration.rb#32 + # source://activerecord/7.1.3.3lib/active_record/integration.rb#32 def collection_cache_versioning?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#77 + # source://activerecord/7.1.3.3lib/active_record/core.rb#77 def configurations; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#71 + # source://activerecord/7.1.3.3lib/active_record/core.rb#71 def configurations=(config); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#189 + # source://activerecord/7.1.3.3lib/active_record/core.rb#189 def connected_to_stack; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#203 + # source://activerecord/7.1.3.3lib/active_record/core.rb#203 def connection_class; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#199 + # source://activerecord/7.1.3.3lib/active_record/core.rb#199 def connection_class=(b); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#207 + # source://activerecord/7.1.3.3lib/active_record/core.rb#207 def connection_class?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#211 + # source://activerecord/7.1.3.3lib/active_record/core.rb#211 def connection_class_for_self; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#117 + # source://activerecord/7.1.3.3lib/active_record/core.rb#117 def connection_handler; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#121 + # source://activerecord/7.1.3.3lib/active_record/core.rb#121 def connection_handler=(handler); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#180 + # source://activerecord/7.1.3.3lib/active_record/core.rb#180 def current_preventing_writes; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#143 + # source://activerecord/7.1.3.3lib/active_record/core.rb#143 def current_role; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#161 + # source://activerecord/7.1.3.3lib/active_record/core.rb#161 def current_shard; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer=(value); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/serialization.rb#20 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/serialization.rb#20 def default_column_serializer?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3lib/active_record/core.rb#97 def default_connection_handler; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3lib/active_record/core.rb#97 def default_connection_handler=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#97 + # source://activerecord/7.1.3.3lib/active_record/core.rb#97 def default_connection_handler?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3lib/active_record/core.rb#99 def default_role; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3lib/active_record/core.rb#99 def default_role=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#99 + # source://activerecord/7.1.3.3lib/active_record/core.rb#99 def default_role?; end - # source://activerecord/7.1.3.2lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.3.3lib/active_record/scoping/default.rb#20 def default_scope_override; end - # source://activerecord/7.1.3.2lib/active_record/scoping/default.rb#20 + # source://activerecord/7.1.3.3lib/active_record/scoping/default.rb#20 def default_scope_override=(value); end - # source://activerecord/7.1.3.2lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.3.3lib/active_record/scoping/default.rb#19 def default_scopes; end - # source://activerecord/7.1.3.2lib/active_record/scoping/default.rb#19 + # source://activerecord/7.1.3.3lib/active_record/scoping/default.rb#19 def default_scopes=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3lib/active_record/core.rb#101 def default_shard; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3lib/active_record/core.rb#101 def default_shard=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#101 + # source://activerecord/7.1.3.3lib/active_record/core.rb#101 def default_shard?; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums=(value); end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#47 + # source://activerecord/7.1.3.3lib/active_record/core.rb#47 def destroy_association_async_batch_size; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#47 + # source://activerecord/7.1.3.3lib/active_record/core.rb#47 def destroy_association_async_batch_size=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#27 + # source://activerecord/7.1.3.3lib/active_record/core.rb#27 def destroy_association_async_job; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#24 + # source://activerecord/7.1.3.3lib/active_record/core.rb#24 def destroy_association_async_job=(value); end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes; end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes=(value); end - # source://activerecord/7.1.3.2lib/active_record/encryption/encryptable_record.rb#11 + # source://activerecord/7.1.3.3lib/active_record/encryption/encryptable_record.rb#11 def encrypted_attributes?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#87 + # source://activerecord/7.1.3.3lib/active_record/core.rb#87 def enumerate_columns_in_select_statements; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#87 + # source://activerecord/7.1.3.3lib/active_record/core.rb#87 def enumerate_columns_in_select_statements=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#87 + # source://activerecord/7.1.3.3lib/active_record/core.rb#87 def enumerate_columns_in_select_statements?; end - # source://activerecord/7.1.3.2lib/active_record/token_for.rb#11 + # source://activerecord/7.1.3.3lib/active_record/token_for.rb#11 def generated_token_verifier; end - # source://activerecord/7.1.3.2lib/active_record/token_for.rb#11 + # source://activerecord/7.1.3.3lib/active_record/token_for.rb#11 def generated_token_verifier=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#93 + # source://activerecord/7.1.3.3lib/active_record/core.rb#93 def has_many_inversing; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#93 + # source://activerecord/7.1.3.3lib/active_record/core.rb#93 def has_many_inversing=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#93 + # source://activerecord/7.1.3.3lib/active_record/core.rb#93 def has_many_inversing?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#165 def immutable_strings_by_default; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#165 def immutable_strings_by_default=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#165 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#165 def immutable_strings_by_default?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#164 def implicit_order_column; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#164 def implicit_order_column=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#164 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#164 def implicit_order_column?; end - # source://activemodel/7.1.3.2lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3lib/active_model/serializers/json.rb#15 def include_root_in_json; end - # source://activemodel/7.1.3.2lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3lib/active_model/serializers/json.rb#15 def include_root_in_json=(value); end - # source://activemodel/7.1.3.2lib/active_model/serializers/json.rb#15 + # source://activemodel/7.1.3.3lib/active_model/serializers/json.rb#15 def include_root_in_json?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#167 def inheritance_column; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#321 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#321 def inheritance_column=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#167 def inheritance_column?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#162 def internal_metadata_table_name; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#162 def internal_metadata_table_name=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#162 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#162 def internal_metadata_table_name?; end - # source://activerecord/7.1.3.2lib/active_record/store.rb#101 + # source://activerecord/7.1.3.3lib/active_record/store.rb#101 def local_stored_attributes; end - # source://activerecord/7.1.3.2lib/active_record/store.rb#101 + # source://activerecord/7.1.3.3lib/active_record/store.rb#101 def local_stored_attributes=(_arg0); end - # source://activerecord/7.1.3.2lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3lib/active_record/locking/optimistic.rb#56 def lock_optimistically; end - # source://activerecord/7.1.3.2lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3lib/active_record/locking/optimistic.rb#56 def lock_optimistically=(value); end - # source://activerecord/7.1.3.2lib/active_record/locking/optimistic.rb#56 + # source://activerecord/7.1.3.3lib/active_record/locking/optimistic.rb#56 def lock_optimistically?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3lib/active_record/core.rb#22 def logger; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3lib/active_record/core.rb#22 def logger=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#22 + # source://activerecord/7.1.3.3lib/active_record/core.rb#22 def logger?; end - # source://activerecord/7.1.3.2lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3lib/active_record/nested_attributes.rb#15 def nested_attributes_options; end - # source://activerecord/7.1.3.2lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3lib/active_record/nested_attributes.rb#15 def nested_attributes_options=(value); end - # source://activerecord/7.1.3.2lib/active_record/nested_attributes.rb#15 + # source://activerecord/7.1.3.3lib/active_record/nested_attributes.rb#15 def nested_attributes_options?; end - # source://activerecord/7.1.3.2lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3lib/active_record/normalization.rb#8 def normalized_attributes; end - # source://activerecord/7.1.3.2lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3lib/active_record/normalization.rb#8 def normalized_attributes=(value); end - # source://activerecord/7.1.3.2lib/active_record/normalization.rb#8 + # source://activerecord/7.1.3.3lib/active_record/normalization.rb#8 def normalized_attributes?; end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter; end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter=(value); end - # source://activemodel/7.1.3.2lib/active_model/conversion.rb#32 + # source://activemodel/7.1.3.3lib/active_model/conversion.rb#32 def param_delimiter?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts=(value); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#50 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#50 def partial_inserts?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#49 def partial_updates; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#49 def partial_updates=(value); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/dirty.rb#49 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/dirty.rb#49 def partial_updates?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#163 def pluralize_table_names; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#163 def pluralize_table_names=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#163 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#163 def pluralize_table_names?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#158 def primary_key_prefix_type; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#158 def primary_key_prefix_type=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#158 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#158 def primary_key_prefix_type?; end - # source://activerecord/7.1.3.2lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3lib/active_record/timestamp.rb#47 def record_timestamps; end - # source://activerecord/7.1.3.2lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3lib/active_record/timestamp.rb#47 def record_timestamps=(value); end - # source://activerecord/7.1.3.2lib/active_record/timestamp.rb#47 + # source://activerecord/7.1.3.3lib/active_record/timestamp.rb#47 def record_timestamps?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#95 + # source://activerecord/7.1.3.3lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#95 + # source://activerecord/7.1.3.3lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#95 + # source://activerecord/7.1.3.3lib/active_record/core.rb#95 def run_commit_callbacks_on_first_saved_instances_in_transaction?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#161 def schema_migrations_table_name; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#161 def schema_migrations_table_name=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#161 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#161 def schema_migrations_table_name?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#103 + # source://activerecord/7.1.3.3lib/active_record/core.rb#103 def shard_selector; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#103 + # source://activerecord/7.1.3.3lib/active_record/core.rb#103 def shard_selector=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#103 + # source://activerecord/7.1.3.3lib/active_record/core.rb#103 def shard_selector?; end - # source://activerecord/7.1.3.2lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3lib/active_record/signed_id.rb#13 def signed_id_verifier_secret; end - # source://activerecord/7.1.3.2lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3lib/active_record/signed_id.rb#13 def signed_id_verifier_secret=(value); end - # source://activerecord/7.1.3.2lib/active_record/signed_id.rb#13 + # source://activerecord/7.1.3.3lib/active_record/signed_id.rb#13 def signed_id_verifier_secret?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes=(value); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#67 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#67 def skip_time_zone_conversion_for_attributes?; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#43 def store_full_class_name; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#43 def store_full_class_name=(value); end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#43 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#43 def store_full_class_name?; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#47 def store_full_sti_class; end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#47 def store_full_sti_class=(value); end - # source://activerecord/7.1.3.2lib/active_record/inheritance.rb#47 + # source://activerecord/7.1.3.3lib/active_record/inheritance.rb#47 def store_full_sti_class?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#91 + # source://activerecord/7.1.3.3lib/active_record/core.rb#91 def strict_loading_by_default; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#91 + # source://activerecord/7.1.3.3lib/active_record/core.rb#91 def strict_loading_by_default=(value); end - # source://activerecord/7.1.3.2lib/active_record/core.rb#91 + # source://activerecord/7.1.3.3lib/active_record/core.rb#91 def strict_loading_by_default?; end - # source://activerecord/7.1.3.2lib/active_record/core.rb#226 + # source://activerecord/7.1.3.3lib/active_record/core.rb#226 def strict_loading_violation!(owner:, reflection:); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#159 def table_name_prefix; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#159 def table_name_prefix=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#159 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#159 def table_name_prefix?; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#160 def table_name_suffix; end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#160 def table_name_suffix=(value); end - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#160 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#160 def table_name_suffix?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes=(value); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#66 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#66 def time_zone_aware_attributes?; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types; end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types=(value); end - # source://activerecord/7.1.3.2lib/active_record/attribute_methods/time_zone_conversion.rb#68 + # source://activerecord/7.1.3.3lib/active_record/attribute_methods/time_zone_conversion.rb#68 def time_zone_aware_types?; end - # source://activerecord/7.1.3.2lib/active_record/token_for.rb#10 + # source://activerecord/7.1.3.3lib/active_record/token_for.rb#10 def token_definitions; end - # source://activerecord/7.1.3.2lib/active_record/token_for.rb#10 + # source://activerecord/7.1.3.3lib/active_record/token_for.rb#10 def token_definitions=(value); end private - # source://activerecord/7.1.3.2lib/active_record/model_schema.rb#167 + # source://activerecord/7.1.3.3lib/active_record/model_schema.rb#167 def _inheritance_column=(value); end end end @@ -1197,13 +1197,13 @@ module ActiveStorage # source://activestorage/lib/active_storage.rb#52 def queues=(val); end - # source://railties/7.1.3.2lib/rails/engine.rb#412 + # source://railties/7.1.3.3lib/rails/engine.rb#412 def railtie_helpers_paths; end - # source://railties/7.1.3.2lib/rails/engine.rb#395 + # source://railties/7.1.3.3lib/rails/engine.rb#395 def railtie_namespace; end - # source://railties/7.1.3.2lib/rails/engine.rb#416 + # source://railties/7.1.3.3lib/rails/engine.rb#416 def railtie_routes_url_helpers(include_path_helpers = T.unsafe(nil)); end # source://activestorage/lib/active_storage.rb#367 @@ -1242,7 +1242,7 @@ module ActiveStorage # source://activestorage/lib/active_storage.rb#65 def supported_image_processing_methods=(val); end - # source://railties/7.1.3.2lib/rails/engine.rb#401 + # source://railties/7.1.3.3lib/rails/engine.rb#401 def table_name_prefix; end # source://activestorage/lib/active_storage.rb#363 @@ -1263,7 +1263,7 @@ module ActiveStorage # source://activestorage/lib/active_storage.rb#357 def urls_expire_in=(val); end - # source://railties/7.1.3.2lib/rails/engine.rb#408 + # source://railties/7.1.3.3lib/rails/engine.rb#408 def use_relative_model_naming?; end # source://activestorage/lib/active_storage.rb#59 @@ -1307,10 +1307,10 @@ class ActiveStorage::AnalyzeJob < ::ActiveStorage::BaseJob def perform(blob); end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -1840,7 +1840,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage/lib/active_storage/attached/many.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # source://activestorage/lib/active_storage/attached/many.rb#13 @@ -1857,7 +1857,7 @@ class ActiveStorage::Attached::Many < ::ActiveStorage::Attached # source://activestorage/lib/active_storage/attached/many.rb#71 def purge_many; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -1916,7 +1916,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage/lib/active_storage/attached/one.rb#25 def detach(*_arg0, **_arg1, &_arg2); end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end # source://activestorage/lib/active_storage/attached/one.rb#13 @@ -1933,7 +1933,7 @@ class ActiveStorage::Attached::One < ::ActiveStorage::Attached # source://activestorage/lib/active_storage/attached/one.rb#78 def purge_one; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end end @@ -1941,13 +1941,13 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record include ::ActiveStorage::Attachment::GeneratedAttributeMethods include ::ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_blob(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_record(*args); end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#331 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#331 def method_missing(method, *args, **_arg2, &block); end def preview(transformations); end @@ -1956,7 +1956,7 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def representation(transformations); end def signed_id(*_arg0, **_arg1, &_arg2); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def validate_associated_records_for_blob(*args); end def variant(transformations); end @@ -1969,74 +1969,74 @@ class ActiveStorage::Attachment < ::ActiveStorage::Record def named_variants; end def purge_dependent_blob_later; end - # source://activesupport/7.1.3.2lib/active_support/core_ext/module/delegation.rb#323 + # source://activesupport/7.1.3.3lib/active_support/core_ext/module/delegation.rb#323 def respond_to_missing?(name, include_private = T.unsafe(nil)); end def transform_variants_later; end def transformations_by_name(transformations); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def with_all_variant_records(*args, **_arg1); end end end module ActiveStorage::Attachment::GeneratedAssociationMethods - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def blob=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#145 def blob_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#149 def blob_previously_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def record; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def record=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#145 def record_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#149 def record_previously_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_record; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_record; end end @@ -2047,17 +2047,17 @@ class ActiveStorage::BaseController < ::ActionController::Base private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal/etag_with_template_digest.rb#29 + # source://actionpack/7.1.3.3lib/action_controller/metal/etag_with_template_digest.rb#29 def etag_with_template_digest; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2076,14 +2076,14 @@ class ActiveStorage::Blobs::ProxyController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2095,24 +2095,24 @@ class ActiveStorage::Blobs::RedirectController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end class ActiveStorage::Current < ::ActiveSupport::CurrentAttributes class << self - # source://activesupport/7.1.3.2lib/active_support/current_attributes.rb#127 + # source://activesupport/7.1.3.3lib/active_support/current_attributes.rb#127 def url_options; end - # source://activesupport/7.1.3.2lib/active_support/current_attributes.rb#127 + # source://activesupport/7.1.3.3lib/active_support/current_attributes.rb#127 def url_options=(value); end end end @@ -2122,14 +2122,14 @@ class ActiveStorage::DirectUploadsController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def blob_args; end def direct_upload_json(blob); end class << self - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2146,7 +2146,7 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def acceptable_content?(token); end @@ -2155,10 +2155,10 @@ class ActiveStorage::DiskController < ::ActiveStorage::BaseController def named_disk_service(name); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2193,7 +2193,7 @@ end # source://activestorage/lib/active_storage/engine.rb#25 class ActiveStorage::Engine < ::Rails::Engine class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end end end @@ -2279,10 +2279,10 @@ class ActiveStorage::FixtureSet include ::ActiveRecord::SecureToken extend ::ActiveRecord::SecureToken::ClassMethods - # source://activesupport/7.1.3.2lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/7.1.3.2lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end # source://activestorage/lib/active_storage/fixture_set.rb#70 @@ -2310,13 +2310,13 @@ class ActiveStorage::FixtureSet # source://activestorage/lib/active_storage/fixture_set.rb#66 def blob(filename:, **attributes); end - # source://activesupport/7.1.3.2lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path; end - # source://activesupport/7.1.3.2lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path=(value); end - # source://activesupport/7.1.3.2lib/active_support/testing/file_fixtures.rb#20 + # source://activesupport/7.1.3.3lib/active_support/testing/file_fixtures.rb#20 def file_fixture_path?; end end end @@ -2380,7 +2380,7 @@ class ActiveStorage::LogSubscriber < ::ActiveSupport::LogSubscriber def log_prefix_for_service(event); end class << self - # source://activesupport/7.1.3.2lib/active_support/log_subscriber.rb#87 + # source://activesupport/7.1.3.3lib/active_support/log_subscriber.rb#87 def log_levels; end end end @@ -2389,10 +2389,10 @@ class ActiveStorage::MirrorJob < ::ActiveStorage::BaseJob def perform(key, checksum:); end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2561,10 +2561,10 @@ class ActiveStorage::PurgeJob < ::ActiveStorage::BaseJob def perform(blob); end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -2574,10 +2574,10 @@ class ActiveStorage::Record < ::ActiveRecord::Base include ::ActiveStorage::Record::GeneratedAssociationMethods class << self - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end end end @@ -2670,17 +2670,17 @@ class ActiveStorage::Representations::BaseController < ::ActiveStorage::BaseCont private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end def blob_scope; end def set_representation; end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2695,14 +2695,14 @@ class ActiveStorage::Representations::ProxyController < ::ActiveStorage::Represe private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2712,11 +2712,11 @@ class ActiveStorage::Representations::RedirectController < ::ActiveStorage::Repr private - # source://actionview/7.1.3.2lib/action_view/layouts.rb#330 + # source://actionview/7.1.3.3lib/action_view/layouts.rb#330 def _layout(lookup_context, formats); end class << self - # source://actionpack/7.1.3.2lib/action_controller/metal.rb#262 + # source://actionpack/7.1.3.3lib/action_controller/metal.rb#262 def middleware_stack; end end end @@ -2986,10 +2986,10 @@ class ActiveStorage::TransformJob < ::ActiveStorage::BaseJob def perform(blob, transformations); end class << self - # source://activejob/7.1.3.2lib/active_job/queue_name.rb#55 + # source://activejob/7.1.3.3lib/active_job/queue_name.rb#55 def queue_name; end - # source://activesupport/7.1.3.2lib/active_support/rescuable.rb#15 + # source://activesupport/7.1.3.3lib/active_support/rescuable.rb#15 def rescue_handlers; end end end @@ -3072,74 +3072,74 @@ class ActiveStorage::VariantRecord < ::ActiveStorage::Record include ::ActiveStorage::VariantRecord::GeneratedAttributeMethods include ::ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_blob(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_image_attachment(*args); end - # source://activerecord/7.1.3.2lib/active_record/autosave_association.rb#160 + # source://activerecord/7.1.3.3lib/active_record/autosave_association.rb#160 def autosave_associated_records_for_image_blob(*args); end class << self - # source://activesupport/7.1.3.2lib/active_support/callbacks.rb#70 + # source://activesupport/7.1.3.3lib/active_support/callbacks.rb#70 def __callbacks; end - # source://activerecord/7.1.3.2lib/active_record/reflection.rb#11 + # source://activerecord/7.1.3.3lib/active_record/reflection.rb#11 def _reflections; end - # source://activemodel/7.1.3.2lib/active_model/validations.rb#71 + # source://activemodel/7.1.3.3lib/active_model/validations.rb#71 def _validators; end # source://activestorage/lib/active_storage/reflection.rb#53 def attachment_reflections; end - # source://activerecord/7.1.3.2lib/active_record/enum.rb#167 + # source://activerecord/7.1.3.3lib/active_record/enum.rb#167 def defined_enums; end - # source://activerecord/7.1.3.2lib/active_record/scoping/named.rb#174 + # source://activerecord/7.1.3.3lib/active_record/scoping/named.rb#174 def with_attached_image(*args, **_arg1); end end end module ActiveStorage::VariantRecord::GeneratedAssociationMethods - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def blob=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#145 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#145 def blob_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/belongs_to.rb#149 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/belongs_to.rb#149 def blob_previously_changed?; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#32 def build_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#32 def build_image_attachment(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#32 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#32 def build_image_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#36 def create_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#40 def create_blob!(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#36 def create_image_attachment(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#40 def create_image_attachment!(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#36 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#36 def create_image_blob(*args, &block); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#40 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#40 def create_image_blob!(*args, &block); end # source://activestorage/lib/active_storage/attached/model.rb#99 @@ -3148,34 +3148,34 @@ module ActiveStorage::VariantRecord::GeneratedAssociationMethods # source://activestorage/lib/active_storage/attached/model.rb#104 def image=(attachable); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def image_attachment; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def image_attachment=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#103 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#103 def image_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/association.rb#111 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/association.rb#111 def image_blob=(value); end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_image_attachment; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#19 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#19 def reload_image_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_blob; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_image_attachment; end - # source://activerecord/7.1.3.2lib/active_record/associations/builder/singular_association.rb#23 + # source://activerecord/7.1.3.3lib/active_record/associations/builder/singular_association.rb#23 def reset_image_blob; end end diff --git a/sorbet/rbi/gems/activesupport@7.1.3.2.rbi b/sorbet/rbi/gems/activesupport@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/activesupport@7.1.3.2.rbi rename to sorbet/rbi/gems/activesupport@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/bigdecimal@3.1.6.rbi b/sorbet/rbi/gems/bigdecimal@3.1.8.rbi similarity index 100% rename from sorbet/rbi/gems/bigdecimal@3.1.6.rbi rename to sorbet/rbi/gems/bigdecimal@3.1.8.rbi diff --git a/sorbet/rbi/gems/drb@2.2.0.rbi b/sorbet/rbi/gems/drb@2.2.1.rbi similarity index 81% rename from sorbet/rbi/gems/drb@2.2.0.rbi rename to sorbet/rbi/gems/drb@2.2.1.rbi index 3062c53e..86dede9c 100644 --- a/sorbet/rbi/gems/drb@2.2.0.rbi +++ b/sorbet/rbi/gems/drb@2.2.1.rbi @@ -5,6 +5,8 @@ # Please instead update this file by running `bin/tapioca gem drb`. # for ruby-1.8.0 +# +# source://drb/lib/drb/eq.rb#2 module DRb private @@ -13,7 +15,7 @@ module DRb # If there is no current server, this returns the default configuration. # See #current_server and DRbServer::make_config. # - # source://drb/drb/drb.rb#1832 + # source://drb/lib/drb/drb.rb#1832 def config; end # Get the 'current' server. @@ -29,14 +31,14 @@ module DRb # # @raise [DRbServerNotFound] # - # source://drb/drb/drb.rb#1789 + # source://drb/lib/drb/drb.rb#1789 def current_server; end # Retrieves the server with the given +uri+. # # See also regist_server and remove_server. # - # source://drb/drb/drb.rb#1934 + # source://drb/lib/drb/drb.rb#1934 def fetch_server(uri); end # Get the front object of the current server. @@ -44,21 +46,21 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb/drb/drb.rb#1843 + # source://drb/lib/drb/drb.rb#1843 def front; end # Is +uri+ the URI for the current local server? # # @return [Boolean] # - # source://drb/drb/drb.rb#1822 + # source://drb/lib/drb/drb.rb#1822 def here?(uri); end # Set the default ACL to +acl+. # # See DRb::DRbServer.default_acl. # - # source://drb/drb/drb.rb#1888 + # source://drb/lib/drb/drb.rb#1888 def install_acl(acl); end # Set the default id conversion object. @@ -68,24 +70,24 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb/drb/drb.rb#1880 + # source://drb/lib/drb/drb.rb#1880 def install_id_conv(idconv); end - # source://drb/drb/drb.rb#1894 + # source://drb/lib/drb/drb.rb#1894 def mutex; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb/drb/drb.rb#1776 + # source://drb/lib/drb/drb.rb#1776 def primary_server; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb/drb/drb.rb#1776 + # source://drb/lib/drb/drb.rb#1776 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -101,12 +103,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb/drb/drb.rb#1912 + # source://drb/lib/drb/drb.rb#1912 def regist_server(server); end # Removes +server+ from the list of registered servers. # - # source://drb/drb/drb.rb#1921 + # source://drb/lib/drb/drb.rb#1921 def remove_server(server); end # Start a dRuby server locally. @@ -125,7 +127,7 @@ module DRb # # See DRbServer::new. # - # source://drb/drb/drb.rb#1768 + # source://drb/lib/drb/drb.rb#1768 def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end # Stop the local dRuby server. @@ -133,14 +135,14 @@ module DRb # This operates on the primary server. If there is no primary # server currently running, it is a noop. # - # source://drb/drb/drb.rb#1801 + # source://drb/lib/drb/drb.rb#1801 def stop_service; end # Get the thread of the primary server. # # This returns nil if there is no primary server. See #primary_server. # - # source://drb/drb/drb.rb#1869 + # source://drb/lib/drb/drb.rb#1869 def thread; end # Get a reference id for an object using the current server. @@ -148,7 +150,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb/drb/drb.rb#1860 + # source://drb/lib/drb/drb.rb#1860 def to_id(obj); end # Convert a reference into an object using the current server. @@ -156,14 +158,14 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb/drb/drb.rb#1852 + # source://drb/lib/drb/drb.rb#1852 def to_obj(ref); end # Get the URI defining the local dRuby space. # # This is the URI of the current server. See #current_server. # - # source://drb/drb/drb.rb#1810 + # source://drb/lib/drb/drb.rb#1810 def uri; end class << self @@ -172,7 +174,7 @@ module DRb # If there is no current server, this returns the default configuration. # See #current_server and DRbServer::make_config. # - # source://drb/drb/drb.rb#1832 + # source://drb/lib/drb/drb.rb#1832 def config; end # Get the 'current' server. @@ -188,14 +190,14 @@ module DRb # # @raise [DRbServerNotFound] # - # source://drb/drb/drb.rb#1789 + # source://drb/lib/drb/drb.rb#1789 def current_server; end # Retrieves the server with the given +uri+. # # See also regist_server and remove_server. # - # source://drb/drb/drb.rb#1934 + # source://drb/lib/drb/drb.rb#1934 def fetch_server(uri); end # Get the front object of the current server. @@ -203,21 +205,21 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb/drb/drb.rb#1843 + # source://drb/lib/drb/drb.rb#1843 def front; end # Is +uri+ the URI for the current local server? # # @return [Boolean] # - # source://drb/drb/drb.rb#1822 + # source://drb/lib/drb/drb.rb#1822 def here?(uri); end # Set the default ACL to +acl+. # # See DRb::DRbServer.default_acl. # - # source://drb/drb/drb.rb#1888 + # source://drb/lib/drb/drb.rb#1888 def install_acl(acl); end # Set the default id conversion object. @@ -227,24 +229,24 @@ module DRb # # See DRbServer#default_id_conv. # - # source://drb/drb/drb.rb#1880 + # source://drb/lib/drb/drb.rb#1880 def install_id_conv(idconv); end - # source://drb/drb/drb.rb#1894 + # source://drb/lib/drb/drb.rb#1894 def mutex; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb/drb/drb.rb#1776 + # source://drb/lib/drb/drb.rb#1776 def primary_server; end # The primary local dRuby server. # # This is the server created by the #start_service call. # - # source://drb/drb/drb.rb#1776 + # source://drb/lib/drb/drb.rb#1776 def primary_server=(_arg0); end # Registers +server+ with DRb. @@ -260,12 +262,12 @@ module DRb # s = DRb::DRbServer.new # automatically calls regist_server # DRb.fetch_server s.uri #=> # # - # source://drb/drb/drb.rb#1912 + # source://drb/lib/drb/drb.rb#1912 def regist_server(server); end # Removes +server+ from the list of registered servers. # - # source://drb/drb/drb.rb#1921 + # source://drb/lib/drb/drb.rb#1921 def remove_server(server); end # Start a dRuby server locally. @@ -284,7 +286,7 @@ module DRb # # See DRbServer::new. # - # source://drb/drb/drb.rb#1768 + # source://drb/lib/drb/drb.rb#1768 def start_service(uri = T.unsafe(nil), front = T.unsafe(nil), config = T.unsafe(nil)); end # Stop the local dRuby server. @@ -292,14 +294,14 @@ module DRb # This operates on the primary server. If there is no primary # server currently running, it is a noop. # - # source://drb/drb/drb.rb#1801 + # source://drb/lib/drb/drb.rb#1801 def stop_service; end # Get the thread of the primary server. # # This returns nil if there is no primary server. See #primary_server. # - # source://drb/drb/drb.rb#1869 + # source://drb/lib/drb/drb.rb#1869 def thread; end # Get a reference id for an object using the current server. @@ -307,7 +309,7 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb/drb/drb.rb#1860 + # source://drb/lib/drb/drb.rb#1860 def to_id(obj); end # Convert a reference into an object using the current server. @@ -315,14 +317,14 @@ module DRb # This raises a DRbServerNotFound error if there is no current server. # See #current_server. # - # source://drb/drb/drb.rb#1852 + # source://drb/lib/drb/drb.rb#1852 def to_obj(ref); end # Get the URI defining the local dRuby space. # # This is the URI of the current server. See #current_server. # - # source://drb/drb/drb.rb#1810 + # source://drb/lib/drb/drb.rb#1810 def uri; end end end @@ -331,20 +333,22 @@ end # # All entries in the array will be dumped or be references that point to # the local server. +# +# source://drb/lib/drb/drb.rb#518 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. # # @return [DRbArray] a new instance of DRbArray # - # source://drb/drb/drb.rb#523 + # source://drb/lib/drb/drb.rb#523 def initialize(ary); end - # source://drb/drb/drb.rb#542 + # source://drb/lib/drb/drb.rb#542 def _dump(lv); end class << self - # source://drb/drb/drb.rb#538 + # source://drb/lib/drb/drb.rb#538 def _load(s); end end end @@ -358,34 +362,36 @@ end # # This class is used internally by DRbObject. The user does # not normally need to deal with it directly. +# +# source://drb/lib/drb/drb.rb#1256 class DRb::DRbConn # @return [DRbConn] a new instance of DRbConn # - # source://drb/drb/drb.rb#1317 + # source://drb/lib/drb/drb.rb#1317 def initialize(remote_uri); end # @return [Boolean] # - # source://drb/drb/drb.rb#1333 + # source://drb/lib/drb/drb.rb#1333 def alive?; end - # source://drb/drb/drb.rb#1328 + # source://drb/lib/drb/drb.rb#1328 def close; end - # source://drb/drb/drb.rb#1323 + # source://drb/lib/drb/drb.rb#1323 def send_message(ref, msg_id, arg, block); end - # source://drb/drb/drb.rb#1321 + # source://drb/lib/drb/drb.rb#1321 def uri; end class << self - # source://drb/drb/drb.rb#1259 + # source://drb/lib/drb/drb.rb#1259 def make_pool; end - # source://drb/drb/drb.rb#1297 + # source://drb/lib/drb/drb.rb#1297 def open(remote_uri); end - # source://drb/drb/drb.rb#1292 + # source://drb/lib/drb/drb.rb#1292 def stop_pool; end end end @@ -399,13 +405,15 @@ end # # For alternative mechanisms, see DRb::TimerIdConv in drb/timeridconv.rb # and DRbNameIdConv in sample/name.rb in the full drb distribution. +# +# source://drb/lib/drb/drb.rb#360 class DRb::DRbIdConv # Convert an object into a reference id. # # This implementation returns the object's __id__ in the local # object space. # - # source://drb/drb/drb.rb#374 + # source://drb/lib/drb/drb.rb#374 def to_id(obj); end # Convert an object reference id to an object. @@ -413,7 +421,7 @@ class DRb::DRbIdConv # This implementation looks up the reference id in the local object # space and returns the object it refers to. # - # source://drb/drb/drb.rb#366 + # source://drb/lib/drb/drb.rb#366 def to_obj(ref); end end @@ -426,40 +434,43 @@ end # # The user does not have to directly deal with this object in # normal use. +# +# source://drb/lib/drb/drb.rb#556 class DRb::DRbMessage # @return [DRbMessage] a new instance of DRbMessage # - # source://drb/drb/drb.rb#557 + # source://drb/lib/drb/drb.rb#557 def initialize(config); end - # source://drb/drb/drb.rb#562 + # source://drb/lib/drb/drb.rb#562 def dump(obj, error = T.unsafe(nil)); end # @raise [DRbConnError] # - # source://drb/drb/drb.rb#579 + # source://drb/lib/drb/drb.rb#579 def load(soc); end - # source://drb/drb/drb.rb#639 + # source://drb/lib/drb/drb.rb#639 def recv_reply(stream); end # @raise [DRbConnError] # - # source://drb/drb/drb.rb#619 + # source://drb/lib/drb/drb.rb#619 def recv_request(stream); end - # source://drb/drb/drb.rb#633 + # source://drb/lib/drb/drb.rb#633 def send_reply(stream, succ, result); end - # source://drb/drb/drb.rb#605 + # source://drb/lib/drb/drb.rb#605 def send_request(stream, ref, msg_id, arg, b); end private - # source://drb/drb/drb.rb#646 + # source://drb/lib/drb/drb.rb#646 def make_proxy(obj, error = T.unsafe(nil)); end end +# source://drb/lib/drb/eq.rb#3 class DRb::DRbObject # Create a new remote object stub. # @@ -469,49 +480,49 @@ class DRb::DRbObject # # @return [DRbObject] a new instance of DRbObject # - # source://drb/drb/drb.rb#1089 + # source://drb/lib/drb/drb.rb#1089 def initialize(obj, uri = T.unsafe(nil)); end - # source://drb/drb/eq.rb#4 + # source://drb/lib/drb/eq.rb#4 def ==(other); end # Get the reference of the object, if local. # - # source://drb/drb/drb.rb#1115 + # source://drb/lib/drb/drb.rb#1115 def __drbref; end # Get the URI of the remote object. # - # source://drb/drb/drb.rb#1110 + # source://drb/lib/drb/drb.rb#1110 def __drburi; end # Marshall this object. # # The URI and ref of the object are marshalled. # - # source://drb/drb/drb.rb#1080 + # source://drb/lib/drb/drb.rb#1080 def _dump(lv); end - # source://drb/drb/eq.rb#4 + # source://drb/lib/drb/eq.rb#4 def eql?(other); end - # source://drb/drb/eq.rb#9 + # source://drb/lib/drb/eq.rb#9 def hash; end - # source://drb/drb/drb.rb#1135 + # source://drb/lib/drb/drb.rb#1135 def method_missing(msg_id, *a, **_arg2, &b); end - # source://drb/drb/drb.rb#1187 + # source://drb/lib/drb/drb.rb#1187 def pretty_print(q); end - # source://drb/drb/drb.rb#1191 + # source://drb/lib/drb/drb.rb#1191 def pretty_print_cycle(q); end # Routes respond_to? to the referenced remote object. # # @return [Boolean] # - # source://drb/drb/drb.rb#1123 + # source://drb/lib/drb/drb.rb#1123 def respond_to?(msg_id, priv = T.unsafe(nil)); end class << self @@ -521,29 +532,29 @@ class DRb::DRbObject # the object itself is returned. Otherwise, a new DRbObject is # created to act as a stub for the remote referenced object. # - # source://drb/drb/drb.rb#1051 + # source://drb/lib/drb/drb.rb#1051 def _load(s); end # Creates a DRb::DRbObject given the reference information to the remote # host +uri+ and object +ref+. # - # source://drb/drb/drb.rb#1065 + # source://drb/lib/drb/drb.rb#1065 def new_with(uri, ref); end # Create a new DRbObject from a URI alone. # - # source://drb/drb/drb.rb#1073 + # source://drb/lib/drb/drb.rb#1073 def new_with_uri(uri); end # Returns a modified backtrace from +result+ with the +uri+ where each call # in the backtrace came from. # - # source://drb/drb/drb.rb#1173 + # source://drb/lib/drb/drb.rb#1173 def prepare_backtrace(uri, result); end # Given the +uri+ of another host executes the block provided. # - # source://drb/drb/drb.rb#1160 + # source://drb/lib/drb/drb.rb#1160 def with_friend(uri); end end end @@ -614,15 +625,17 @@ end # 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. +# +# source://drb/lib/drb/drb.rb#721 module DRb::DRbProtocol private # Add a new protocol to the DRbProtocol module. # - # source://drb/drb/drb.rb#724 + # source://drb/lib/drb/drb.rb#724 def add_protocol(prot); end - # source://drb/drb/drb.rb#802 + # source://drb/lib/drb/drb.rb#802 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -635,7 +648,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb/drb/drb.rb#736 + # source://drb/lib/drb/drb.rb#736 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -650,7 +663,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb/drb/drb.rb#764 + # source://drb/lib/drb/drb.rb#764 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -662,16 +675,16 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb/drb/drb.rb#785 + # source://drb/lib/drb/drb.rb#785 def uri_option(uri, config, first = T.unsafe(nil)); end class << self # Add a new protocol to the DRbProtocol module. # - # source://drb/drb/drb.rb#724 + # source://drb/lib/drb/drb.rb#724 def add_protocol(prot); end - # source://drb/drb/drb.rb#802 + # source://drb/lib/drb/drb.rb#802 def auto_load(uri); end # Open a client connection to +uri+ with the configuration +config+. @@ -684,7 +697,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb/drb/drb.rb#736 + # source://drb/lib/drb/drb.rb#736 def open(uri, config, first = T.unsafe(nil)); end # Open a server listening for connections at +uri+ with @@ -699,7 +712,7 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb/drb/drb.rb#764 + # source://drb/lib/drb/drb.rb#764 def open_server(uri, config, first = T.unsafe(nil)); end # Parse +uri+ into a [uri, option] pair. @@ -711,26 +724,29 @@ module DRb::DRbProtocol # # @raise [DRbBadURI] # - # source://drb/drb/drb.rb#785 + # source://drb/lib/drb/drb.rb#785 def uri_option(uri, config, first = T.unsafe(nil)); end end end # An exception wrapping an error object +# +# source://drb/lib/drb/drb.rb#431 class DRb::DRbRemoteError < ::DRb::DRbError # Creates a new remote error that wraps the Exception +error+ # # @return [DRbRemoteError] a new instance of DRbRemoteError # - # source://drb/drb/drb.rb#434 + # source://drb/lib/drb/drb.rb#434 def initialize(error); end # the class of the error, as a string. # - # source://drb/drb/drb.rb#441 + # source://drb/lib/drb/drb.rb#441 def reason; end end +# source://drb/lib/drb/drb.rb#1350 class DRb::DRbServer # Create a new DRbServer instance. # @@ -777,14 +793,14 @@ class DRb::DRbServer # # @return [DRbServer] a new instance of DRbServer # - # source://drb/drb/drb.rb#1451 + # source://drb/lib/drb/drb.rb#1451 def initialize(uri = T.unsafe(nil), front = T.unsafe(nil), config_or_acl = T.unsafe(nil)); end # Is this server alive? # # @return [Boolean] # - # source://drb/drb/drb.rb#1506 + # source://drb/lib/drb/drb.rb#1506 def alive?; end # Check that a method is callable via dRuby. @@ -798,12 +814,12 @@ class DRb::DRbServer # # @raise [ArgumentError] # - # source://drb/drb/drb.rb#1594 + # source://drb/lib/drb/drb.rb#1594 def check_insecure_method(obj, msg_id); end # The configuration of this DRbServer # - # source://drb/drb/drb.rb#1493 + # source://drb/lib/drb/drb.rb#1493 def config; end # The front object of the DRbServer. @@ -811,19 +827,19 @@ class DRb::DRbServer # This object receives remote method calls made on the server's # URI alone, with an object id. # - # source://drb/drb/drb.rb#1490 + # source://drb/lib/drb/drb.rb#1490 def front; end # Is +uri+ the URI for this server? # # @return [Boolean] # - # source://drb/drb/drb.rb#1511 + # source://drb/lib/drb/drb.rb#1511 def here?(uri); end # Stop this server. # - # source://drb/drb/drb.rb#1516 + # source://drb/lib/drb/drb.rb#1516 def stop_service; end # The main thread of this DRbServer. @@ -832,36 +848,36 @@ class DRb::DRbServer # from clients, not that handles each client's request-response # session. # - # source://drb/drb/drb.rb#1484 + # source://drb/lib/drb/drb.rb#1484 def thread; end # Convert a local object to a dRuby reference. # - # source://drb/drb/drb.rb#1533 + # source://drb/lib/drb/drb.rb#1533 def to_id(obj); end # Convert a dRuby reference to the local object it refers to. # - # source://drb/drb/drb.rb#1526 + # source://drb/lib/drb/drb.rb#1526 def to_obj(ref); end # The URI of this DRbServer. # - # source://drb/drb/drb.rb#1477 + # source://drb/lib/drb/drb.rb#1477 def uri; end # Get whether the server is in verbose mode. # # In verbose mode, failed calls are logged to stdout. # - # source://drb/drb/drb.rb#1503 + # source://drb/lib/drb/drb.rb#1503 def verbose; end # Set whether to operate in verbose mode. # # In verbose mode, failed calls are logged to stdout. # - # source://drb/drb/drb.rb#1498 + # source://drb/lib/drb/drb.rb#1498 def verbose=(v); end private @@ -869,17 +885,17 @@ class DRb::DRbServer # Coerce an object to a string, providing our own representation if # to_s is not defined for the object. # - # source://drb/drb/drb.rb#1580 + # source://drb/lib/drb/drb.rb#1580 def any_to_s(obj); end - # source://drb/drb/drb.rb#1696 + # source://drb/lib/drb/drb.rb#1696 def error_print(exception); end # Has a method been included in the list of insecure methods? # # @return [Boolean] # - # source://drb/drb/drb.rb#1574 + # source://drb/lib/drb/drb.rb#1574 def insecure_method?(msg_id); end # The main loop performed by a DRbServer's internal thread. @@ -890,15 +906,15 @@ class DRb::DRbServer # returning responses, until the client closes the connection # or a local method call fails. # - # source://drb/drb/drb.rb#1714 + # source://drb/lib/drb/drb.rb#1714 def main_loop; end # Starts the DRb main loop in a new thread. # - # source://drb/drb/drb.rb#1555 + # source://drb/lib/drb/drb.rb#1555 def run; end - # source://drb/drb/drb.rb#1540 + # source://drb/lib/drb/drb.rb#1540 def shutdown; end class << self @@ -906,78 +922,80 @@ class DRb::DRbServer # # See also DRb::ACL and #new() # - # source://drb/drb/drb.rb#1375 + # source://drb/lib/drb/drb.rb#1375 def default_acl(acl); end # Set the default value for the :argc_limit option. # # See #new(). The initial default value is 256. # - # source://drb/drb/drb.rb#1361 + # source://drb/lib/drb/drb.rb#1361 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. # - # source://drb/drb/drb.rb#1382 + # source://drb/lib/drb/drb.rb#1382 def default_id_conv(idconv); end # Set the default value for the :load_limit option. # # See #new(). The initial default value is 25 MB. # - # source://drb/drb/drb.rb#1368 + # source://drb/lib/drb/drb.rb#1368 def default_load_limit(sz); end - # source://drb/drb/drb.rb#1398 + # source://drb/lib/drb/drb.rb#1398 def make_config(hash = T.unsafe(nil)); end # Get the default value of the :verbose option. # - # source://drb/drb/drb.rb#1394 + # source://drb/lib/drb/drb.rb#1394 def verbose; end # Set the default value of the :verbose option. # # See #new(). The initial default value is false. # - # source://drb/drb/drb.rb#1389 + # source://drb/lib/drb/drb.rb#1389 def verbose=(on); end end end +# source://drb/lib/drb/drb.rb#1624 class DRb::DRbServer::InvokeMethod include ::DRb::DRbServer::InvokeMethod18Mixin # @return [InvokeMethod] a new instance of InvokeMethod # - # source://drb/drb/drb.rb#1625 + # source://drb/lib/drb/drb.rb#1625 def initialize(drb_server, client); end - # source://drb/drb/drb.rb#1630 + # source://drb/lib/drb/drb.rb#1630 def perform; end private - # source://drb/drb/drb.rb#1667 + # source://drb/lib/drb/drb.rb#1667 def check_insecure_method; end - # source://drb/drb/drb.rb#1659 + # source://drb/lib/drb/drb.rb#1659 def init_with_client; end - # source://drb/drb/drb.rb#1676 + # source://drb/lib/drb/drb.rb#1676 def perform_without_block; end - # source://drb/drb/drb.rb#1671 + # source://drb/lib/drb/drb.rb#1671 def setup_message; end end +# source://drb/lib/drb/invokemethod.rb#6 module DRb::DRbServer::InvokeMethod18Mixin - # source://drb/drb/invokemethod.rb#7 + # source://drb/lib/drb/invokemethod.rb#7 def block_yield(x); end - # source://drb/drb/invokemethod.rb#14 + # source://drb/lib/drb/invokemethod.rb#14 def perform_with_block; end end @@ -985,6 +1003,8 @@ end # # The DRb TCP protocol URI looks like: # druby://:?. The option is optional. +# +# source://drb/lib/drb/drb.rb#815 class DRb::DRbTCPSocket # Create a new DRbTCPSocket instance. # @@ -994,21 +1014,21 @@ class DRb::DRbTCPSocket # # @return [DRbTCPSocket] a new instance of DRbTCPSocket # - # source://drb/drb/drb.rb#903 + # source://drb/lib/drb/drb.rb#903 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. # - # source://drb/drb/drb.rb#971 + # source://drb/lib/drb/drb.rb#971 def accept; end # Check to see if this connection is alive. # # @return [Boolean] # - # source://drb/drb/drb.rb#1001 + # source://drb/lib/drb/drb.rb#1001 def alive?; end # Close the connection. @@ -1018,65 +1038,65 @@ class DRb::DRbTCPSocket # returned by #open or by #accept, then it closes this particular # client-server session. # - # source://drb/drb/drb.rb#953 + # source://drb/lib/drb/drb.rb#953 def close; end # Get the address of our TCP peer (the other end of the socket # we are bound to. # - # source://drb/drb/drb.rb#918 + # source://drb/lib/drb/drb.rb#918 def peeraddr; end # On the client side, receive a reply from the server. # - # source://drb/drb/drb.rb#941 + # source://drb/lib/drb/drb.rb#941 def recv_reply; end # On the server side, receive a request from the client. # - # source://drb/drb/drb.rb#931 + # source://drb/lib/drb/drb.rb#931 def recv_request; end # On the server side, send a reply to the client. # - # source://drb/drb/drb.rb#936 + # source://drb/lib/drb/drb.rb#936 def send_reply(succ, result); end # On the client side, send a request to the server. # - # source://drb/drb/drb.rb#926 + # source://drb/lib/drb/drb.rb#926 def send_request(ref, msg_id, arg, b); end - # source://drb/drb/drb.rb#1010 + # source://drb/lib/drb/drb.rb#1010 def set_sockopt(soc); end # Graceful shutdown # - # source://drb/drb/drb.rb#996 + # source://drb/lib/drb/drb.rb#996 def shutdown; end # Get the socket. # - # source://drb/drb/drb.rb#923 + # source://drb/lib/drb/drb.rb#923 def stream; end # Get the URI that we are connected to. # - # source://drb/drb/drb.rb#914 + # source://drb/lib/drb/drb.rb#914 def uri; end private - # source://drb/drb/drb.rb#986 + # source://drb/lib/drb/drb.rb#986 def accept_or_shutdown; end - # source://drb/drb/drb.rb#962 + # source://drb/lib/drb/drb.rb#962 def close_shutdown_pipe; end class << self # Returns the hostname of this server # - # source://drb/drb/drb.rb#845 + # source://drb/lib/drb/drb.rb#845 def getservername; end # Open a client connection to +uri+ (DRb URI string) using configuration @@ -1086,28 +1106,28 @@ class DRb::DRbTCPSocket # recognized protocol. See DRb::DRbServer.new for information on built-in # URI protocols. # - # source://drb/drb/drb.rb#838 + # source://drb/lib/drb/drb.rb#838 def open(uri, config); end # Open a server listening for connections at +uri+ using # configuration +config+. # - # source://drb/drb/drb.rb#876 + # source://drb/lib/drb/drb.rb#876 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. # - # source://drb/drb/drb.rb#861 + # source://drb/lib/drb/drb.rb#861 def open_server_inaddr_any(host, port); end - # source://drb/drb/drb.rb#818 + # source://drb/lib/drb/drb.rb#818 def parse_uri(uri); end # Parse +uri+ into a [uri, option] pair. # - # source://drb/drb/drb.rb#893 + # source://drb/lib/drb/drb.rb#893 def uri_option(uri, config); end end end @@ -1116,67 +1136,70 @@ end # # DRb UNIX socket URIs look like drbunix:?. The # option is optional. +# +# source://drb/lib/drb/unix.rb#15 class DRb::DRbUNIXSocket < ::DRb::DRbTCPSocket # @return [DRbUNIXSocket] a new instance of DRbUNIXSocket # - # source://drb/drb/unix.rb#62 + # source://drb/lib/drb/unix.rb#62 def initialize(uri, soc, config = T.unsafe(nil), server_mode = T.unsafe(nil)); end - # source://drb/drb/unix.rb#105 + # source://drb/lib/drb/unix.rb#105 def accept; end - # source://drb/drb/unix.rb#95 + # source://drb/lib/drb/unix.rb#95 def close; end - # source://drb/drb/unix.rb#111 + # source://drb/lib/drb/unix.rb#111 def set_sockopt(soc); end class << self - # source://drb/drb/unix.rb#28 + # source://drb/lib/drb/unix.rb#28 def open(uri, config); end - # source://drb/drb/unix.rb#34 + # source://drb/lib/drb/unix.rb#34 def open_server(uri, config); end # :stopdoc: # - # source://drb/drb/unix.rb#17 + # source://drb/lib/drb/unix.rb#17 def parse_uri(uri); end - # source://drb/drb/unix.rb#72 + # source://drb/lib/drb/unix.rb#72 def temp_server; end - # source://drb/drb/unix.rb#57 + # source://drb/lib/drb/unix.rb#57 def uri_option(uri, config); end end end # import from tempfile.rb # -# source://drb/drb/unix.rb#70 +# source://drb/lib/drb/unix.rb#70 DRb::DRbUNIXSocket::Max_try = T.let(T.unsafe(nil), Integer) +# source://drb/lib/drb/drb.rb#1021 class DRb::DRbURIOption # @return [DRbURIOption] a new instance of DRbURIOption # - # source://drb/drb/drb.rb#1022 + # source://drb/lib/drb/drb.rb#1022 def initialize(option); end - # source://drb/drb/drb.rb#1028 + # source://drb/lib/drb/drb.rb#1028 def ==(other); end - # source://drb/drb/drb.rb#1028 + # source://drb/lib/drb/drb.rb#1028 def eql?(other); end - # source://drb/drb/drb.rb#1033 + # source://drb/lib/drb/drb.rb#1033 def hash; end # Returns the value of attribute option. # - # source://drb/drb/drb.rb#1025 + # source://drb/lib/drb/drb.rb#1025 def option; end - # source://drb/drb/drb.rb#1026 + # source://drb/lib/drb/drb.rb#1026 def to_s; end end @@ -1186,10 +1209,12 @@ end # 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. +# +# source://drb/lib/drb/drb.rb#390 module DRb::DRbUndumped # @raise [TypeError] # - # source://drb/drb/drb.rb#391 + # source://drb/lib/drb/drb.rb#391 def _dump(dummy); end end @@ -1206,6 +1231,8 @@ end # The class or constant name of the object can be read from the # +name+ attribute. The marshalled object is held in the +buf+ # attribute. +# +# source://drb/lib/drb/drb.rb#457 class DRb::DRbUnknown # Create a new DRbUnknown object. # @@ -1216,20 +1243,20 @@ class DRb::DRbUnknown # # @return [DRbUnknown] a new instance of DRbUnknown # - # source://drb/drb/drb.rb#465 + # source://drb/lib/drb/drb.rb#465 def initialize(err, buf); end - # source://drb/drb/drb.rb#494 + # source://drb/lib/drb/drb.rb#494 def _dump(lv); end # Buffer contained the marshalled, unknown object. # - # source://drb/drb/drb.rb#484 + # source://drb/lib/drb/drb.rb#484 def buf; end # Create a DRbUnknownError exception containing this object. # - # source://drb/drb/drb.rb#508 + # source://drb/lib/drb/drb.rb#508 def exception; end # The name of the unknown thing. @@ -1237,7 +1264,7 @@ class DRb::DRbUnknown # Class name for unknown objects; variable name for unknown # constants. # - # source://drb/drb/drb.rb#481 + # source://drb/lib/drb/drb.rb#481 def name; end # Attempt to load the wrapped marshalled object again. @@ -1246,71 +1273,74 @@ class DRb::DRbUnknown # will be unmarshalled and returned. Otherwise, a new # but identical DRbUnknown object will be returned. # - # source://drb/drb/drb.rb#503 + # source://drb/lib/drb/drb.rb#503 def reload; end class << self - # source://drb/drb/drb.rb#486 + # source://drb/lib/drb/drb.rb#486 def _load(s); end end end # An exception wrapping a DRb::DRbUnknown object +# +# source://drb/lib/drb/drb.rb#410 class DRb::DRbUnknownError < ::DRb::DRbError # Create a new DRbUnknownError for the DRb::DRbUnknown object +unknown+ # # @return [DRbUnknownError] a new instance of DRbUnknownError # - # source://drb/drb/drb.rb#413 + # source://drb/lib/drb/drb.rb#413 def initialize(unknown); end - # source://drb/drb/drb.rb#425 + # source://drb/lib/drb/drb.rb#425 def _dump(lv); end # Get the wrapped DRb::DRbUnknown object. # - # source://drb/drb/drb.rb#419 + # source://drb/lib/drb/drb.rb#419 def unknown; end class << self - # source://drb/drb/drb.rb#421 + # source://drb/lib/drb/drb.rb#421 def _load(s); end end end +# source://drb/lib/drb/drb.rb#1199 class DRb::ThreadObject include ::MonitorMixin # @return [ThreadObject] a new instance of ThreadObject # - # source://drb/drb/drb.rb#1202 + # source://drb/lib/drb/drb.rb#1202 def initialize(&blk); end - # source://drb/drb/drb.rb#1237 + # source://drb/lib/drb/drb.rb#1237 def _execute; end # @return [Boolean] # - # source://drb/drb/drb.rb#1213 + # source://drb/lib/drb/drb.rb#1213 def alive?; end - # source://drb/drb/drb.rb#1217 + # source://drb/lib/drb/drb.rb#1217 def kill; end - # source://drb/drb/drb.rb#1222 + # source://drb/lib/drb/drb.rb#1222 def method_missing(msg, *arg, &blk); end end -# source://drb/drb/version.rb#2 +# source://drb/lib/drb/version.rb#2 DRb::VERSION = T.let(T.unsafe(nil), String) -# source://drb/drb/drb.rb#1943 +# source://drb/lib/drb/drb.rb#1943 DRbIdConv = DRb::DRbIdConv # :stopdoc: # -# source://drb/drb/drb.rb#1941 +# source://drb/lib/drb/drb.rb#1941 DRbObject = DRb::DRbObject -# source://drb/drb/drb.rb#1942 +# source://drb/lib/drb/drb.rb#1942 DRbUndumped = DRb::DRbUndumped diff --git a/sorbet/rbi/gems/i18n@1.14.1.rbi b/sorbet/rbi/gems/i18n@1.14.5.rbi similarity index 94% rename from sorbet/rbi/gems/i18n@1.14.1.rbi rename to sorbet/rbi/gems/i18n@1.14.5.rbi index 14652826..5b7bddac 100644 --- a/sorbet/rbi/gems/i18n@1.14.1.rbi +++ b/sorbet/rbi/gems/i18n@1.14.5.rbi @@ -123,15 +123,15 @@ module I18n::Backend::Base # # @raise [NotImplementedError] # - # source://i18n/lib/i18n/backend/base.rb#94 + # source://i18n/lib/i18n/backend/base.rb#96 def available_locales; end - # source://i18n/lib/i18n/backend/base.rb#102 + # source://i18n/lib/i18n/backend/base.rb#104 def eager_load!; end # @return [Boolean] # - # source://i18n/lib/i18n/backend/base.rb#68 + # source://i18n/lib/i18n/backend/base.rb#70 def exists?(locale, key, options = T.unsafe(nil)); end # Accepts a list of paths to translation files. Loads translations from @@ -147,10 +147,10 @@ module I18n::Backend::Base # # @raise [ArgumentError] # - # source://i18n/lib/i18n/backend/base.rb#75 + # source://i18n/lib/i18n/backend/base.rb#77 def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end - # source://i18n/lib/i18n/backend/base.rb#98 + # source://i18n/lib/i18n/backend/base.rb#100 def reload!; end # This method receives a locale, a data hash and options for storing translations. @@ -174,7 +174,7 @@ module I18n::Backend::Base # ann: 'good', john: 'big' # #=> { people: { ann: "Ann is good", john: "John is big" } } # - # source://i18n/lib/i18n/backend/base.rb#207 + # source://i18n/lib/i18n/backend/base.rb#209 def deep_interpolate(locale, data, values = T.unsafe(nil)); end # Evaluates defaults. @@ -182,12 +182,12 @@ module I18n::Backend::Base # first translation that can be resolved. Otherwise it tries to resolve # the translation directly. # - # source://i18n/lib/i18n/backend/base.rb#125 + # source://i18n/lib/i18n/backend/base.rb#127 def default(locale, object, subject, options = T.unsafe(nil)); end # @return [Boolean] # - # source://i18n/lib/i18n/backend/base.rb#108 + # source://i18n/lib/i18n/backend/base.rb#110 def eager_loaded?; end # Interpolates values into a given subject. @@ -198,10 +198,10 @@ module I18n::Backend::Base # # if the given subject is an array then: # each element of the array is recursively interpolated (until it finds a string) - # method interpolates ["yes, %{user}", ["maybe no, %{user}, "no, %{user}"]], :user => "bartuz" - # # => "["yes, bartuz",["maybe no, bartuz", "no, bartuz"]]" + # method interpolates ["yes, %{user}", ["maybe no, %{user}", "no, %{user}"]], :user => "bartuz" + # # => ["yes, bartuz", ["maybe no, bartuz", "no, bartuz"]] # - # source://i18n/lib/i18n/backend/base.rb#191 + # source://i18n/lib/i18n/backend/base.rb#193 def interpolate(locale, subject, values = T.unsafe(nil)); end # Loads a single translations file by delegating to #load_rb or @@ -211,41 +211,41 @@ module I18n::Backend::Base # # @raise [UnknownFileType] # - # source://i18n/lib/i18n/backend/base.rb#230 + # source://i18n/lib/i18n/backend/base.rb#232 def load_file(filename); end # Loads a JSON translations file. The data must have locales as # toplevel keys. # - # source://i18n/lib/i18n/backend/base.rb#266 + # source://i18n/lib/i18n/backend/base.rb#268 def load_json(filename); end # Loads a plain Ruby translations file. eval'ing the file must yield # a Hash containing translation data with locales as toplevel keys. # - # source://i18n/lib/i18n/backend/base.rb#244 + # source://i18n/lib/i18n/backend/base.rb#246 def load_rb(filename); end # Loads a YAML translations file. The data must have locales as # toplevel keys. # - # source://i18n/lib/i18n/backend/base.rb#251 + # source://i18n/lib/i18n/backend/base.rb#253 def load_yaml(filename); end # Loads a YAML translations file. The data must have locales as # toplevel keys. # - # source://i18n/lib/i18n/backend/base.rb#251 + # source://i18n/lib/i18n/backend/base.rb#253 def load_yml(filename); end # The method which actually looks up for the translation in the store. # # @raise [NotImplementedError] # - # source://i18n/lib/i18n/backend/base.rb#113 + # source://i18n/lib/i18n/backend/base.rb#115 def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end - # source://i18n/lib/i18n/backend/base.rb#298 + # source://i18n/lib/i18n/backend/base.rb#300 def pluralization_key(entry, count); end # Picks a translation from a pluralized mnemonic subkey according to English @@ -259,7 +259,7 @@ module I18n::Backend::Base # # @raise [InvalidPluralizationData] # - # source://i18n/lib/i18n/backend/base.rb#172 + # source://i18n/lib/i18n/backend/base.rb#174 def pluralize(locale, entry, count); end # Resolves a translation. @@ -267,7 +267,7 @@ module I18n::Backend::Base # given options. If it is a Proc then it will be evaluated. All other # subjects will be returned directly. # - # source://i18n/lib/i18n/backend/base.rb#147 + # source://i18n/lib/i18n/backend/base.rb#149 def resolve(locale, object, subject, options = T.unsafe(nil)); end # Resolves a translation. @@ -275,15 +275,15 @@ module I18n::Backend::Base # given options. If it is a Proc then it will be evaluated. All other # subjects will be returned directly. # - # source://i18n/lib/i18n/backend/base.rb#147 + # source://i18n/lib/i18n/backend/base.rb#149 def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end # @return [Boolean] # - # source://i18n/lib/i18n/backend/base.rb#117 + # source://i18n/lib/i18n/backend/base.rb#119 def subtrees?; end - # source://i18n/lib/i18n/backend/base.rb#279 + # source://i18n/lib/i18n/backend/base.rb#281 def translate_localization_format(locale, object, format, options); end end @@ -603,15 +603,15 @@ end # source://i18n/lib/i18n/backend/interpolation_compiler.rb#20 module I18n::Backend::InterpolationCompiler - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#99 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#97 def interpolate(locale, string, values); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#109 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#107 def store_translations(locale, data, options = T.unsafe(nil)); end protected - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#115 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#113 def compile_all_strings_in(data); end end @@ -619,58 +619,55 @@ end module I18n::Backend::InterpolationCompiler::Compiler extend ::I18n::Backend::InterpolationCompiler::Compiler - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#27 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#26 def compile_if_an_interpolation(string); end # @return [Boolean] # - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#39 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#38 def interpolated_str?(str); end protected - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#60 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#58 def compile_interpolation_token(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#49 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#48 def compiled_interpolation_body(str); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#73 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#71 def direct_key(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#93 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#91 def escape_key_sym(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#89 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#87 def escape_plain_str(str); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#55 - def handle_interpolation_token(interpolation, matchdata); end + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#54 + def handle_interpolation_token(token); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#69 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#67 def interpolate_key(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#64 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#62 def interpolate_or_raise_missing(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#81 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#79 def missing_key(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#77 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#75 def nil_key(key); end - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#85 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#83 def reserved_key(key); end # tokenize("foo %{bar} baz %%{buz}") # => ["foo ", "%{bar}", " baz ", "%%{buz}"] # - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#45 + # source://i18n/lib/i18n/backend/interpolation_compiler.rb#44 def tokenize(str); end end -# source://i18n/lib/i18n/backend/interpolation_compiler.rb#25 -I18n::Backend::InterpolationCompiler::Compiler::INTERPOLATION_SYNTAX_PATTERN = T.let(T.unsafe(nil), Regexp) - # source://i18n/lib/i18n/backend/interpolation_compiler.rb#24 I18n::Backend::InterpolationCompiler::Compiler::TOKENIZER = T.let(T.unsafe(nil), Regexp) @@ -1205,7 +1202,7 @@ module I18n::Base # @return [Boolean] # - # source://i18n/lib/i18n.rb#355 + # source://i18n/lib/i18n.rb#384 def available_locales_initialized?; end # source://i18n/lib/i18n.rb#69 @@ -1248,7 +1245,7 @@ module I18n::Base # Raises an InvalidLocale exception when the passed locale is not available. # - # source://i18n/lib/i18n.rb#349 + # source://i18n/lib/i18n.rb#378 def enforce_available_locales!(locale); end # source://i18n/lib/i18n.rb#73 @@ -1265,14 +1262,39 @@ module I18n::Base # @raise [Disabled] # @return [Boolean] # - # source://i18n/lib/i18n.rb#235 + # source://i18n/lib/i18n.rb#264 def exists?(key, _locale = T.unsafe(nil), locale: T.unsafe(nil), **options); end + # Returns an array of interpolation keys for the given translation key + # + # *Examples* + # + # Suppose we have the following: + # I18n.t 'example.zero' == 'Zero interpolations' + # I18n.t 'example.one' == 'One interpolation %{foo}' + # I18n.t 'example.two' == 'Two interpolations %{foo} %{bar}' + # I18n.t 'example.three' == ['One %{foo}', 'Two %{bar}', 'Three %{baz}'] + # I18n.t 'example.one', locale: :other == 'One interpolation %{baz}' + # + # Then we can expect the following results: + # I18n.interpolation_keys('example.zero') #=> [] + # I18n.interpolation_keys('example.one') #=> ['foo'] + # I18n.interpolation_keys('example.two') #=> ['foo', 'bar'] + # I18n.interpolation_keys('example.three') #=> ['foo', 'bar', 'baz'] + # I18n.interpolation_keys('one', scope: 'example', locale: :other) #=> ['baz'] + # I18n.interpolation_keys('does-not-exist') #=> [] + # I18n.interpolation_keys('example') #=> [] + # + # @raise [I18n::ArgumentError] + # + # source://i18n/lib/i18n.rb#253 + def interpolation_keys(key, **options); end + # Localizes certain objects, such as dates and numbers to local formatting. # # @raise [Disabled] # - # source://i18n/lib/i18n.rb#304 + # source://i18n/lib/i18n.rb#333 def l(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end # source://i18n/lib/i18n.rb#69 @@ -1292,21 +1314,21 @@ module I18n::Base # # @return [Boolean] # - # source://i18n/lib/i18n.rb#344 + # source://i18n/lib/i18n.rb#373 def locale_available?(locale); end # Localizes certain objects, such as dates and numbers to local formatting. # # @raise [Disabled] # - # source://i18n/lib/i18n.rb#304 + # source://i18n/lib/i18n.rb#333 def localize(object, locale: T.unsafe(nil), format: T.unsafe(nil), **options); end # Merges the given locale, key and scope into a single array of keys. # Splits keys that contain dots into multiple keys. Makes sure all # keys are Symbols. # - # source://i18n/lib/i18n.rb#332 + # source://i18n/lib/i18n.rb#361 def normalize_keys(locale, key, scope, separator = T.unsafe(nil)); end # Tells the backend to reload translations. Used in situations like the @@ -1622,12 +1644,12 @@ module I18n::Base # I18n.transliterate("Jürgen", :locale => :en) # => "Jurgen" # I18n.transliterate("Jürgen", :locale => :de) # => "Juergen" # - # source://i18n/lib/i18n.rb#293 + # source://i18n/lib/i18n.rb#322 def transliterate(key, throw: T.unsafe(nil), raise: T.unsafe(nil), locale: T.unsafe(nil), replacement: T.unsafe(nil), **options); end # Executes block with given I18n.locale set. # - # source://i18n/lib/i18n.rb#315 + # source://i18n/lib/i18n.rb#344 def with_locale(tmp_locale = T.unsafe(nil)); end private @@ -1651,13 +1673,16 @@ module I18n::Base # I18n.exception_handler = I18nExceptionHandler.new # an object # I18n.exception_handler.call(exception, locale, key, options) # will be called like this # - # source://i18n/lib/i18n.rb#391 + # source://i18n/lib/i18n.rb#420 def handle_exception(handling, exception, locale, key, options); end - # source://i18n/lib/i18n.rb#409 + # source://i18n/lib/i18n.rb#462 + def interpolation_keys_from_translation(translation); end + + # source://i18n/lib/i18n.rb#438 def normalize_key(key, separator); end - # source://i18n/lib/i18n.rb#361 + # source://i18n/lib/i18n.rb#390 def translate_key(key, throw, raise, locale, backend, options); end end @@ -2011,12 +2036,20 @@ class I18n::Locale::Fallbacks < ::Hash # source://i18n/lib/i18n/locale/fallbacks.rb#55 def defaults=(defaults); end + # @return [Boolean] + # + # source://i18n/lib/i18n/locale/fallbacks.rb#82 + def empty?; end + + # source://i18n/lib/i18n/locale/fallbacks.rb#86 + def inspect; end + # source://i18n/lib/i18n/locale/fallbacks.rb#67 def map(*args, &block); end protected - # source://i18n/lib/i18n/locale/fallbacks.rb#84 + # source://i18n/lib/i18n/locale/fallbacks.rb#92 def compute(tags, include_defaults = T.unsafe(nil), exclude = T.unsafe(nil)); end end diff --git a/sorbet/rbi/gems/marcel@1.0.2.rbi b/sorbet/rbi/gems/marcel@1.0.4.rbi similarity index 66% rename from sorbet/rbi/gems/marcel@1.0.2.rbi rename to sorbet/rbi/gems/marcel@1.0.4.rbi index c6d2d2a9..56773a34 100644 --- a/sorbet/rbi/gems/marcel@1.0.2.rbi +++ b/sorbet/rbi/gems/marcel@1.0.4.rbi @@ -7,17 +7,17 @@ # This file is auto-generated. Instead of editing this file, please # add MIMEs to data/custom.xml or lib/marcel/mime_type/definitions.rb. # -# source://marcel/lib/marcel.rb#1 +# source://marcel/lib/marcel.rb#3 module Marcel; end # @private # -# source://marcel/lib/marcel/tables.rb#10 +# source://marcel/lib/marcel/tables.rb#9 Marcel::EXTENSIONS = T.let(T.unsafe(nil), Hash) # @private # -# source://marcel/lib/marcel/tables.rb#2154 +# source://marcel/lib/marcel/tables.rb#2394 Marcel::MAGIC = T.let(T.unsafe(nil), Array) # Mime type detection @@ -35,46 +35,46 @@ class Marcel::Magic # # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#102 + # source://marcel/lib/marcel/magic.rb#103 def ==(other); end # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#53 + # source://marcel/lib/marcel/magic.rb#54 def audio?; end # Returns true if type is child of parent type # # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#57 + # source://marcel/lib/marcel/magic.rb#58 def child_of?(parent); end # Get mime comment # - # source://marcel/lib/marcel/magic.rb#67 + # source://marcel/lib/marcel/magic.rb#68 def comment; end # Allow comparison with string # # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#102 + # source://marcel/lib/marcel/magic.rb#103 def eql?(other); end # Get string list of file extensions # - # source://marcel/lib/marcel/magic.rb#62 + # source://marcel/lib/marcel/magic.rb#63 def extensions; end - # source://marcel/lib/marcel/magic.rb#106 + # source://marcel/lib/marcel/magic.rb#107 def hash; end # Mediatype shortcuts # # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#52 + # source://marcel/lib/marcel/magic.rb#53 def image?; end # Returns the value of attribute mediatype. @@ -91,12 +91,12 @@ class Marcel::Magic # # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#49 + # source://marcel/lib/marcel/magic.rb#50 def text?; end # Return type as string # - # source://marcel/lib/marcel/magic.rb#97 + # source://marcel/lib/marcel/magic.rb#98 def to_s; end # Returns the value of attribute type. @@ -106,7 +106,7 @@ class Marcel::Magic # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#54 + # source://marcel/lib/marcel/magic.rb#55 def video?; end class << self @@ -126,28 +126,28 @@ class Marcel::Magic # Lookup all mime types by magic content analysis. # This is a slower operation. # - # source://marcel/lib/marcel/magic.rb#92 + # source://marcel/lib/marcel/magic.rb#93 def all_by_magic(io); end # Lookup mime type by file extension # - # source://marcel/lib/marcel/magic.rb#72 + # source://marcel/lib/marcel/magic.rb#73 def by_extension(ext); end # Lookup mime type by magic content analysis. # This is a slow operation. # - # source://marcel/lib/marcel/magic.rb#85 + # source://marcel/lib/marcel/magic.rb#86 def by_magic(io); end # Lookup mime type by filename # - # source://marcel/lib/marcel/magic.rb#79 + # source://marcel/lib/marcel/magic.rb#80 def by_path(path); end # @return [Boolean] # - # source://marcel/lib/marcel/magic.rb#112 + # source://marcel/lib/marcel/magic.rb#113 def child?(child, parent); end # Removes a mime type from the dictionary. You might want to do this if @@ -159,62 +159,80 @@ class Marcel::Magic private - # source://marcel/lib/marcel/magic.rb#116 + # source://marcel/lib/marcel/magic.rb#117 def magic_match(io, method); end - # source://marcel/lib/marcel/magic.rb#126 + # source://marcel/lib/marcel/magic.rb#127 def magic_match_io(io, matches, buffer); end end end -# source://marcel/lib/marcel/mime_type.rb#2 +# source://marcel/lib/marcel/mime_type.rb#4 class Marcel::MimeType class << self - # source://marcel/lib/marcel/mime_type.rb#6 + # source://marcel/lib/marcel/mime_type.rb#8 def extend(type, extensions: T.unsafe(nil), parents: T.unsafe(nil), magic: T.unsafe(nil)); end - # source://marcel/lib/marcel/mime_type.rb#16 + # Returns the most appropriate content type for the given file. + # + # The first argument should be a +Pathname+ or an +IO+. If it is a +Pathname+, the specified + # file will be opened first. + # + # Optional parameters: + # * +name+: file name, if known + # * +extension+: file extension, if known + # * +declared_type+: MIME type, if known + # + # The most appropriate type is determined by the following: + # * type declared by binary magic number data + # * type declared by the first of file name, file extension, or declared MIME type + # + # If no type can be determined, then +application/octet-stream+ is returned. + # + # source://marcel/lib/marcel/mime_type.rb#29 def for(pathname_or_io = T.unsafe(nil), name: T.unsafe(nil), extension: T.unsafe(nil), declared_type: T.unsafe(nil)); end private - # source://marcel/lib/marcel/mime_type.rb#28 + # source://marcel/lib/marcel/mime_type.rb#36 def for_data(pathname_or_io); end - # source://marcel/lib/marcel/mime_type.rb#54 + # source://marcel/lib/marcel/mime_type.rb#62 def for_declared_type(declared_type); end - # source://marcel/lib/marcel/mime_type.rb#46 + # source://marcel/lib/marcel/mime_type.rb#54 def for_extension(extension); end - # source://marcel/lib/marcel/mime_type.rb#38 + # source://marcel/lib/marcel/mime_type.rb#46 def for_name(name); end # For some document types (notably Microsoft Office) we recognise the main content # type with magic, but not the specific subclass. In this situation, if we can get a more # specific class using either the name or declared_type, we should use that in preference # - # source://marcel/lib/marcel/mime_type.rb#80 - def most_specific_type(from_magic_type, fallback_type); end + # source://marcel/lib/marcel/mime_type.rb#89 + def most_specific_type(*candidates); end - # source://marcel/lib/marcel/mime_type.rb#70 + # source://marcel/lib/marcel/mime_type.rb#79 def parse_media_type(content_type); end - # source://marcel/lib/marcel/mime_type.rb#88 - def root_types(type); end - - # source://marcel/lib/marcel/mime_type.rb#62 + # source://marcel/lib/marcel/mime_type.rb#71 def with_io(pathname_or_io, &block); end end end -# source://marcel/lib/marcel/mime_type.rb#3 +# source://marcel/lib/marcel/mime_type.rb#5 Marcel::MimeType::BINARY = T.let(T.unsafe(nil), String) # @private # -# source://marcel/lib/marcel/tables.rb#1261 -Marcel::TYPES = T.let(T.unsafe(nil), Hash) +# source://marcel/lib/marcel/tables.rb#1260 +Marcel::TYPE_EXTS = T.let(T.unsafe(nil), Hash) + +# Cooltalk Audio +# +# source://marcel/lib/marcel/tables.rb#2151 +Marcel::TYPE_PARENTS = T.let(T.unsafe(nil), Hash) -# source://marcel/lib/marcel/version.rb#2 +# source://marcel/lib/marcel/version.rb#4 Marcel::VERSION = T.let(T.unsafe(nil), String) diff --git a/sorbet/rbi/gems/minitest@5.22.2.rbi b/sorbet/rbi/gems/minitest@5.23.0.rbi similarity index 83% rename from sorbet/rbi/gems/minitest@5.22.2.rbi rename to sorbet/rbi/gems/minitest@5.23.0.rbi index d2546d43..50fa9684 100644 --- a/sorbet/rbi/gems/minitest@5.22.2.rbi +++ b/sorbet/rbi/gems/minitest@5.23.0.rbi @@ -43,7 +43,7 @@ module Minitest # source://minitest/lib/minitest.rb#18 def cattr_accessor(name); end - # source://minitest/lib/minitest.rb#1146 + # source://minitest/lib/minitest.rb#1178 def clock_time; end # source://minitest/lib/minitest.rb#177 @@ -55,7 +55,7 @@ module Minitest # source://minitest/lib/minitest.rb#19 def extensions=(_arg0); end - # source://minitest/lib/minitest.rb#292 + # source://minitest/lib/minitest.rb#306 def filter_backtrace(bt); end # source://minitest/lib/minitest.rb#19 @@ -104,7 +104,7 @@ module Minitest # source://minitest/lib/minitest.rb#143 def run(args = T.unsafe(nil)); end - # source://minitest/lib/minitest.rb#1137 + # source://minitest/lib/minitest.rb#1169 def run_one_method(klass, method_name); end # source://minitest/lib/minitest.rb#19 @@ -118,24 +118,24 @@ end # Defines the API for Reporters. Subclass this and override whatever # you want. Go nuts. # -# source://minitest/lib/minitest.rb#638 +# source://minitest/lib/minitest.rb#652 class Minitest::AbstractReporter # @return [AbstractReporter] a new instance of AbstractReporter # - # source://minitest/lib/minitest.rb#640 + # source://minitest/lib/minitest.rb#654 def initialize; end # Did this run pass? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#675 + # source://minitest/lib/minitest.rb#689 def passed?; end # About to start running a test. This allows a reporter to show # that it is starting or that we are in the middle of a test run. # - # source://minitest/lib/minitest.rb#654 + # source://minitest/lib/minitest.rb#668 def prerecord(klass, name); end # Output and record the result of the test. Call @@ -143,43 +143,43 @@ class Minitest::AbstractReporter # result character string. Stores the result of the run if the run # did not pass. # - # source://minitest/lib/minitest.rb#663 + # source://minitest/lib/minitest.rb#677 def record(result); end # Outputs the summary of the run. # - # source://minitest/lib/minitest.rb#669 + # source://minitest/lib/minitest.rb#683 def report; end # Starts reporting on the run. # - # source://minitest/lib/minitest.rb#647 + # source://minitest/lib/minitest.rb#661 def start; end - # source://minitest/lib/minitest.rb#679 + # source://minitest/lib/minitest.rb#693 def synchronize(&block); end end # Represents run failures. # -# source://minitest/lib/minitest.rb#962 +# source://minitest/lib/minitest.rb#985 class Minitest::Assertion < ::Exception - # source://minitest/lib/minitest.rb#965 + # source://minitest/lib/minitest.rb#988 def error; end # Where was this run before an assertion was raised? # - # source://minitest/lib/minitest.rb#972 + # source://minitest/lib/minitest.rb#995 def location; end - # source://minitest/lib/minitest.rb#980 + # source://minitest/lib/minitest.rb#1003 def result_code; end - # source://minitest/lib/minitest.rb#984 + # source://minitest/lib/minitest.rb#1007 def result_label; end end -# source://minitest/lib/minitest.rb#963 +# source://minitest/lib/minitest.rb#986 Minitest::Assertion::RE = T.let(T.unsafe(nil), Regexp) # Minitest Assertions. All assertion methods accept a +msg+ which is @@ -626,77 +626,77 @@ Minitest::Assertions::UNDEFINED = T.let(T.unsafe(nil), Object) # # See Minitest.backtrace_filter=. # -# source://minitest/lib/minitest.rb#1108 +# source://minitest/lib/minitest.rb#1140 class Minitest::BacktraceFilter # @return [BacktraceFilter] a new instance of BacktraceFilter # - # source://minitest/lib/minitest.rb#1114 + # source://minitest/lib/minitest.rb#1146 def initialize(regexp = T.unsafe(nil)); end # Filter +bt+ to something useful. Returns the whole thing if # $DEBUG (ruby) or $MT_DEBUG (env). # - # source://minitest/lib/minitest.rb#1122 + # source://minitest/lib/minitest.rb#1154 def filter(bt); end # Returns the value of attribute regexp. # - # source://minitest/lib/minitest.rb#1112 + # source://minitest/lib/minitest.rb#1144 def regexp; end # Sets the attribute regexp # # @param value the value to set the attribute regexp to. # - # source://minitest/lib/minitest.rb#1112 + # source://minitest/lib/minitest.rb#1144 def regexp=(_arg0); end end -# source://minitest/lib/minitest.rb#1110 +# source://minitest/lib/minitest.rb#1142 Minitest::BacktraceFilter::MT_RE = T.let(T.unsafe(nil), Regexp) # Dispatch to multiple reporters as one. # -# source://minitest/lib/minitest.rb#911 +# source://minitest/lib/minitest.rb#934 class Minitest::CompositeReporter < ::Minitest::AbstractReporter # @return [CompositeReporter] a new instance of CompositeReporter # - # source://minitest/lib/minitest.rb#917 + # source://minitest/lib/minitest.rb#940 def initialize(*reporters); end # Add another reporter to the mix. # - # source://minitest/lib/minitest.rb#929 + # source://minitest/lib/minitest.rb#952 def <<(reporter); end - # source://minitest/lib/minitest.rb#922 + # source://minitest/lib/minitest.rb#945 def io; end # @return [Boolean] # - # source://minitest/lib/minitest.rb#933 + # source://minitest/lib/minitest.rb#956 def passed?; end - # source://minitest/lib/minitest.rb#941 + # source://minitest/lib/minitest.rb#964 def prerecord(klass, name); end - # source://minitest/lib/minitest.rb#948 + # source://minitest/lib/minitest.rb#971 def record(result); end - # source://minitest/lib/minitest.rb#954 + # source://minitest/lib/minitest.rb#977 def report; end # The list of reporters to dispatch to. # - # source://minitest/lib/minitest.rb#915 + # source://minitest/lib/minitest.rb#938 def reporters; end # The list of reporters to dispatch to. # - # source://minitest/lib/minitest.rb#915 + # source://minitest/lib/minitest.rb#938 def reporters=(_arg0); end - # source://minitest/lib/minitest.rb#937 + # source://minitest/lib/minitest.rb#960 def start; end end @@ -725,48 +725,48 @@ end # # ... lots of test methods ... # end # -# source://minitest/lib/minitest.rb#1052 +# source://minitest/lib/minitest.rb#1084 module Minitest::Guard # Is this running on jruby? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#1057 + # source://minitest/lib/minitest.rb#1089 def jruby?(platform = T.unsafe(nil)); end # Is this running on maglev? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#1064 + # source://minitest/lib/minitest.rb#1096 def maglev?(platform = T.unsafe(nil)); end # Is this running on mri? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#1074 + # source://minitest/lib/minitest.rb#1106 def mri?(platform = T.unsafe(nil)); end # Is this running on macOS? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#1081 + # source://minitest/lib/minitest.rb#1113 def osx?(platform = T.unsafe(nil)); end # Is this running on rubinius? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#1088 + # source://minitest/lib/minitest.rb#1120 def rubinius?(platform = T.unsafe(nil)); end # Is this running on windows? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#1098 + # source://minitest/lib/minitest.rb#1130 def windows?(platform = T.unsafe(nil)); end end @@ -829,36 +829,36 @@ end # plugin, pull this out of the composite and replace it with your # own. # -# source://minitest/lib/minitest.rb#710 +# source://minitest/lib/minitest.rb#724 class Minitest::ProgressReporter < ::Minitest::Reporter - # source://minitest/lib/minitest.rb#711 + # source://minitest/lib/minitest.rb#725 def prerecord(klass, name); end - # source://minitest/lib/minitest.rb#718 + # source://minitest/lib/minitest.rb#732 def record(result); end end # Shared code for anything that can get passed to a Reporter. See # Minitest::Test & Minitest::Result. # -# source://minitest/lib/minitest.rb#532 +# source://minitest/lib/minitest.rb#546 module Minitest::Reportable # @raise [NotImplementedError] # - # source://minitest/lib/minitest.rb#554 + # source://minitest/lib/minitest.rb#568 def class_name; end # Did this run error? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#575 + # source://minitest/lib/minitest.rb#589 def error?; end # The location identifier of this test. Depends on a method # existing called class_name. # - # source://minitest/lib/minitest.rb#549 + # source://minitest/lib/minitest.rb#563 def location; end # Did this run pass? @@ -868,50 +868,50 @@ module Minitest::Reportable # # @return [Boolean] # - # source://minitest/lib/minitest.rb#539 + # source://minitest/lib/minitest.rb#553 def passed?; end # Returns ".", "F", or "E" based on the result of the run. # - # source://minitest/lib/minitest.rb#561 + # source://minitest/lib/minitest.rb#575 def result_code; end # Was this run skipped? # # @return [Boolean] # - # source://minitest/lib/minitest.rb#568 + # source://minitest/lib/minitest.rb#582 def skipped?; end end -# source://minitest/lib/minitest.rb#543 +# source://minitest/lib/minitest.rb#557 Minitest::Reportable::BASE_DIR = T.let(T.unsafe(nil), String) -# source://minitest/lib/minitest.rb#686 +# source://minitest/lib/minitest.rb#700 class Minitest::Reporter < ::Minitest::AbstractReporter # @return [Reporter] a new instance of Reporter # - # source://minitest/lib/minitest.rb#695 + # source://minitest/lib/minitest.rb#709 def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end # The IO used to report. # - # source://minitest/lib/minitest.rb#688 + # source://minitest/lib/minitest.rb#702 def io; end # The IO used to report. # - # source://minitest/lib/minitest.rb#688 + # source://minitest/lib/minitest.rb#702 def io=(_arg0); end # Command-line options for this run. # - # source://minitest/lib/minitest.rb#693 + # source://minitest/lib/minitest.rb#707 def options; end # Command-line options for this run. # - # source://minitest/lib/minitest.rb#693 + # source://minitest/lib/minitest.rb#707 def options=(_arg0); end end @@ -921,80 +921,80 @@ end # blow up. By using Result.from(a_test) you can be reasonably sure # that the test result can be marshalled. # -# source://minitest/lib/minitest.rb#587 +# source://minitest/lib/minitest.rb#601 class Minitest::Result < ::Minitest::Runnable include ::Minitest::Reportable - # source://minitest/lib/minitest.rb#621 + # source://minitest/lib/minitest.rb#635 def class_name; end # The class name of the test result. # - # source://minitest/lib/minitest.rb#596 + # source://minitest/lib/minitest.rb#610 def klass; end # The class name of the test result. # - # source://minitest/lib/minitest.rb#596 + # source://minitest/lib/minitest.rb#610 def klass=(_arg0); end # The location of the test method. # - # source://minitest/lib/minitest.rb#601 + # source://minitest/lib/minitest.rb#615 def source_location; end # The location of the test method. # - # source://minitest/lib/minitest.rb#601 + # source://minitest/lib/minitest.rb#615 def source_location=(_arg0); end - # source://minitest/lib/minitest.rb#625 + # source://minitest/lib/minitest.rb#639 def to_s; end class << self # Create a new test result from a Runnable instance. # - # source://minitest/lib/minitest.rb#606 + # source://minitest/lib/minitest.rb#620 def from(runnable); end end end # re-open # -# source://minitest/lib/minitest.rb#305 +# source://minitest/lib/minitest.rb#319 class Minitest::Runnable # @return [Runnable] a new instance of Runnable # - # source://minitest/lib/minitest.rb#463 + # source://minitest/lib/minitest.rb#477 def initialize(name); end # Number of assertions executed in this run. # - # source://minitest/lib/minitest.rb#309 + # source://minitest/lib/minitest.rb#323 def assertions; end # Number of assertions executed in this run. # - # source://minitest/lib/minitest.rb#309 + # source://minitest/lib/minitest.rb#323 def assertions=(_arg0); end - # source://minitest/lib/minitest.rb#459 + # source://minitest/lib/minitest.rb#473 def failure; end # An assertion raised during the run, if any. # - # source://minitest/lib/minitest.rb#314 + # source://minitest/lib/minitest.rb#328 def failures; end # An assertion raised during the run, if any. # - # source://minitest/lib/minitest.rb#314 + # source://minitest/lib/minitest.rb#328 def failures=(_arg0); end - # source://minitest/lib/minitest.rb#445 + # source://minitest/lib/minitest.rb#459 def marshal_dump; end - # source://minitest/lib/minitest.rb#455 + # source://minitest/lib/minitest.rb#469 def marshal_load(ary); end # Metadata you attach to the test results that get sent to the reporter. @@ -1004,29 +1004,29 @@ class Minitest::Runnable # NOTE: this data *must* be plain (read: marshal-able) data! # Hashes! Arrays! Strings! # - # source://minitest/lib/minitest.rb#478 + # source://minitest/lib/minitest.rb#492 def metadata; end # Sets metadata, mainly used for +Result.from+. # - # source://minitest/lib/minitest.rb#485 + # source://minitest/lib/minitest.rb#499 def metadata=(_arg0); end # Returns true if metadata exists. # # @return [Boolean] # - # source://minitest/lib/minitest.rb#490 + # source://minitest/lib/minitest.rb#504 def metadata?; end # Name of the run. # - # source://minitest/lib/minitest.rb#332 + # source://minitest/lib/minitest.rb#346 def name; end # Set the name of the run. # - # source://minitest/lib/minitest.rb#339 + # source://minitest/lib/minitest.rb#353 def name=(o); end # Did this run pass? @@ -1037,7 +1037,7 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest/lib/minitest.rb#507 + # source://minitest/lib/minitest.rb#521 def passed?; end # Returns a single character string to print based on the result @@ -1046,14 +1046,14 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest/lib/minitest.rb#516 + # source://minitest/lib/minitest.rb#530 def result_code; end # Runs a single method. Needs to return self. # # @raise [NotImplementedError] # - # source://minitest/lib/minitest.rb#497 + # source://minitest/lib/minitest.rb#511 def run; end # Was this run skipped? See #passed? for more information. @@ -1061,42 +1061,42 @@ class Minitest::Runnable # @raise [NotImplementedError] # @return [Boolean] # - # source://minitest/lib/minitest.rb#523 + # source://minitest/lib/minitest.rb#537 def skipped?; end # The time it took to run. # - # source://minitest/lib/minitest.rb#319 + # source://minitest/lib/minitest.rb#333 def time; end # The time it took to run. # - # source://minitest/lib/minitest.rb#319 + # source://minitest/lib/minitest.rb#333 def time=(_arg0); end - # source://minitest/lib/minitest.rb#321 + # source://minitest/lib/minitest.rb#335 def time_it; end class << self - # source://minitest/lib/minitest.rb#1156 + # source://minitest/lib/minitest.rb#1188 def inherited(klass); end # Returns all instance methods matching the pattern +re+. # - # source://minitest/lib/minitest.rb#346 + # source://minitest/lib/minitest.rb#360 def methods_matching(re); end - # source://minitest/lib/minitest.rb#415 + # source://minitest/lib/minitest.rb#429 def on_signal(name, action); end - # source://minitest/lib/minitest.rb#350 + # source://minitest/lib/minitest.rb#364 def reset; end # Responsible for running all runnable methods in a given class, # each in its own instance. Each instance is passed to the # reporter to record. # - # source://minitest/lib/minitest.rb#361 + # source://minitest/lib/minitest.rb#375 def run(reporter, options = T.unsafe(nil)); end # Runs a single method and has the reporter record the result. @@ -1104,7 +1104,7 @@ class Minitest::Runnable # that subclasses can specialize the running of an individual # test. See Minitest::ParallelTest::ClassMethods for an example. # - # source://minitest/lib/minitest.rb#387 + # source://minitest/lib/minitest.rb#401 def run_one_method(klass, method_name, reporter); end # Each subclass of Runnable is responsible for overriding this @@ -1112,33 +1112,33 @@ class Minitest::Runnable # # @raise [NotImplementedError] # - # source://minitest/lib/minitest.rb#432 + # source://minitest/lib/minitest.rb#446 def runnable_methods; end # Returns all subclasses of Runnable. # - # source://minitest/lib/minitest.rb#439 + # source://minitest/lib/minitest.rb#453 def runnables; end # Defines the order to run tests (:random by default). Override # this or use a convenience method to change it for your tests. # - # source://minitest/lib/minitest.rb#396 + # source://minitest/lib/minitest.rb#410 def test_order; end - # source://minitest/lib/minitest.rb#400 + # source://minitest/lib/minitest.rb#414 def with_info_handler(reporter, &block); end end end -# source://minitest/lib/minitest.rb#413 +# source://minitest/lib/minitest.rb#427 Minitest::Runnable::SIGNALS = T.let(T.unsafe(nil), Hash) # Assertion raised when skipping a run. # -# source://minitest/lib/minitest.rb#992 +# source://minitest/lib/minitest.rb#1015 class Minitest::Skip < ::Minitest::Assertion - # source://minitest/lib/minitest.rb#993 + # source://minitest/lib/minitest.rb#1016 def result_label; end end @@ -1162,114 +1162,124 @@ end # end # end # -# source://minitest/lib/minitest.rb#746 +# source://minitest/lib/minitest.rb#760 class Minitest::StatisticsReporter < ::Minitest::Reporter # @return [StatisticsReporter] a new instance of StatisticsReporter # - # source://minitest/lib/minitest.rb#790 + # source://minitest/lib/minitest.rb#809 def initialize(io = T.unsafe(nil), options = T.unsafe(nil)); end # Total number of assertions. # - # source://minitest/lib/minitest.rb#750 + # source://minitest/lib/minitest.rb#764 def assertions; end # Total number of assertions. # - # source://minitest/lib/minitest.rb#750 + # source://minitest/lib/minitest.rb#764 def assertions=(_arg0); end # Total number of test cases. # - # source://minitest/lib/minitest.rb#755 + # source://minitest/lib/minitest.rb#769 def count; end # Total number of test cases. # - # source://minitest/lib/minitest.rb#755 + # source://minitest/lib/minitest.rb#769 def count=(_arg0); end # Total number of tests that erred. # - # source://minitest/lib/minitest.rb#783 + # source://minitest/lib/minitest.rb#797 def errors; end # Total number of tests that erred. # - # source://minitest/lib/minitest.rb#783 + # source://minitest/lib/minitest.rb#797 def errors=(_arg0); end # Total number of tests that failed. # - # source://minitest/lib/minitest.rb#778 + # source://minitest/lib/minitest.rb#792 def failures; end # Total number of tests that failed. # - # source://minitest/lib/minitest.rb#778 + # source://minitest/lib/minitest.rb#792 def failures=(_arg0); end # @return [Boolean] # - # source://minitest/lib/minitest.rb#803 + # source://minitest/lib/minitest.rb#823 def passed?; end - # source://minitest/lib/minitest.rb#811 + # source://minitest/lib/minitest.rb#831 def record(result); end # Report on the tracked statistics. # - # source://minitest/lib/minitest.rb#821 + # source://minitest/lib/minitest.rb#841 def report; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest/lib/minitest.rb#760 + # source://minitest/lib/minitest.rb#774 def results; end # An +Array+ of test cases that failed or were skipped. # - # source://minitest/lib/minitest.rb#760 + # source://minitest/lib/minitest.rb#774 def results=(_arg0); end # Total number of tests that where skipped. # - # source://minitest/lib/minitest.rb#788 + # source://minitest/lib/minitest.rb#807 def skips; end # Total number of tests that where skipped. # - # source://minitest/lib/minitest.rb#788 + # source://minitest/lib/minitest.rb#807 def skips=(_arg0); end - # source://minitest/lib/minitest.rb#807 + # source://minitest/lib/minitest.rb#827 def start; end # Time the test run started. If available, the monotonic clock is # used and this is a +Float+, otherwise it's an instance of # +Time+. # - # source://minitest/lib/minitest.rb#767 + # source://minitest/lib/minitest.rb#781 def start_time; end # Time the test run started. If available, the monotonic clock is # used and this is a +Float+, otherwise it's an instance of # +Time+. # - # source://minitest/lib/minitest.rb#767 + # source://minitest/lib/minitest.rb#781 def start_time=(_arg0); end # Test run time. If available, the monotonic clock is used and # this is a +Float+, otherwise it's an instance of +Time+. # - # source://minitest/lib/minitest.rb#773 + # source://minitest/lib/minitest.rb#787 def total_time; end # Test run time. If available, the monotonic clock is used and # this is a +Float+, otherwise it's an instance of +Time+. # - # source://minitest/lib/minitest.rb#773 + # source://minitest/lib/minitest.rb#787 def total_time=(_arg0); end + + # Total number of tests that warned. + # + # source://minitest/lib/minitest.rb#802 + def warnings; end + + # Total number of tests that warned. + # + # source://minitest/lib/minitest.rb#802 + def warnings=(_arg0); end end # A reporter that prints the header, summary, and failure details at @@ -1280,48 +1290,48 @@ end # plugin, pull this out of the composite and replace it with your # own. # -# source://minitest/lib/minitest.rb#841 +# source://minitest/lib/minitest.rb#862 class Minitest::SummaryReporter < ::Minitest::StatisticsReporter - # source://minitest/lib/minitest.rb#876 + # source://minitest/lib/minitest.rb#897 def aggregated_results(io); end # Returns the value of attribute old_sync. # - # source://minitest/lib/minitest.rb#844 + # source://minitest/lib/minitest.rb#865 def old_sync; end # Sets the attribute old_sync # # @param value the value to set the attribute old_sync to. # - # source://minitest/lib/minitest.rb#844 + # source://minitest/lib/minitest.rb#865 def old_sync=(_arg0); end - # source://minitest/lib/minitest.rb#859 + # source://minitest/lib/minitest.rb#880 def report; end # :startdoc: # - # source://minitest/lib/minitest.rb#847 + # source://minitest/lib/minitest.rb#868 def start; end - # source://minitest/lib/minitest.rb#871 + # source://minitest/lib/minitest.rb#892 def statistics; end - # source://minitest/lib/minitest.rb#896 + # source://minitest/lib/minitest.rb#917 def summary; end # :stopdoc: # - # source://minitest/lib/minitest.rb#843 + # source://minitest/lib/minitest.rb#864 def sync; end # :stopdoc: # - # source://minitest/lib/minitest.rb#843 + # source://minitest/lib/minitest.rb#864 def sync=(_arg0); end - # source://minitest/lib/minitest.rb#892 + # source://minitest/lib/minitest.rb#913 def to_s; end end @@ -1341,58 +1351,58 @@ class Minitest::Test < ::Minitest::Runnable include ::Mocha::API extend ::Minitest::Guard - # source://webmock/3.23.0lib/webmock/minitest.rb#29 + # source://webmock/3.23.1lib/webmock/minitest.rb#29 def assert_request_not_requested(*args); end - # source://webmock/3.23.0lib/webmock/minitest.rb#29 + # source://webmock/3.23.1lib/webmock/minitest.rb#29 def assert_request_not_requested_with_assertions_count(*args); end - # source://webmock/3.23.0lib/webmock/minitest.rb#29 + # source://webmock/3.23.1lib/webmock/minitest.rb#29 def assert_request_requested(*args); end - # source://webmock/3.23.0lib/webmock/minitest.rb#29 + # source://webmock/3.23.1lib/webmock/minitest.rb#29 def assert_request_requested_with_assertions_count(*args); end # LifecycleHooks # - # source://minitest/lib/minitest/test.rb#190 + # source://minitest/lib/minitest/test.rb#191 def capture_exceptions; end # source://minitest/lib/minitest/test.rb#15 def class_name; end - # source://minitest/lib/minitest/test.rb#207 + # source://minitest/lib/minitest/test.rb#208 def neuter_exception(e); end - # source://minitest/lib/minitest/test.rb#218 + # source://minitest/lib/minitest/test.rb#219 def new_exception(klass, msg, bt, kill = T.unsafe(nil)); end # Runs a single test with setup/teardown hooks. # - # source://minitest/lib/minitest/test.rb#86 + # source://minitest/lib/minitest/test.rb#87 def run; end - # source://minitest/lib/minitest/test.rb#200 + # source://minitest/lib/minitest/test.rb#201 def sanitize_exception(e); end - # source://webmock/3.23.0lib/webmock/minitest.rb#21 + # source://webmock/3.23.1lib/webmock/minitest.rb#21 def teardown; end - # source://webmock/3.23.0lib/webmock/minitest.rb#21 + # source://webmock/3.23.1lib/webmock/minitest.rb#21 def teardown_with_webmock; end - # source://minitest/lib/minitest/test.rb#178 + # source://minitest/lib/minitest/test.rb#179 def teardown_without_webmock; end - # source://minitest/lib/minitest/test.rb#232 + # source://minitest/lib/minitest/test.rb#233 def with_info_handler(&block); end private - # source://webmock/3.23.0lib/webmock/api.rb#95 + # source://webmock/3.23.1lib/webmock/api.rb#95 def assert_request_not_requested_without_assertions_count(request, options = T.unsafe(nil)); end - # source://webmock/3.23.0lib/webmock/api.rb#86 + # source://webmock/3.23.1lib/webmock/api.rb#86 def assert_request_requested_without_assertions_count(request, options = T.unsafe(nil)); end class << self @@ -1423,18 +1433,19 @@ class Minitest::Test < ::Minitest::Runnable # source://minitest/lib/minitest/test.rb#48 def make_my_diffs_pretty!; end - # Call this at the top of your tests when you want to run your - # tests in parallel. In doing so, you're admitting that you rule - # and your tests are awesome. + # Call this at the top of your tests (inside the +Minitest::Test+ + # subclass or +describe+ block) when you want to run your tests in + # parallel. In doing so, you're admitting that you rule and your + # tests are awesome. # - # source://minitest/lib/minitest/test.rb#59 + # source://minitest/lib/minitest/test.rb#60 def parallelize_me!; end # Returns all instance methods starting with "test_". Based on # #test_order, the methods are either sorted, randomized # (default), or run in parallel. # - # source://minitest/lib/minitest/test.rb#69 + # source://minitest/lib/minitest/test.rb#70 def runnable_methods; end end end @@ -1443,7 +1454,7 @@ end # meant for library writers, NOT for regular test authors. See # #before_setup for an example. # -# source://minitest/lib/minitest/test.rb#113 +# source://minitest/lib/minitest/test.rb#114 module Minitest::Test::LifecycleHooks # Runs before every test, after setup. This hook is meant for # libraries to extend minitest. It is not meant to be used by @@ -1451,7 +1462,7 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest/lib/minitest/test.rb#163 + # source://minitest/lib/minitest/test.rb#164 def after_setup; end # Runs after every test, after teardown. This hook is meant for @@ -1460,7 +1471,7 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest/lib/minitest/test.rb#187 + # source://minitest/lib/minitest/test.rb#188 def after_teardown; end # Runs before every test, before setup. This hook is meant for @@ -1495,7 +1506,7 @@ module Minitest::Test::LifecycleHooks # include MyMinitestPlugin # end # - # source://minitest/lib/minitest/test.rb#148 + # source://minitest/lib/minitest/test.rb#149 def before_setup; end # Runs after every test, before teardown. This hook is meant for @@ -1504,19 +1515,19 @@ module Minitest::Test::LifecycleHooks # # See #before_setup for an example. # - # source://minitest/lib/minitest/test.rb#172 + # source://minitest/lib/minitest/test.rb#173 def before_teardown; end # Runs before every test. Use this to set up before each test # run. # - # source://minitest/lib/minitest/test.rb#154 + # source://minitest/lib/minitest/test.rb#155 def setup; end # Runs after every test. Use this to clean up after each test # run. # - # source://minitest/lib/minitest/test.rb#178 + # source://minitest/lib/minitest/test.rb#179 def teardown; end end @@ -1531,38 +1542,46 @@ Minitest::Test::TEARDOWN_METHODS = T.let(T.unsafe(nil), Array) # Assertion wrapping an unexpected error that was raised during a run. # -# source://minitest/lib/minitest.rb#1001 +# source://minitest/lib/minitest.rb#1024 class Minitest::UnexpectedError < ::Minitest::Assertion include ::Minitest::Compress # @return [UnexpectedError] a new instance of UnexpectedError # - # source://minitest/lib/minitest.rb#1007 + # source://minitest/lib/minitest.rb#1030 def initialize(error); end - # source://minitest/lib/minitest.rb#1020 + # source://minitest/lib/minitest.rb#1043 def backtrace; end # TODO: figure out how to use `cause` instead # - # source://minitest/lib/minitest.rb#1005 + # source://minitest/lib/minitest.rb#1028 def error; end # TODO: figure out how to use `cause` instead # - # source://minitest/lib/minitest.rb#1005 + # source://minitest/lib/minitest.rb#1028 def error=(_arg0); end - # source://minitest/lib/minitest.rb#1026 + # source://minitest/lib/minitest.rb#1049 def message; end - # source://minitest/lib/minitest.rb#1032 + # source://minitest/lib/minitest.rb#1055 def result_label; end end -# source://minitest/lib/minitest.rb#1024 +# source://minitest/lib/minitest.rb#1047 Minitest::UnexpectedError::BASE_RE = T.let(T.unsafe(nil), Regexp) +# Assertion raised on warning when running in -Werror mode. +# +# source://minitest/lib/minitest.rb#1063 +class Minitest::UnexpectedWarning < ::Minitest::Assertion + # source://minitest/lib/minitest.rb#1064 + def result_label; end +end + # source://minitest/lib/minitest/unit.rb#20 class Minitest::Unit class << self diff --git a/sorbet/rbi/gems/mocha@2.2.0.rbi b/sorbet/rbi/gems/mocha@2.3.0.rbi similarity index 100% rename from sorbet/rbi/gems/mocha@2.2.0.rbi rename to sorbet/rbi/gems/mocha@2.3.0.rbi diff --git a/sorbet/rbi/gems/net-imap@0.4.10.rbi b/sorbet/rbi/gems/net-imap@0.4.11.rbi similarity index 100% rename from sorbet/rbi/gems/net-imap@0.4.10.rbi rename to sorbet/rbi/gems/net-imap@0.4.11.rbi diff --git a/sorbet/rbi/gems/net-smtp@0.4.0.1.rbi b/sorbet/rbi/gems/net-smtp@0.5.0.rbi similarity index 76% rename from sorbet/rbi/gems/net-smtp@0.4.0.1.rbi rename to sorbet/rbi/gems/net-smtp@0.5.0.rbi index 11f99d70..9acb9a00 100644 --- a/sorbet/rbi/gems/net-smtp@0.4.0.1.rbi +++ b/sorbet/rbi/gems/net-smtp@0.5.0.rbi @@ -7,13 +7,13 @@ # == What is This Library? # # This library provides functionality to send internet -# mail via SMTP, the Simple Mail Transfer Protocol. For details of -# SMTP itself, see [RFC5321] (http://www.ietf.org/rfc/rfc5321.txt). -# This library also implements SMTP authentication, which is often +# mail via \SMTP, the Simple Mail Transfer Protocol. For details of +# \SMTP itself, see [RFC5321[https://www.rfc-editor.org/rfc/rfc5321.txt]]. +# This library also implements \SMTP authentication, which is often # necessary for message composers to submit messages to their -# outgoing SMTP server, see -# [RFC6409](http://www.ietf.org/rfc/rfc6503.txt), -# and [SMTPUTF8](http://www.ietf.org/rfc/rfc6531.txt), which is +# outgoing \SMTP server, see +# [RFC6409[https://www.rfc-editor.org/rfc/rfc6409.html]], +# and [SMTPUTF8[https://www.rfc-editor.org/rfc/rfc6531.txt]], which is # necessary to send messages to/from addresses containing characters # outside the ASCII range. # @@ -21,18 +21,20 @@ # # This library does NOT provide functions to compose internet mails. # You must create them by yourself. If you want better mail support, -# try RubyMail or TMail or search for alternatives in +# try the mail[https://rubygems.org/gems/mail] or +# rmail[https://rubygems.org/gems/rmail] gems, or search for alternatives in # {RubyGems.org}[https://rubygems.org/] or {The Ruby # Toolbox}[https://www.ruby-toolbox.com/]. # -# FYI: the official specification on internet mail is: [RFC5322] (http://www.ietf.org/rfc/rfc5322.txt). +# FYI: the official specification on internet mail is: +# [RFC5322[https://www.rfc-editor.org/rfc/rfc5322.txt]]. # # == Examples # # === Sending Messages # -# You must open a connection to an SMTP server before sending messages. -# The first argument is the address of your SMTP server, and the second +# You must open a connection to an \SMTP server before sending messages. +# The first argument is the address of your \SMTP server, and the second # argument is the port number. Using SMTP.start with a block is the simplest # way to do this. This way, the SMTP connection is closed automatically # after the block is executed. @@ -42,7 +44,7 @@ # # Use the SMTP object smtp only in this block. # end # -# Replace 'your.smtp.server' with your SMTP server. Normally +# Replace 'your.smtp.server' with your \SMTP server. Normally # your system manager or internet provider supplies a server # for you. # @@ -75,7 +77,7 @@ # smtp.send_message msgstr, 'from@address', 'to@address' # smtp.finish # -# You can also use the block form of SMTP.start/SMTP#start. This closes +# You can also use the block form of SMTP.start or SMTP#start. This closes # the SMTP session automatically: # # # using block form of SMTP.start @@ -88,33 +90,36 @@ # === HELO domain # # In almost all situations, you must provide a third argument -# to SMTP.start/SMTP#start. This is the domain name which you are on +# to SMTP.start or SMTP#start. This is the domain name which you are on # (the host to send mail from). It is called the "HELO domain". -# The SMTP server will judge whether it should send or reject +# The \SMTP server will judge whether it should send or reject # the SMTP session by inspecting the HELO domain. # -# Net::SMTP.start('your.smtp.server', 25 -# helo: 'mail.from.domain') { |smtp| ... } +# Net::SMTP.start('your.smtp.server', 25, helo: 'mail.from.domain') do |smtp| +# smtp.send_message msgstr, 'from@address', 'to@address' +# end +# +# === \SMTP Authentication # -# === SMTP Authentication +# The Net::SMTP class supports the \SMTP extension for SASL Authentication +# [RFC4954[https://www.rfc-editor.org/rfc/rfc4954.html]] and the following +# SASL mechanisms: +PLAIN+, +LOGIN+ _(deprecated)_, and +CRAM-MD5+ +# _(deprecated)_. # -# The Net::SMTP class supports three authentication schemes; -# PLAIN, LOGIN and CRAM MD5. (SMTP Authentication: [RFC2554]) -# To use SMTP authentication, pass extra arguments to -# SMTP.start/SMTP#start. +# To use \SMTP authentication, pass extra arguments to +# SMTP.start or SMTP#start. # # # PLAIN -# Net::SMTP.start('your.smtp.server', 25 +# Net::SMTP.start('your.smtp.server', 25, # user: 'Your Account', secret: 'Your Password', authtype: :plain) -# # LOGIN -# Net::SMTP.start('your.smtp.server', 25 -# user: 'Your Account', secret: 'Your Password', authtype: :login) # -# # CRAM MD5 -# Net::SMTP.start('your.smtp.server', 25 -# user: 'Your Account', secret: 'Your Password', authtype: :cram_md5) +# Support for other SASL mechanisms-such as +EXTERNAL+, +OAUTHBEARER+, +# +SCRAM-SHA-256+, and +XOAUTH2+-will be added in a future release. # -# source://net-smtp/lib/net/smtp.rb#189 +# The +LOGIN+ and +CRAM-MD5+ mechanisms are still available for backwards +# compatibility, but are deprecated and should be avoided. +# +# source://net-smtp/lib/net/smtp.rb#194 class Net::SMTP < ::Net::Protocol # Creates a new Net::SMTP object. # @@ -130,43 +135,62 @@ class Net::SMTP < ::Net::Protocol # If the hostname in the server certificate is different from +address+, # it can be specified with +tls_hostname+. # - # Additional SSLContext params can be added to +ssl_context_params+ hash argument and are passed to - # +OpenSSL::SSL::SSLContext#set_params+ + # Additional SSLContext[https://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html] + # params can be added to the +ssl_context_params+ hash argument and are + # passed to {OpenSSL::SSL::SSLContext#set_params}[https://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html#method-i-set_params]. + # + # tls_verify: true is equivalent to ssl_context_params: { + # verify_mode: OpenSSL::SSL::VERIFY_PEER }. # - # +tls_verify: true+ is equivalent to +ssl_context_params: { verify_mode: OpenSSL::SSL::VERIFY_PEER }+. # This method does not open the TCP connection. You can use # SMTP.start instead of SMTP.new if you want to do everything # at once. Otherwise, follow SMTP.new with SMTP#start. # # @return [SMTP] a new instance of SMTP # - # source://net-smtp/lib/net/smtp.rb#240 + # source://net-smtp/lib/net/smtp.rb#248 def initialize(address, port = T.unsafe(nil), tls: T.unsafe(nil), starttls: T.unsafe(nil), tls_verify: T.unsafe(nil), tls_hostname: T.unsafe(nil), ssl_context_params: T.unsafe(nil)); end # The address of the SMTP server to connect to. # - # source://net-smtp/lib/net/smtp.rb#405 + # source://net-smtp/lib/net/smtp.rb#414 def address; end - # source://net-smtp/lib/net/smtp.rb#834 + # Returns whether the server advertises support for the authentication type. + # You cannot get valid result before opening SMTP session. + # + # @return [Boolean] + # + # source://net-smtp/lib/net/smtp.rb#329 + def auth_capable?(type); end + + # Authenticates with the server, using the "AUTH" command. + # + # +authtype+ is the name of a SASL authentication mechanism. + # + # All arguments-other than +authtype+-are forwarded to the authenticator. + # Different authenticators may interpret the +user+ and +secret+ + # arguments differently. + # + # source://net-smtp/lib/net/smtp.rb#872 def authenticate(user, secret, authtype = T.unsafe(nil)); end # The server capabilities by EHLO response # - # source://net-smtp/lib/net/smtp.rb#299 + # source://net-smtp/lib/net/smtp.rb#307 def capabilities; end # true if the EHLO response contains +key+. # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#293 + # source://net-smtp/lib/net/smtp.rb#301 def capable?(key); end # Returns supported authentication methods on this server. # You cannot get valid value before opening SMTP session. # - # source://net-smtp/lib/net/smtp.rb#328 + # source://net-smtp/lib/net/smtp.rb#337 def capable_auth_types; end # true if server advertises AUTH CRAM-MD5. @@ -174,7 +198,7 @@ class Net::SMTP < ::Net::Protocol # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#315 + # source://net-smtp/lib/net/smtp.rb#323 def capable_cram_md5_auth?; end # true if server advertises AUTH LOGIN. @@ -182,7 +206,7 @@ class Net::SMTP < ::Net::Protocol # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#309 + # source://net-smtp/lib/net/smtp.rb#317 def capable_login_auth?; end # true if server advertises AUTH PLAIN. @@ -190,7 +214,7 @@ class Net::SMTP < ::Net::Protocol # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#303 + # source://net-smtp/lib/net/smtp.rb#311 def capable_plain_auth?; end # true if server advertises STARTTLS. @@ -198,7 +222,7 @@ class Net::SMTP < ::Net::Protocol # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#288 + # source://net-smtp/lib/net/smtp.rb#296 def capable_starttls?; end # This method sends a message. @@ -224,7 +248,7 @@ class Net::SMTP < ::Net::Protocol # f.puts "Check vm.c:58879." # } # - # source://net-smtp/lib/net/smtp.rb#933 + # source://net-smtp/lib/net/smtp.rb#958 def data(msgstr = T.unsafe(nil), &block); end # WARNING: This method causes serious security holes. @@ -240,37 +264,37 @@ class Net::SMTP < ::Net::Protocol # .... # end # - # source://net-smtp/lib/net/smtp.rb#441 + # source://net-smtp/lib/net/smtp.rb#450 def debug_output=(arg); end # Disables SMTP/TLS for this object. Must be called before the # connection is established to have any effect. # - # source://net-smtp/lib/net/smtp.rb#355 + # source://net-smtp/lib/net/smtp.rb#364 def disable_ssl; end # Disables SMTP/TLS (STARTTLS) for this object. Must be called # before the connection is established to have any effect. # - # source://net-smtp/lib/net/smtp.rb#399 + # source://net-smtp/lib/net/smtp.rb#408 def disable_starttls; end # Disables SMTP/TLS for this object. Must be called before the # connection is established to have any effect. # - # source://net-smtp/lib/net/smtp.rb#355 + # source://net-smtp/lib/net/smtp.rb#364 def disable_tls; end - # source://net-smtp/lib/net/smtp.rb#882 + # source://net-smtp/lib/net/smtp.rb#907 def ehlo(domain); end - # Enables SMTP/TLS (SMTPS: SMTP over direct TLS connection) for + # Enables SMTP/TLS (SMTPS: \SMTP over direct TLS connection) for # this object. Must be called before the connection is established # to have any effect. +context+ is a OpenSSL::SSL::SSLContext object. # # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#344 + # source://net-smtp/lib/net/smtp.rb#353 def enable_ssl(context = T.unsafe(nil)); end # Enables SMTP/TLS (STARTTLS) for this object. @@ -278,7 +302,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#381 + # source://net-smtp/lib/net/smtp.rb#390 def enable_starttls(context = T.unsafe(nil)); end # Enables SMTP/TLS (STARTTLS) for this object if server accepts. @@ -286,16 +310,16 @@ class Net::SMTP < ::Net::Protocol # # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#390 + # source://net-smtp/lib/net/smtp.rb#399 def enable_starttls_auto(context = T.unsafe(nil)); end - # Enables SMTP/TLS (SMTPS: SMTP over direct TLS connection) for + # Enables SMTP/TLS (SMTPS: \SMTP over direct TLS connection) for # this object. Must be called before the connection is established # to have any effect. +context+ is a OpenSSL::SSL::SSLContext object. # # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#344 + # source://net-smtp/lib/net/smtp.rb#353 def enable_tls(context = T.unsafe(nil)); end # Set whether to use ESMTP or not. This should be done before @@ -304,7 +328,7 @@ class Net::SMTP < ::Net::Protocol # object will automatically switch to plain SMTP mode and # retry (but not vice versa). # - # source://net-smtp/lib/net/smtp.rb#281 + # source://net-smtp/lib/net/smtp.rb#289 def esmtp; end # Set whether to use ESMTP or not. This should be done before @@ -313,7 +337,7 @@ class Net::SMTP < ::Net::Protocol # object will automatically switch to plain SMTP mode and # retry (but not vice versa). # - # source://net-smtp/lib/net/smtp.rb#281 + # source://net-smtp/lib/net/smtp.rb#289 def esmtp=(_arg0); end # Set whether to use ESMTP or not. This should be done before @@ -323,7 +347,7 @@ class Net::SMTP < ::Net::Protocol # retry (but not vice versa). # +true+ if the SMTP object uses ESMTP (which it does by default). # - # source://net-smtp/lib/net/smtp.rb#281 + # source://net-smtp/lib/net/smtp.rb#289 def esmtp?; end # Finishes the SMTP session and closes TCP connection. @@ -331,23 +355,23 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp/lib/net/smtp.rb#623 + # source://net-smtp/lib/net/smtp.rb#655 def finish; end - # source://net-smtp/lib/net/smtp.rb#964 + # source://net-smtp/lib/net/smtp.rb#989 def get_response(reqline); end - # source://net-smtp/lib/net/smtp.rb#878 + # source://net-smtp/lib/net/smtp.rb#903 def helo(domain); end # Provide human-readable stringification of class state. # - # source://net-smtp/lib/net/smtp.rb#270 + # source://net-smtp/lib/net/smtp.rb#278 def inspect; end # +from_addr+ is +String+ or +Net::SMTP::Address+ # - # source://net-smtp/lib/net/smtp.rb#887 + # source://net-smtp/lib/net/smtp.rb#912 def mailfrom(from_addr); end # Opens a message writer stream and gives it to the block. @@ -395,52 +419,52 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp/lib/net/smtp.rb#818 + # source://net-smtp/lib/net/smtp.rb#849 def open_message_stream(from_addr, *to_addrs, &block); end # Seconds to wait while attempting to open a connection. # If the connection cannot be opened within this time, a # Net::OpenTimeout is raised. The default value is 30 seconds. # - # source://net-smtp/lib/net/smtp.rb#413 + # source://net-smtp/lib/net/smtp.rb#422 def open_timeout; end # Seconds to wait while attempting to open a connection. # If the connection cannot be opened within this time, a # Net::OpenTimeout is raised. The default value is 30 seconds. # - # source://net-smtp/lib/net/smtp.rb#413 + # source://net-smtp/lib/net/smtp.rb#422 def open_timeout=(_arg0); end # The port number of the SMTP server to connect to. # - # source://net-smtp/lib/net/smtp.rb#408 + # source://net-smtp/lib/net/smtp.rb#417 def port; end - # source://net-smtp/lib/net/smtp.rb#960 + # source://net-smtp/lib/net/smtp.rb#985 def quit; end # +to_addr+ is +String+ or +Net::SMTP::Address+ # - # source://net-smtp/lib/net/smtp.rb#905 + # source://net-smtp/lib/net/smtp.rb#930 def rcptto(to_addr); end # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#896 + # source://net-smtp/lib/net/smtp.rb#921 def rcptto_list(to_addrs); end # Seconds to wait while reading one block (by one read(2) call). # If the read(2) call does not complete within this time, a # Net::ReadTimeout is raised. The default value is 60 seconds. # - # source://net-smtp/lib/net/smtp.rb#418 + # source://net-smtp/lib/net/smtp.rb#427 def read_timeout; end # Set the number of seconds to wait until timing-out a read(2) # call. # - # source://net-smtp/lib/net/smtp.rb#422 + # source://net-smtp/lib/net/smtp.rb#431 def read_timeout=(sec); end # Opens a message writer stream and gives it to the block. @@ -489,12 +513,12 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp/lib/net/smtp.rb#818 + # source://net-smtp/lib/net/smtp.rb#849 def ready(from_addr, *to_addrs, &block); end # Aborts the current mail transaction # - # source://net-smtp/lib/net/smtp.rb#870 + # source://net-smtp/lib/net/smtp.rb#895 def rset; end # Sends +msgstr+ as a message. Single CR ("\r") and LF ("\n") found @@ -534,7 +558,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp/lib/net/smtp.rb#763 + # source://net-smtp/lib/net/smtp.rb#794 def send_mail(msgstr, from_addr, *to_addrs); end # Sends +msgstr+ as a message. Single CR ("\r") and LF ("\n") found @@ -574,7 +598,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp/lib/net/smtp.rb#763 + # source://net-smtp/lib/net/smtp.rb#794 def send_message(msgstr, from_addr, *to_addrs); end # Sends +msgstr+ as a message. Single CR ("\r") and LF ("\n") found @@ -615,7 +639,7 @@ class Net::SMTP < ::Net::Protocol # # @raise [IOError] # - # source://net-smtp/lib/net/smtp.rb#763 + # source://net-smtp/lib/net/smtp.rb#794 def sendmail(msgstr, from_addr, *to_addrs); end # WARNING: This method causes serious security holes. @@ -631,24 +655,24 @@ class Net::SMTP < ::Net::Protocol # .... # end # - # source://net-smtp/lib/net/smtp.rb#441 + # source://net-smtp/lib/net/smtp.rb#450 def set_debug_output(arg); end # true if this object uses SMTP/TLS (SMTPS). # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#335 + # source://net-smtp/lib/net/smtp.rb#344 def ssl?; end # Hash for additional SSLContext parameters. # - # source://net-smtp/lib/net/smtp.rb#267 + # source://net-smtp/lib/net/smtp.rb#275 def ssl_context_params; end # Hash for additional SSLContext parameters. # - # source://net-smtp/lib/net/smtp.rb#267 + # source://net-smtp/lib/net/smtp.rb#275 def ssl_context_params=(_arg0); end # :call-seq: @@ -662,11 +686,21 @@ class Net::SMTP < ::Net::Protocol # +helo+ is the _HELO_ _domain_ that you'll dispatch mails from; see # the discussion in the overview notes. # - # If both of +user+ and +secret+ are given, SMTP authentication - # will be attempted using the AUTH command. +authtype+ specifies - # the type of authentication to attempt; it must be one of - # :login, :plain, and :cram_md5. See the notes on SMTP Authentication - # in the overview. + # The remaining arguments are used for \SMTP authentication, if required or + # desired. + # + # +authtype+ is the SASL authentication mechanism. + # + # +user+ is the authentication or authorization identity. + # + # +secret+ or +password+ is your password or other authentication token. + # + # These will be sent to #authenticate as positional arguments-the exact + # semantics are dependent on the +authtype+. + # + # See the discussion of Net::SMTP@SMTP+Authentication in the overview notes. + # + # See also: Net::SMTP.start # # === Block Usage # @@ -707,17 +741,17 @@ class Net::SMTP < ::Net::Protocol # # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#590 + # source://net-smtp/lib/net/smtp.rb#622 def start(*args, helo: T.unsafe(nil), user: T.unsafe(nil), secret: T.unsafe(nil), password: T.unsafe(nil), authtype: T.unsafe(nil)); end - # +true+ if the SMTP session has been started. + # +true+ if the \SMTP session has been started. # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#531 + # source://net-smtp/lib/net/smtp.rb#553 def started?; end - # source://net-smtp/lib/net/smtp.rb#874 + # source://net-smtp/lib/net/smtp.rb#899 def starttls; end # Returns truth value if this object uses STARTTLS. @@ -726,136 +760,125 @@ class Net::SMTP < ::Net::Protocol # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#365 + # source://net-smtp/lib/net/smtp.rb#374 def starttls?; end # true if this object uses STARTTLS. # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#370 + # source://net-smtp/lib/net/smtp.rb#379 def starttls_always?; end # true if this object uses STARTTLS when server advertises STARTTLS. # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#375 + # source://net-smtp/lib/net/smtp.rb#384 def starttls_auto?; end # true if this object uses SMTP/TLS (SMTPS). # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#335 + # source://net-smtp/lib/net/smtp.rb#344 def tls?; end # The hostname for verifying hostname in the server certificatate. # - # source://net-smtp/lib/net/smtp.rb#264 + # source://net-smtp/lib/net/smtp.rb#272 def tls_hostname; end # The hostname for verifying hostname in the server certificatate. # - # source://net-smtp/lib/net/smtp.rb#264 + # source://net-smtp/lib/net/smtp.rb#272 def tls_hostname=(_arg0); end # If +true+, verify th server's certificate. # - # source://net-smtp/lib/net/smtp.rb#261 + # source://net-smtp/lib/net/smtp.rb#269 def tls_verify; end # If +true+, verify th server's certificate. # - # source://net-smtp/lib/net/smtp.rb#261 + # source://net-smtp/lib/net/smtp.rb#269 def tls_verify=(_arg0); end private - # source://net-smtp/lib/net/smtp.rb#717 + # source://net-smtp/lib/net/smtp.rb#748 def any_require_smtputf8(addresses); end - # @return [Boolean] - # - # source://net-smtp/lib/net/smtp.rb#319 - def auth_capable?(type); end - - # source://net-smtp/lib/net/smtp.rb#849 - def auth_method(type); end - - # source://net-smtp/lib/net/smtp.rb#853 - def check_auth_args(user, secret, authtype = T.unsafe(nil)); end + # source://net-smtp/lib/net/smtp.rb#880 + def check_auth_args(type, *args, **kwargs); end - # source://net-smtp/lib/net/smtp.rb#843 - def check_auth_method(type); end - - # source://net-smtp/lib/net/smtp.rb#1015 + # source://net-smtp/lib/net/smtp.rb#1040 def check_continue(res); end - # source://net-smtp/lib/net/smtp.rb#1009 + # source://net-smtp/lib/net/smtp.rb#1034 def check_response(res); end - # source://net-smtp/lib/net/smtp.rb#999 + # source://net-smtp/lib/net/smtp.rb#1024 def critical; end - # source://net-smtp/lib/net/smtp.rb#700 + # source://net-smtp/lib/net/smtp.rb#731 def do_finish; end - # source://net-smtp/lib/net/smtp.rb#688 + # source://net-smtp/lib/net/smtp.rb#719 def do_helo(helo_domain); end - # source://net-smtp/lib/net/smtp.rb#634 + # source://net-smtp/lib/net/smtp.rb#666 def do_start(helo_domain, user, secret, authtype); end - # source://net-smtp/lib/net/smtp.rb#979 + # source://net-smtp/lib/net/smtp.rb#1004 def getok(reqline); end - # source://net-smtp/lib/net/smtp.rb#1100 + # source://net-smtp/lib/net/smtp.rb#1125 def logging(msg); end - # source://net-smtp/lib/net/smtp.rb#683 + # source://net-smtp/lib/net/smtp.rb#714 def new_internet_message_io(s); end - # source://net-smtp/lib/net/smtp.rb#989 + # source://net-smtp/lib/net/smtp.rb#1014 def recv_response; end - # source://net-smtp/lib/net/smtp.rb#709 + # source://net-smtp/lib/net/smtp.rb#740 def requires_smtputf8(address); end - # source://net-smtp/lib/net/smtp.rb#666 + # source://net-smtp/lib/net/smtp.rb#697 def ssl_socket(socket, context); end - # source://net-smtp/lib/net/smtp.rb#630 + # source://net-smtp/lib/net/smtp.rb#662 def tcp_socket(address, port); end - # source://net-smtp/lib/net/smtp.rb#670 + # source://net-smtp/lib/net/smtp.rb#701 def tlsconnect(s, context); end - # source://net-smtp/lib/net/smtp.rb#972 + # source://net-smtp/lib/net/smtp.rb#997 def validate_line(line); end class << self # The default SMTP port number, 25. # - # source://net-smtp/lib/net/smtp.rb#193 + # source://net-smtp/lib/net/smtp.rb#198 def default_port; end - # source://net-smtp/lib/net/smtp.rb#211 + # source://net-smtp/lib/net/smtp.rb#216 def default_ssl_context(ssl_context_params = T.unsafe(nil)); end # The default SMTPS port number, 465. # - # source://net-smtp/lib/net/smtp.rb#203 + # source://net-smtp/lib/net/smtp.rb#208 def default_ssl_port; end # The default mail submission port number, 587. # - # source://net-smtp/lib/net/smtp.rb#198 + # source://net-smtp/lib/net/smtp.rb#203 def default_submission_port; end # The default SMTPS port number, 465. # - # source://net-smtp/lib/net/smtp.rb#203 + # source://net-smtp/lib/net/smtp.rb#208 def default_tls_port; end # :call-seq: @@ -866,7 +889,10 @@ class Net::SMTP < ::Net::Protocol # # This method is equivalent to: # - # Net::SMTP.new(address, port).start(helo: helo_domain, user: account, secret: password, authtype: authtype, tls_verify: flag, tls_hostname: hostname, ssl_context_params: nil) + # Net::SMTP.new(address, port, tls_verify: flag, tls_hostname: hostname, ssl_context_params: nil) + # .start(helo: helo_domain, user: account, secret: password, authtype: authtype) + # + # See also: Net::SMTP.new, #start # # === Example # @@ -891,12 +917,6 @@ class Net::SMTP < ::Net::Protocol # +helo+ is the _HELO_ _domain_ provided by the client to the # server (see overview comments); it defaults to 'localhost'. # - # The remaining arguments are used for SMTP authentication, if required - # or desired. +user+ is the account name; +secret+ is your password - # or other authentication token; and +authtype+ is the authentication - # type, one of :plain, :login, or :cram_md5. See the discussion of - # SMTP Authentication in the overview notes. - # # If +tls+ is true, enable TLS. The default is false. # If +starttls+ is :always, enable STARTTLS, if +:auto+, use STARTTLS when the server supports it, # if false, disable STARTTLS. @@ -905,10 +925,26 @@ class Net::SMTP < ::Net::Protocol # If the hostname in the server certificate is different from +address+, # it can be specified with +tls_hostname+. # - # Additional SSLContext params can be added to +ssl_context_params+ hash argument and are passed to - # +OpenSSL::SSL::SSLContext#set_params+ + # Additional SSLContext[https://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html] + # params can be added to the +ssl_context_params+ hash argument and are + # passed to {OpenSSL::SSL::SSLContext#set_params}[https://ruby.github.io/openssl/OpenSSL/SSL/SSLContext.html#method-i-set_params]. # - # +tls_verify: true+ is equivalent to +ssl_context_params: { verify_mode: OpenSSL::SSL::VERIFY_PEER }+. + # tls_verify: true is equivalent to ssl_context_params: { + # verify_mode: OpenSSL::SSL::VERIFY_PEER }. + # + # The remaining arguments are used for \SMTP authentication, if required or + # desired. + # + # +authtype+ is the SASL authentication mechanism. + # + # +user+ is the authentication or authorization identity. + # + # +secret+ or +password+ is your password or other authentication token. + # + # These will be sent to #authenticate as positional arguments-the exact + # semantics are dependent on the +authtype+. + # + # See the discussion of Net::SMTP@SMTP+Authentication in the overview notes. # # === Errors # @@ -925,14 +961,14 @@ class Net::SMTP < ::Net::Protocol # # @raise [ArgumentError] # - # source://net-smtp/lib/net/smtp.rb#517 + # source://net-smtp/lib/net/smtp.rb#539 def start(address, port = T.unsafe(nil), *args, helo: T.unsafe(nil), user: T.unsafe(nil), secret: T.unsafe(nil), password: T.unsafe(nil), authtype: T.unsafe(nil), tls: T.unsafe(nil), starttls: T.unsafe(nil), tls_verify: T.unsafe(nil), tls_hostname: T.unsafe(nil), ssl_context_params: T.unsafe(nil), &block); end end end # Address with parametres for MAIL or RCPT command # -# source://net-smtp/lib/net/smtp.rb#1105 +# source://net-smtp/lib/net/smtp.rb#1130 class Net::SMTP::Address # :call-seq: # initialize(address, parameter, ...) @@ -942,20 +978,20 @@ class Net::SMTP::Address # # @return [Address] a new instance of Address # - # source://net-smtp/lib/net/smtp.rb#1116 + # source://net-smtp/lib/net/smtp.rb#1141 def initialize(address, *args, **kw_args); end # mail address [String] # - # source://net-smtp/lib/net/smtp.rb#1107 + # source://net-smtp/lib/net/smtp.rb#1132 def address; end # parameters [Array] # - # source://net-smtp/lib/net/smtp.rb#1109 + # source://net-smtp/lib/net/smtp.rb#1134 def parameters; end - # source://net-smtp/lib/net/smtp.rb#1127 + # source://net-smtp/lib/net/smtp.rb#1152 def to_s; end end @@ -997,40 +1033,51 @@ class Net::SMTP::AuthPlain < ::Net::SMTP::Authenticator def auth(user, secret); end end +# source://net-smtp/lib/net/smtp/auth_xoauth2.rb#2 +class Net::SMTP::AuthXoauth2 < ::Net::SMTP::Authenticator + # source://net-smtp/lib/net/smtp/auth_xoauth2.rb#5 + def auth(user, secret); end + + private + + # source://net-smtp/lib/net/smtp/auth_xoauth2.rb#13 + def xoauth2_string(user, secret); end +end + # source://net-smtp/lib/net/smtp/authenticator.rb#3 class Net::SMTP::Authenticator # @return [Authenticator] a new instance of Authenticator # - # source://net-smtp/lib/net/smtp/authenticator.rb#18 + # source://net-smtp/lib/net/smtp/authenticator.rb#29 def initialize(smtp); end # @param str [String] # @return [String] Base64 encoded string # - # source://net-smtp/lib/net/smtp/authenticator.rb#40 + # source://net-smtp/lib/net/smtp/authenticator.rb#51 def base64_encode(str); end # @param arg [String] message to server # @raise [res.exception_class] # @return [String] message from server # - # source://net-smtp/lib/net/smtp/authenticator.rb#24 + # source://net-smtp/lib/net/smtp/authenticator.rb#35 def continue(arg); end # @param arg [String] message to server # @raise [SMTPAuthenticationError] # @return [Net::SMTP::Response] response from server # - # source://net-smtp/lib/net/smtp/authenticator.rb#32 + # source://net-smtp/lib/net/smtp/authenticator.rb#43 def finish(arg); end # Returns the value of attribute smtp. # - # source://net-smtp/lib/net/smtp/authenticator.rb#16 + # source://net-smtp/lib/net/smtp/authenticator.rb#27 def smtp; end class << self - # source://net-smtp/lib/net/smtp/authenticator.rb#12 + # source://net-smtp/lib/net/smtp/authenticator.rb#13 def auth_class(type); end # source://net-smtp/lib/net/smtp/authenticator.rb#4 @@ -1038,6 +1085,9 @@ class Net::SMTP::Authenticator # source://net-smtp/lib/net/smtp/authenticator.rb#8 def auth_type(type); end + + # source://net-smtp/lib/net/smtp/authenticator.rb#18 + def check_args(user_arg = T.unsafe(nil), secret_arg = T.unsafe(nil), *_arg2, **_arg3); end end end @@ -1046,14 +1096,14 @@ end # created by the user. For more information on SMTP responses, view # {Section 4.2 of RFC 5321}[http://tools.ietf.org/html/rfc5321#section-4.2] # -# source://net-smtp/lib/net/smtp.rb#1025 +# source://net-smtp/lib/net/smtp.rb#1050 class Net::SMTP::Response # Creates a new instance of the Response class and sets the status and # string attributes # # @return [Response] a new instance of Response # - # source://net-smtp/lib/net/smtp.rb#1034 + # source://net-smtp/lib/net/smtp.rb#1059 def initialize(status, string); end # Returns a hash of the human readable reply text in the response if it @@ -1061,7 +1111,7 @@ class Net::SMTP::Response # hash is the first word the value of the hash is an array with each word # thereafter being a value in the array # - # source://net-smtp/lib/net/smtp.rb#1077 + # source://net-smtp/lib/net/smtp.rb#1102 def capabilities; end # Determines whether the response received was a Positive Intermediate @@ -1069,39 +1119,39 @@ class Net::SMTP::Response # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#1058 + # source://net-smtp/lib/net/smtp.rb#1083 def continue?; end # Creates a CRAM-MD5 challenge. You can view more information on CRAM-MD5 # on Wikipedia: https://en.wikipedia.org/wiki/CRAM-MD5 # - # source://net-smtp/lib/net/smtp.rb#1069 + # source://net-smtp/lib/net/smtp.rb#1094 def cram_md5_challenge; end # Determines whether there was an error and raises the appropriate error # based on the reply code of the response # - # source://net-smtp/lib/net/smtp.rb#1089 + # source://net-smtp/lib/net/smtp.rb#1114 def exception_class; end # The first line of the human readable reply text # - # source://net-smtp/lib/net/smtp.rb#1063 + # source://net-smtp/lib/net/smtp.rb#1088 def message; end # The three digit reply code of the SMTP response # - # source://net-smtp/lib/net/smtp.rb#1040 + # source://net-smtp/lib/net/smtp.rb#1065 def status; end # Takes the first digit of the reply code to determine the status type # - # source://net-smtp/lib/net/smtp.rb#1046 + # source://net-smtp/lib/net/smtp.rb#1071 def status_type_char; end # The human readable reply text of the SMTP response # - # source://net-smtp/lib/net/smtp.rb#1043 + # source://net-smtp/lib/net/smtp.rb#1068 def string; end # Determines whether the response received was a Positive Completion @@ -1109,19 +1159,19 @@ class Net::SMTP::Response # # @return [Boolean] # - # source://net-smtp/lib/net/smtp.rb#1052 + # source://net-smtp/lib/net/smtp.rb#1077 def success?; end class << self # Parses the received response and separates the reply code and the human # readable reply text # - # source://net-smtp/lib/net/smtp.rb#1028 + # source://net-smtp/lib/net/smtp.rb#1053 def parse(str); end end end -# source://net-smtp/lib/net/smtp.rb#190 +# source://net-smtp/lib/net/smtp.rb#195 Net::SMTP::VERSION = T.let(T.unsafe(nil), String) # source://net-smtp/lib/net/smtp.rb#49 @@ -1158,7 +1208,7 @@ end # class SMTP # -# source://net-smtp/lib/net/smtp.rb#1133 +# source://net-smtp/lib/net/smtp.rb#1158 Net::SMTPSession = Net::SMTP # source://net-smtp/lib/net/smtp.rb#59 diff --git a/sorbet/rbi/gems/nio4r@2.7.0.rbi b/sorbet/rbi/gems/nio4r@2.7.3.rbi similarity index 100% rename from sorbet/rbi/gems/nio4r@2.7.0.rbi rename to sorbet/rbi/gems/nio4r@2.7.3.rbi diff --git a/sorbet/rbi/gems/nokogiri@1.16.2.rbi b/sorbet/rbi/gems/nokogiri@1.16.5.rbi similarity index 100% rename from sorbet/rbi/gems/nokogiri@1.16.2.rbi rename to sorbet/rbi/gems/nokogiri@1.16.5.rbi diff --git a/sorbet/rbi/gems/parser@3.3.0.5.rbi b/sorbet/rbi/gems/parser@3.3.1.0.rbi similarity index 100% rename from sorbet/rbi/gems/parser@3.3.0.5.rbi rename to sorbet/rbi/gems/parser@3.3.1.0.rbi diff --git a/sorbet/rbi/gems/prism@0.24.0.rbi b/sorbet/rbi/gems/prism@0.29.0.rbi similarity index 100% rename from sorbet/rbi/gems/prism@0.24.0.rbi rename to sorbet/rbi/gems/prism@0.29.0.rbi diff --git a/sorbet/rbi/gems/rack@3.0.9.1.rbi b/sorbet/rbi/gems/rack@3.0.11.rbi similarity index 100% rename from sorbet/rbi/gems/rack@3.0.9.1.rbi rename to sorbet/rbi/gems/rack@3.0.11.rbi diff --git a/sorbet/rbi/gems/rails@7.1.3.2.rbi b/sorbet/rbi/gems/rails@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/rails@7.1.3.2.rbi rename to sorbet/rbi/gems/rails@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/railties@7.1.3.2.rbi b/sorbet/rbi/gems/railties@7.1.3.3.rbi similarity index 100% rename from sorbet/rbi/gems/railties@7.1.3.2.rbi rename to sorbet/rbi/gems/railties@7.1.3.3.rbi diff --git a/sorbet/rbi/gems/rake@13.1.0.rbi b/sorbet/rbi/gems/rake@13.2.1.rbi similarity index 97% rename from sorbet/rbi/gems/rake@13.1.0.rbi rename to sorbet/rbi/gems/rake@13.2.1.rbi index c15c2f7e..549b969f 100644 --- a/sorbet/rbi/gems/rake@13.1.0.rbi +++ b/sorbet/rbi/gems/rake@13.2.1.rbi @@ -8,7 +8,7 @@ # # Some top level Constants. # -# source://rake/lib/rake.rb#70 +# source://rake/lib/rake.rb#69 FileList = Rake::FileList # -- @@ -195,7 +195,7 @@ class Rake::Application # Add a file to the list of files to be imported. # - # source://rake/lib/rake/application.rb#801 + # source://rake/lib/rake/application.rb#807 def add_import(fn); end # Add a loader to handle imported files ending in the extension @@ -213,13 +213,13 @@ class Rake::Application # recognised command-line options, which OptionParser.parse will # have taken care of already. # - # source://rake/lib/rake/application.rb#782 + # source://rake/lib/rake/application.rb#788 def collect_command_line_tasks(args); end # Default task name ("default"). # (May be overridden by subclasses) # - # source://rake/lib/rake/application.rb#796 + # source://rake/lib/rake/application.rb#802 def default_task_name; end # Warn about deprecated usage. @@ -227,75 +227,75 @@ class Rake::Application # Example: # Rake.application.deprecate("import", "Rake.import", caller.first) # - # source://rake/lib/rake/application.rb#282 + # source://rake/lib/rake/application.rb#288 def deprecate(old_usage, new_usage, call_site); end - # source://rake/lib/rake/application.rb#244 + # source://rake/lib/rake/application.rb#250 def display_cause_details(ex); end # Display the error message that caused the exception. # - # source://rake/lib/rake/application.rb#228 + # source://rake/lib/rake/application.rb#234 def display_error_message(ex); end - # source://rake/lib/rake/application.rb#269 + # source://rake/lib/rake/application.rb#275 def display_exception_backtrace(ex); end - # source://rake/lib/rake/application.rb#236 + # source://rake/lib/rake/application.rb#242 def display_exception_details(ex); end - # source://rake/lib/rake/application.rb#251 + # source://rake/lib/rake/application.rb#257 def display_exception_details_seen; end - # source://rake/lib/rake/application.rb#259 + # source://rake/lib/rake/application.rb#265 def display_exception_message_details(ex); end # Display the tasks and prerequisites # - # source://rake/lib/rake/application.rb#405 + # source://rake/lib/rake/application.rb#411 def display_prerequisites; end # Display the tasks and comments. # - # source://rake/lib/rake/application.rb#322 + # source://rake/lib/rake/application.rb#328 def display_tasks_and_comments; end # Calculate the dynamic width of the # - # source://rake/lib/rake/application.rb#373 + # source://rake/lib/rake/application.rb#379 def dynamic_width; end - # source://rake/lib/rake/application.rb#377 + # source://rake/lib/rake/application.rb#383 def dynamic_width_stty; end - # source://rake/lib/rake/application.rb#381 + # source://rake/lib/rake/application.rb#387 def dynamic_width_tput; end # Exit the program because of an unhandled exception. # (may be overridden by subclasses) # - # source://rake/lib/rake/application.rb#223 + # source://rake/lib/rake/application.rb#229 def exit_because_of_exception(ex); end - # source://rake/lib/rake/application.rb#702 + # source://rake/lib/rake/application.rb#708 def find_rakefile_location; end # Read and handle the command line options. Returns the command line # arguments that we didn't understand, which should (in theory) be just # task names and env vars. # - # source://rake/lib/rake/application.rb#668 + # source://rake/lib/rake/application.rb#674 def handle_options(argv); end # @return [Boolean] # - # source://rake/lib/rake/application.rb#255 + # source://rake/lib/rake/application.rb#261 def has_cause?(ex); end # True if one of the files in RAKEFILES is in the current directory. # If a match is found, it is copied into @rakefile. # - # source://rake/lib/rake/application.rb#298 + # source://rake/lib/rake/application.rb#304 def have_rakefile; end # Initialize the command line parameters and app name. @@ -305,12 +305,12 @@ class Rake::Application # Invokes a task with arguments that are extracted from +task_string+ # - # source://rake/lib/rake/application.rb#179 + # source://rake/lib/rake/application.rb#185 def invoke_task(task_string); end # Load the pending list of imported files. # - # source://rake/lib/rake/application.rb#806 + # source://rake/lib/rake/application.rb#812 def load_imports; end # Find the rakefile and then load it and any pending imports. @@ -333,16 +333,16 @@ class Rake::Application # source://rake/lib/rake/application.rb#27 def original_dir; end - # source://rake/lib/rake/application.rb#185 + # source://rake/lib/rake/application.rb#191 def parse_task_string(string); end - # source://rake/lib/rake/application.rb#714 + # source://rake/lib/rake/application.rb#720 def print_rakefile_directory(location); end # Similar to the regular Ruby +require+ command, but will check # for *.rake files in addition to *.rb files. # - # source://rake/lib/rake/application.rb#688 + # source://rake/lib/rake/application.rb#694 def rake_require(file_name, paths = T.unsafe(nil), loaded = T.unsafe(nil)); end # Name of the actual rakefile used. @@ -350,10 +350,10 @@ class Rake::Application # source://rake/lib/rake/application.rb#30 def rakefile; end - # source://rake/lib/rake/application.rb#822 + # source://rake/lib/rake/application.rb#828 def rakefile_location(backtrace = T.unsafe(nil)); end - # source://rake/lib/rake/application.rb#719 + # source://rake/lib/rake/application.rb#725 def raw_load_rakefile; end # Run the Rake application. The run method performs the following @@ -375,23 +375,23 @@ class Rake::Application # source://rake/lib/rake/application.rb#144 def run_with_threads; end - # source://rake/lib/rake/application.rb#831 + # source://rake/lib/rake/application.rb#837 def set_default_options; end # Provide standard exception handling for the given block. # - # source://rake/lib/rake/application.rb#207 + # source://rake/lib/rake/application.rb#213 def standard_exception_handling; end # A list of all the standard options used in rake, suitable for # passing to OptionParser. # - # source://rake/lib/rake/application.rb#426 + # source://rake/lib/rake/application.rb#432 def standard_rake_options; end # The directory path containing the system wide rakefiles. # - # source://rake/lib/rake/application.rb#751 + # source://rake/lib/rake/application.rb#757 def system_dir; end # Number of columns on the terminal @@ -404,12 +404,12 @@ class Rake::Application # source://rake/lib/rake/application.rb#33 def terminal_columns=(_arg0); end - # source://rake/lib/rake/application.rb#361 + # source://rake/lib/rake/application.rb#367 def terminal_width; end # Return the thread pool used for multithreaded processing. # - # source://rake/lib/rake/application.rb#172 + # source://rake/lib/rake/application.rb#178 def thread_pool; end # Run the top level tasks of a Rake application. @@ -422,10 +422,10 @@ class Rake::Application # source://rake/lib/rake/application.rb#36 def top_level_tasks; end - # source://rake/lib/rake/application.rb#412 + # source://rake/lib/rake/application.rb#418 def trace(*strings); end - # source://rake/lib/rake/application.rb#394 + # source://rake/lib/rake/application.rb#400 def truncate(string, width); end # We will truncate output if we are outputting to a TTY or if we've been @@ -433,7 +433,7 @@ class Rake::Application # # @return [Boolean] # - # source://rake/lib/rake/application.rb#317 + # source://rake/lib/rake/application.rb#323 def truncate_output?; end # Override the detected TTY output state (mostly for testing) @@ -445,44 +445,44 @@ class Rake::Application # # @return [Boolean] # - # source://rake/lib/rake/application.rb#311 + # source://rake/lib/rake/application.rb#317 def tty_output?; end # @return [Boolean] # - # source://rake/lib/rake/application.rb#385 + # source://rake/lib/rake/application.rb#391 def unix?; end # @return [Boolean] # - # source://rake/lib/rake/application.rb#390 + # source://rake/lib/rake/application.rb#396 def windows?; end private - # source://rake/lib/rake/application.rb#745 + # source://rake/lib/rake/application.rb#751 def glob(path, &block); end # Does the exception have a task invocation chain? # # @return [Boolean] # - # source://rake/lib/rake/application.rb#291 + # source://rake/lib/rake/application.rb#297 def has_chain?(exception); end # source://rake/lib/rake/application.rb#102 def load_debug_at_stop_feature; end - # source://rake/lib/rake/application.rb#644 + # source://rake/lib/rake/application.rb#650 def select_tasks_to_show(options, show_tasks, value); end - # source://rake/lib/rake/application.rb#651 + # source://rake/lib/rake/application.rb#657 def select_trace_output(options, trace_option, value); end - # source://rake/lib/rake/application.rb#417 + # source://rake/lib/rake/application.rb#423 def sort_options(options); end - # source://rake/lib/rake/application.rb#768 + # source://rake/lib/rake/application.rb#774 def standard_system_dir; end end @@ -492,7 +492,7 @@ Rake::Application::DEFAULT_RAKEFILES = T.let(T.unsafe(nil), Array) # source://rake/lib/rake/backtrace.rb#3 module Rake::Backtrace class << self - # source://rake/lib/rake/backtrace.rb#18 + # source://rake/lib/rake/backtrace.rb#19 def collapse(backtrace); end end end @@ -503,7 +503,7 @@ Rake::Backtrace::SUPPRESSED_PATHS = T.let(T.unsafe(nil), Array) # source://rake/lib/rake/backtrace.rb#12 Rake::Backtrace::SUPPRESSED_PATHS_RE = T.let(T.unsafe(nil), String) -# source://rake/lib/rake/backtrace.rb#16 +# source://rake/lib/rake/backtrace.rb#17 Rake::Backtrace::SUPPRESS_PATTERN = T.let(T.unsafe(nil), Regexp) # source://rake/lib/rake/backtrace.rb#4 @@ -598,7 +598,7 @@ module Rake::DSL # # ... run tests # end # - # source://rake/lib/rake/dsl_definition.rb#165 + # source://rake/lib/rake/dsl_definition.rb#166 def desc(description); end # Declare a set of files tasks to create the given directories on @@ -646,7 +646,7 @@ module Rake::DSL # Example: # import ".depend", "my_rules" # - # source://rake/lib/rake/dsl_definition.rb#183 + # source://rake/lib/rake/dsl_definition.rb#184 def import(*fns); end # source://rake/lib/rake/file_utils_ext.rb#34 @@ -690,7 +690,7 @@ module Rake::DSL # Example: # multitask deploy: %w[deploy_gem deploy_rdoc] # - # source://rake/lib/rake/dsl_definition.rb#112 + # source://rake/lib/rake/dsl_definition.rb#113 def multitask(*args, &block); end # source://rake/lib/rake/file_utils_ext.rb#34 @@ -715,7 +715,7 @@ module Rake::DSL # # ... # end # - # source://rake/lib/rake/dsl_definition.rb#135 + # source://rake/lib/rake/dsl_definition.rb#136 def namespace(name = T.unsafe(nil), &block); end # source://rake/lib/rake/file_utils_ext.rb#77 @@ -755,10 +755,10 @@ module Rake::DSL # # Example: # rule '.o' => '.c' do |t| - # sh 'cc', '-o', t.name, t.source + # sh 'cc', '-c', '-o', t.name, t.source # end # - # source://rake/lib/rake/dsl_definition.rb#151 + # source://rake/lib/rake/dsl_definition.rb#152 def rule(*args, &block); end # source://rake/lib/rake/file_utils.rb#110 @@ -3091,7 +3091,7 @@ end # source://rake/lib/rake/win32.rb#11 class Rake::Win32::Win32HomeError < ::RuntimeError; end -# source://rake/lib/rake.rb#71 +# source://rake/lib/rake.rb#70 RakeFileUtils = Rake::FileUtilsExt # source://rake/lib/rake/ext/string.rb#4 diff --git a/sorbet/rbi/gems/rbi@0.1.10.rbi b/sorbet/rbi/gems/rbi@0.1.13.rbi similarity index 99% rename from sorbet/rbi/gems/rbi@0.1.10.rbi rename to sorbet/rbi/gems/rbi@0.1.13.rbi index 9c1639d2..dbb666ff 100644 --- a/sorbet/rbi/gems/rbi@0.1.10.rbi +++ b/sorbet/rbi/gems/rbi@0.1.13.rbi @@ -1944,7 +1944,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11346lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11391lib/types/struct.rb#13 def inherited(s); end end end @@ -2161,7 +2161,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11346lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11391lib/types/struct.rb#13 def inherited(s); end end end diff --git a/sorbet/rbi/gems/reline@0.5.0.rbi b/sorbet/rbi/gems/reline@0.5.7.rbi similarity index 100% rename from sorbet/rbi/gems/reline@0.5.0.rbi rename to sorbet/rbi/gems/reline@0.5.7.rbi diff --git a/sorbet/rbi/gems/rexml@3.2.6.rbi b/sorbet/rbi/gems/rexml@3.2.8.rbi similarity index 96% rename from sorbet/rbi/gems/rexml@3.2.6.rbi rename to sorbet/rbi/gems/rexml@3.2.8.rbi index 44cae910..3e8ec32d 100644 --- a/sorbet/rbi/gems/rexml@3.2.6.rbi +++ b/sorbet/rbi/gems/rexml@3.2.8.rbi @@ -1,4 +1,4 @@ -# typed: true +# typed: false # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rexml` gem. @@ -3453,47 +3453,48 @@ end # A Source that wraps an IO. See the Source class for method # documentation # -# source://rexml/lib/rexml/source.rb#159 +# source://rexml/lib/rexml/source.rb#140 class REXML::IOSource < ::REXML::Source # block_size has been deprecated # # @return [IOSource] a new instance of IOSource # - # source://rexml/lib/rexml/source.rb#163 + # source://rexml/lib/rexml/source.rb#144 def initialize(arg, block_size = T.unsafe(nil), encoding = T.unsafe(nil)); end - # source://rexml/lib/rexml/source.rb#215 - def consume(pattern); end - # @return the current line in the source # - # source://rexml/lib/rexml/source.rb#244 + # source://rexml/lib/rexml/source.rb#217 def current_line; end # @return [Boolean] # - # source://rexml/lib/rexml/source.rb#235 + # source://rexml/lib/rexml/source.rb#212 def empty?; end - # source://rexml/lib/rexml/source.rb#219 - def match(pattern, cons = T.unsafe(nil)); end + # source://rexml/lib/rexml/source.rb#189 + def ensure_buffer; end - # source://rexml/lib/rexml/source.rb#239 - def position; end + # Note: When specifying a string for 'pattern', it must not include '>' except in the following formats: + # - ">" + # - "XXX>" (X is any string excluding '>') + # + # source://rexml/lib/rexml/source.rb#196 + def match(pattern, cons = T.unsafe(nil)); end - # source://rexml/lib/rexml/source.rb#207 - def read; end + # source://rexml/lib/rexml/source.rb#165 + def read(term = T.unsafe(nil)); end - # source://rexml/lib/rexml/source.rb#184 - def scan(pattern, cons = T.unsafe(nil)); end + # source://rexml/lib/rexml/source.rb#175 + def read_until(term); end private - # source://rexml/lib/rexml/source.rb#286 + # source://rexml/lib/rexml/source.rb#259 def encoding_updated; end - # source://rexml/lib/rexml/source.rb#266 - def readline; end + # source://rexml/lib/rexml/source.rb#239 + def readline(term = T.unsafe(nil)); end end # Represents an XML Instruction; IE, @@ -3922,7 +3923,7 @@ class REXML::ParseException < ::RuntimeError # source://rexml/lib/rexml/parseexception.rb#6 def initialize(message, source = T.unsafe(nil), parser = T.unsafe(nil), exception = T.unsafe(nil)); end - # source://rexml/lib/rexml/parseexception.rb#48 + # source://rexml/lib/rexml/parseexception.rb#49 def context; end # Returns the value of attribute continued_exception. @@ -3937,7 +3938,7 @@ class REXML::ParseException < ::RuntimeError # source://rexml/lib/rexml/parseexception.rb#4 def continued_exception=(_arg0); end - # source://rexml/lib/rexml/parseexception.rb#43 + # source://rexml/lib/rexml/parseexception.rb#44 def line; end # Returns the value of attribute parser. @@ -3952,7 +3953,7 @@ class REXML::ParseException < ::RuntimeError # source://rexml/lib/rexml/parseexception.rb#4 def parser=(_arg0); end - # source://rexml/lib/rexml/parseexception.rb#38 + # source://rexml/lib/rexml/parseexception.rb#39 def position; end # Returns the value of attribute source. @@ -3993,34 +3994,36 @@ end # # source://rexml/lib/rexml/parsers/baseparser.rb#29 class REXML::Parsers::BaseParser + include ::REXML::Parsers::BaseParser::Private + # @return [BaseParser] a new instance of BaseParser # - # source://rexml/lib/rexml/parsers/baseparser.rb#115 + # source://rexml/lib/rexml/parsers/baseparser.rb#128 def initialize(source); end - # source://rexml/lib/rexml/parsers/baseparser.rb#120 + # source://rexml/lib/rexml/parsers/baseparser.rb#133 def add_listener(listener); end # Returns true if there are no more events # # @return [Boolean] # - # source://rexml/lib/rexml/parsers/baseparser.rb#146 + # source://rexml/lib/rexml/parsers/baseparser.rb#159 def empty?; end - # source://rexml/lib/rexml/parsers/baseparser.rb#438 + # source://rexml/lib/rexml/parsers/baseparser.rb#446 def entity(reference, entities); end # Returns true if there are more events. Synonymous with !empty? # # @return [Boolean] # - # source://rexml/lib/rexml/parsers/baseparser.rb#151 + # source://rexml/lib/rexml/parsers/baseparser.rb#164 def has_next?; end # Escapes all possible entities # - # source://rexml/lib/rexml/parsers/baseparser.rb#449 + # source://rexml/lib/rexml/parsers/baseparser.rb#457 def normalize(input, entities = T.unsafe(nil), entity_filter = T.unsafe(nil)); end # Peek at the +depth+ event in the stack. The first element on the stack @@ -4030,59 +4033,59 @@ class REXML::Parsers::BaseParser # event, so you can effectively pre-parse the entire document (pull the # entire thing into memory) using this method. # - # source://rexml/lib/rexml/parsers/baseparser.rb#167 + # source://rexml/lib/rexml/parsers/baseparser.rb#180 def peek(depth = T.unsafe(nil)); end - # source://rexml/lib/rexml/parsers/baseparser.rb#136 + # source://rexml/lib/rexml/parsers/baseparser.rb#149 def position; end # Returns the next event. This is a +PullEvent+ object. # - # source://rexml/lib/rexml/parsers/baseparser.rb#182 + # source://rexml/lib/rexml/parsers/baseparser.rb#195 def pull; end # Returns the value of attribute source. # - # source://rexml/lib/rexml/parsers/baseparser.rb#124 + # source://rexml/lib/rexml/parsers/baseparser.rb#137 def source; end - # source://rexml/lib/rexml/parsers/baseparser.rb#126 + # source://rexml/lib/rexml/parsers/baseparser.rb#139 def stream=(source); end # Unescapes all possible entities # - # source://rexml/lib/rexml/parsers/baseparser.rb#465 + # source://rexml/lib/rexml/parsers/baseparser.rb#473 def unnormalize(string, entities = T.unsafe(nil), filter = T.unsafe(nil)); end # Push an event back on the head of the stream. This method # has (theoretically) infinite depth. # - # source://rexml/lib/rexml/parsers/baseparser.rb#157 + # source://rexml/lib/rexml/parsers/baseparser.rb#170 def unshift(token); end private # @return [Boolean] # - # source://rexml/lib/rexml/parsers/baseparser.rb#495 + # source://rexml/lib/rexml/parsers/baseparser.rb#502 def need_source_encoding_update?(xml_declaration_encoding); end - # source://rexml/lib/rexml/parsers/baseparser.rb#589 + # source://rexml/lib/rexml/parsers/baseparser.rb#613 def parse_attributes(prefixes, curr_ns); end - # source://rexml/lib/rexml/parsers/baseparser.rb#514 + # source://rexml/lib/rexml/parsers/baseparser.rb#521 def parse_id(base_error_message, accept_external_id:, accept_public_id:); end - # source://rexml/lib/rexml/parsers/baseparser.rb#542 + # source://rexml/lib/rexml/parsers/baseparser.rb#549 def parse_id_invalid_details(accept_external_id:, accept_public_id:); end - # source://rexml/lib/rexml/parsers/baseparser.rb#501 + # source://rexml/lib/rexml/parsers/baseparser.rb#508 def parse_name(base_error_message); end - # source://rexml/lib/rexml/parsers/baseparser.rb#580 - def process_instruction; end + # source://rexml/lib/rexml/parsers/baseparser.rb#587 + def process_instruction(start_position); end - # source://rexml/lib/rexml/parsers/baseparser.rb#190 + # source://rexml/lib/rexml/parsers/baseparser.rb#203 def pull_event; end end @@ -4095,6 +4098,33 @@ REXML::Parsers::BaseParser::EXTERNAL_ID_SYSTEM = T.let(T.unsafe(nil), Regexp) # source://rexml/lib/rexml/parsers/baseparser.rb#104 REXML::Parsers::BaseParser::PUBLIC_ID = T.let(T.unsafe(nil), Regexp) +# source://rexml/lib/rexml/parsers/baseparser.rb#115 +module REXML::Parsers::BaseParser::Private; end + +# source://rexml/lib/rexml/parsers/baseparser.rb#119 +REXML::Parsers::BaseParser::Private::ATTLISTDECL_END = T.let(T.unsafe(nil), Regexp) + +# source://rexml/lib/rexml/parsers/baseparser.rb#118 +REXML::Parsers::BaseParser::Private::CLOSE_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml/lib/rexml/parsers/baseparser.rb#123 +REXML::Parsers::BaseParser::Private::ENTITYDECL_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml/lib/rexml/parsers/baseparser.rb#121 +REXML::Parsers::BaseParser::Private::GEDECL_PATTERN = T.let(T.unsafe(nil), String) + +# source://rexml/lib/rexml/parsers/baseparser.rb#116 +REXML::Parsers::BaseParser::Private::INSTRUCTION_END = T.let(T.unsafe(nil), Regexp) + +# source://rexml/lib/rexml/parsers/baseparser.rb#120 +REXML::Parsers::BaseParser::Private::NAME_PATTERN = T.let(T.unsafe(nil), Regexp) + +# source://rexml/lib/rexml/parsers/baseparser.rb#122 +REXML::Parsers::BaseParser::Private::PEDECL_PATTERN = T.let(T.unsafe(nil), String) + +# source://rexml/lib/rexml/parsers/baseparser.rb#117 +REXML::Parsers::BaseParser::Private::TAG_PATTERN = T.let(T.unsafe(nil), Regexp) + # source://rexml/lib/rexml/parsers/baseparser.rb#38 REXML::Parsers::BaseParser::QNAME = T.let(T.unsafe(nil), Regexp) @@ -4304,85 +4334,67 @@ class REXML::Source # @param encoding if non-null, sets the encoding of the source to this # @return [Source] a new instance of Source # - # source://rexml/lib/rexml/source.rb#43 + # source://rexml/lib/rexml/source.rb#41 def initialize(arg, encoding = T.unsafe(nil)); end # The current buffer (what we're going to read next) # - # source://rexml/lib/rexml/source.rb#34 + # source://rexml/lib/rexml/source.rb#53 def buffer; end - # source://rexml/lib/rexml/source.rb#87 - def consume(pattern); end + # source://rexml/lib/rexml/source.rb#57 + def buffer_encoding=(encoding); end # @return the current line in the source # - # source://rexml/lib/rexml/source.rb#117 + # source://rexml/lib/rexml/source.rb#100 def current_line; end # @return [Boolean] true if the Source is exhausted # - # source://rexml/lib/rexml/source.rb#108 + # source://rexml/lib/rexml/source.rb#95 def empty?; end # Returns the value of attribute encoding. # - # source://rexml/lib/rexml/source.rb#37 + # source://rexml/lib/rexml/source.rb#35 def encoding; end # Inherited from Encoding # Overridden to support optimized en/decoding # - # source://rexml/lib/rexml/source.rb#56 + # source://rexml/lib/rexml/source.rb#63 def encoding=(enc); end + # source://rexml/lib/rexml/source.rb#75 + def ensure_buffer; end + # The line number of the last consumed text # - # source://rexml/lib/rexml/source.rb#36 + # source://rexml/lib/rexml/source.rb#34 def line; end - # source://rexml/lib/rexml/source.rb#101 + # source://rexml/lib/rexml/source.rb#78 def match(pattern, cons = T.unsafe(nil)); end - # source://rexml/lib/rexml/source.rb#91 - def match_to(char, pattern); end + # source://rexml/lib/rexml/source.rb#86 + def position; end - # source://rexml/lib/rexml/source.rb#95 - def match_to_consume(char, pattern); end + # source://rexml/lib/rexml/source.rb#90 + def position=(pos); end - # source://rexml/lib/rexml/source.rb#112 - def position; end + # source://rexml/lib/rexml/source.rb#68 + def read(term = T.unsafe(nil)); end - # source://rexml/lib/rexml/source.rb#84 - def read; end - - # Scans the source for a given pattern. Note, that this is not your - # usual scan() method. For one thing, the pattern argument has some - # requirements; for another, the source can be consumed. You can easily - # confuse this method. Originally, the patterns were easier - # to construct and this method more robust, because this method - # generated search regexps on the fly; however, this was - # computationally expensive and slowed down the entire REXML package - # considerably, since this is by far the most commonly called method. - # /^\s*(#{your pattern, with no groups})(.*)/. The first group - # will be returned; the second group is used if the consume flag is - # set. - # everything after it in the Source. - # pattern is not found. - # - # @param pattern must be a Regexp, and must be in the form of - # @param consume if true, the pattern returned will be consumed, leaving - # @return the pattern, if found, or nil if the Source is empty or the - # - # source://rexml/lib/rexml/source.rb#77 - def scan(pattern, cons = T.unsafe(nil)); end + # source://rexml/lib/rexml/source.rb#71 + def read_until(term); end private - # source://rexml/lib/rexml/source.rb#125 + # source://rexml/lib/rexml/source.rb#109 def detect_encoding; end - # source://rexml/lib/rexml/source.rb#146 + # source://rexml/lib/rexml/source.rb#127 def encoding_updated; end end @@ -4713,24 +4725,24 @@ end # @private # -# source://rexml/lib/rexml/xpath_parser.rb#959 +# source://rexml/lib/rexml/xpath_parser.rb#963 class REXML::XPathNode # @return [XPathNode] a new instance of XPathNode # - # source://rexml/lib/rexml/xpath_parser.rb#961 + # source://rexml/lib/rexml/xpath_parser.rb#965 def initialize(node, context = T.unsafe(nil)); end # Returns the value of attribute context. # - # source://rexml/lib/rexml/xpath_parser.rb#960 + # source://rexml/lib/rexml/xpath_parser.rb#964 def context; end - # source://rexml/lib/rexml/xpath_parser.rb#970 + # source://rexml/lib/rexml/xpath_parser.rb#974 def position; end # Returns the value of attribute raw_node. # - # source://rexml/lib/rexml/xpath_parser.rb#960 + # source://rexml/lib/rexml/xpath_parser.rb#964 def raw_node; end end @@ -4779,25 +4791,25 @@ class REXML::XPathParser private - # source://rexml/lib/rexml/xpath_parser.rb#775 + # source://rexml/lib/rexml/xpath_parser.rb#779 def child(nodeset); end - # source://rexml/lib/rexml/xpath_parser.rb#916 + # source://rexml/lib/rexml/xpath_parser.rb#920 def compare(a, operator, b); end - # source://rexml/lib/rexml/xpath_parser.rb#678 + # source://rexml/lib/rexml/xpath_parser.rb#682 def descendant(nodeset, include_self); end - # source://rexml/lib/rexml/xpath_parser.rb#689 + # source://rexml/lib/rexml/xpath_parser.rb#693 def descendant_recursive(raw_node, new_nodeset, new_nodes, include_self); end - # source://rexml/lib/rexml/xpath_parser.rb#938 + # source://rexml/lib/rexml/xpath_parser.rb#942 def each_unnode(nodeset); end - # source://rexml/lib/rexml/xpath_parser.rb#637 + # source://rexml/lib/rexml/xpath_parser.rb#641 def enter(tag, *args); end - # source://rexml/lib/rexml/xpath_parser.rb#815 + # source://rexml/lib/rexml/xpath_parser.rb#819 def equality_relational_compare(set1, op, set2); end # source://rexml/lib/rexml/xpath_parser.rb#591 @@ -4812,10 +4824,10 @@ class REXML::XPathParser # source://rexml/lib/rexml/xpath_parser.rb#582 def filter_nodeset(nodeset); end - # source://rexml/lib/rexml/xpath_parser.rb#745 + # source://rexml/lib/rexml/xpath_parser.rb#749 def following(node); end - # source://rexml/lib/rexml/xpath_parser.rb#756 + # source://rexml/lib/rexml/xpath_parser.rb#760 def following_node_of(node); end # Returns a String namespace for a node, given a prefix @@ -4827,19 +4839,19 @@ class REXML::XPathParser # source://rexml/lib/rexml/xpath_parser.rb#163 def get_namespace(node, prefix); end - # source://rexml/lib/rexml/xpath_parser.rb#642 + # source://rexml/lib/rexml/xpath_parser.rb#646 def leave(tag, *args); end - # source://rexml/lib/rexml/xpath_parser.rb#763 + # source://rexml/lib/rexml/xpath_parser.rb#767 def next_sibling_node(node); end # source://rexml/lib/rexml/xpath_parser.rb#477 def node_test(path_stack, nodesets, any_type: T.unsafe(nil)); end - # source://rexml/lib/rexml/xpath_parser.rb#802 + # source://rexml/lib/rexml/xpath_parser.rb#806 def norm(b); end - # source://rexml/lib/rexml/xpath_parser.rb#890 + # source://rexml/lib/rexml/xpath_parser.rb#894 def normalize_compare_values(a, operator, b); end # Builds a nodeset of all of the preceding nodes of the supplied node, @@ -4847,10 +4859,10 @@ class REXML::XPathParser # preceding:: includes every element in the document that precedes this node, # except for ancestors # - # source://rexml/lib/rexml/xpath_parser.rb#708 + # source://rexml/lib/rexml/xpath_parser.rb#712 def preceding(node); end - # source://rexml/lib/rexml/xpath_parser.rb#730 + # source://rexml/lib/rexml/xpath_parser.rb#734 def preceding_node_of(node); end # Reorders an array of nodes so that they are in document order @@ -4862,7 +4874,7 @@ class REXML::XPathParser # I wouldn't have to do this. Maybe add a document IDX for each node? # Problems with mutable documents. Or, rewrite everything. # - # source://rexml/lib/rexml/xpath_parser.rb#655 + # source://rexml/lib/rexml/xpath_parser.rb#659 def sort(array_of_nodes, order); end # source://rexml/lib/rexml/xpath_parser.rb#441 @@ -4873,13 +4885,13 @@ class REXML::XPathParser # source://rexml/lib/rexml/xpath_parser.rb#154 def strict?; end - # source://rexml/lib/rexml/xpath_parser.rb#630 + # source://rexml/lib/rexml/xpath_parser.rb#634 def trace(*args); end - # source://rexml/lib/rexml/xpath_parser.rb#950 + # source://rexml/lib/rexml/xpath_parser.rb#954 def unnode(nodeset); end - # source://rexml/lib/rexml/xpath_parser.rb#877 + # source://rexml/lib/rexml/xpath_parser.rb#881 def value_type(value); end end diff --git a/sorbet/rbi/gems/rubocop-ast@1.31.2.rbi b/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi similarity index 99% rename from sorbet/rbi/gems/rubocop-ast@1.31.2.rbi rename to sorbet/rbi/gems/rubocop-ast@1.31.3.rbi index cb994c44..a15c53c6 100644 --- a/sorbet/rbi/gems/rubocop-ast@1.31.2.rbi +++ b/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi @@ -5185,9 +5185,6 @@ RuboCop::AST::NodePattern::Sets::SET_CLONE_DUP_FREEZE = T.let(T.unsafe(nil), Set # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_COUNT_LENGTH_SIZE = T.let(T.unsafe(nil), Set) -# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set) - # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set) @@ -5197,9 +5194,6 @@ RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_INDEX_WITH_INDEX = T.let(T.unsafe # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_EACH_WITH_OBJECT_WITH_OBJECT = T.let(T.unsafe(nil), Set) -# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 -RuboCop::AST::NodePattern::Sets::SET_ENV = T.let(T.unsafe(nil), Set) - # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set) @@ -5242,6 +5236,9 @@ RuboCop::AST::NodePattern::Sets::SET_IF_UNLESS = T.let(T.unsafe(nil), Set) # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INCLUDE_EXTEND_PREPEND = T.let(T.unsafe(nil), Set) +# source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 +RuboCop::AST::NodePattern::Sets::SET_INCLUDE_PREPEND = T.let(T.unsafe(nil), Set) + # source://rubocop-ast/lib/rubocop/ast/node_pattern/sets.rb#10 RuboCop::AST::NodePattern::Sets::SET_INSTANCE_EVAL_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) diff --git a/sorbet/rbi/gems/rubocop-sorbet@0.8.1.rbi b/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi similarity index 94% rename from sorbet/rbi/gems/rubocop-sorbet@0.8.1.rbi rename to sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi index 439d56c3..0a2593ed 100644 --- a/sorbet/rbi/gems/rubocop-sorbet@0.8.1.rbi +++ b/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi @@ -523,6 +523,42 @@ class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil def minimum_strictness; end end +# Disallow including the `Comparable` module in `T::Enum`. +# +# @example +# +# # bad +# class Priority < T::Enum +# include Comparable +# +# enums do +# High = new(3) +# Medium = new(2) +# Low = new(1) +# end +# +# def <=>(other) +# serialize <=> other.serialize +# end +# end +# +# source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#24 +class RuboCop::Cop::Sorbet::ForbidComparableTEnum < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Sorbet::TEnum + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#32 + def mix_in_comparable?(param0 = T.unsafe(nil)); end + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#36 + def on_send(node); end +end + +# source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#27 +RuboCop::Cop::Sorbet::ForbidComparableTEnum::MSG = T.let(T.unsafe(nil), String) + +# source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/forbid_comparable_t_enum.rb#29 +RuboCop::Cop::Sorbet::ForbidComparableTEnum::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + # Ensures RBI shims do not include a call to extend T::Sig # or to extend T::Helpers # @@ -1059,6 +1095,42 @@ class RuboCop::Cop::Sorbet::KeywordArgumentOrdering < ::RuboCop::Cop::Cop def check_order_for_kwoptargs(parameters); end end +# Disallow creating a `T::Enum` with less than two values. +# +# @example +# +# # bad +# class ErrorMessages < T::Enum +# enums do +# ServerError = new("There was a server error.") +# end +# end +# +# # good +# class ErrorMessages < T::Enum +# enums do +# ServerError = new("There was a server error.") +# NotFound = new("The resource was not found.") +# end +# end +# +# source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#24 +class RuboCop::Cop::Sorbet::MultipleTEnumValues < ::RuboCop::Cop::Base + include ::RuboCop::Cop::Sorbet::TEnum + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#30 + def enums_block?(param0 = T.unsafe(nil)); end + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#40 + def on_block(node); end + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#34 + def on_class(node); end +end + +# source://rubocop-sorbet/lib/rubocop/cop/sorbet/t_enum/multiple_t_enum_values.rb#27 +RuboCop::Cop::Sorbet::MultipleTEnumValues::MSG = T.let(T.unsafe(nil), String) + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#8 module RuboCop::Cop::Sorbet::MutableConstantSorbetAwareBehaviour # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18 @@ -1123,54 +1195,6 @@ end # source://rubocop-sorbet/lib/rubocop/cop/sorbet/obsolete_strict_memoization.rb#47 RuboCop::Cop::Sorbet::ObsoleteStrictMemoization::MSG = T.let(T.unsafe(nil), String) -# Ensures one ancestor per requires_ancestor line -# rather than chaining them as a comma-separated list. -# -# @example -# -# # bad -# module SomeModule -# requires_ancestor Kernel, Minitest::Assertions -# end -# -# # good -# module SomeModule -# requires_ancestor Kernel -# requires_ancestor Minitest::Assertions -# end -# -# source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#24 -class RuboCop::Cop::Sorbet::OneAncestorPerLine < ::RuboCop::Cop::Cop - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#38 - def abstract?(param0); end - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#56 - def autocorrect(node); end - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#33 - def more_than_one_ancestor(param0 = T.unsafe(nil)); end - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#49 - def on_class(node); end - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#42 - def on_module(node); end - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#28 - def requires_ancestors(param0); end - - private - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#72 - def new_ra_line(indent_count); end - - # source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#66 - def process_node(node); end -end - -# source://rubocop-sorbet/lib/rubocop/cop/sorbet/one_ancestor_per_line.rb#25 -RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String) - # Forbids the use of redundant `extend T::Sig`. Only for use in # applications that monkey patch `Module.include(T::Sig)` globally, # which would make it redundant. @@ -1323,6 +1347,32 @@ class RuboCop::Cop::Sorbet::StrongSigil < ::RuboCop::Cop::Sorbet::HasSigil def minimum_strictness; end end +# Mixing for writing cops that deal with `T::Enum`s +# +# source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/t_enum.rb#7 +module RuboCop::Cop::Sorbet::TEnum + extend ::RuboCop::AST::NodePattern::Macros + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/t_enum.rb#9 + def initialize(*_arg0); end + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/t_enum.rb#23 + def after_class(node); end + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/t_enum.rb#19 + def on_class(node); end + + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/t_enum.rb#15 + def t_enum?(param0 = T.unsafe(nil)); end + + private + + # @return [Boolean] + # + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/t_enum.rb#29 + def in_t_enum_class?; end +end + # source://rubocop-sorbet/lib/rubocop/cop/sorbet/mixin/target_sorbet_version.rb#6 module RuboCop::Cop::Sorbet::TargetSorbetVersion mixes_in_class_methods ::RuboCop::Cop::Sorbet::TargetSorbetVersion::ClassMethods diff --git a/sorbet/rbi/gems/rubocop@1.63.1.rbi b/sorbet/rbi/gems/rubocop@1.63.4.rbi similarity index 99% rename from sorbet/rbi/gems/rubocop@1.63.1.rbi rename to sorbet/rbi/gems/rubocop@1.63.4.rbi index 9ca12cdf..14200c5c 100644 --- a/sorbet/rbi/gems/rubocop@1.63.1.rbi +++ b/sorbet/rbi/gems/rubocop@1.63.4.rbi @@ -744,6 +744,11 @@ class RuboCop::CachedData # source://rubocop/lib/rubocop/cached_data.rb#47 def deserialize_offenses(offenses); end + # @api private + # + # source://rubocop/lib/rubocop/cached_data.rb#56 + def location_from_source_buffer(offense, source_buffer); end + # @api private # # source://rubocop/lib/rubocop/cached_data.rb#40 @@ -2938,7 +2943,7 @@ class RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#267 + # source://rubocop/lib/rubocop/cop/base.rb#269 def active_support_extensions_enabled?; end # Adds an offense that has no particular location. @@ -2952,25 +2957,25 @@ class RuboCop::Cop::Base # to provide the cop the opportunity to autocorrect the offense. # If message is not specified, the method `message` will be called. # - # source://rubocop/lib/rubocop/cop/base.rb#196 + # source://rubocop/lib/rubocop/cop/base.rb#198 def add_offense(node_or_range, message: T.unsafe(nil), severity: T.unsafe(nil), &block); end # @api private # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#338 + # source://rubocop/lib/rubocop/cop/base.rb#340 def always_autocorrect?; end # Called before any investigation # # @api private # - # source://rubocop/lib/rubocop/cop/base.rb#324 + # source://rubocop/lib/rubocop/cop/base.rb#326 def begin_investigation(processed_source, offset: T.unsafe(nil), original: T.unsafe(nil)); end # @api private # - # source://rubocop/lib/rubocop/cop/base.rb#309 + # source://rubocop/lib/rubocop/cop/base.rb#311 def callbacks_needed; end # Returns the value of attribute config. @@ -2978,29 +2983,29 @@ class RuboCop::Cop::Base # source://rubocop/lib/rubocop/cop/base.rb#43 def config; end - # source://rubocop/lib/rubocop/cop/base.rb#247 + # source://rubocop/lib/rubocop/cop/base.rb#249 def config_to_allow_offenses; end - # source://rubocop/lib/rubocop/cop/base.rb#251 + # source://rubocop/lib/rubocop/cop/base.rb#253 def config_to_allow_offenses=(hash); end # @api private # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#344 + # source://rubocop/lib/rubocop/cop/base.rb#346 def contextual_autocorrect?; end # Configuration Helpers # - # source://rubocop/lib/rubocop/cop/base.rb#241 + # source://rubocop/lib/rubocop/cop/base.rb#243 def cop_config; end - # source://rubocop/lib/rubocop/cop/base.rb#233 + # source://rubocop/lib/rubocop/cop/base.rb#235 def cop_name; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#280 + # source://rubocop/lib/rubocop/cop/base.rb#282 def excluded_file?(file); end # This method should be overridden when a cop's behavior depends @@ -3019,10 +3024,10 @@ class RuboCop::Cop::Base # ResultCache system when those external dependencies change, # ie when the ResultCache should be invalidated. # - # source://rubocop/lib/rubocop/cop/base.rb#229 + # source://rubocop/lib/rubocop/cop/base.rb#231 def external_dependency_checksum; end - # source://rubocop/lib/rubocop/cop/base.rb#348 + # source://rubocop/lib/rubocop/cop/base.rb#350 def inspect; end # Gets called if no message is specified when calling `add_offense` or @@ -3032,12 +3037,12 @@ class RuboCop::Cop::Base # source://rubocop/lib/rubocop/cop/base.rb#180 def message(_range = T.unsafe(nil)); end - # source://rubocop/lib/rubocop/cop/base.rb#233 + # source://rubocop/lib/rubocop/cop/base.rb#235 def name; end # @deprecated Make potential errors with previous API more obvious # - # source://rubocop/lib/rubocop/cop/base.rb#300 + # source://rubocop/lib/rubocop/cop/base.rb#302 def offenses; end # Called after all on_... have been called @@ -3060,10 +3065,10 @@ class RuboCop::Cop::Base # There should be very limited reasons for a Cop to do it's own parsing # - # source://rubocop/lib/rubocop/cop/base.rb#285 + # source://rubocop/lib/rubocop/cop/base.rb#287 def parse(source, path = T.unsafe(nil)); end - # source://rubocop/lib/rubocop/cop/base.rb#259 + # source://rubocop/lib/rubocop/cop/base.rb#261 def parser_engine; end # Returns the value of attribute processed_source. @@ -3075,104 +3080,104 @@ class RuboCop::Cop::Base # # @api private # - # source://rubocop/lib/rubocop/cop/base.rb#291 + # source://rubocop/lib/rubocop/cop/base.rb#293 def ready; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#271 + # source://rubocop/lib/rubocop/cop/base.rb#273 def relevant_file?(file); end - # source://rubocop/lib/rubocop/cop/base.rb#263 + # source://rubocop/lib/rubocop/cop/base.rb#265 def target_rails_version; end - # source://rubocop/lib/rubocop/cop/base.rb#255 + # source://rubocop/lib/rubocop/cop/base.rb#257 def target_ruby_version; end private - # source://rubocop/lib/rubocop/cop/base.rb#476 + # source://rubocop/lib/rubocop/cop/base.rb#478 def annotate(message); end - # source://rubocop/lib/rubocop/cop/base.rb#360 + # source://rubocop/lib/rubocop/cop/base.rb#362 def apply_correction(corrector); end # @return [Symbol] offense status # - # source://rubocop/lib/rubocop/cop/base.rb#440 + # source://rubocop/lib/rubocop/cop/base.rb#442 def attempt_correction(range, corrector); end # Reserved for Cop::Cop # - # source://rubocop/lib/rubocop/cop/base.rb#356 + # source://rubocop/lib/rubocop/cop/base.rb#358 def callback_argument(range); end # Called to complete an investigation # - # source://rubocop/lib/rubocop/cop/base.rb#389 + # source://rubocop/lib/rubocop/cop/base.rb#391 def complete_investigation; end # @return [Symbol, Corrector] offense status # - # source://rubocop/lib/rubocop/cop/base.rb#414 + # source://rubocop/lib/rubocop/cop/base.rb#416 def correct(range); end - # source://rubocop/lib/rubocop/cop/base.rb#374 + # source://rubocop/lib/rubocop/cop/base.rb#376 def current_corrector; end # Reserved for Commissioner: # - # source://rubocop/lib/rubocop/cop/base.rb#366 + # source://rubocop/lib/rubocop/cop/base.rb#368 def current_offense_locations; end - # source://rubocop/lib/rubocop/cop/base.rb#378 + # source://rubocop/lib/rubocop/cop/base.rb#380 def current_offenses; end - # source://rubocop/lib/rubocop/cop/base.rb#370 + # source://rubocop/lib/rubocop/cop/base.rb#372 def currently_disabled_lines; end - # source://rubocop/lib/rubocop/cop/base.rb#504 + # source://rubocop/lib/rubocop/cop/base.rb#506 def custom_severity; end - # source://rubocop/lib/rubocop/cop/base.rb#500 + # source://rubocop/lib/rubocop/cop/base.rb#502 def default_severity; end - # source://rubocop/lib/rubocop/cop/base.rb#454 + # source://rubocop/lib/rubocop/cop/base.rb#456 def disable_uncorrectable(range); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#490 + # source://rubocop/lib/rubocop/cop/base.rb#492 def enabled_line?(line_number); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#482 + # source://rubocop/lib/rubocop/cop/base.rb#484 def file_name_matches_any?(file, parameter, default_result); end - # source://rubocop/lib/rubocop/cop/base.rb#472 + # source://rubocop/lib/rubocop/cop/base.rb#474 def find_message(range, message); end - # source://rubocop/lib/rubocop/cop/base.rb#496 + # source://rubocop/lib/rubocop/cop/base.rb#498 def find_severity(_range, severity); end - # source://rubocop/lib/rubocop/cop/base.rb#517 + # source://rubocop/lib/rubocop/cop/base.rb#519 def range_for_original(range); end - # source://rubocop/lib/rubocop/cop/base.rb#461 + # source://rubocop/lib/rubocop/cop/base.rb#463 def range_from_node_or_range(node_or_range); end - # source://rubocop/lib/rubocop/cop/base.rb#409 + # source://rubocop/lib/rubocop/cop/base.rb#411 def reset_investigation; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#525 + # source://rubocop/lib/rubocop/cop/base.rb#527 def target_satisfies_all_gem_version_requirements?; end # @return [Symbol] offense status # - # source://rubocop/lib/rubocop/cop/base.rb#429 + # source://rubocop/lib/rubocop/cop/base.rb#431 def use_corrector(range, corrector); end class << self @@ -3192,7 +3197,7 @@ class RuboCop::Cop::Base # @api private # - # source://rubocop/lib/rubocop/cop/base.rb#314 + # source://rubocop/lib/rubocop/cop/base.rb#316 def callbacks_needed; end # source://rubocop/lib/rubocop/cop/base.rb#94 @@ -3282,15 +3287,15 @@ class RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/base.rb#400 + # source://rubocop/lib/rubocop/cop/base.rb#402 def builtin?; end - # source://rubocop/lib/rubocop/cop/base.rb#382 + # source://rubocop/lib/rubocop/cop/base.rb#384 def restrict_on_send; end end end -# source://rubocop/lib/rubocop/cop/base.rb#386 +# source://rubocop/lib/rubocop/cop/base.rb#388 RuboCop::Cop::Base::EMPTY_OFFENSES = T.let(T.unsafe(nil), Array) # Reports of an investigation. @@ -5087,7 +5092,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.0.5lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.1.0lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. @@ -20516,7 +20521,7 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base include ::RuboCop::Cop::RangeHelp extend ::RuboCop::Cop::AutoCorrector - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#56 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#58 def each_unsafe_regexp_range(node); end # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#37 @@ -20530,31 +20535,31 @@ class RuboCop::Cop::Lint::MixedCaseRange < ::RuboCop::Cop::Base private - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#72 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#74 def build_source_range(range_start, range_end); end - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#76 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#78 def range_for(char); end - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#82 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#84 def range_pairs(expr); end - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#102 - def rewrite_regexp_range(source); end + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#104 + def regexp_range(source); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#92 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#94 def skip_expression?(expr); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#96 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#98 def skip_range?(range_start, range_end); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#86 + # source://rubocop/lib/rubocop/cop/lint/mixed_case_range.rb#88 def unsafe_range?(range_start, range_end); end end @@ -24564,7 +24569,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#194 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#200 def conditional_continue_keyword?(break_statement); end # @return [Boolean] @@ -24574,7 +24579,7 @@ class RuboCop::Cop::Lint::UnreachableLoop < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#184 + # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#190 def preceded_by_continue_statement?(break_statement); end # source://rubocop/lib/rubocop/cop/lint/unreachable_loop.rb#130 @@ -31185,7 +31190,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#185 def add_forward_all_offenses(node, send_classifications, forwardable_args); end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#350 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#351 def add_parens_if_missing(node, corrector); end # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#212 @@ -31193,10 +31198,10 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#342 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#343 def allow_only_rest_arguments?; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#334 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#335 def arguments_range(node, first_node); end # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#263 @@ -31207,7 +31212,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#494 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#495 def explicit_block_name?; end # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#168 @@ -31232,7 +31237,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#282 def redundant_named_arg(arg, config_name, keyword); end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#324 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#325 def register_forward_all_offense(def_or_send, send_or_arguments, rest_or_splat); end # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#298 @@ -31246,7 +31251,7 @@ class RuboCop::Cop::Style::ArgumentsForwarding < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#346 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#347 def use_anonymous_forwarding?; end class << self @@ -31275,115 +31280,115 @@ RuboCop::Cop::Style::ArgumentsForwarding::KWARGS_MSG = T.let(T.unsafe(nil), Stri # Classifies send nodes for possible rest/kwrest/all (including block) forwarding. # -# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#357 +# source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#358 class RuboCop::Cop::Style::ArgumentsForwarding::SendNodeClassifier extend ::RuboCop::AST::NodePattern::Macros # @return [SendNodeClassifier] a new instance of SendNodeClassifier # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#369 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#370 def initialize(def_node, send_node, referenced_lvars, forwardable_args, **config); end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#397 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#398 def classification; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#364 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#365 def extract_forwarded_kwrest_arg(param0 = T.unsafe(nil), param1); end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#391 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#392 def forwarded_block_arg; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#367 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#368 def forwarded_block_arg?(param0 = T.unsafe(nil), param1); end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#385 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#386 def forwarded_kwrest_arg; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#379 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#380 def forwarded_rest_arg; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#361 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#362 def forwarded_rest_arg?(param0 = T.unsafe(nil), param1); end private # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#465 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#466 def additional_kwargs?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#461 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#462 def additional_kwargs_or_forwarded_kwargs?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#475 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#476 def allow_offense_for_no_block?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#446 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#447 def any_arg_referenced?; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#430 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#431 def arguments; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#409 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#410 def can_forward_all?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#469 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#470 def forward_additional_kwargs?; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#426 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#427 def forwarded_rest_and_kwrest_args; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#488 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#489 def missing_rest_arg_or_kwrest_arg?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#479 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#480 def no_additional_args?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#454 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#455 def no_post_splat_args?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#422 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#423 def offensive_block_forwarding?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#442 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#443 def referenced_block_arg?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#438 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#439 def referenced_kwrest_arg?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#434 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#435 def referenced_rest_arg?; end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#418 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#419 def ruby_32_missing_rest_or_kwest?; end - # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#450 + # source://rubocop/lib/rubocop/cop/style/arguments_forwarding.rb#451 def target_ruby_version; end end @@ -39793,7 +39798,8 @@ RuboCop::Cop::Style::MapCompactWithConditionalBlock::MSG = T.let(T.unsafe(nil), # # [source,ruby] # ---- -# src.each { |e| @dest << e * 2 } # `src` method may mutate `@dest` +# ret = [] +# src.each { |e| ret << e * 2 } # `<<` method may mutate `ret` # # dest = [] # src.each { |e| dest << transform(e, dest) } # `transform` method may mutate `dest` @@ -41808,7 +41814,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base include ::RuboCop::Cop::ConfigurableEnforcedStyle extend ::RuboCop::Cop::AutoCorrector - # source://rubocop-sorbet/0.8.1lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18 + # source://rubocop-sorbet/0.8.3lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#18 def on_assignment(value); end # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#127 @@ -41826,7 +41832,7 @@ class RuboCop::Cop::Style::MutableConstant < ::RuboCop::Cop::Base # source://rubocop/lib/rubocop/cop/style/mutable_constant.rb#217 def splat_value(param0 = T.unsafe(nil)); end - # source://rubocop-sorbet/0.8.1lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12 + # source://rubocop-sorbet/0.8.3lib/rubocop/cop/sorbet/mutable_constant_sorbet_aware_behaviour.rb#12 def t_let(param0 = T.unsafe(nil)); end private @@ -45888,12 +45894,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#180 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#182 def argument_is_method?(node); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#144 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#146 def argument_newline?(node); end # @return [Boolean] @@ -45901,7 +45907,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#101 def ends_with_backslash_without_comment?(source_line); end - # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#160 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#162 def find_node_for_line(line); end # @return [Boolean] @@ -45921,7 +45927,7 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#187 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#189 def method_call_with_arguments?(node); end # A method call without parentheses such as the following cannot remove `\`: @@ -45946,12 +45952,12 @@ class RuboCop::Cop::Style::RedundantLineContinuation < ::RuboCop::Cop::Base # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#166 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#168 def same_line?(node, line); end # @return [Boolean] # - # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#191 + # source://rubocop/lib/rubocop/cop/style/redundant_line_continuation.rb#193 def start_with_arithmetic_operator?(source_line); end # @return [Boolean] @@ -48282,12 +48288,12 @@ RuboCop::Cop::Style::Semicolon::MSG = T.let(T.unsafe(nil), String) # # @example # # bad -# Foo.send(:bar) -# quuz.send(:fred) +# Foo.send(bar) +# quuz.send(fred) # # # good -# Foo.__send__(:bar) -# quuz.public_send(:fred) +# Foo.__send__(bar) +# quuz.public_send(fred) # # source://rubocop/lib/rubocop/cop/style/send.rb#16 class RuboCop::Cop::Style::Send < ::RuboCop::Cop::Base @@ -55679,7 +55685,7 @@ class RuboCop::LSP::Routes # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#170 + # source://rubocop/lib/rubocop/lsp/routes.rb#168 def handle_method_missing(request); end # source://rubocop/lib/rubocop/lsp/routes.rb#67 @@ -55687,39 +55693,39 @@ class RuboCop::LSP::Routes # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#159 + # source://rubocop/lib/rubocop/lsp/routes.rb#157 def handle_unsupported_method(request, method = T.unsafe(nil)); end private # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#208 + # source://rubocop/lib/rubocop/lsp/routes.rb#206 def diagnostic(file_uri, text); end # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#178 + # source://rubocop/lib/rubocop/lsp/routes.rb#176 def extract_initialization_options_from(request); end # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#188 + # source://rubocop/lib/rubocop/lsp/routes.rb#186 def format_file(file_uri, command: T.unsafe(nil)); end # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#222 + # source://rubocop/lib/rubocop/lsp/routes.rb#220 def remove_file_protocol_from(uri); end # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#226 + # source://rubocop/lib/rubocop/lsp/routes.rb#224 def to_diagnostic(offense); end # @api private # - # source://rubocop/lib/rubocop/lsp/routes.rb#238 + # source://rubocop/lib/rubocop/lsp/routes.rb#236 def to_range(location); end class << self @@ -55813,32 +55819,32 @@ class RuboCop::LSP::Server # @api private # - # source://rubocop/lib/rubocop/lsp/server.rb#59 + # source://rubocop/lib/rubocop/lsp/server.rb#61 def configure(options); end # @api private # - # source://rubocop/lib/rubocop/lsp/server.rb#51 + # source://rubocop/lib/rubocop/lsp/server.rb#53 def format(path, text, command:); end # @api private # - # source://rubocop/lib/rubocop/lsp/server.rb#55 + # source://rubocop/lib/rubocop/lsp/server.rb#57 def offenses(path, text); end # @api private # - # source://rubocop/lib/rubocop/lsp/server.rb#32 + # source://rubocop/lib/rubocop/lsp/server.rb#34 def start; end # @api private # - # source://rubocop/lib/rubocop/lsp/server.rb#65 + # source://rubocop/lib/rubocop/lsp/server.rb#67 def stop(&block); end # @api private # - # source://rubocop/lib/rubocop/lsp/server.rb#47 + # source://rubocop/lib/rubocop/lsp/server.rb#49 def write(response); end end @@ -55866,13 +55872,13 @@ RuboCop::LSP::Severity::SEVERITIES = T.let(T.unsafe(nil), Hash) # # @api private # -# source://rubocop/lib/rubocop/lockfile.rb#13 +# source://rubocop/lib/rubocop/lockfile.rb#15 class RuboCop::Lockfile # @api private # @param lockfile_path [String, Pathname, nil] # @return [Lockfile] a new instance of Lockfile # - # source://rubocop/lib/rubocop/lockfile.rb#15 + # source://rubocop/lib/rubocop/lockfile.rb#17 def initialize(lockfile_path = T.unsafe(nil)); end # Gems that the bundle directly depends on. @@ -55880,7 +55886,7 @@ class RuboCop::Lockfile # @api private # @return [Array, nil] # - # source://rubocop/lib/rubocop/lockfile.rb#23 + # source://rubocop/lib/rubocop/lockfile.rb#29 def dependencies; end # Returns the locked versions of gems from this lockfile. @@ -55889,7 +55895,7 @@ class RuboCop::Lockfile # @param include_transitive_dependencies: [Boolean] When false, only direct dependencies # are returned, i.e. those listed explicitly in the `Gemfile`. # - # source://rubocop/lib/rubocop/lockfile.rb#43 + # source://rubocop/lib/rubocop/lockfile.rb#49 def gem_versions(include_transitive_dependencies: T.unsafe(nil)); end # All activated gems, including transitive dependencies. @@ -55897,7 +55903,7 @@ class RuboCop::Lockfile # @api private # @return [Array, nil] # - # source://rubocop/lib/rubocop/lockfile.rb#31 + # source://rubocop/lib/rubocop/lockfile.rb#37 def gems; end # Whether this lockfile includes the named gem, directly or indirectly. @@ -55906,15 +55912,21 @@ class RuboCop::Lockfile # @param name [String] # @return [Boolean] # - # source://rubocop/lib/rubocop/lockfile.rb#59 + # source://rubocop/lib/rubocop/lockfile.rb#65 def includes_gem?(name); end private + # @api private + # @return [Boolean] + # + # source://rubocop/lib/rubocop/lockfile.rb#85 + def bundler_lock_parser_defined?; end + # @api private # @return [Bundler::LockfileParser, nil] # - # source://rubocop/lib/rubocop/lockfile.rb#66 + # source://rubocop/lib/rubocop/lockfile.rb#72 def parser; end end @@ -56938,145 +56950,145 @@ RuboCop::ResultCache::NON_CHANGING = T.let(T.unsafe(nil), Array) class RuboCop::Runner # @return [Runner] a new instance of Runner # - # source://rubocop/lib/rubocop/runner.rb#62 + # source://rubocop/lib/rubocop/runner.rb#63 def initialize(options, config_store); end # Sets the attribute aborting # # @param value the value to set the attribute aborting to. # - # source://rubocop/lib/rubocop/runner.rb#60 + # source://rubocop/lib/rubocop/runner.rb#61 def aborting=(_arg0); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#86 + # source://rubocop/lib/rubocop/runner.rb#87 def aborting?; end # Returns the value of attribute errors. # - # source://rubocop/lib/rubocop/runner.rb#59 + # source://rubocop/lib/rubocop/runner.rb#60 def errors; end - # source://rubocop/lib/rubocop/runner.rb#70 + # source://rubocop/lib/rubocop/runner.rb#71 def run(paths); end # Returns the value of attribute warnings. # - # source://rubocop/lib/rubocop/runner.rb#59 + # source://rubocop/lib/rubocop/runner.rb#60 def warnings; end private - # source://rubocop/lib/rubocop/runner.rb#199 + # source://rubocop/lib/rubocop/runner.rb#200 def add_redundant_disables(file, offenses, source); end - # source://rubocop/lib/rubocop/runner.rb#173 + # source://rubocop/lib/rubocop/runner.rb#174 def cached_result(file, team); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#253 + # source://rubocop/lib/rubocop/runner.rb#254 def cached_run?; end # Check whether a run created source identical to a previous run, which # means that we definitely have an infinite loop. # - # source://rubocop/lib/rubocop/runner.rb#331 + # source://rubocop/lib/rubocop/runner.rb#332 def check_for_infinite_loop(processed_source, offenses_by_iteration); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#225 + # source://rubocop/lib/rubocop/runner.rb#226 def check_for_redundant_disables?(source); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#426 + # source://rubocop/lib/rubocop/runner.rb#427 def considered_failure?(offense); end - # source://rubocop/lib/rubocop/runner.rb#459 + # source://rubocop/lib/rubocop/runner.rb#460 def default_config(cop_name); end - # source://rubocop/lib/rubocop/runner.rb#275 + # source://rubocop/lib/rubocop/runner.rb#276 def do_inspection_loop(file); end - # source://rubocop/lib/rubocop/runner.rb#136 + # source://rubocop/lib/rubocop/runner.rb#137 def each_inspected_file(files); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#239 + # source://rubocop/lib/rubocop/runner.rb#240 def except_redundant_cop_disable_directive?; end - # source://rubocop/lib/rubocop/runner.rb#360 + # source://rubocop/lib/rubocop/runner.rb#361 def extract_ruby_sources(processed_source); end - # source://rubocop/lib/rubocop/runner.rb#248 + # source://rubocop/lib/rubocop/runner.rb#249 def file_finished(file, offenses); end - # source://rubocop/lib/rubocop/runner.rb#177 + # source://rubocop/lib/rubocop/runner.rb#178 def file_offense_cache(file); end - # source://rubocop/lib/rubocop/runner.rb#165 + # source://rubocop/lib/rubocop/runner.rb#166 def file_offenses(file); end - # source://rubocop/lib/rubocop/runner.rb#243 + # source://rubocop/lib/rubocop/runner.rb#244 def file_started(file); end - # source://rubocop/lib/rubocop/runner.rb#406 + # source://rubocop/lib/rubocop/runner.rb#407 def filter_cop_classes(cop_classes, config); end - # source://rubocop/lib/rubocop/runner.rb#107 + # source://rubocop/lib/rubocop/runner.rb#108 def find_target_files(paths); end - # source://rubocop/lib/rubocop/runner.rb#417 + # source://rubocop/lib/rubocop/runner.rb#418 def formatter_set; end - # source://rubocop/lib/rubocop/runner.rb#474 + # source://rubocop/lib/rubocop/runner.rb#475 def get_processed_source(file); end - # source://rubocop/lib/rubocop/runner.rb#345 + # source://rubocop/lib/rubocop/runner.rb#346 def inspect_file(processed_source, team = T.unsafe(nil)); end - # source://rubocop/lib/rubocop/runner.rb#118 + # source://rubocop/lib/rubocop/runner.rb#119 def inspect_files(files); end - # source://rubocop/lib/rubocop/runner.rb#306 + # source://rubocop/lib/rubocop/runner.rb#307 def iterate_until_no_changes(source, offenses_by_iteration); end - # source://rubocop/lib/rubocop/runner.rb#151 + # source://rubocop/lib/rubocop/runner.rb#152 def list_files(paths); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#455 + # source://rubocop/lib/rubocop/runner.rb#456 def mark_as_safe_by_config?(config); end - # source://rubocop/lib/rubocop/runner.rb#463 + # source://rubocop/lib/rubocop/runner.rb#464 def minimum_severity_to_fail; end - # source://rubocop/lib/rubocop/runner.rb#367 + # source://rubocop/lib/rubocop/runner.rb#368 def mobilize_team(processed_source); end - # source://rubocop/lib/rubocop/runner.rb#372 + # source://rubocop/lib/rubocop/runner.rb#373 def mobilized_cop_classes(config); end - # source://rubocop/lib/rubocop/runner.rb#435 + # source://rubocop/lib/rubocop/runner.rb#436 def offenses_to_report(offenses); end - # source://rubocop/lib/rubocop/runner.rb#155 + # source://rubocop/lib/rubocop/runner.rb#156 def process_file(file); end - # source://rubocop/lib/rubocop/runner.rb#396 + # source://rubocop/lib/rubocop/runner.rb#397 def qualify_option_cop_names; end # @yield [cop] # - # source://rubocop/lib/rubocop/runner.rb#231 + # source://rubocop/lib/rubocop/runner.rb#232 def redundant_cop_disable_directive(file); end - # source://rubocop/lib/rubocop/runner.rb#265 + # source://rubocop/lib/rubocop/runner.rb#266 def save_in_cache(cache, offenses); end # A Cop::Team instance is stateful and may change when inspecting. @@ -57084,41 +57096,41 @@ class RuboCop::Runner # otherwise dormant team that can be used for config- and option- # level caching in ResultCache. # - # source://rubocop/lib/rubocop/runner.rb#502 + # source://rubocop/lib/rubocop/runner.rb#503 def standby_team(config); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#413 + # source://rubocop/lib/rubocop/runner.rb#414 def style_guide_cops_only?(config); end # @return [Boolean] # - # source://rubocop/lib/rubocop/runner.rb#447 + # source://rubocop/lib/rubocop/runner.rb#448 def supports_safe_autocorrect?(offense); end # @yield [team] # - # source://rubocop/lib/rubocop/runner.rb#214 + # source://rubocop/lib/rubocop/runner.rb#215 def team_for_redundant_disables(file, offenses, source); end # Warms up the RuboCop cache by forking a suitable number of RuboCop # instances that each inspects its allotted group of files. # - # source://rubocop/lib/rubocop/runner.rb#94 + # source://rubocop/lib/rubocop/runner.rb#95 def warm_cache(target_files); end class << self # @return [Array<#call>] # - # source://rubocop/lib/rubocop/runner.rb#32 + # source://rubocop/lib/rubocop/runner.rb#33 def ruby_extractors; end private # @return [#call] # - # source://rubocop/lib/rubocop/runner.rb#39 + # source://rubocop/lib/rubocop/runner.rb#40 def default_ruby_extractor; end end end @@ -57141,12 +57153,12 @@ end # @api private # -# source://rubocop/lib/rubocop/runner.rb#52 +# source://rubocop/lib/rubocop/runner.rb#53 RuboCop::Runner::MAX_ITERATIONS = T.let(T.unsafe(nil), Integer) # @api private # -# source://rubocop/lib/rubocop/runner.rb#55 +# source://rubocop/lib/rubocop/runner.rb#56 RuboCop::Runner::REDUNDANT_COP_DISABLE_DIRECTIVE_RULES = T.let(T.unsafe(nil), Array) # Take a string with embedded escapes, and convert the escapes as the Ruby diff --git a/sorbet/rbi/gems/ruby-lsp@0.16.5.rbi b/sorbet/rbi/gems/ruby-lsp@0.17.2.rbi similarity index 85% rename from sorbet/rbi/gems/ruby-lsp@0.16.5.rbi rename to sorbet/rbi/gems/ruby-lsp@0.17.2.rbi index 3d49d87b..50a3f6ab 100644 --- a/sorbet/rbi/gems/ruby-lsp@0.16.5.rbi +++ b/sorbet/rbi/gems/ruby-lsp@0.17.2.rbi @@ -13,137 +13,181 @@ module RubyIndexer end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#5 -class RubyIndexer::Collector - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#11 - sig { params(index: ::RubyIndexer::Index, parse_result: ::Prism::ParseResult, file_path: ::String).void } - def initialize(index, parse_result, file_path); end +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#5 +class RubyIndexer::Configuration + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#20 + sig { void } + def initialize; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#28 - sig { params(node: ::Prism::Node).void } - def collect(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#149 + sig { params(config: T::Hash[::String, T.untyped]).void } + def apply_config(config); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#47 + sig { returns(T::Array[::RubyIndexer::IndexablePath]) } + def indexables; end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#144 + sig { returns(::Regexp) } + def magic_comment_regex; end private - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#271 - sig { params(node: ::Prism::ClassNode).void } - def add_class_entry(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#177 + sig { returns(T::Array[::String]) } + def initial_excluded_gems; end + + # @raise [ArgumentError] + # + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#162 + sig { params(config: T::Hash[::String, T.untyped]).void } + def validate_config!(config); end +end + +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#8 +RubyIndexer::Configuration::CONFIGURATION_SCHEMA = T.let(T.unsafe(nil), Hash) - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#231 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#5 +class RubyIndexer::DeclarationListener + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#11 sig do params( - node: T.any(::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathTargetNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantTargetNode, ::Prism::ConstantWriteNode), - name: ::String, - value: T.nilable(::Prism::Node) + index: ::RubyIndexer::Index, + dispatcher: ::Prism::Dispatcher, + parse_result: ::Prism::ParseResult, + file_path: ::String ).void end - def add_constant(node, name, value = T.unsafe(nil)); end + def initialize(index, dispatcher, parse_result, file_path); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#256 - sig { params(node: ::Prism::ModuleNode).void } - def add_module_entry(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#200 + sig { params(node: ::Prism::CallNode).void } + def on_call_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#300 - sig { params(node: ::Prism::Node).returns(T::Array[::String]) } - def collect_comments(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#224 + sig { params(node: ::Prism::CallNode).void } + def on_call_node_leave(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#326 - sig { params(name: ::String).returns(::String) } - def fully_qualify_name(name); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#59 + sig { params(node: ::Prism::ClassNode).void } + def on_class_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#335 - sig { params(node: ::Prism::CallNode, reader: T::Boolean, writer: T::Boolean).void } - def handle_attribute(node, reader:, writer:); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#87 + sig { params(node: ::Prism::ClassNode).void } + def on_class_node_leave(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#143 - sig { params(node: ::Prism::CallNode).void } - def handle_call_node(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#188 + sig { params(node: ::Prism::ConstantAndWriteNode).void } + def on_constant_and_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#194 + sig { params(node: ::Prism::ConstantOperatorWriteNode).void } + def on_constant_operator_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#182 + sig { params(node: ::Prism::ConstantOrWriteNode).void } + def on_constant_or_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#127 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#166 sig { params(node: ::Prism::ConstantPathAndWriteNode).void } - def handle_constant_path_and_write_node(node); end + def on_constant_path_and_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#117 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#156 sig { params(node: ::Prism::ConstantPathOperatorWriteNode).void } - def handle_constant_path_operator_write_node(node); end + def on_constant_path_operator_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#107 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#146 sig { params(node: ::Prism::ConstantPathOrWriteNode).void } - def handle_constant_path_or_write_node(node); end + def on_constant_path_or_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#97 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#136 sig { params(node: ::Prism::ConstantPathWriteNode).void } - def handle_constant_path_write_node(node); end + def on_constant_path_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#137 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#176 sig { params(node: ::Prism::ConstantWriteNode).void } - def handle_constant_write_node(node); end + def on_constant_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#163 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#237 sig { params(node: ::Prism::DefNode).void } - def handle_def_node(node); end - - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#359 - sig { params(node: ::Prism::CallNode).void } - def handle_include(node); end + def on_def_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#369 - sig { params(node: ::Prism::CallNode, operation: ::Symbol).void } - def handle_module_operation(node, operation); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#267 + sig { params(node: ::Prism::DefNode).void } + def on_def_node_leave(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#77 - sig { params(node: ::Prism::MultiWriteNode).void } - def handle_multi_write_node(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#286 + sig { params(node: ::Prism::InstanceVariableAndWriteNode).void } + def on_instance_variable_and_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#364 - sig { params(node: ::Prism::CallNode).void } - def handle_prepend(node); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#300 + sig { params(node: ::Prism::InstanceVariableOperatorWriteNode).void } + def on_instance_variable_operator_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#189 - sig { params(node: ::Prism::CallNode).void } - def handle_private_constant(node); end -end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#314 + sig { params(node: ::Prism::InstanceVariableOrWriteNode).void } + def on_instance_variable_or_write_node_enter(node); end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/collector.rb#8 -RubyIndexer::Collector::LEAVE_EVENT = T.let(T.unsafe(nil), Object) + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#328 + sig { params(node: ::Prism::InstanceVariableTargetNode).void } + def on_instance_variable_target_node_enter(node); end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#5 -class RubyIndexer::Configuration - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#20 - sig { void } - def initialize; end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#272 + sig { params(node: ::Prism::InstanceVariableWriteNode).void } + def on_instance_variable_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#148 - sig { params(config: T::Hash[::String, T.untyped]).void } - def apply_config(config); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#94 + sig { params(node: ::Prism::ModuleNode).void } + def on_module_node_enter(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#47 - sig { returns(T::Array[::RubyIndexer::IndexablePath]) } - def indexables; end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#109 + sig { params(node: ::Prism::ModuleNode).void } + def on_module_node_leave(node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#143 - sig { returns(::Regexp) } - def magic_comment_regex; end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#116 + sig { params(node: ::Prism::MultiWriteNode).void } + def on_multi_write_node_enter(node); end private - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#176 - sig { returns(T::Array[::String]) } - def initial_excluded_gems; end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#386 + sig do + params( + node: T.any(::Prism::ConstantAndWriteNode, ::Prism::ConstantOperatorWriteNode, ::Prism::ConstantOrWriteNode, ::Prism::ConstantPathAndWriteNode, ::Prism::ConstantPathOperatorWriteNode, ::Prism::ConstantPathOrWriteNode, ::Prism::ConstantPathTargetNode, ::Prism::ConstantPathWriteNode, ::Prism::ConstantTargetNode, ::Prism::ConstantWriteNode), + name: ::String, + value: T.nilable(::Prism::Node) + ).void + end + def add_constant(node, name, value = T.unsafe(nil)); end - # @raise [ArgumentError] - # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#161 - sig { params(config: T::Hash[::String, T.untyped]).void } - def validate_config!(config); end -end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#409 + sig { params(node: ::Prism::Node).returns(T::Array[::String]) } + def collect_comments(node); end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/configuration.rb#8 -RubyIndexer::Configuration::CONFIGURATION_SCHEMA = T.let(T.unsafe(nil), Hash) + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#502 + sig { returns(::RubyIndexer::Entry::Visibility) } + def current_visibility; end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#435 + sig { params(name: ::String).returns(::String) } + def fully_qualify_name(name); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#444 + sig { params(node: ::Prism::CallNode, reader: T::Boolean, writer: T::Boolean).void } + def handle_attribute(node, reader:, writer:); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#475 + sig { params(node: ::Prism::CallNode, operation: ::Symbol).void } + def handle_module_operation(node, operation); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/declaration_listener.rb#344 + sig { params(node: ::Prism::CallNode).void } + def handle_private_constant(node); end +end # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#5 class RubyIndexer::Entry - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#31 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#39 sig do params( name: ::String, @@ -154,153 +198,189 @@ class RubyIndexer::Entry end def initialize(name, file_path, location, comments); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#18 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#26 sig { returns(T::Array[::String]) } def comments; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#53 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#66 sig { returns(::String) } def file_name; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#12 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#20 sig { returns(::String) } def file_path; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#15 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#23 sig { returns(::RubyIndexer::Location) } def location; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#9 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#17 sig { returns(::String) } def name; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#21 - sig { returns(::Symbol) } + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#61 + sig { returns(T::Boolean) } + def private?; end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#29 + sig { returns(::RubyIndexer::Entry::Visibility) } def visibility; end - # @return [Symbol] + # @return [Visibility] # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#21 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#29 def visibility=(_arg0); end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#218 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#270 class RubyIndexer::Entry::Accessor < ::RubyIndexer::Entry::Member - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#222 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#274 sig { override.returns(T::Array[::RubyIndexer::Entry::Parameter]) } def parameters; end end # Alias represents a resolved alias, which points to an existing constant target # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#385 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#438 class RubyIndexer::Entry::Alias < ::RubyIndexer::Entry - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#392 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#445 sig { params(target: ::String, unresolved_alias: ::RubyIndexer::Entry::UnresolvedAlias).void } def initialize(target, unresolved_alias); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#389 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#442 sig { returns(::String) } def target; end end # A block method parameter, e.g. `def foo(&block)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#182 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#232 class RubyIndexer::Entry::BlockParameter < ::RubyIndexer::Entry::Parameter - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#186 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#236 sig { override.returns(::Symbol) } def decorated_name; end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#183 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#233 RubyIndexer::Entry::BlockParameter::DEFAULT_NAME = T.let(T.unsafe(nil), Symbol) -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#92 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#136 class RubyIndexer::Entry::Class < ::RubyIndexer::Entry::Namespace - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#109 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#153 sig do params( - name: ::String, + nesting: T::Array[::String], file_path: ::String, location: T.any(::Prism::Location, ::RubyIndexer::Location), comments: T::Array[::String], parent_class: T.nilable(::String) ).void end - def initialize(name, file_path, location, comments, parent_class); end + def initialize(nesting, file_path, location, comments, parent_class); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#160 + sig { override.returns(::Integer) } + def ancestor_hash; end # The unresolved name of the parent class. This may return `nil`, which indicates the lack of an explicit parent # and therefore ::Object is the correct parent class # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#98 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#142 sig { returns(T.nilable(::String)) } def parent_class; end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#115 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#165 class RubyIndexer::Entry::Constant < ::RubyIndexer::Entry; end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#344 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#87 +class RubyIndexer::Entry::Extend < ::RubyIndexer::Entry::ModuleOperation; end + +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#85 +class RubyIndexer::Entry::Include < ::RubyIndexer::Entry::ModuleOperation; end + +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#397 class RubyIndexer::Entry::InstanceMethod < ::RubyIndexer::Entry::Method; end +# Represents an instance variable e.g.: @a = 1 +# +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#454 +class RubyIndexer::Entry::InstanceVariable < ::RubyIndexer::Entry + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#467 + sig do + params( + name: ::String, + file_path: ::String, + location: T.any(::Prism::Location, ::RubyIndexer::Location), + comments: T::Array[::String], + owner: T.nilable(::RubyIndexer::Entry::Namespace) + ).void + end + def initialize(name, file_path, location, comments, owner); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#456 + sig { returns(T.nilable(::RubyIndexer::Entry::Namespace)) } + def owner; end +end + # An required keyword method parameter, e.g. `def foo(a:)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#146 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#196 class RubyIndexer::Entry::KeywordParameter < ::RubyIndexer::Entry::Parameter - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#148 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#198 sig { override.returns(::Symbol) } def decorated_name; end end # A keyword rest method parameter, e.g. `def foo(**a)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#172 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#222 class RubyIndexer::Entry::KeywordRestParameter < ::RubyIndexer::Entry::Parameter - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#176 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#226 sig { override.returns(::Symbol) } def decorated_name; end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#173 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#223 RubyIndexer::Entry::KeywordRestParameter::DEFAULT_NAME = T.let(T.unsafe(nil), Symbol) # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#191 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#241 class RubyIndexer::Entry::Member < ::RubyIndexer::Entry abstract! - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#209 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#260 sig do params( name: ::String, file_path: ::String, location: T.any(::Prism::Location, ::RubyIndexer::Location), comments: T::Array[::String], + visibility: ::RubyIndexer::Entry::Visibility, owner: T.nilable(::RubyIndexer::Entry::Namespace) ).void end - def initialize(name, file_path, location, comments, owner); end + def initialize(name, file_path, location, comments, visibility, owner); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#198 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#248 sig { returns(T.nilable(::RubyIndexer::Entry::Namespace)) } def owner; end # @abstract # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#215 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#267 sig { abstract.returns(T::Array[::RubyIndexer::Entry::Parameter]) } def parameters; end end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#229 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#281 class RubyIndexer::Entry::Method < ::RubyIndexer::Entry::Member abstract! - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#248 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#301 sig do params( name: ::String, @@ -308,18 +388,19 @@ class RubyIndexer::Entry::Method < ::RubyIndexer::Entry::Member location: T.any(::Prism::Location, ::RubyIndexer::Location), comments: T::Array[::String], parameters_node: T.nilable(::Prism::ParametersNode), + visibility: ::RubyIndexer::Entry::Visibility, owner: T.nilable(::RubyIndexer::Entry::Namespace) ).void end - def initialize(name, file_path, location, comments, parameters_node, owner); end + def initialize(name, file_path, location, comments, parameters_node, visibility, owner); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#236 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#288 sig { override.returns(T::Array[::RubyIndexer::Entry::Parameter]) } def parameters; end private - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#257 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#310 sig do params( parameters_node: T.nilable(::Prism::ParametersNode) @@ -327,75 +408,88 @@ class RubyIndexer::Entry::Method < ::RubyIndexer::Entry::Member end def list_params(parameters_node); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#316 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#369 sig { params(node: T.nilable(::Prism::Node)).returns(T.nilable(::Symbol)) } def parameter_name(node); end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#89 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#133 class RubyIndexer::Entry::Module < ::RubyIndexer::Entry::Namespace; end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#57 -class RubyIndexer::Entry::Namespace < ::RubyIndexer::Entry +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#70 +class RubyIndexer::Entry::ModuleOperation abstract! + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#80 + sig { params(module_name: ::String).void } + def initialize(module_name); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#77 + sig { returns(::String) } + def module_name; end +end + +# @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. +# +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#89 +class RubyIndexer::Entry::Namespace < ::RubyIndexer::Entry + abstract! + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#106 sig do params( - name: ::String, + nesting: T::Array[::String], file_path: ::String, location: T.any(::Prism::Location, ::RubyIndexer::Location), comments: T::Array[::String] ).void end - def initialize(name, file_path, location, comments); end - - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#64 - sig { returns(T::Array[::String]) } - def included_modules; end + def initialize(nesting, file_path, location, comments); end - # @return [Array] - # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#64 - def included_modules=(_arg0); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#128 + sig { returns(::Integer) } + def ancestor_hash; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#67 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#115 sig { returns(T::Array[::String]) } - def prepended_modules; end + def mixin_operation_module_names; end - # @return [Array] + # Stores all explicit prepend, include and extend operations in the exact order they were discovered in the source + # code. Maintaining the order is essential to linearize ancestors the right way when a module is both included + # and prepended # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#67 - def prepended_modules=(_arg0); end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#123 + sig { returns(T::Array[::RubyIndexer::Entry::ModuleOperation]) } + def mixin_operations; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#84 - sig { returns(::String) } - def short_name; end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#96 + sig { returns(T::Array[::String]) } + def nesting; end end # An optional keyword method parameter, e.g. `def foo(a: 123)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#154 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#204 class RubyIndexer::Entry::OptionalKeywordParameter < ::RubyIndexer::Entry::Parameter - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#156 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#206 sig { override.returns(::Symbol) } def decorated_name; end end # An optional method parameter, e.g. `def foo(a = 123)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#142 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#192 class RubyIndexer::Entry::OptionalParameter < ::RubyIndexer::Entry::Parameter; end # @abstract It cannot be directly instantiated. Subclasses must implement the `abstract` methods below. # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#118 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#168 class RubyIndexer::Entry::Parameter abstract! - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#132 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#182 sig { params(name: ::Symbol).void } def initialize(name:); end @@ -404,34 +498,37 @@ class RubyIndexer::Entry::Parameter # # @return [Symbol] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def decorated_name(*args, **_arg1, &blk); end # Name includes just the name of the parameter, excluding symbols like splats # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#126 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#176 sig { returns(::Symbol) } def name; end end +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#86 +class RubyIndexer::Entry::Prepend < ::RubyIndexer::Entry::ModuleOperation; end + # A required method parameter, e.g. `def foo(a)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#138 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#188 class RubyIndexer::Entry::RequiredParameter < ::RubyIndexer::Entry::Parameter; end # A rest method parameter, e.g. `def foo(*a)` # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#162 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#212 class RubyIndexer::Entry::RestParameter < ::RubyIndexer::Entry::Parameter - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#166 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#216 sig { override.returns(::Symbol) } def decorated_name; end end -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#163 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#213 RubyIndexer::Entry::RestParameter::DEFAULT_NAME = T.let(T.unsafe(nil), Symbol) -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#341 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#394 class RubyIndexer::Entry::SingletonMethod < ::RubyIndexer::Entry::Method; end # An UnresolvedAlias points to a constant alias with a right hand side that has not yet been resolved. For @@ -445,9 +542,9 @@ class RubyIndexer::Entry::SingletonMethod < ::RubyIndexer::Entry::Method; end # target in [rdoc-ref:Index#resolve]. If the right hand side contains a constant that doesn't exist, then it's not # possible to resolve the alias and it will remain an UnresolvedAlias until the right hand side constant exists # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#357 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#410 class RubyIndexer::Entry::UnresolvedAlias < ::RubyIndexer::Entry - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#376 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#429 sig do params( target: ::String, @@ -460,30 +557,39 @@ class RubyIndexer::Entry::UnresolvedAlias < ::RubyIndexer::Entry end def initialize(target, nesting, name, file_path, location, comments); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#364 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#417 sig { returns(T::Array[::String]) } def nesting; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#361 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#414 sig { returns(::String) } def target; end end +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/entry.rb#6 +class RubyIndexer::Entry::Visibility < ::T::Enum + enums do + PUBLIC = new + PROTECTED = new + PRIVATE = new + end +end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#5 class RubyIndexer::Index - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#14 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#15 sig { void } def initialize; end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#65 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#69 sig { params(entry: ::RubyIndexer::Entry).void } def <<(entry); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#74 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#78 sig { params(fully_qualified_name: ::String).returns(T.nilable(T::Array[::RubyIndexer::Entry])) } def [](fully_qualified_name); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#37 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#41 sig { params(indexable: ::RubyIndexer::IndexablePath).void } def delete(indexable); end @@ -498,21 +604,28 @@ class RubyIndexer::Index # `Something::Else`, then we first discover `Something::Else::Baz`. But `Something::Else::Baz` might contain other # aliases, so we have to invoke `follow_aliased_namespace` again to check until we only return a real name # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#210 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#226 sig { params(name: ::String).returns(::String) } def follow_aliased_namespace(name); end # Fuzzy searches index entries based on Jaro-Winkler similarity. If no query is provided, all entries are returned # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#116 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#120 sig { params(query: T.nilable(::String)).returns(T::Array[::RubyIndexer::Entry]) } def fuzzy_search(query); end + # Synchronizes a change made to the given indexable path. This method will ensure that new declarations are indexed, + # removed declarations removed and that the ancestor linearization cache is cleared if necessary + # + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#406 + sig { params(indexable: ::RubyIndexer::IndexablePath).void } + def handle_change(indexable); end + # Index all files for the given indexable paths, which defaults to what is configured. A block can be used to track # and control indexing progress. That block is invoked with the current progress percentage and should return `true` # to continue indexing or `false` to stop indexing. # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#171 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#185 sig do params( indexable_paths: T::Array[::RubyIndexer::IndexablePath], @@ -521,10 +634,36 @@ class RubyIndexer::Index end def index_all(indexable_paths: T.unsafe(nil), &block); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#186 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#200 sig { params(indexable_path: ::RubyIndexer::IndexablePath, source: T.nilable(::String)).void } def index_single(indexable_path, source = T.unsafe(nil)); end + # Returns a list of possible candidates for completion of instance variables for a given owner name. The name must + # include the `@` prefix + # + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#394 + sig { params(name: ::String, owner_name: ::String).returns(T::Array[::RubyIndexer::Entry::InstanceVariable]) } + def instance_variable_completion_candidates(name, owner_name); end + + # Linearizes the ancestors for a given name, returning the order of namespaces in which Ruby will search for method + # or constant declarations. + # + # When we add an ancestor in Ruby, that namespace might have ancestors of its own. Therefore, we need to linearize + # everything recursively to ensure that we are placing ancestors in the right order. For example, if you include a + # module that prepends another module, then the prepend module appears before the included module. + # + # The order of ancestors is [linearized_prepends, self, linearized_includes, linearized_superclass] + # + # @raise [NonExistingNamespaceError] + # + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#289 + sig { params(fully_qualified_name: ::String).returns(T::Array[::String]) } + def linearized_ancestors_of(fully_qualified_name); end + + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#134 + sig { params(name: ::String, receiver_name: ::String).returns(T::Array[::RubyIndexer::Entry]) } + def method_completion_candidates(name, receiver_name); end + # Searches entries in the index based on an exact prefix, intended for providing autocomplete. All possible matches # to the prefix are returned. The return is an array of arrays, where each entry is the array of entries for a given # name match. For example: @@ -539,7 +678,7 @@ class RubyIndexer::Index # ] # ``` # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#97 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#101 sig do params( query: ::String, @@ -554,14 +693,26 @@ class RubyIndexer::Index # 2. Foo::Baz # 3. Baz # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#135 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#149 sig { params(name: ::String, nesting: T::Array[::String]).returns(T.nilable(T::Array[::RubyIndexer::Entry])) } def resolve(name, nesting); end + # Resolves an instance variable name for a given owner name. This method will linearize the ancestors of the owner + # and find inherited instance variables as well + # + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#381 + sig do + params( + variable_name: ::String, + owner_name: ::String + ).returns(T.nilable(T::Array[::RubyIndexer::Entry::InstanceVariable])) + end + def resolve_instance_variable(variable_name, owner_name); end + # Attempts to find methods for a resolved fully qualified receiver name. # Returns `nil` if the method does not exist on that receiver # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#244 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#260 sig do params( method_name: ::String, @@ -570,7 +721,7 @@ class RubyIndexer::Index end def resolve_method(method_name, receiver_name); end - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#79 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#83 sig { params(query: ::String).returns(T::Array[::RubyIndexer::IndexablePath]) } def search_require_paths(query); end @@ -579,7 +730,7 @@ class RubyIndexer::Index # Attempts to resolve an UnresolvedAlias into a resolved Alias. If the unresolved alias is pointing to a constant # that doesn't exist, then we return the same UnresolvedAlias # - # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#263 + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#438 sig do params( entry: ::RubyIndexer::Entry::UnresolvedAlias @@ -590,9 +741,12 @@ end # The minimum Jaro-Winkler similarity score for an entry to be considered a match for a given fuzzy search query # -# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#11 +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#12 RubyIndexer::Index::ENTRY_SIMILARITY_THRESHOLD = T.let(T.unsafe(nil), Float) +# source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#9 +class RubyIndexer::Index::NonExistingNamespaceError < ::StandardError; end + # source://ruby-lsp/lib/ruby_indexer/lib/ruby_indexer/index.rb#8 class RubyIndexer::Index::UnresolvableAliasError < ::StandardError; end @@ -805,10 +959,6 @@ class RubyLsp::Addon sig { params(error: ::StandardError).returns(T.self_type) } def add_error(error); end - # source://ruby-lsp/lib/ruby_lsp/addon.rb#102 - sig { returns(::String) } - def backtraces; end - # Creates a new CodeLens listener. This method is invoked on every CodeLens request # # source://ruby-lsp/lib/ruby_lsp/addon.rb#128 @@ -829,12 +979,12 @@ class RubyLsp::Addon overridable .params( response_builder: RubyLsp::ResponseBuilders::CollectionResponseBuilder[::LanguageServer::Protocol::Interface::CompletionItem], - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, dispatcher: ::Prism::Dispatcher, uri: ::URI::Generic ).void end - def create_completion_listener(response_builder, nesting, dispatcher, uri); end + def create_completion_listener(response_builder, node_context, dispatcher, uri); end # Creates a new Definition listener. This method is invoked on every Definition request # @@ -844,11 +994,11 @@ class RubyLsp::Addon .params( response_builder: RubyLsp::ResponseBuilders::CollectionResponseBuilder[::LanguageServer::Protocol::Interface::Location], uri: ::URI::Generic, - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, dispatcher: ::Prism::Dispatcher ).void end - def create_definition_listener(response_builder, uri, nesting, dispatcher); end + def create_definition_listener(response_builder, uri, node_context, dispatcher); end # Creates a new DocumentSymbol listener. This method is invoked on every DocumentSymbol request # @@ -869,11 +1019,11 @@ class RubyLsp::Addon overridable .params( response_builder: RubyLsp::ResponseBuilders::Hover, - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, dispatcher: ::Prism::Dispatcher ).void end - def create_hover_listener(response_builder, nesting, dispatcher); end + def create_hover_listener(response_builder, node_context, dispatcher); end # source://ruby-lsp/lib/ruby_lsp/addon.rb#155 sig do @@ -898,6 +1048,10 @@ class RubyLsp::Addon sig { returns(T::Boolean) } def error?; end + # source://ruby-lsp/lib/ruby_lsp/addon.rb#102 + sig { returns(::String) } + def errors_details; end + # source://ruby-lsp/lib/ruby_lsp/addon.rb#94 sig { returns(::String) } def formatted_errors; end @@ -1061,7 +1215,7 @@ class RubyLsp::Document node: ::Prism::Node, char_position: ::Integer, node_types: T::Array[T.class_of(Prism::Node)] - ).returns([T.nilable(::Prism::Node), T.nilable(::Prism::Node), T::Array[::String]]) + ).returns(::RubyLsp::NodeContext) end def locate(node, char_position, node_types: T.unsafe(nil)); end @@ -1070,7 +1224,7 @@ class RubyLsp::Document params( position: T::Hash[::Symbol, T.untyped], node_types: T::Array[T.class_of(Prism::Node)] - ).returns([T.nilable(::Prism::Node), T.nilable(::Prism::Node), T::Array[::String]]) + ).returns(::RubyLsp::NodeContext) end def locate_node(position, node_types: T.unsafe(nil)); end @@ -1088,7 +1242,7 @@ class RubyLsp::Document sig { params(edits: T::Array[T::Hash[::Symbol, T.untyped]], version: ::Integer).void } def push_edits(edits, version:); end - # source://ruby-lsp/lib/ruby_lsp/document.rb#177 + # source://ruby-lsp/lib/ruby_lsp/document.rb#200 sig { returns(T::Boolean) } def sorbet_sigil_is_true_or_higher; end @@ -1113,32 +1267,32 @@ class RubyLsp::Document def version; end end -# source://ruby-lsp/lib/ruby_lsp/document.rb#183 +# source://ruby-lsp/lib/ruby_lsp/document.rb#206 class RubyLsp::Document::Scanner - # source://ruby-lsp/lib/ruby_lsp/document.rb#191 + # source://ruby-lsp/lib/ruby_lsp/document.rb#214 sig { params(source: ::String, encoding: ::Encoding).void } def initialize(source, encoding); end # Finds the character index inside the source string for a given line and column # - # source://ruby-lsp/lib/ruby_lsp/document.rb#200 + # source://ruby-lsp/lib/ruby_lsp/document.rb#223 sig { params(position: T::Hash[::Symbol, T.untyped]).returns(::Integer) } def find_char_position(position); end # Subtract 1 for each character after 0xFFFF in the current line from the column position, so that we hit the # right character in the UTF-8 representation # - # source://ruby-lsp/lib/ruby_lsp/document.rb#222 + # source://ruby-lsp/lib/ruby_lsp/document.rb#245 sig { params(current_position: ::Integer, requested_position: ::Integer).returns(::Integer) } def utf_16_character_position_correction(current_position, requested_position); end end -# source://ruby-lsp/lib/ruby_lsp/document.rb#186 +# source://ruby-lsp/lib/ruby_lsp/document.rb#209 RubyLsp::Document::Scanner::LINE_BREAK = T.let(T.unsafe(nil), Integer) # After character 0xFFFF, UTF-16 considers characters to have length 2 and we have to account for that # -# source://ruby-lsp/lib/ruby_lsp/document.rb#188 +# source://ruby-lsp/lib/ruby_lsp/document.rb#211 RubyLsp::Document::Scanner::SURROGATE_PAIR_START = T.let(T.unsafe(nil), Integer) # source://ruby-lsp/lib/ruby_lsp/utils.rb#90 @@ -1269,45 +1423,49 @@ class RubyLsp::Listeners::CodeLens end def initialize(response_builder, global_state, uri, dispatcher); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#123 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#134 sig { params(node: ::Prism::CallNode).void } def on_call_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#153 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#164 sig { params(node: ::Prism::CallNode).void } def on_call_node_leave(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#59 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#62 sig { params(node: ::Prism::ClassNode).void } def on_class_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#78 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#81 sig { params(node: ::Prism::ClassNode).void } def on_class_node_leave(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#90 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#93 sig { params(node: ::Prism::DefNode).void } def on_def_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#109 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#115 + sig { params(node: ::Prism::DefNode).void } + def on_def_node_leave(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#120 sig { params(node: ::Prism::ModuleNode).void } def on_module_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#118 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#129 sig { params(node: ::Prism::ModuleNode).void } def on_module_node_leave(node); end private - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#258 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#269 sig { params(node: ::Prism::CallNode, kind: ::Symbol).void } def add_spec_code_lens(node, kind:); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#164 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#175 sig { params(node: ::Prism::Node, name: ::String, command: ::String, kind: ::Symbol).void } def add_test_code_lens(node, name:, command:, kind:); end - # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#215 + # source://ruby-lsp/lib/ruby_lsp/listeners/code_lens.rb#226 sig do params( group_stack: T::Array[::String], @@ -1345,33 +1503,57 @@ class RubyLsp::Listeners::Completion params( response_builder: RubyLsp::ResponseBuilders::CollectionResponseBuilder[::LanguageServer::Protocol::Interface::CompletionItem], global_state: ::RubyLsp::GlobalState, - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, typechecker_enabled: T::Boolean, dispatcher: ::Prism::Dispatcher, uri: ::URI::Generic ).void end - def initialize(response_builder, global_state, nesting, typechecker_enabled, dispatcher, uri); end + def initialize(response_builder, global_state, node_context, typechecker_enabled, dispatcher, uri); end - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#106 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#75 sig { params(node: ::Prism::CallNode).void } def on_call_node_enter(node); end # Handle completion on namespaced constant references (e.g. `Foo::Bar`) # - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#59 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#65 sig { params(node: ::Prism::ConstantPathNode).void } def on_constant_path_node_enter(node); end # Handle completion on regular constant references (e.g. `Bar`) # - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#38 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#44 sig { params(node: ::Prism::ConstantReadNode).void } def on_constant_read_node_enter(node); end + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#125 + sig { params(node: ::Prism::InstanceVariableAndWriteNode).void } + def on_instance_variable_and_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#130 + sig { params(node: ::Prism::InstanceVariableOperatorWriteNode).void } + def on_instance_variable_operator_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#135 + sig { params(node: ::Prism::InstanceVariableOrWriteNode).void } + def on_instance_variable_or_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#115 + sig { params(node: ::Prism::InstanceVariableReadNode).void } + def on_instance_variable_read_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#140 + sig { params(node: ::Prism::InstanceVariableTargetNode).void } + def on_instance_variable_target_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#120 + sig { params(node: ::Prism::InstanceVariableWriteNode).void } + def on_instance_variable_write_node_enter(node); end + private - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#208 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#297 sig do params( label: ::String, @@ -1380,19 +1562,19 @@ class RubyLsp::Listeners::Completion end def build_completion(label, node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#231 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#320 sig do params( real_name: ::String, incomplete_name: ::String, - node: ::Prism::Node, + range: ::LanguageServer::Protocol::Interface::Range, entries: T::Array[::RubyIndexer::Entry], top_level: T::Boolean ).returns(::LanguageServer::Protocol::Interface::CompletionItem) end - def build_entry_completion(real_name, incomplete_name, node, entries, top_level); end + def build_entry_completion(real_name, incomplete_name, range, entries, top_level); end - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#188 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#277 sig do params( entry: ::RubyIndexer::Entry::Member, @@ -1401,18 +1583,26 @@ class RubyLsp::Listeners::Completion end def build_method_completion(entry, node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#123 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#215 sig { params(node: ::Prism::CallNode).void } def complete_require(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#139 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#231 sig { params(node: ::Prism::CallNode).void } def complete_require_relative(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#168 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#260 sig { params(node: ::Prism::CallNode, name: ::String).void } def complete_self_receiver_method(node, name); end + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#147 + sig { params(name: ::String, range: ::LanguageServer::Protocol::Interface::Range).void } + def constant_path_completion(name, range); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#194 + sig { params(name: ::String, location: ::Prism::Location).void } + def handle_instance_variable_completion(name, location); end + # Check if there are any conflicting names for `entry_name`, which would require us to use a top level reference. # For example: # @@ -1428,7 +1618,7 @@ class RubyLsp::Listeners::Completion # end # ``` # - # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#311 + # source://ruby-lsp/lib/ruby_lsp/listeners/completion.rb#403 sig { params(entry_name: ::String).returns(T::Boolean) } def top_level?(entry_name); end end @@ -1443,38 +1633,74 @@ class RubyLsp::Listeners::Definition response_builder: RubyLsp::ResponseBuilders::CollectionResponseBuilder[::LanguageServer::Protocol::Interface::Location], global_state: ::RubyLsp::GlobalState, uri: ::URI::Generic, - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, dispatcher: ::Prism::Dispatcher, typechecker_enabled: T::Boolean ).void end - def initialize(response_builder, global_state, uri, nesting, dispatcher, typechecker_enabled); end + def initialize(response_builder, global_state, uri, node_context, dispatcher, typechecker_enabled); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#66 + sig { params(node: ::Prism::BlockArgumentNode).void } + def on_block_argument_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#39 + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#47 sig { params(node: ::Prism::CallNode).void } def on_call_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#50 + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#77 sig { params(node: ::Prism::ConstantPathNode).void } def on_constant_path_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#58 + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#85 sig { params(node: ::Prism::ConstantReadNode).void } def on_constant_read_node_enter(node); end + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#103 + sig { params(node: ::Prism::InstanceVariableAndWriteNode).void } + def on_instance_variable_and_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#108 + sig { params(node: ::Prism::InstanceVariableOperatorWriteNode).void } + def on_instance_variable_operator_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#113 + sig { params(node: ::Prism::InstanceVariableOrWriteNode).void } + def on_instance_variable_or_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#93 + sig { params(node: ::Prism::InstanceVariableReadNode).void } + def on_instance_variable_read_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#118 + sig { params(node: ::Prism::InstanceVariableTargetNode).void } + def on_instance_variable_target_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#98 + sig { params(node: ::Prism::InstanceVariableWriteNode).void } + def on_instance_variable_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#55 + sig { params(node: ::Prism::StringNode).void } + def on_string_node_enter(node); end + private - # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#140 + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#207 sig { params(value: ::String).void } def find_in_index(value); end - # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#68 - sig { params(node: ::Prism::CallNode).void } - def handle_method_definition(node); end + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#125 + sig { params(name: ::String).void } + def handle_instance_variable_definition(name); end - # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#98 - sig { params(node: ::Prism::CallNode).void } - def handle_require_definition(node); end + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#145 + sig { params(message: ::String, self_receiver: T::Boolean).void } + def handle_method_definition(message, self_receiver); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#172 + sig { params(node: ::Prism::StringNode, message: ::Symbol).void } + def handle_require_definition(node, message); end end # source://ruby-lsp/lib/ruby_lsp/listeners/definition.rb#10 @@ -2060,47 +2286,75 @@ end class RubyLsp::Listeners::Hover include ::RubyLsp::Requests::Support::Common - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#38 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#46 sig do params( response_builder: RubyLsp::ResponseBuilders::Hover, global_state: ::RubyLsp::GlobalState, uri: ::URI::Generic, - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, dispatcher: ::Prism::Dispatcher, typechecker_enabled: T::Boolean ).void end - def initialize(response_builder, global_state, uri, nesting, dispatcher, typechecker_enabled); end + def initialize(response_builder, global_state, uri, node_context, dispatcher, typechecker_enabled); end - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#83 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#97 sig { params(node: ::Prism::CallNode).void } def on_call_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#73 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#87 sig { params(node: ::Prism::ConstantPathNode).void } def on_constant_path_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#56 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#70 sig { params(node: ::Prism::ConstantReadNode).void } def on_constant_read_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#66 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#80 sig { params(node: ::Prism::ConstantWriteNode).void } def on_constant_write_node_enter(node); end + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#129 + sig { params(node: ::Prism::InstanceVariableAndWriteNode).void } + def on_instance_variable_and_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#134 + sig { params(node: ::Prism::InstanceVariableOperatorWriteNode).void } + def on_instance_variable_operator_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#139 + sig { params(node: ::Prism::InstanceVariableOrWriteNode).void } + def on_instance_variable_or_write_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#119 + sig { params(node: ::Prism::InstanceVariableReadNode).void } + def on_instance_variable_read_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#144 + sig { params(node: ::Prism::InstanceVariableTargetNode).void } + def on_instance_variable_target_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#124 + sig { params(node: ::Prism::InstanceVariableWriteNode).void } + def on_instance_variable_write_node_enter(node); end + private - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#122 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#178 sig { params(node: ::Prism::CallNode).void } def generate_gem_hover(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#107 + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#163 sig { params(name: ::String, location: ::Prism::Location).void } def generate_hover(name, location); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#151 + sig { params(name: ::String).void } + def handle_instance_variable_hover(name); end end -# source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#20 +# source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#28 RubyLsp::Listeners::Hover::ALLOWED_REMOTE_PROVIDERS = T.let(T.unsafe(nil), Array) # source://ruby-lsp/lib/ruby_lsp/listeners/hover.rb#10 @@ -2147,144 +2401,148 @@ class RubyLsp::Listeners::SemanticHighlighting end def initialize(dispatcher, response_builder, range: T.unsafe(nil)); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#173 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#174 sig { params(node: ::Prism::BlockLocalVariableNode).void } def on_block_local_variable_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#163 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#164 sig { params(node: ::Prism::BlockNode).void } def on_block_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#168 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#169 sig { params(node: ::Prism::BlockNode).void } def on_block_node_leave(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#178 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#179 sig { params(node: ::Prism::BlockParameterNode).void } def on_block_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#74 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#75 sig { params(node: ::Prism::CallNode).void } def on_call_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#302 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#303 sig { params(node: ::Prism::ClassNode).void } def on_class_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#122 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#123 sig { params(node: ::Prism::ConstantAndWriteNode).void } def on_constant_and_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#129 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#130 sig { params(node: ::Prism::ConstantOperatorWriteNode).void } def on_constant_operator_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#136 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#137 sig { params(node: ::Prism::ConstantOrWriteNode).void } def on_constant_or_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#107 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#379 + sig { params(node: ::Prism::ConstantPathNode).void } + def on_constant_path_node_enter(node); end + + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#108 sig { params(node: ::Prism::ConstantReadNode).void } def on_constant_read_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#143 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#144 sig { params(node: ::Prism::ConstantTargetNode).void } def on_constant_target_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#115 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#116 sig { params(node: ::Prism::ConstantWriteNode).void } def on_constant_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#150 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#151 sig { params(node: ::Prism::DefNode).void } def on_def_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#158 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#159 sig { params(node: ::Prism::DefNode).void } def on_def_node_leave(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#319 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#367 sig { params(node: ::Prism::ImplicitNode).void } def on_implicit_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#326 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#374 sig { params(node: ::Prism::ImplicitNode).void } def on_implicit_node_leave(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#202 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#203 sig { params(node: ::Prism::KeywordRestParameterNode).void } def on_keyword_rest_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#268 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#269 sig { params(node: ::Prism::LocalVariableAndWriteNode).void } def on_local_variable_and_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#275 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#276 sig { params(node: ::Prism::LocalVariableOperatorWriteNode).void } def on_local_variable_operator_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#282 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#283 sig { params(node: ::Prism::LocalVariableOrWriteNode).void } def on_local_variable_or_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#254 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#255 sig { params(node: ::Prism::LocalVariableReadNode).void } def on_local_variable_read_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#289 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#290 sig { params(node: ::Prism::LocalVariableTargetNode).void } def on_local_variable_target_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#247 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#248 sig { params(node: ::Prism::LocalVariableWriteNode).void } def on_local_variable_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#92 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#93 sig { params(node: ::Prism::MatchWriteNode).void } def on_match_write_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#102 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#103 sig { params(node: ::Prism::MatchWriteNode).void } def on_match_write_node_leave(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#312 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#344 sig { params(node: ::Prism::ModuleNode).void } def on_module_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#193 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#194 sig { params(node: ::Prism::OptionalKeywordParameterNode).void } def on_optional_keyword_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#213 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#214 sig { params(node: ::Prism::OptionalParameterNode).void } def on_optional_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#184 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#185 sig { params(node: ::Prism::RequiredKeywordParameterNode).void } def on_required_keyword_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#221 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#222 sig { params(node: ::Prism::RequiredParameterNode).void } def on_required_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#229 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#230 sig { params(node: ::Prism::RestParameterNode).void } def on_rest_parameter_node_enter(node); end - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#240 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#241 sig { params(node: ::Prism::SelfNode).void } def on_self_node_enter(node); end private - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#340 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#396 sig { params(node: ::Prism::CallNode).void } def process_regexp_locals(node); end # Textmate provides highlighting for a subset of these special Ruby-specific methods. We want to utilize that # highlighting, so we avoid making a semantic token for it. # - # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#335 + # source://ruby-lsp/lib/ruby_lsp/listeners/semantic_highlighting.rb#391 sig { params(method_name: ::String).returns(T::Boolean) } def special_method?(method_name); end end @@ -2301,12 +2559,12 @@ class RubyLsp::Listeners::SignatureHelp params( response_builder: RubyLsp::ResponseBuilders::SignatureHelp, global_state: ::RubyLsp::GlobalState, - nesting: T::Array[::String], + node_context: ::RubyLsp::NodeContext, dispatcher: ::Prism::Dispatcher, typechecker_enabled: T::Boolean ).void end - def initialize(response_builder, global_state, nesting, dispatcher, typechecker_enabled); end + def initialize(response_builder, global_state, node_context, dispatcher, typechecker_enabled); end # source://ruby-lsp/lib/ruby_lsp/listeners/signature_help.rb#29 sig { params(node: ::Prism::CallNode).void } @@ -2340,6 +2598,44 @@ class RubyLsp::Message def to_hash; end end +# This class allows listeners to access contextual information about a node in the AST, such as its parent, +# its namespace nesting, and the surrounding CallNode (e.g. a method call). +# +# source://ruby-lsp/lib/ruby_lsp/node_context.rb#7 +class RubyLsp::NodeContext + # source://ruby-lsp/lib/ruby_lsp/node_context.rb#27 + sig do + params( + node: T.nilable(::Prism::Node), + parent: T.nilable(::Prism::Node), + nesting: T::Array[::String], + call_node: T.nilable(::Prism::CallNode) + ).void + end + def initialize(node, parent, nesting, call_node); end + + # source://ruby-lsp/lib/ruby_lsp/node_context.rb#17 + sig { returns(T.nilable(::Prism::CallNode)) } + def call_node; end + + # source://ruby-lsp/lib/ruby_lsp/node_context.rb#35 + sig { returns(::String) } + def fully_qualified_name; end + + # source://ruby-lsp/lib/ruby_lsp/node_context.rb#14 + sig { returns(T::Array[::String]) } + def nesting; end + + # source://ruby-lsp/lib/ruby_lsp/node_context.rb#11 + sig { returns(T.nilable(::Prism::Node)) } + def node; end + + # @return [Prism::Node, nil] + # + # source://ruby-lsp/lib/ruby_lsp/node_context.rb#11 + def parent; end +end + # source://ruby-lsp/lib/ruby_lsp/utils.rb#52 class RubyLsp::Notification < ::RubyLsp::Message # source://ruby-lsp/lib/ruby_lsp/utils.rb#70 @@ -2455,20 +2751,32 @@ module RubyLsp::Requests; end # # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#24 class RubyLsp::Requests::CodeActionResolve < ::RubyLsp::Requests::Request - # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#38 + # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#40 sig { params(document: ::RubyLsp::Document, code_action: T::Hash[::Symbol, T.untyped]).void } def initialize(document, code_action); end - # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#45 + # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#47 sig do override .returns(T.any(::LanguageServer::Protocol::Interface::CodeAction, ::RubyLsp::Requests::CodeActionResolve::Error)) end def perform; end + # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#155 + sig do + returns(T.any(::LanguageServer::Protocol::Interface::CodeAction, ::RubyLsp::Requests::CodeActionResolve::Error)) + end + def refactor_method; end + + # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#59 + sig do + returns(T.any(::LanguageServer::Protocol::Interface::CodeAction, ::RubyLsp::Requests::CodeActionResolve::Error)) + end + def refactor_variable; end + private - # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#141 + # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#212 sig do params( range: T::Hash[::Symbol, T.untyped], @@ -2478,17 +2786,21 @@ class RubyLsp::Requests::CodeActionResolve < ::RubyLsp::Requests::Request def create_text_edit(range, new_text); end end -# source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#28 +# source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#29 class RubyLsp::Requests::CodeActionResolve::CodeActionError < ::StandardError; end -# source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#30 +# source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#31 class RubyLsp::Requests::CodeActionResolve::Error < ::T::Enum enums do EmptySelection = new InvalidTargetRange = new + UnknownCodeAction = new end end +# source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#27 +RubyLsp::Requests::CodeActionResolve::NEW_METHOD_NAME = T.let(T.unsafe(nil), String) + # source://ruby-lsp/lib/ruby_lsp/requests/code_action_resolve.rb#26 RubyLsp::Requests::CodeActionResolve::NEW_VARIABLE_NAME = T.let(T.unsafe(nil), String) @@ -2508,7 +2820,7 @@ RubyLsp::Requests::CodeActionResolve::NEW_VARIABLE_NAME = T.let(T.unsafe(nil), S # # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#19 class RubyLsp::Requests::CodeActions < ::RubyLsp::Requests::Request - # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#38 + # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#41 sig do params( document: ::RubyLsp::Document, @@ -2518,28 +2830,23 @@ class RubyLsp::Requests::CodeActions < ::RubyLsp::Requests::Request end def initialize(document, range, context); end - # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#47 + # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#50 sig { override.returns(T.nilable(T.all(::Object, T::Array[::LanguageServer::Protocol::Interface::CodeAction]))) } def perform; end - private - - # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#62 - sig do - params( - range: T::Hash[::Symbol, T.untyped], - uri: ::URI::Generic - ).returns(::LanguageServer::Protocol::Interface::CodeAction) - end - def refactor_code_action(range, uri); end - class << self - # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#26 + # source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#29 sig { returns(::LanguageServer::Protocol::Interface::CodeActionOptions) } def provider; end end end +# source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#23 +RubyLsp::Requests::CodeActions::EXTRACT_TO_METHOD_TITLE = T.let(T.unsafe(nil), String) + +# source://ruby-lsp/lib/ruby_lsp/requests/code_actions.rb#22 +RubyLsp::Requests::CodeActions::EXTRACT_TO_VARIABLE_TITLE = T.let(T.unsafe(nil), String) + # ![Code lens demo](../../code_lens.gif) # # The @@ -2577,11 +2884,13 @@ end # suggests possible completions according to what the developer is typing. # # Currently supported targets: +# # - Classes # - Modules # - Constants # - Require paths # - Methods invoked on self only +# - Instance variables # # # Example # @@ -2591,9 +2900,9 @@ end # RubyLsp::Requests:: # --> completion: suggests `Completion`, `Hover`, ... # ``` # -# source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#27 +# source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#29 class RubyLsp::Requests::Completion < ::RubyLsp::Requests::Request - # source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#54 + # source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#56 sig do params( document: ::RubyLsp::Document, @@ -2605,12 +2914,12 @@ class RubyLsp::Requests::Completion < ::RubyLsp::Requests::Request end def initialize(document, global_state, position, typechecker_enabled, dispatcher); end - # source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#99 + # source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#108 sig { override.returns(T::Array[::LanguageServer::Protocol::Interface::CompletionItem]) } def perform; end class << self - # source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#34 + # source://ruby-lsp/lib/ruby_lsp/requests/completion.rb#36 sig { returns(::LanguageServer::Protocol::Interface::CompletionOptions) } def provider; end end @@ -2644,7 +2953,7 @@ class RubyLsp::Requests::CompletionResolve < ::RubyLsp::Requests::Request def initialize(global_state, item); end # source://ruby-lsp/lib/ruby_lsp/requests/completion_resolve.rb#40 - sig { override.returns(::LanguageServer::Protocol::Interface::CompletionItem) } + sig { override.returns(T::Hash[::Symbol, T.untyped]) } def perform; end end @@ -2661,11 +2970,13 @@ RubyLsp::Requests::CompletionResolve::MAX_DOCUMENTATION_ENTRIES = T.let(T.unsafe # definition of the symbol under the cursor. # # Currently supported targets: +# # - Classes # - Modules # - Constants # - Require paths -# - Methods invoked on self only +# - Methods invoked on self only and on receivers where the type is unknown +# - Instance variables # # # Example # @@ -2674,9 +2985,9 @@ RubyLsp::Requests::CompletionResolve::MAX_DOCUMENTATION_ENTRIES = T.let(T.unsafe # Product.new # <- Request go to definition on this class name will take you to its declaration. # ``` # -# source://ruby-lsp/lib/ruby_lsp/requests/definition.rb#27 +# source://ruby-lsp/lib/ruby_lsp/requests/definition.rb#29 class RubyLsp::Requests::Definition < ::RubyLsp::Requests::Request - # source://ruby-lsp/lib/ruby_lsp/requests/definition.rb#40 + # source://ruby-lsp/lib/ruby_lsp/requests/definition.rb#42 sig do params( document: ::RubyLsp::Document, @@ -2688,7 +2999,7 @@ class RubyLsp::Requests::Definition < ::RubyLsp::Requests::Request end def initialize(document, global_state, position, dispatcher, typechecker_enabled); end - # source://ruby-lsp/lib/ruby_lsp/requests/definition.rb#78 + # source://ruby-lsp/lib/ruby_lsp/requests/definition.rb#108 sig { override.returns(T::Array[::LanguageServer::Protocol::Interface::Location]) } def perform; end end @@ -2936,7 +3247,7 @@ class RubyLsp::Requests::Hover < ::RubyLsp::Requests::Request end def initialize(document, global_state, position, dispatcher, typechecker_enabled); end - # source://ruby-lsp/lib/ruby_lsp/requests/hover.rb#74 + # source://ruby-lsp/lib/ruby_lsp/requests/hover.rb#77 sig { override.returns(ResponseType) } def perform; end @@ -3103,6 +3414,12 @@ class RubyLsp::Requests::Request sig { params(location: ::Prism::Location, position: T.untyped).returns(T::Boolean) } def cover?(location, position); end + # Checks if a given location covers the position requested + # + # source://ruby-lsp/lib/ruby_lsp/requests/request.rb#71 + sig { params(location: T.nilable(::Prism::Location), position: T::Hash[::Symbol, T.untyped]).returns(T::Boolean) } + def covers_position?(location, position); end + # Based on a constant node target, a constant path node parent and a position, this method will find the exact # portion of the constant path that matches the requested position, for higher precision in hover and # definition. For example: @@ -3356,6 +3673,14 @@ module RubyLsp::Requests::Support::Common end def create_code_lens(node, title:, command_name:, arguments:, data:); end + # Iterates over each part of a constant path, so that we can easily push response items for each section of the + # name. For example, for `Foo::Bar::Baz`, this method will invoke the block with `Foo`, then `Bar` and finally + # `Baz`. + # + # source://ruby-lsp/lib/ruby_lsp/requests/support/common.rb#181 + sig { params(node: ::Prism::Node, block: T.proc.params(part: ::Prism::Node).void).void } + def each_constant_path_part(node, &block); end + # source://ruby-lsp/lib/ruby_lsp/requests/support/common.rb#135 sig do params( @@ -3366,7 +3691,7 @@ module RubyLsp::Requests::Support::Common end def markdown_from_index_entries(title, entries, max_entries = T.unsafe(nil)); end - # source://ruby-lsp/lib/ruby_lsp/requests/support/common.rb#163 + # source://ruby-lsp/lib/ruby_lsp/requests/support/common.rb#164 sig { params(node: T.any(::Prism::ClassNode, ::Prism::ModuleNode)).returns(T.nilable(::String)) } def namespace_constant_name(node); end @@ -3431,53 +3756,56 @@ class RubyLsp::Requests::Support::RuboCopDiagnostic # TODO: avoid passing document once we have alternative ways to get at # encoding and file source # - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#25 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#35 sig { params(document: ::RubyLsp::Document, offense: ::RuboCop::Cop::Offense, uri: ::URI::Generic).void } def initialize(document, offense, uri); end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#32 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#42 sig { returns(T::Array[::LanguageServer::Protocol::Interface::CodeAction]) } def to_lsp_code_actions; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#42 - sig { returns(::LanguageServer::Protocol::Interface::Diagnostic) } - def to_lsp_diagnostic; end + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#52 + sig { params(config: ::RuboCop::Config).returns(::LanguageServer::Protocol::Interface::Diagnostic) } + def to_lsp_diagnostic(config); end private - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#90 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#107 sig { returns(::LanguageServer::Protocol::Interface::CodeAction) } def autocorrect_action; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#84 - sig { returns(T.nilable(::LanguageServer::Protocol::Interface::CodeDescription)) } - def code_description; end + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#94 + sig { params(config: ::RuboCop::Config).returns(T.nilable(::LanguageServer::Protocol::Interface::CodeDescription)) } + def code_description(config); end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#123 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#140 sig { returns(::LanguageServer::Protocol::Interface::CodeAction) } def disable_line_action; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#165 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#182 sig { params(line: ::String).returns(::Integer) } def length_of_line(line); end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#142 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#159 sig { returns(T::Array[::LanguageServer::Protocol::Interface::TextEdit]) } def line_disable_comment; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#72 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#82 sig { returns(::String) } def message; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#110 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#127 sig { returns(T::Array[::LanguageServer::Protocol::Interface::TextEdit]) } def offense_replacements; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#79 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#89 sig { returns(T.nilable(::Integer)) } def severity; end end +# source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#22 +RubyLsp::Requests::Support::RuboCopDiagnostic::ENHANCED_DOC_URL = T.let(T.unsafe(nil), FalseClass) + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_diagnostic.rb#10 RubyLsp::Requests::Support::RuboCopDiagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash) @@ -3506,11 +3834,15 @@ end # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#45 class RubyLsp::Requests::Support::RuboCopRunner < ::RuboCop::Runner - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#72 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#75 sig { params(args: ::String).void } def initialize(*args); end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#108 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#54 + sig { returns(::RuboCop::Config) } + def config_for_working_directory; end + + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#112 sig { returns(::String) } def formatted_source; end @@ -3518,24 +3850,24 @@ class RubyLsp::Requests::Support::RuboCopRunner < ::RuboCop::Runner sig { returns(T::Array[::RuboCop::Cop::Offense]) } def offenses; end - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#86 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#90 sig { params(path: ::String, contents: ::String).void } def run(path, contents); end private - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#134 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#138 sig { params(_file: ::String, offenses: T::Array[::RuboCop::Cop::Offense]).void } def file_finished(_file, offenses); end class << self - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#116 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#120 sig { params(cop_name: ::String).returns(T.nilable(T.class_of(RuboCop::Cop::Base))) } def find_cop_by_name(cop_name); end private - # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#123 + # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#127 sig { returns(T::Hash[::String, [T.class_of(RuboCop::Cop::Base)]]) } def cop_registry; end end @@ -3544,7 +3876,7 @@ end # source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#48 class RubyLsp::Requests::Support::RuboCopRunner::ConfigurationError < ::StandardError; end -# source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#53 +# source://ruby-lsp/lib/ruby_lsp/requests/support/rubocop_runner.rb#56 RubyLsp::Requests::Support::RuboCopRunner::DEFAULT_ARGS = T.let(T.unsafe(nil), Array) # source://ruby-lsp/lib/ruby_lsp/requests/support/selection_range.rb#7 @@ -3592,7 +3924,7 @@ class RubyLsp::Requests::WorkspaceSymbol < ::RubyLsp::Requests::Request private - # source://ruby-lsp/lib/ruby_lsp/requests/workspace_symbol.rb#70 + # source://ruby-lsp/lib/ruby_lsp/requests/workspace_symbol.rb#71 sig { params(entry: ::RubyIndexer::Entry).returns(T.nilable(::Integer)) } def kind_for_entry(entry); end end @@ -3632,7 +3964,7 @@ class RubyLsp::ResponseBuilders::DocumentSymbol < ::RubyLsp::ResponseBuilders::R # @param symbol [Interface::DocumentSymbol] # @return [void] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def <<(*args, **_arg1, &blk); end # source://ruby-lsp/lib/ruby_lsp/response_builders/document_symbol.rb#47 @@ -3878,11 +4210,11 @@ class RubyLsp::Server < ::RubyLsp::BaseServer private - # source://ruby-lsp/lib/ruby_lsp/server.rb#713 + # source://ruby-lsp/lib/ruby_lsp/server.rb#719 sig { params(id: ::String, title: ::String, percentage: ::Integer).void } def begin_progress(id, title, percentage: T.unsafe(nil)); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#774 + # source://ruby-lsp/lib/ruby_lsp/server.rb#780 sig { void } def check_formatter_is_available; end @@ -3890,15 +4222,15 @@ class RubyLsp::Server < ::RubyLsp::BaseServer sig { params(message: T::Hash[::Symbol, T.untyped]).void } def code_action_resolve(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#756 + # source://ruby-lsp/lib/ruby_lsp/server.rb#762 sig { params(id: ::String).void } def end_progress(id); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#686 + # source://ruby-lsp/lib/ruby_lsp/server.rb#692 sig { params(config_hash: T::Hash[::String, T.untyped]).void } def perform_initial_indexing(config_hash); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#737 + # source://ruby-lsp/lib/ruby_lsp/server.rb#743 sig { params(id: ::String, percentage: ::Integer).void } def progress(id, percentage); end @@ -3914,7 +4246,7 @@ class RubyLsp::Server < ::RubyLsp::BaseServer sig { void } def run_initialized; end - # source://ruby-lsp/lib/ruby_lsp/server.rb#681 + # source://ruby-lsp/lib/ruby_lsp/server.rb#687 sig { override.void } def shutdown; end @@ -3925,22 +4257,22 @@ class RubyLsp::Server < ::RubyLsp::BaseServer # @param message [Hash{Symbol => T.untyped}] # @return [void] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def text_document_code_lens(*args, **_arg1, &blk); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#536 + # source://ruby-lsp/lib/ruby_lsp/server.rb#543 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_completion(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#556 + # source://ruby-lsp/lib/ruby_lsp/server.rb#563 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_completion_item_resolve(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#585 + # source://ruby-lsp/lib/ruby_lsp/server.rb#592 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_definition(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#507 + # source://ruby-lsp/lib/ruby_lsp/server.rb#514 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_diagnostic(message); end @@ -3963,19 +4295,19 @@ class RubyLsp::Server < ::RubyLsp::BaseServer # @param message [Hash{Symbol => T.untyped}] # @return [void] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def text_document_document_link(*args, **_arg1, &blk); end # @param message [Hash{Symbol => T.untyped}] # @return [void] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def text_document_document_symbol(*args, **_arg1, &blk); end # @param message [Hash{Symbol => T.untyped}] # @return [void] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def text_document_folding_range(*args, **_arg1, &blk); end # source://ruby-lsp/lib/ruby_lsp/server.rb#377 @@ -4001,18 +4333,18 @@ class RubyLsp::Server < ::RubyLsp::BaseServer # @param message [Hash{Symbol => T.untyped}] # @return [void] # - # source://sorbet-runtime/0.5.11352lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11406lib/types/private/methods/_methods.rb#257 def text_document_semantic_tokens_full(*args, **_arg1, &blk); end # source://ruby-lsp/lib/ruby_lsp/server.rb#360 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_semantic_tokens_range(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#646 + # source://ruby-lsp/lib/ruby_lsp/server.rb#652 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_show_syntax_tree(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#564 + # source://ruby-lsp/lib/ruby_lsp/server.rb#571 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def text_document_signature_help(message); end @@ -4020,15 +4352,15 @@ class RubyLsp::Server < ::RubyLsp::BaseServer sig { params(document: ::RubyLsp::Document).returns(T::Boolean) } def typechecker_enabled?(document); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#658 + # source://ruby-lsp/lib/ruby_lsp/server.rb#664 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def workspace_dependencies(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#605 + # source://ruby-lsp/lib/ruby_lsp/server.rb#612 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def workspace_did_change_watched_files(message); end - # source://ruby-lsp/lib/ruby_lsp/server.rb#633 + # source://ruby-lsp/lib/ruby_lsp/server.rb#639 sig { params(message: T::Hash[::Symbol, T.untyped]).void } def workspace_symbol(message); end end diff --git a/sorbet/rbi/gems/strscan@3.1.0.rbi b/sorbet/rbi/gems/strscan@3.1.0.rbi new file mode 100644 index 00000000..e74659c9 --- /dev/null +++ b/sorbet/rbi/gems/strscan@3.1.0.rbi @@ -0,0 +1,8 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `strscan` gem. +# Please instead update this file by running `bin/tapioca gem strscan`. + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem diff --git a/sorbet/rbi/gems/webmock@3.23.0.rbi b/sorbet/rbi/gems/webmock@3.23.1.rbi similarity index 100% rename from sorbet/rbi/gems/webmock@3.23.0.rbi rename to sorbet/rbi/gems/webmock@3.23.1.rbi diff --git a/sorbet/rbi/gems/zeitwerk@2.6.13.rbi b/sorbet/rbi/gems/zeitwerk@2.6.14.rbi similarity index 93% rename from sorbet/rbi/gems/zeitwerk@2.6.13.rbi rename to sorbet/rbi/gems/zeitwerk@2.6.14.rbi index 52cdaa7d..8b1b4074 100644 --- a/sorbet/rbi/gems/zeitwerk@2.6.13.rbi +++ b/sorbet/rbi/gems/zeitwerk@2.6.14.rbi @@ -197,7 +197,7 @@ class Zeitwerk::Loader # source://zeitwerk/lib/zeitwerk/loader.rb#77 def __namespace_dirs; end - # source://zeitwerk/lib/zeitwerk/loader.rb#310 + # source://zeitwerk/lib/zeitwerk/loader.rb#344 def __shadowed_file?(file); end # source://zeitwerk/lib/zeitwerk/loader.rb#88 @@ -206,9 +206,15 @@ class Zeitwerk::Loader # source://zeitwerk/lib/zeitwerk/loader.rb#59 def __to_unload; end + # Returns a hash that maps the absolute paths of the managed files and + # directories to their respective expected constant paths. + # + # source://zeitwerk/lib/zeitwerk/loader.rb#237 + def all_expected_cpaths; end + # @raise [Zeitwerk::Error] # - # source://zeitwerk/lib/zeitwerk/loader.rb#234 + # source://zeitwerk/lib/zeitwerk/loader.rb#268 def cpath_expected_at(path); end # Unloads all loaded code, and calls setup again so that the loader is able @@ -246,31 +252,31 @@ class Zeitwerk::Loader # # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader.rb#285 + # source://zeitwerk/lib/zeitwerk/loader.rb#319 def unloadable_cpath?(cpath); end # Returns an array with the constant paths that would be unloaded on reload. # This predicate returns an empty array if reloading is disabled. # - # source://zeitwerk/lib/zeitwerk/loader.rb#293 + # source://zeitwerk/lib/zeitwerk/loader.rb#327 def unloadable_cpaths; end # This is a dangerous method. # - # source://zeitwerk/lib/zeitwerk/loader.rb#301 + # source://zeitwerk/lib/zeitwerk/loader.rb#335 def unregister; end private - # source://zeitwerk/lib/zeitwerk/loader.rb#456 + # source://zeitwerk/lib/zeitwerk/loader.rb#490 def autoload_file(parent, cname, file); end # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader.rb#514 + # source://zeitwerk/lib/zeitwerk/loader.rb#548 def autoload_path_set_by_me_for?(parent, cname); end - # source://zeitwerk/lib/zeitwerk/loader.rb#426 + # source://zeitwerk/lib/zeitwerk/loader.rb#460 def autoload_subdir(parent, cname, subdir); end # We keep track of autoloaded directories to remove them from the registry @@ -293,10 +299,10 @@ class Zeitwerk::Loader # source://zeitwerk/lib/zeitwerk/loader.rb#33 def autoloads; end - # source://zeitwerk/lib/zeitwerk/loader.rb#493 + # source://zeitwerk/lib/zeitwerk/loader.rb#527 def define_autoload(parent, cname, abspath); end - # source://zeitwerk/lib/zeitwerk/loader.rb#410 + # source://zeitwerk/lib/zeitwerk/loader.rb#444 def define_autoloads_for_dir(dir, parent); end # Returns the value of attribute dirs_autoload_monitor. @@ -329,19 +335,19 @@ class Zeitwerk::Loader # `dir` is the directory that would have autovivified a namespace. `file` is # the file where we've found the namespace is explicitly defined. # - # source://zeitwerk/lib/zeitwerk/loader.rb#482 + # source://zeitwerk/lib/zeitwerk/loader.rb#516 def promote_namespace_from_implicit_to_explicit(dir:, file:, parent:, cname:); end - # source://zeitwerk/lib/zeitwerk/loader.rb#528 + # source://zeitwerk/lib/zeitwerk/loader.rb#562 def raise_if_conflicting_directory(dir); end - # source://zeitwerk/lib/zeitwerk/loader.rb#523 + # source://zeitwerk/lib/zeitwerk/loader.rb#557 def register_explicit_namespace(cpath); end - # source://zeitwerk/lib/zeitwerk/loader.rb#552 + # source://zeitwerk/lib/zeitwerk/loader.rb#586 def run_on_unload_callbacks(cpath, value, abspath); end - # source://zeitwerk/lib/zeitwerk/loader.rb#310 + # source://zeitwerk/lib/zeitwerk/loader.rb#344 def shadowed_file?(file); end # A shadowed file is a file managed by this loader that is ignored when @@ -369,41 +375,41 @@ class Zeitwerk::Loader # source://zeitwerk/lib/zeitwerk/loader.rb#59 def to_unload; end - # source://zeitwerk/lib/zeitwerk/loader.rb#559 + # source://zeitwerk/lib/zeitwerk/loader.rb#593 def unload_autoload(parent, cname); end - # source://zeitwerk/lib/zeitwerk/loader.rb#565 + # source://zeitwerk/lib/zeitwerk/loader.rb#599 def unload_cref(parent, cname); end class << self # Returns an array with the absolute paths of the root directories of all # registered loaders. This is a read-only collection. # - # source://zeitwerk/lib/zeitwerk/loader.rb#404 + # source://zeitwerk/lib/zeitwerk/loader.rb#438 def all_dirs; end # Returns the value of attribute default_logger. # - # source://zeitwerk/lib/zeitwerk/loader.rb#320 + # source://zeitwerk/lib/zeitwerk/loader.rb#354 def default_logger; end # Sets the attribute default_logger # # @param value the value to set the attribute default_logger to. # - # source://zeitwerk/lib/zeitwerk/loader.rb#320 + # source://zeitwerk/lib/zeitwerk/loader.rb#354 def default_logger=(_arg0); end # Broadcasts `eager_load` to all loaders. Those that have not been setup # are skipped. # - # source://zeitwerk/lib/zeitwerk/loader.rb#376 + # source://zeitwerk/lib/zeitwerk/loader.rb#410 def eager_load_all; end # Broadcasts `eager_load_namespace` to all loaders. Those that have not # been setup are skipped. # - # source://zeitwerk/lib/zeitwerk/loader.rb#390 + # source://zeitwerk/lib/zeitwerk/loader.rb#424 def eager_load_namespace(mod); end # This is a shortcut for @@ -421,7 +427,7 @@ class Zeitwerk::Loader # This method returns a subclass of Zeitwerk::Loader, but the exact type # is private, client code can only rely on the interface. # - # source://zeitwerk/lib/zeitwerk/loader.rb#338 + # source://zeitwerk/lib/zeitwerk/loader.rb#372 def for_gem(warn_on_extra_files: T.unsafe(nil)); end # This is a shortcut for @@ -439,7 +445,7 @@ class Zeitwerk::Loader # This method returns a subclass of Zeitwerk::Loader, but the exact type # is private, client code can only rely on the interface. # - # source://zeitwerk/lib/zeitwerk/loader.rb#359 + # source://zeitwerk/lib/zeitwerk/loader.rb#393 def for_gem_extension(namespace); end end end @@ -781,43 +787,43 @@ module Zeitwerk::Loader::Helpers # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#128 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#132 def cdef?(parent, cname); end # @raise [NameError] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#134 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#138 def cget(parent, cname); end # @raise [Zeitwerk::NameError] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#149 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#153 def cname_for(basename, abspath); end # Symbol#name was introduced in Ruby 3.0. It returns always the same # frozen object, so we may save a few string allocations. # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#118 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#122 def cpath(parent, cname); end # @raise [NameError] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#140 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#144 def crem(parent, cname); end # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#67 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#71 def dir?(path); end # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#45 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#47 def has_at_least_one_ruby_file?(dir); end # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#72 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#76 def hidden?(basename); end # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#7 @@ -828,17 +834,17 @@ module Zeitwerk::Loader::Helpers # @return [Boolean] # - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#62 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#66 def ruby?(path); end - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#109 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#113 def strict_autoload_path(parent, cname); end - # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#77 + # source://zeitwerk/lib/zeitwerk/loader/helpers.rb#81 def walk_up(abspath); end end -# source://zeitwerk/lib/zeitwerk/loader/helpers.rb#144 +# source://zeitwerk/lib/zeitwerk/loader/helpers.rb#148 module Zeitwerk::Loader::Helpers::CNAME_VALIDATOR; end # source://zeitwerk/lib/zeitwerk/loader.rb#21 diff --git a/test/dummy/app/models/country.rb b/test/dummy/app/models/country.rb new file mode 100644 index 00000000..8a28ba43 --- /dev/null +++ b/test/dummy/app/models/country.rb @@ -0,0 +1,4 @@ +# frozen_string_literal: true + +class Country < ApplicationRecord +end diff --git a/test/dummy/app/models/label.rb b/test/dummy/app/models/label.rb new file mode 100644 index 00000000..777eb20c --- /dev/null +++ b/test/dummy/app/models/label.rb @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +class Label < ApplicationRecord + has_and_belongs_to_many :profiles +end diff --git a/test/dummy/app/models/membership.rb b/test/dummy/app/models/membership.rb new file mode 100644 index 00000000..086a3eb8 --- /dev/null +++ b/test/dummy/app/models/membership.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class Membership < ApplicationRecord + belongs_to :user + belongs_to :organization +end diff --git a/test/dummy/app/models/organization.rb b/test/dummy/app/models/organization.rb new file mode 100644 index 00000000..ec131d3e --- /dev/null +++ b/test/dummy/app/models/organization.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class Organization < ApplicationRecord + has_many :memberships + has_many :users, through: :memberships +end diff --git a/test/dummy/app/models/profile.rb b/test/dummy/app/models/profile.rb new file mode 100644 index 00000000..d33178fb --- /dev/null +++ b/test/dummy/app/models/profile.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class Profile < ApplicationRecord + belongs_to :user + has_and_belongs_to_many :labels +end diff --git a/test/dummy/app/models/user.rb b/test/dummy/app/models/user.rb index ecb29e4d..f3b57411 100644 --- a/test/dummy/app/models/user.rb +++ b/test/dummy/app/models/user.rb @@ -2,9 +2,10 @@ class User < ApplicationRecord before_create :foo, -> () {} - validates :name, presence: true + validates :first_name, presence: true has_one :profile scope :adult, -> { where(age: 18..) } + has_one :location, class_name: "Country" attr_readonly :last_name diff --git a/test/dummy/db/migrate/20240503152928_create_organizations.rb b/test/dummy/db/migrate/20240503152928_create_organizations.rb new file mode 100644 index 00000000..0b3df2f9 --- /dev/null +++ b/test/dummy/db/migrate/20240503152928_create_organizations.rb @@ -0,0 +1,9 @@ +class CreateOrganizations < ActiveRecord::Migration[7.1] + def change + create_table :organizations do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/test/dummy/db/migrate/20240503153021_create_memberships.rb b/test/dummy/db/migrate/20240503153021_create_memberships.rb new file mode 100644 index 00000000..6bc537a4 --- /dev/null +++ b/test/dummy/db/migrate/20240503153021_create_memberships.rb @@ -0,0 +1,10 @@ +class CreateMemberships < ActiveRecord::Migration[7.1] + def change + create_table :memberships do |t| + t.references :user, null: false, foreign_key: true + t.references :organization, null: false, foreign_key: true + + t.timestamps + end + end +end diff --git a/test/dummy/db/migrate/20240521183115_create_countries.rb b/test/dummy/db/migrate/20240521183115_create_countries.rb new file mode 100644 index 00000000..5b5485a6 --- /dev/null +++ b/test/dummy/db/migrate/20240521183115_create_countries.rb @@ -0,0 +1,9 @@ +class CreateCountries < ActiveRecord::Migration[7.1] + def change + create_table :countries do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/test/dummy/db/migrate/20240521183200_add_country_to_user.rb b/test/dummy/db/migrate/20240521183200_add_country_to_user.rb new file mode 100644 index 00000000..202a62d7 --- /dev/null +++ b/test/dummy/db/migrate/20240521183200_add_country_to_user.rb @@ -0,0 +1,5 @@ +class AddCountryToUser < ActiveRecord::Migration[7.1] + def change + add_reference :users, :country, null: false, foreign_key: true + end +end diff --git a/test/dummy/db/schema.rb b/test/dummy/db/schema.rb index 2b97861d..303d3d4a 100644 --- a/test/dummy/db/schema.rb +++ b/test/dummy/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.1].define(version: 2024_04_03_145625) do +ActiveRecord::Schema[7.1].define(version: 2024_05_21_183200) do create_table "composite_primary_keys", primary_key: ["order_id", "product_id"], force: :cascade do |t| t.integer "order_id" t.integer "product_id" @@ -19,6 +19,27 @@ t.datetime "updated_at", null: false end + create_table "countries", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "memberships", force: :cascade do |t| + t.integer "user_id", null: false + t.integer "organization_id", null: false + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["organization_id"], name: "index_memberships_on_organization_id" + t.index ["user_id"], name: "index_memberships_on_user_id" + end + + create_table "organizations", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + create_table "posts", force: :cascade do |t| t.string "title" t.text "body" @@ -32,6 +53,11 @@ t.integer "age" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.integer "country_id", null: false + t.index ["country_id"], name: "index_users_on_country_id" end + add_foreign_key "memberships", "organizations" + add_foreign_key "memberships", "users" + add_foreign_key "users", "countries" end diff --git a/test/ruby_lsp_rails/code_lens_test.rb b/test/ruby_lsp_rails/code_lens_test.rb index c495dba7..abf94f49 100644 --- a/test/ruby_lsp_rails/code_lens_test.rb +++ b/test/ruby_lsp_rails/code_lens_test.rb @@ -36,7 +36,7 @@ class Test < ActiveSupport::TestCase # The last 3 are for the test declaration. assert_equal(6, response.size) assert_match("Run", response[3].command.title) - assert_equal("bin/rails test /fake.rb:2", response[3].command.arguments[2]) + assert_match(%r{(ruby )?bin/rails test /fake\.rb:2}, response[3].command.arguments[2]) assert_match("Run In Terminal", response[4].command.title) assert_match("Debug", response[5].command.title) end @@ -54,7 +54,7 @@ class Test < ActiveSupport::TestCase # The last 3 are for the test declaration. assert_equal(6, response.size) assert_match("Run", response[3].command.title) - assert_equal("bin/rails test /fake.rb:2", response[3].command.arguments[2]) + assert_match(%r{(ruby )?bin/rails test /fake\.rb:2}, response[3].command.arguments[2]) assert_match("Run In Terminal", response[4].command.title) assert_match("Debug", response[5].command.title) end @@ -73,7 +73,7 @@ class Test < ActiveSupport::TestCase # The last 3 are for the test declaration. assert_equal(6, response.size) assert_match("Run", response[3].command.title) - assert_equal("bin/rails test /fake.rb:2", response[3].command.arguments[2]) + assert_match(%r{(ruby )?bin/rails test /fake\.rb:2}, response[3].command.arguments[2]) assert_match("Run In Terminal", response[4].command.title) assert_match("Debug", response[5].command.title) end @@ -144,7 +144,7 @@ def test_example # The last 3 are for the test class. assert_equal(6, response.size) assert_match("Run", response[3].command.title) - assert_equal("bin/rails test /fake.rb:2", response[3].command.arguments[2]) + assert_match(%r{(ruby )?bin/rails test /fake\.rb:2}, response[3].command.arguments[2]) assert_match("Run In Terminal", response[4].command.title) assert_match("Debug", response[5].command.title) end diff --git a/test/ruby_lsp_rails/definition_test.rb b/test/ruby_lsp_rails/definition_test.rb index d3261e3e..085e24b5 100644 --- a/test/ruby_lsp_rails/definition_test.rb +++ b/test/ruby_lsp_rails/definition_test.rb @@ -7,7 +7,7 @@ module RubyLsp module Rails class DefinitionTest < ActiveSupport::TestCase test "recognizes model callback with multiple symbol arguments" do - response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 10 }) + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 18 }) # typed: false class TestModel @@ -33,8 +33,103 @@ def baz; end assert_equal(14, response[1].range.end.character) end + test "recognizes has_many model associations" do + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 14 }) + # typed: false + + class Organization < ActiveRecord::Base + has_many :memberships + end + RUBY + + assert_equal(1, response.size) + + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "app", "models", "membership.rb")).to_s, + response[0].uri, + ) + assert_equal(2, response[0].range.start.line) + assert_equal(2, response[0].range.end.line) + end + + test "recognizes belongs_to model associations" do + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 14 }) + # typed: false + + class Membership < ActiveRecord::Base + belongs_to :organization + end + RUBY + + assert_equal(1, response.size) + + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "app", "models", "organization.rb")).to_s, + response[0].uri, + ) + assert_equal(2, response[0].range.start.line) + assert_equal(2, response[0].range.end.line) + end + + test "recognizes has_one model associations" do + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 11 }) + # typed: false + + class User < ActiveRecord::Base + has_one :profile + end + RUBY + + assert_equal(1, response.size) + + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "app", "models", "profile.rb")).to_s, + response[0].uri, + ) + assert_equal(2, response[0].range.start.line) + assert_equal(2, response[0].range.end.line) + end + + test "recognizes has_and_belongs_to_many model associations" do + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 27 }) + # typed: false + + class Profile < ActiveRecord::Base + has_and_belongs_to_many :labels + end + RUBY + + assert_equal(1, response.size) + + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "app", "models", "label.rb")).to_s, + response[0].uri, + ) + assert_equal(2, response[0].range.start.line) + assert_equal(2, response[0].range.end.line) + end + + test "handles class_name argument for associations" do + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 11 }) + # typed: false + + class User < ActiveRecord::Base + has_one :location, class_name: "Country" + end + RUBY + + assert_equal(1, response.size) + + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "app", "models", "country.rb")).to_s, + response[0].uri, + ) + assert_equal(2, response[0].range.start.line) + assert_equal(2, response[0].range.end.line) + end + test "recognizes controller callback with string argument" do - response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 10 }) + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 17 }) # typed: false class TestController @@ -54,7 +149,7 @@ def foo; end end test "recognizes job callback with string and symbol arguments" do - response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 10 }) + response = generate_definitions_for_source(<<~RUBY, { line: 3, character: 18 }) # typed: false class TestJob @@ -87,7 +182,10 @@ def baz; end assert_equal(1, response.size) dummy_root = File.expand_path("../dummy", __dir__) - assert_equal("file://#{dummy_root}/config/routes.rb", response[0].uri) + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "config", "routes.rb")).to_s, + response[0].uri, + ) assert_equal(3, response[0].range.start.line) assert_equal(3, response[0].range.end.line) end @@ -107,7 +205,10 @@ def baz; end assert_equal(1, response.size) dummy_root = File.expand_path("../dummy", __dir__) - assert_equal("file://#{dummy_root}/config/routes.rb", response[0].uri) + assert_equal( + URI::Generic.from_path(path: File.join(dummy_root, "config", "routes.rb")).to_s, + response[0].uri, + ) assert_equal(4, response[0].range.start.line) assert_equal(4, response[0].range.end.line) end @@ -132,7 +233,9 @@ def generate_definitions_for_source(source, position) params: { textDocument: { uri: uri }, position: position }, ) - server.pop_response.response + result = server.pop_response + assert_instance_of(RubyLsp::Result, result) + result.response end end end diff --git a/test/ruby_lsp_rails/hover_test.rb b/test/ruby_lsp_rails/hover_test.rb index b8060e41..ffd747fe 100644 --- a/test/ruby_lsp_rails/hover_test.rb +++ b/test/ruby_lsp_rails/hover_test.rb @@ -37,7 +37,7 @@ class User < ApplicationRecord ``` **Definitions**: [fake.rb](file:///fake.rb#L1,1-2,4) - [Schema](file://#{dummy_root}/db/schema.rb) + [Schema](#{URI::Generic.from_path(path: dummy_root + "/db/schema.rb")}) **id**: integer (PK) @@ -65,7 +65,7 @@ class Post < ApplicationRecord RUBY assert_equal(<<~CONTENT.chomp, response.contents.value) - [Schema](file://#{dummy_root}/db/schema.rb) + [Schema](#{URI::Generic.from_path(path: dummy_root + "/db/schema.rb")}) **id**: integer (PK) @@ -93,7 +93,7 @@ class CompositePrimaryKey < ApplicationRecord ``` **Definitions**: [fake.rb](file:///fake.rb#L1,1-2,4) - [Schema](file://#{dummy_root}/db/schema.rb) + [Schema](#{URI::Generic.from_path(path: dummy_root + "/db/schema.rb")}) **order_id**: integer (PK) @@ -108,6 +108,92 @@ class CompositePrimaryKey < ApplicationRecord CONTENT end +<<<<<<< HEAD +||||||| 2a30aca + test "handles `db/structure.sql` instead of `db/schema.rb`" do + expected_response = { + schema_file: "#{dummy_root}/db/structure.sql", + columns: [], + primary_keys: [], + } + + RunnerClient.any_instance.stubs(model: expected_response) + + response = hover_on_source(<<~RUBY, { line: 3, character: 0 }) + class User < ApplicationRecord + end + + User + RUBY + + assert_includes( + response.contents.value, + "[Schema](file://#{dummy_root}/db/structure.sql)", + ) + end + + test "handles neither `db/structure.sql` nor `db/schema.rb` being present" do + expected_response = { + schema_file: nil, + columns: [], + primary_keys: [], + } + + RunnerClient.any_instance.stubs(model: expected_response) + + response = hover_on_source(<<~RUBY, { line: 3, character: 0 }) + class User < ApplicationRecord + end + + User + RUBY + + refute_match(/Schema/, response.contents.value) + end + +======= + test "handles `db/structure.sql` instead of `db/schema.rb`" do + expected_response = { + schema_file: "#{dummy_root}/db/structure.sql", + columns: [], + primary_keys: [], + } + + RunnerClient.any_instance.stubs(model: expected_response) + + response = hover_on_source(<<~RUBY, { line: 3, character: 0 }) + class User < ApplicationRecord + end + + User + RUBY + + assert_includes( + response.contents.value, + "[Schema](#{URI::Generic.from_path(path: dummy_root + "/db/structure.sql")})", + ) + end + + test "handles neither `db/structure.sql` nor `db/schema.rb` being present" do + expected_response = { + schema_file: nil, + columns: [], + primary_keys: [], + } + + RunnerClient.any_instance.stubs(model: expected_response) + + response = hover_on_source(<<~RUBY, { line: 3, character: 0 }) + class User < ApplicationRecord + end + + User + RUBY + + refute_match(/Schema/, response.contents.value) + end + +>>>>>>> main test "shows documentation for routes DSLs" do value = hover_on_source("root 'projects#index'", { line: 0, character: 0 }).contents.value diff --git a/test/ruby_lsp_rails/runner_client_test.rb b/test/ruby_lsp_rails/runner_client_test.rb index 87fd8a11..3fd910b6 100644 --- a/test/ruby_lsp_rails/runner_client_test.rb +++ b/test/ruby_lsp_rails/runner_client_test.rb @@ -8,14 +8,15 @@ module RubyLsp module Rails class RunnerClientTest < ActiveSupport::TestCase setup do - capture_subprocess_io do - @client = T.let(RunnerClient.new, RunnerClient) - end + @client = T.let(RunnerClient.new, RunnerClient) end teardown do - capture_subprocess_io { @client.shutdown } - assert_predicate @client, :stopped? + @client.shutdown + + # On Windows, the server process sometimes takes a lot longer to shutdown and may end up getting force killed, + # which makes this assertion flaky + assert_predicate(@client, :stopped?) unless Gem.win_platform? end # These are integration tests which start the server. For the more fine-grained tests, see `server_test.rb`. @@ -29,6 +30,7 @@ class RunnerClientTest < ActiveSupport::TestCase ["age", "integer"], ["created_at", "datetime"], ["updated_at", "datetime"], + ["country_id", "integer"], ] response = T.must(@client.model("User")) assert_equal(columns, response.fetch(:columns)) @@ -54,16 +56,10 @@ class RunnerClientTest < ActiveSupport::TestCase end test "failing to spawn server creates a null client" do - FileUtils.mv("bin/rails", "bin/rails_backup") - File.open("bin/rails", "w") do |f| - f.write("foo") - end - File.chmod(0o755, "bin/rails") - - # The error message is slightly different on Ubuntu, so we need to allow for that + FileUtils.mv("test/dummy/config/application.rb", "test/dummy/config/application.rb.bak") assert_output( "", - %r{Ruby LSP Rails failed to initialize server: bin/rails: (line )?1: foo:( command)? not found}, + /Ruby LSP Rails failed to initialize server/, ) do client = RunnerClient.create_client @@ -72,7 +68,7 @@ class RunnerClientTest < ActiveSupport::TestCase assert_predicate(client, :stopped?) end ensure - FileUtils.mv("bin/rails_backup", "bin/rails") + FileUtils.mv("test/dummy/config/application.rb.bak", "test/dummy/config/application.rb") end test "is resilient to extra output being printed during boot" do diff --git a/test/ruby_lsp_rails/server_test.rb b/test/ruby_lsp_rails/server_test.rb index 4e7abb54..9d85fb39 100644 --- a/test/ruby_lsp_rails/server_test.rb +++ b/test/ruby_lsp_rails/server_test.rb @@ -24,6 +24,11 @@ class ServerTest < ActiveSupport::TestCase assert_nil(response.fetch(:result)) end + test "returns nil if constant is not a class" do + response = @server.execute("model", { name: "RUBY_VERSION" }) + assert_nil(response.fetch(:result)) + end + test "doesn't fail if the class overrides `<`" do class TestClassWithOverwrittenLessThan class << self @@ -46,6 +51,67 @@ def <(other) ActiveRecord::Tasks::DatabaseTasks.send(:alias_method, :schema_dump_path, :old_schema_dump_path) end + test "resolve association returns the location of the target class of a has_many association" do + response = @server.execute( + "association_target_location", + { model_name: "Organization", association_name: :memberships }, + ) + location = response[:result][:location] + assert_match %r{test/dummy/app/models/membership.rb:3$}, location + end + + test "resolve association returns the location of the target class of a belongs_to association" do + response = @server.execute( + "association_target_location", + { model_name: "Membership", association_name: :organization }, + ) + location = response[:result][:location] + assert_match %r{test/dummy/app/models/organization.rb:3$}, location + end + + test "resolve association returns the location of the target class of a has_one association" do + response = @server.execute( + "association_target_location", + { model_name: "User", association_name: :profile }, + ) + location = response[:result][:location] + assert_match %r{test/dummy/app/models/profile.rb:3$}, location + end + + test "resolve association returns the location of the target class of a has_and_belongs_to_many association" do + response = @server.execute( + "association_target_location", + { model_name: "Profile", association_name: :labels }, + ) + location = response[:result][:location] + assert_match %r{test/dummy/app/models/label.rb:3$}, location + end + + test "resolve association handles invalid model name" do + response = @server.execute( + "association_target_location", + { model_name: "NotHere", association_name: :labels }, + ) + assert_nil(response.fetch(:result)) + end + + test "resolve association handles invalid association name" do + response = @server.execute( + "association_target_location", + { model_name: "Membership", association_name: :labels }, + ) + assert_nil(response.fetch(:result)) + end + + test "resolve association handles class_name option" do + response = @server.execute( + "association_target_location", + { model_name: "User", association_name: :location }, + ) + location = response[:result][:location] + assert_match %r{test/dummy/app/models/country.rb:3$}, location + end + test "route location returns the location for a valid route" do response = @server.execute("route_location", { name: "user_path" }) location = response[:result][:location] diff --git a/test/ruby_lsp_rails/support/location_builder_test.rb b/test/ruby_lsp_rails/support/location_builder_test.rb new file mode 100644 index 00000000..4e3f3e25 --- /dev/null +++ b/test/ruby_lsp_rails/support/location_builder_test.rb @@ -0,0 +1,24 @@ +# typed: true +# frozen_string_literal: true + +require "test_helper" + +module RubyLsp + module Rails + module Support + class LocationBuilderTest < ActiveSupport::TestCase + test "line_location_from_s raises argument error if invalid string given" do + assert_raises(ArgumentError) { LocationBuilder.line_location_from_s("banana") } + end + + test "line_location_from_s returns location based on location string" do + location = LocationBuilder.line_location_from_s("/path/to/file.rb:3") + + assert_equal("file:///path/to/file.rb", location.uri) + assert_equal(2, location.range.start.line) + assert_equal(2, location.range.end.line) + end + end + end + end +end