sorbet-rails 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +6 -1
- data/.travis.yml +1 -1
- data/CONTRIBUTING.md +21 -12
- data/Rakefile +81 -0
- data/lib/sorbet-rails/gem_plugins/kaminari_plugin.rb +21 -0
- data/lib/sorbet-rails/tasks/rails_rbi.rake +10 -6
- data/sorbet-rails.gemspec +1 -1
- data/spec/bin/run_spec.sh +2 -2
- data/spec/generators/rails-template.rb +268 -0
- data/spec/{support/rails_shared → generators}/sorbet_test_cases.rb +0 -0
- data/spec/helper_rbi_formatter_spec.rb +1 -1
- data/spec/support/v4.2/Gemfile +3 -14
- data/spec/support/v4.2/Gemfile.lock +8 -23
- data/spec/support/v4.2/app/controllers/application_controller.rb +1 -1
- data/spec/support/v4.2/app/helpers/application_helper.rb +3 -0
- data/spec/support/v4.2/app/helpers/bar_helper.rb +3 -0
- data/spec/support/v4.2/app/helpers/baz_helper.rb +3 -0
- data/spec/support/v4.2/app/helpers/foo_helper.rb +3 -0
- data/spec/support/{rails_shared/app/controllers/concerns → v4.2/app/models}/.keep +0 -0
- data/spec/support/v4.2/app/models/application_record.rb +5 -0
- data/spec/support/{v5.0/test/controllers → v4.2/app/models/concerns}/.keep +0 -0
- data/spec/support/v4.2/app/models/concerns/mythical.rb +11 -0
- data/spec/support/v4.2/app/models/potion.rb +5 -0
- data/spec/support/v4.2/app/models/spell_book.rb +5 -0
- data/spec/support/v4.2/app/models/wand.rb +17 -0
- data/spec/support/v4.2/app/models/wizard.rb +14 -0
- data/spec/support/v4.2/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v4.2/config/routes.rb +55 -2
- data/spec/support/v4.2/db/migrate/{20190620001234_create_wizards.rb → 20190620000001_create_wizards.rb} +0 -0
- data/spec/support/v4.2/db/migrate/{20190620003037_create_wands.rb → 20190620000002_create_wands.rb} +0 -0
- data/spec/support/v4.2/db/migrate/{20190620003739_create_spell_books.rb → 20190620000003_create_spell_books.rb} +0 -0
- data/spec/support/{rails_shared/db/migrate/20190622000000_add_more_column_types_to_wands.rb → v4.2/db/migrate/20190620000004_add_more_column_types_to_wands.rb} +4 -5
- data/spec/support/v4.2/db/schema.rb +1 -1
- data/spec/support/v4.2/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionpack.rbi +277 -279
- data/spec/support/v4.2/sorbet/rbi/gems/actionview.rbi +18 -18
- data/spec/support/v4.2/sorbet/rbi/gems/activemodel.rbi +46 -46
- data/spec/support/v4.2/sorbet/rbi/gems/activerecord.rbi +413 -410
- data/spec/support/v4.2/sorbet/rbi/gems/activesupport.rbi +58 -58
- data/spec/support/v4.2/sorbet/rbi/gems/byebug.rbi +22 -22
- data/spec/support/v4.2/sorbet/rbi/gems/mail.rbi +2 -2
- data/spec/support/v4.2/sorbet/rbi/gems/mini_mime.rbi +8 -2
- data/spec/support/v4.2/sorbet/rbi/gems/parlour.rbi +214 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +3 -2
- data/spec/support/v4.2/sorbet/rbi/gems/railties.rbi +0 -6
- data/spec/support/v4.2/sorbet/rbi/gems/thor.rbi +2 -2
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +457 -2
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1229 -17
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +360 -9
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +32 -4
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +14 -14
- data/spec/support/v4.2/sorbet/rbi/todo.rbi +59 -1
- data/spec/support/v4.2/sorbet_test_cases.rb +123 -0
- data/spec/support/v4.2/typed-override.yaml +2 -0
- data/spec/support/v5.0/Gemfile +6 -19
- data/spec/support/v5.0/Gemfile.lock +12 -9
- data/spec/support/v5.0/app/assets/config/manifest.js +2 -0
- data/spec/support/v5.0/{test/fixtures → app/assets/images}/.keep +0 -0
- data/spec/support/v5.0/app/assets/stylesheets/application.css +15 -0
- data/spec/support/v5.0/app/controllers/application_controller.rb +4 -0
- data/spec/support/v5.0/{test/fixtures/files → app/controllers/concerns}/.keep +0 -0
- data/spec/support/v5.0/app/helpers/application_helper.rb +3 -0
- data/spec/support/v5.0/app/helpers/bar_helper.rb +3 -0
- data/spec/support/v5.0/app/helpers/baz_helper.rb +3 -0
- data/spec/support/v5.0/app/helpers/foo_helper.rb +3 -0
- data/spec/support/v5.0/app/models/application_record.rb +5 -0
- data/spec/support/v5.0/{test/integration → app/models/concerns}/.keep +0 -0
- data/spec/support/v5.0/app/models/concerns/mythical.rb +11 -0
- data/spec/support/v5.0/app/models/potion.rb +5 -0
- data/spec/support/v5.0/app/models/spell_book.rb +5 -0
- data/spec/support/v5.0/app/models/wand.rb +17 -0
- data/spec/support/v5.0/app/models/wizard.rb +14 -0
- data/spec/support/v5.0/app/views/layouts/application.html.erb +13 -0
- data/spec/support/v5.0/config/application.rb +2 -7
- data/spec/support/v5.0/config/environments/production.rb +0 -4
- data/spec/support/v5.0/config/initializers/cookies_serializer.rb +6 -0
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +8 -0
- data/spec/support/v5.0/config/initializers/session_store.rb +4 -0
- data/spec/support/v5.0/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v5.0/config/routes.rb +2 -2
- data/spec/support/{rails_shared/db/migrate/20190620001234_create_wizards.rb → v5.0/db/migrate/20190620000001_create_wizards.rb} +2 -1
- data/spec/support/{rails_shared/db/migrate/20190620003037_create_wands.rb → v5.0/db/migrate/20190620000002_create_wands.rb} +2 -1
- data/spec/support/{rails_shared/db/migrate/20190620003739_create_spell_books.rb → v5.0/db/migrate/20190620000003_create_spell_books.rb} +2 -1
- data/spec/support/v5.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +16 -0
- data/spec/support/v5.0/db/schema.rb +1 -1
- data/spec/support/v5.0/{test/mailers → lib/assets}/.keep +0 -0
- data/spec/support/v5.0/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionmailer.rbi +2 -50
- data/spec/support/v5.0/sorbet/rbi/gems/actionpack.rbi +533 -696
- data/spec/support/v5.0/sorbet/rbi/gems/actionview.rbi +56 -57
- data/spec/support/v5.0/sorbet/rbi/gems/activejob.rbi +0 -22
- data/spec/support/v5.0/sorbet/rbi/gems/activemodel.rbi +75 -75
- data/spec/support/v5.0/sorbet/rbi/gems/activerecord.rbi +644 -1020
- data/spec/support/v5.0/sorbet/rbi/gems/activesupport.rbi +81 -216
- data/spec/support/v5.0/sorbet/rbi/gems/arel.rbi +6 -6
- data/spec/support/v5.0/sorbet/rbi/gems/byebug.rbi +22 -22
- data/spec/support/v5.0/sorbet/rbi/gems/jbuilder.rbi +99 -0
- data/spec/support/v5.0/sorbet/rbi/gems/mail.rbi +2 -2
- data/spec/support/v5.0/sorbet/rbi/gems/mini_mime.rbi +8 -2
- data/spec/support/v5.0/sorbet/rbi/gems/nokogiri.rbi +6 -6
- data/spec/support/v5.0/sorbet/rbi/gems/parlour.rbi +214 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rack.rbi +53 -98
- data/spec/support/v5.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +3 -2
- data/spec/support/v5.0/sorbet/rbi/gems/railties.rbi +0 -210
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +457 -2
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1229 -17
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +360 -9
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +32 -4
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +14 -14
- data/spec/support/v5.0/sorbet/rbi/todo.rbi +62 -4
- data/spec/support/v5.0/sorbet_test_cases.rb +123 -0
- data/spec/support/v5.0/typed-override.yaml +2 -0
- data/spec/support/v5.0/{test/models → vendor/assets/stylesheets}/.keep +0 -0
- data/spec/support/v5.1/.gitignore +23 -0
- data/spec/support/v5.1/Gemfile +9 -25
- data/spec/support/v5.1/Gemfile.lock +22 -11
- data/spec/support/v5.1/app/assets/config/manifest.js +2 -0
- data/spec/support/v5.1/{test/controllers → app/assets/images}/.keep +0 -0
- data/spec/support/v5.1/app/assets/stylesheets/application.css +15 -0
- data/spec/support/v5.1/app/controllers/application_controller.rb +4 -0
- data/spec/support/v5.1/{test/fixtures → app/controllers/concerns}/.keep +0 -0
- data/spec/support/v5.1/app/helpers/application_helper.rb +3 -0
- data/spec/support/v5.1/app/helpers/bar_helper.rb +3 -0
- data/spec/support/v5.1/app/helpers/baz_helper.rb +3 -0
- data/spec/support/v5.1/app/helpers/foo_helper.rb +3 -0
- data/spec/support/v5.1/app/models/application_record.rb +5 -0
- data/spec/support/v5.1/{test/fixtures/files → app/models/concerns}/.keep +0 -0
- data/spec/support/v5.1/app/models/concerns/mythical.rb +11 -0
- data/spec/support/v5.1/app/models/potion.rb +5 -0
- data/spec/support/v5.1/app/models/spell_book.rb +5 -0
- data/spec/support/v5.1/app/models/wand.rb +17 -0
- data/spec/support/v5.1/app/models/wizard.rb +14 -0
- data/spec/support/v5.1/app/views/layouts/application.html.erb +13 -0
- data/spec/support/v5.1/bin/setup +3 -0
- data/spec/support/v5.1/bin/yarn +11 -0
- data/spec/support/v5.1/config/application.rb +5 -7
- data/spec/support/v5.1/config/environments/production.rb +1 -5
- data/spec/support/v5.1/config/initializers/cookies_serializer.rb +6 -0
- data/spec/support/v5.1/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v5.1/config/routes.rb +5 -0
- data/spec/support/v5.1/db/migrate/20190620000001_create_wizards.rb +13 -0
- data/spec/support/v5.1/db/migrate/20190620000002_create_wands.rb +12 -0
- data/spec/support/v5.1/db/migrate/20190620000003_create_spell_books.rb +9 -0
- data/spec/support/v5.1/db/migrate/20190620000004_add_more_column_types_to_wands.rb +16 -0
- data/spec/support/v5.1/db/schema.rb +1 -1
- data/spec/support/v5.1/{test/integration → lib/assets}/.keep +0 -0
- data/spec/support/v5.1/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v5.1/package.json +5 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionmailer.rbi +2 -49
- data/spec/support/v5.1/sorbet/rbi/gems/actionpack.rbi +588 -732
- data/spec/support/v5.1/sorbet/rbi/gems/actionview.rbi +123 -124
- data/spec/support/v5.1/sorbet/rbi/gems/activejob.rbi +0 -35
- data/spec/support/v5.1/sorbet/rbi/gems/activemodel.rbi +68 -68
- data/spec/support/v5.1/sorbet/rbi/gems/activerecord.rbi +501 -651
- data/spec/support/v5.1/sorbet/rbi/gems/activesupport.rbi +80 -218
- data/spec/support/v5.1/sorbet/rbi/gems/bindex.rbi +36 -0
- data/spec/support/v5.1/sorbet/rbi/gems/byebug.rbi +22 -22
- data/spec/support/v5.1/sorbet/rbi/gems/jbuilder.rbi +99 -0
- data/spec/support/v5.1/sorbet/rbi/gems/mail.rbi +2 -2
- data/spec/support/v5.1/sorbet/rbi/gems/mini_mime.rbi +8 -2
- data/spec/support/v5.1/sorbet/rbi/gems/nokogiri.rbi +6 -6
- data/spec/support/v5.1/sorbet/rbi/gems/parlour.rbi +214 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rack.rbi +53 -98
- data/spec/support/v5.1/sorbet/rbi/gems/rails-html-sanitizer.rbi +3 -2
- data/spec/support/v5.1/sorbet/rbi/gems/railties.rbi +0 -209
- data/spec/support/v5.1/sorbet/rbi/gems/sqlite3.rbi +13 -5
- data/spec/support/{v4.2 → v5.1}/sorbet/rbi/gems/web-console.rbi +10 -73
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +457 -2
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1229 -17
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +360 -9
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +32 -4
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +14 -14
- data/spec/support/v5.1/sorbet/rbi/todo.rbi +59 -2
- data/spec/support/v5.1/sorbet_test_cases.rb +123 -0
- data/spec/support/v5.1/typed-override.yaml +2 -0
- data/spec/support/v5.2-no-sorbet/.gitignore +31 -0
- data/spec/support/v5.2-no-sorbet/Gemfile +12 -28
- data/spec/support/v5.2-no-sorbet/Gemfile.lock +24 -10
- data/spec/support/v5.2-no-sorbet/app/assets/config/manifest.js +2 -0
- data/spec/support/{v5.1/test/mailers → v5.2-no-sorbet/app/assets/images}/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/app/assets/stylesheets/application.css +15 -0
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/controllers/application_controller.rb +0 -0
- data/spec/support/{v5.1/test/models → v5.2-no-sorbet/app/controllers/concerns}/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/app/helpers/application_helper.rb +2 -0
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/helpers/bar_helper.rb +0 -0
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/helpers/baz_helper.rb +0 -0
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/helpers/foo_helper.rb +0 -0
- data/spec/support/v5.2-no-sorbet/app/jobs/application_job.rb +0 -1
- data/spec/support/v5.2-no-sorbet/app/mailers/application_mailer.rb +0 -1
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/models/application_record.rb +0 -1
- data/spec/support/v5.2-no-sorbet/{test/controllers → app/models/concerns}/.keep +0 -0
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/models/concerns/mythical.rb +1 -1
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/models/potion.rb +0 -1
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/models/spell_book.rb +0 -2
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/models/wand.rb +0 -0
- data/spec/support/{rails_shared → v5.2-no-sorbet}/app/models/wizard.rb +0 -1
- data/spec/support/v5.2-no-sorbet/app/views/layouts/application.html.erb +14 -0
- data/spec/support/v5.2-no-sorbet/bin/setup +3 -0
- data/spec/support/v5.2-no-sorbet/bin/update +3 -0
- data/spec/support/v5.2-no-sorbet/bin/yarn +11 -0
- data/spec/support/v5.2-no-sorbet/config/application.rb +5 -8
- data/spec/support/v5.2-no-sorbet/config/boot.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/environment.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/environments/development.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/environments/production.rb +1 -7
- data/spec/support/v5.2-no-sorbet/config/environments/test.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/application_controller_renderer.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/backtrace_silencers.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/content_security_policy.rb +25 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/cookies_serializer.rb +5 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/filter_parameter_logging.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/inflections.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/mime_types.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/wrap_parameters.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/puma.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/routes.rb +4 -0
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000001_create_wizards.rb +12 -0
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000002_create_wands.rb +11 -0
- data/spec/support/v5.2-no-sorbet/db/migrate/20190620000003_create_spell_books.rb +8 -0
- data/spec/support/{v4.2/db/migrate/20190622000000_add_more_column_types_to_wands.rb → v5.2-no-sorbet/db/migrate/20190620000004_add_more_column_types_to_wands.rb} +6 -2
- data/spec/support/v5.2-no-sorbet/db/schema.rb +1 -2
- data/spec/support/v5.2-no-sorbet/db/seeds.rb +0 -1
- data/spec/support/v5.2-no-sorbet/{test/fixtures → lib/assets}/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v5.2-no-sorbet/package.json +5 -0
- data/spec/support/v5.2-no-sorbet/sorbet_test_cases.rb +123 -0
- data/spec/support/v5.2-no-sorbet/typed-override.yaml +2 -0
- data/spec/support/v5.2/.gitignore +31 -0
- data/spec/support/v5.2/Gemfile +12 -28
- data/spec/support/v5.2/Gemfile.lock +24 -10
- data/spec/support/v5.2/app/assets/config/manifest.js +2 -0
- data/spec/support/{v5.2-no-sorbet/test/fixtures/files → v5.2/app/assets/images}/.keep +0 -0
- data/spec/support/v5.2/app/assets/stylesheets/application.css +15 -0
- data/spec/support/v5.2/app/controllers/application_controller.rb +3 -0
- data/spec/support/{v5.2-no-sorbet/test/integration → v5.2/app/controllers/concerns}/.keep +0 -0
- data/spec/support/v5.2/app/helpers/application_helper.rb +3 -0
- data/spec/support/v5.2/app/helpers/bar_helper.rb +3 -0
- data/spec/support/v5.2/app/helpers/baz_helper.rb +3 -0
- data/spec/support/v5.2/app/helpers/foo_helper.rb +3 -0
- data/spec/support/v5.2/app/models/application_record.rb +5 -0
- data/spec/support/{v5.2-no-sorbet/test/mailers → v5.2/app/models/concerns}/.keep +0 -0
- data/spec/support/v5.2/app/models/concerns/mythical.rb +11 -0
- data/spec/support/v5.2/app/models/potion.rb +5 -0
- data/spec/support/v5.2/app/models/spell_book.rb +5 -0
- data/spec/support/v5.2/app/models/wand.rb +17 -0
- data/spec/support/v5.2/app/models/wizard.rb +14 -0
- data/spec/support/v5.2/app/views/layouts/application.html.erb +14 -0
- data/spec/support/v5.2/bin/setup +3 -0
- data/spec/support/v5.2/bin/update +3 -0
- data/spec/support/v5.2/bin/yarn +11 -0
- data/spec/support/v5.2/config/application.rb +5 -7
- data/spec/support/v5.2/config/environments/production.rb +1 -6
- data/spec/support/v5.2/config/initializers/content_security_policy.rb +26 -0
- data/spec/support/v5.2/config/initializers/cookies_serializer.rb +6 -0
- data/spec/support/v5.2/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v5.2/config/routes.rb +5 -0
- data/spec/support/v5.2/db/migrate/20190620000001_create_wizards.rb +13 -0
- data/spec/support/v5.2/db/migrate/20190620000002_create_wands.rb +12 -0
- data/spec/support/v5.2/db/migrate/20190620000003_create_spell_books.rb +9 -0
- data/spec/support/v5.2/db/migrate/20190620000004_add_more_column_types_to_wands.rb +16 -0
- data/spec/support/v5.2/db/schema.rb +1 -1
- data/spec/support/{v5.2-no-sorbet/test/models → v5.2/lib/assets}/.keep +0 -0
- data/spec/support/v5.2/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v5.2/package.json +5 -0
- data/spec/support/v5.2/sorbet/rbi/gems/actionmailer.rbi +2 -50
- data/spec/support/v5.2/sorbet/rbi/gems/actionpack.rbi +504 -640
- data/spec/support/v5.2/sorbet/rbi/gems/actionview.rbi +123 -124
- data/spec/support/v5.2/sorbet/rbi/gems/activejob.rbi +0 -37
- data/spec/support/v5.2/sorbet/rbi/gems/activemodel.rbi +70 -69
- data/spec/support/v5.2/sorbet/rbi/gems/activerecord.rbi +521 -690
- data/spec/support/v5.2/sorbet/rbi/gems/activesupport.rbi +93 -235
- data/spec/support/v5.2/sorbet/rbi/gems/arel.rbi +4 -0
- data/spec/support/v5.2/sorbet/rbi/gems/bindex.rbi +36 -0
- data/spec/support/v5.2/sorbet/rbi/gems/byebug.rbi +22 -22
- data/spec/support/v5.2/sorbet/rbi/gems/concurrent-ruby.rbi +4 -0
- data/spec/support/v5.2/sorbet/rbi/gems/jbuilder.rbi +99 -0
- data/spec/support/v5.2/sorbet/rbi/gems/mail.rbi +2 -2
- data/spec/support/v5.2/sorbet/rbi/gems/mini_mime.rbi +8 -2
- data/spec/support/v5.2/sorbet/rbi/gems/nokogiri.rbi +10 -6
- data/spec/support/v5.2/sorbet/rbi/gems/parlour.rbi +214 -0
- data/spec/support/v5.2/sorbet/rbi/gems/rack.rbi +57 -98
- data/spec/support/v5.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +3 -2
- data/spec/support/v5.2/sorbet/rbi/gems/railties.rbi +1 -215
- data/spec/support/v5.2/sorbet/rbi/gems/web-console.rbi +73 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +457 -2
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +17 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1229 -17
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/{~>5.2 → ~>5.2.0}/activerecord.rbi +1 -1
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +360 -9
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +32 -4
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
- data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +14 -14
- data/spec/support/v5.2/sorbet/rbi/todo.rbi +59 -2
- data/spec/support/v5.2/sorbet_test_cases.rb +123 -0
- data/spec/support/v5.2/typed-override.yaml +2 -0
- data/spec/support/v6.0/.gitignore +2 -0
- data/spec/support/v6.0/Gemfile +8 -17
- data/spec/support/v6.0/Gemfile.lock +19 -6
- data/spec/support/v6.0/app/assets/config/manifest.js +2 -0
- data/spec/support/{v5.2/sorbet → v6.0/app/assets/images}/.keep +0 -0
- data/spec/support/v6.0/app/assets/stylesheets/application.css +15 -0
- data/spec/support/v6.0/app/controllers/application_controller.rb +3 -0
- data/spec/support/{v5.2/test/controllers → v6.0/app/controllers/concerns}/.keep +0 -0
- data/spec/support/v6.0/app/helpers/application_helper.rb +3 -0
- data/spec/support/v6.0/app/helpers/bar_helper.rb +3 -0
- data/spec/support/v6.0/app/helpers/baz_helper.rb +3 -0
- data/spec/support/v6.0/app/helpers/foo_helper.rb +3 -0
- data/spec/support/v6.0/app/models/application_record.rb +5 -0
- data/spec/support/{v5.2/test/fixtures → v6.0/app/models/concerns}/.keep +0 -0
- data/spec/support/v6.0/app/models/concerns/mythical.rb +11 -0
- data/spec/support/v6.0/app/models/potion.rb +5 -0
- data/spec/support/v6.0/app/models/spell_book.rb +5 -0
- data/spec/support/v6.0/app/models/wand.rb +17 -0
- data/spec/support/v6.0/app/models/wizard.rb +14 -0
- data/spec/support/v6.0/app/views/layouts/application.html.erb +14 -0
- data/spec/support/v6.0/config/application.rb +4 -6
- data/spec/support/v6.0/config/database.yml +1 -1
- data/spec/support/v6.0/config/environments/development.rb +3 -0
- data/spec/support/v6.0/config/environments/production.rb +1 -5
- data/spec/support/v6.0/config/initializers/content_security_policy.rb +29 -0
- data/spec/support/v6.0/config/initializers/cookies_serializer.rb +6 -0
- data/spec/support/v6.0/config/initializers/sorbet_rails.rb +3 -0
- data/spec/support/v6.0/config/routes.rb +2 -2
- data/spec/support/v6.0/db/migrate/20190620000001_create_wizards.rb +13 -0
- data/spec/support/v6.0/db/migrate/20190620000002_create_wands.rb +12 -0
- data/spec/support/v6.0/db/migrate/20190620000003_create_spell_books.rb +9 -0
- data/spec/support/v6.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +16 -0
- data/spec/support/v6.0/db/schema.rb +1 -1
- data/spec/support/{v5.2/test/fixtures/files → v6.0/lib/assets}/.keep +0 -0
- data/spec/support/v6.0/lib/mythical_rbi_plugin.rb +16 -0
- data/spec/support/v6.0/public/robots.txt +1 -1
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailbox.rbi +1 -1
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailer.rbi +1 -50
- data/spec/support/v6.0/sorbet/rbi/gems/actionpack.rbi +232 -479
- data/spec/support/v6.0/sorbet/rbi/gems/actiontext.rbi +1 -1
- data/spec/support/v6.0/sorbet/rbi/gems/actionview.rbi +179 -77
- data/spec/support/v6.0/sorbet/rbi/gems/activejob.rbi +1 -283
- data/spec/support/v6.0/sorbet/rbi/gems/activemodel.rbi +71 -70
- data/spec/support/v6.0/sorbet/rbi/gems/activerecord.rbi +705 -843
- data/spec/support/v6.0/sorbet/rbi/gems/activestorage.rbi +5 -1
- data/spec/support/v6.0/sorbet/rbi/gems/activesupport.rbi +121 -300
- data/spec/support/v6.0/sorbet/rbi/gems/bindex.rbi +36 -0
- data/spec/support/v6.0/sorbet/rbi/gems/byebug.rbi +22 -22
- data/spec/support/v6.0/sorbet/rbi/gems/jbuilder.rbi +99 -0
- data/spec/support/v6.0/sorbet/rbi/gems/mail.rbi +1 -1
- data/spec/support/v6.0/sorbet/rbi/gems/mini_mime.rbi +8 -2
- data/spec/support/v6.0/sorbet/rbi/gems/parlour.rbi +214 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rack.rbi +54 -95
- data/spec/support/v6.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +3 -2
- data/spec/support/v6.0/sorbet/rbi/gems/railties.rbi +9 -221
- data/spec/support/v6.0/sorbet/rbi/gems/web-console.rbi +72 -0
- data/spec/support/v6.0/sorbet/rbi/gems/zeitwerk.rbi +12 -4
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +457 -2
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activemodel/all/activemodel.rbi +422 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/>=5.2/activerecord.rbi +17 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +1229 -17
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/~>6.0.0.rc1/activerecord.rbi +10 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activesupport/>=6.0.0.rc1/activesupport.rbi +23 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +361 -10
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +32 -4
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/minitest/all/minitest.rbi +99 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +14 -14
- data/spec/support/v6.0/sorbet/rbi/todo.rbi +59 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +123 -0
- data/spec/support/v6.0/typed-override.yaml +2 -0
- data/spec/test_data/v4.2/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.0/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.1/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.2-no-sorbet/expected_helpers.rbi +5 -0
- data/spec/test_data/v5.2/expected_helpers.rbi +5 -0
- data/spec/test_data/v6.0/expected_helpers.rbi +5 -0
- data/spec/test_data/v6.0/expected_routes.rbi +12 -0
- metadata +356 -317
- data/spec/support/rails_shared/config/initializers/sorbet_rails.rb +0 -3
- data/spec/support/rails_shared/config/routes.rb +0 -6
- data/spec/support/rails_shared/lib/mythical_rbi_plugin.rb +0 -16
- data/spec/support/rails_shared/typed-override.yaml +0 -2
- data/spec/support/rails_symlinks/app/controllers +0 -1
- data/spec/support/rails_symlinks/app/helpers +0 -1
- data/spec/support/rails_symlinks/app/models +0 -1
- data/spec/support/rails_symlinks/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/rails_symlinks/config/routes.rb +0 -5
- data/spec/support/rails_symlinks/db/migrate +0 -1
- data/spec/support/rails_symlinks/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/rails_symlinks/sorbet_test_cases.rb +0 -1
- data/spec/support/rails_symlinks/typed-override.yaml +0 -1
- data/spec/support/v4.2/app/helpers +0 -1
- data/spec/support/v4.2/app/models +0 -1
- data/spec/support/v4.2/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/v4.2/config/secrets.yml +0 -22
- data/spec/support/v4.2/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/v4.2/sorbet/rbi/gems/binding_of_caller.rbi +0 -22
- data/spec/support/v4.2/sorbet/rbi/gems/debug_inspector.rbi +0 -18
- data/spec/support/v4.2/sorbet/rbi/gems/rdoc.rbi +0 -1053
- data/spec/support/v4.2/sorbet/rbi/gems/sdoc.rbi +0 -73
- data/spec/support/v4.2/sorbet_test_cases.rb +0 -1
- data/spec/support/v4.2/typed-override.yaml +0 -1
- data/spec/support/v5.0/app/channels/application_cable/channel.rb +0 -5
- data/spec/support/v5.0/app/channels/application_cable/connection.rb +0 -5
- data/spec/support/v5.0/app/controllers +0 -1
- data/spec/support/v5.0/app/helpers +0 -1
- data/spec/support/v5.0/app/models +0 -1
- data/spec/support/v5.0/config/cable.yml +0 -9
- data/spec/support/v5.0/config/initializers/cors.rb +0 -17
- data/spec/support/v5.0/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/v5.0/config/secrets.yml +0 -22
- data/spec/support/v5.0/db/migrate +0 -1
- data/spec/support/v5.0/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/v5.0/rails_symlinks/app/controllers +0 -1
- data/spec/support/v5.0/rails_symlinks/app/models +0 -1
- data/spec/support/v5.0/rails_symlinks/config/routes.rb +0 -6
- data/spec/support/v5.0/rails_symlinks/db/migrate +0 -1
- data/spec/support/v5.0/sorbet/rbi/gems/actioncable.rbi +0 -309
- data/spec/support/v5.0/sorbet/rbi/gems/method_source.rbi +0 -63
- data/spec/support/v5.0/sorbet/rbi/gems/minitest.rbi +0 -276
- data/spec/support/v5.0/sorbet/rbi/gems/rails-dom-testing.rbi +0 -67
- data/spec/support/v5.0/sorbet/rbi/gems/rake.rbi +0 -255
- data/spec/support/v5.0/sorbet/rbi/gems/thor.rbi +0 -401
- data/spec/support/v5.0/sorbet_test_cases.rb +0 -1
- data/spec/support/v5.0/test/test_helper.rb +0 -11
- data/spec/support/v5.0/typed-override.yaml +0 -1
- data/spec/support/v5.1/app/channels/application_cable/channel.rb +0 -5
- data/spec/support/v5.1/app/channels/application_cable/connection.rb +0 -5
- data/spec/support/v5.1/app/controllers +0 -1
- data/spec/support/v5.1/app/helpers +0 -1
- data/spec/support/v5.1/app/models +0 -1
- data/spec/support/v5.1/bin/spring +0 -17
- data/spec/support/v5.1/config/cable.yml +0 -10
- data/spec/support/v5.1/config/initializers/cors.rb +0 -17
- data/spec/support/v5.1/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/v5.1/config/routes.rb +0 -1
- data/spec/support/v5.1/config/secrets.yml +0 -32
- data/spec/support/v5.1/config/spring.rb +0 -7
- data/spec/support/v5.1/db/migrate +0 -1
- data/spec/support/v5.1/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/v5.1/sorbet/rbi/gems/actioncable.rbi +0 -309
- data/spec/support/v5.1/sorbet/rbi/gems/method_source.rbi +0 -63
- data/spec/support/v5.1/sorbet/rbi/gems/minitest.rbi +0 -276
- data/spec/support/v5.1/sorbet/rbi/gems/rails-dom-testing.rbi +0 -67
- data/spec/support/v5.1/sorbet/rbi/gems/rake.rbi +0 -255
- data/spec/support/v5.1/sorbet/rbi/gems/thor.rbi +0 -450
- data/spec/support/v5.1/sorbet_test_cases.rb +0 -1
- data/spec/support/v5.1/test/test_helper.rb +0 -11
- data/spec/support/v5.1/typed-override.yaml +0 -1
- data/spec/support/v5.2-no-sorbet/app/channels/application_cable/channel.rb +0 -5
- data/spec/support/v5.2-no-sorbet/app/channels/application_cable/connection.rb +0 -5
- data/spec/support/v5.2-no-sorbet/app/controllers +0 -1
- data/spec/support/v5.2-no-sorbet/app/helpers +0 -1
- data/spec/support/v5.2-no-sorbet/app/models +0 -1
- data/spec/support/v5.2-no-sorbet/bin/spring +0 -17
- data/spec/support/v5.2-no-sorbet/config/cable.yml +0 -10
- data/spec/support/v5.2-no-sorbet/config/credentials.yml.enc +0 -1
- data/spec/support/v5.2-no-sorbet/config/initializers/cors.rb +0 -17
- data/spec/support/v5.2-no-sorbet/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/routes.rb +0 -1
- data/spec/support/v5.2-no-sorbet/config/spring.rb +0 -7
- data/spec/support/v5.2-no-sorbet/db/migrate +0 -1
- data/spec/support/v5.2-no-sorbet/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/v5.2-no-sorbet/sorbet_test_cases.rb +0 -1
- data/spec/support/v5.2-no-sorbet/test/test_helper.rb +0 -11
- data/spec/support/v5.2-no-sorbet/typed-override.yaml +0 -1
- data/spec/support/v5.2/app/channels/application_cable/channel.rb +0 -5
- data/spec/support/v5.2/app/channels/application_cable/connection.rb +0 -5
- data/spec/support/v5.2/app/controllers +0 -1
- data/spec/support/v5.2/app/helpers +0 -1
- data/spec/support/v5.2/app/models +0 -1
- data/spec/support/v5.2/bin/spring +0 -17
- data/spec/support/v5.2/config/cable.yml +0 -10
- data/spec/support/v5.2/config/credentials.yml.enc +0 -1
- data/spec/support/v5.2/config/initializers/cors.rb +0 -17
- data/spec/support/v5.2/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/v5.2/config/routes.rb +0 -1
- data/spec/support/v5.2/config/spring.rb +0 -7
- data/spec/support/v5.2/db/migrate +0 -1
- data/spec/support/v5.2/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/v5.2/sorbet/rbi/gems/actioncable.rbi +0 -309
- data/spec/support/v5.2/sorbet/rbi/gems/method_source.rbi +0 -63
- data/spec/support/v5.2/sorbet/rbi/gems/minitest.rbi +0 -276
- data/spec/support/v5.2/sorbet/rbi/gems/rails-dom-testing.rbi +0 -67
- data/spec/support/v5.2/sorbet/rbi/gems/rake.rbi +0 -251
- data/spec/support/v5.2/sorbet/rbi/gems/thor.rbi +0 -449
- data/spec/support/v5.2/sorbet_test_cases.rb +0 -1
- data/spec/support/v5.2/test/integration/.keep +0 -0
- data/spec/support/v5.2/test/mailers/.keep +0 -0
- data/spec/support/v5.2/test/models/.keep +0 -0
- data/spec/support/v5.2/test/test_helper.rb +0 -11
- data/spec/support/v5.2/typed-override.yaml +0 -1
- data/spec/support/v6.0/app/channels/application_cable/channel.rb +0 -5
- data/spec/support/v6.0/app/channels/application_cable/connection.rb +0 -5
- data/spec/support/v6.0/app/controllers +0 -1
- data/spec/support/v6.0/app/helpers +0 -1
- data/spec/support/v6.0/app/models +0 -1
- data/spec/support/v6.0/config/cable.yml +0 -10
- data/spec/support/v6.0/config/credentials.yml.enc +0 -1
- data/spec/support/v6.0/config/initializers/cors.rb +0 -17
- data/spec/support/v6.0/config/initializers/sorbet_rails.rb +0 -1
- data/spec/support/v6.0/db/migrate +0 -1
- data/spec/support/v6.0/lib/mythical_rbi_plugin.rb +0 -1
- data/spec/support/v6.0/sorbet/rbi/gems/actioncable.rbi +0 -245
- data/spec/support/v6.0/sorbet/rbi/gems/method_source.rbi +0 -63
- data/spec/support/v6.0/sorbet/rbi/gems/minitest.rbi +0 -276
- data/spec/support/v6.0/sorbet/rbi/gems/rails-dom-testing.rbi +0 -67
- data/spec/support/v6.0/sorbet/rbi/gems/rake.rbi +0 -254
- data/spec/support/v6.0/sorbet/rbi/gems/thor.rbi +0 -450
- data/spec/support/v6.0/sorbet_test_cases.rb +0 -1
- data/spec/support/v6.0/test/channels/application_cable/connection_test.rb +0 -12
- data/spec/support/v6.0/test/controllers/.keep +0 -0
- data/spec/support/v6.0/test/fixtures/.keep +0 -0
- data/spec/support/v6.0/test/fixtures/files/.keep +0 -0
- data/spec/support/v6.0/test/integration/.keep +0 -0
- data/spec/support/v6.0/test/mailers/.keep +0 -0
- data/spec/support/v6.0/test/models/.keep +0 -0
- data/spec/support/v6.0/test/test_helper.rb +0 -14
- data/spec/support/v6.0/typed-override.yaml +0 -1
@@ -7,7 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rails-html-sanitizer/all/rails-html-sanitizer.rbi
|
9
9
|
#
|
10
|
-
# rails-html-sanitizer-1.0
|
10
|
+
# rails-html-sanitizer-1.2.0
|
11
11
|
module Rails
|
12
12
|
end
|
13
13
|
module Rails::Html
|
@@ -18,6 +18,7 @@ class Rails::Html::Sanitizer
|
|
18
18
|
def sanitize(html, options = nil); end
|
19
19
|
def self.full_sanitizer; end
|
20
20
|
def self.link_sanitizer; end
|
21
|
+
def self.safe_list_sanitizer; end
|
21
22
|
def self.white_list_sanitizer; end
|
22
23
|
end
|
23
24
|
class Rails::Html::PermitScrubber < Loofah::Scrubber
|
@@ -52,7 +53,7 @@ class Rails::Html::LinkSanitizer < Rails::Html::Sanitizer
|
|
52
53
|
def initialize; end
|
53
54
|
def sanitize(html, options = nil); end
|
54
55
|
end
|
55
|
-
class Rails::Html::
|
56
|
+
class Rails::Html::SafeListSanitizer < Rails::Html::Sanitizer
|
56
57
|
def allowed_attributes(options); end
|
57
58
|
def allowed_tags(options); end
|
58
59
|
def initialize; end
|
@@ -342,36 +342,6 @@ class Rails::Engine::Configuration < Rails::Railtie::Configuration
|
|
342
342
|
def root; end
|
343
343
|
def root=(value); end
|
344
344
|
end
|
345
|
-
module Rails::TestUnit
|
346
|
-
end
|
347
|
-
class Rails::TestUnit::Runner
|
348
|
-
def filters; end
|
349
|
-
def self.compose_filter(runnable, filter); end
|
350
|
-
def self.extract_filters(argv); end
|
351
|
-
def self.filters; end
|
352
|
-
def self.load_tests(argv); end
|
353
|
-
def self.options(opts); end
|
354
|
-
def self.parse_options(argv); end
|
355
|
-
def self.rake_run(argv = nil); end
|
356
|
-
def self.run(argv = nil); end
|
357
|
-
end
|
358
|
-
class Rails::TestUnit::CompositeFilter
|
359
|
-
def ===(method); end
|
360
|
-
def derive_line_filters(patterns); end
|
361
|
-
def derive_named_filter(filter); end
|
362
|
-
def initialize(runnable, filter, patterns); end
|
363
|
-
def named_filter; end
|
364
|
-
end
|
365
|
-
class Rails::TestUnit::Filter
|
366
|
-
def ===(method); end
|
367
|
-
def definition_for(method); end
|
368
|
-
def initialize(runnable, file, line); end
|
369
|
-
end
|
370
|
-
module Rails::LineFiltering
|
371
|
-
def run(reporter, options = nil); end
|
372
|
-
end
|
373
|
-
class Rails::TestUnitRailtie < Rails::Railtie
|
374
|
-
end
|
375
345
|
class SourceAnnotationExtractor
|
376
346
|
def display(results, options = nil); end
|
377
347
|
def extract_annotations_from(file, pattern); end
|
@@ -526,182 +496,3 @@ class Rails::Application::DefaultMiddlewareStack
|
|
526
496
|
end
|
527
497
|
class Rails::Rack::Logger < ActiveSupport::LogSubscriber
|
528
498
|
end
|
529
|
-
module Rails::Command
|
530
|
-
def self.command_type; end
|
531
|
-
def self.environment; end
|
532
|
-
def self.file_lookup_paths; end
|
533
|
-
def self.find_by_namespace(namespace, command_name = nil); end
|
534
|
-
def self.hidden_commands; end
|
535
|
-
def self.invoke(full_namespace, args = nil, **config); end
|
536
|
-
def self.lookup_paths; end
|
537
|
-
def self.print_commands; end
|
538
|
-
def self.root; end
|
539
|
-
def self.sorted_groups; end
|
540
|
-
extend ActiveSupport::Autoload
|
541
|
-
extend Rails::Command::Behavior::ClassMethods
|
542
|
-
include Rails::Command::Behavior
|
543
|
-
end
|
544
|
-
module Rails::Command::Behavior
|
545
|
-
extend ActiveSupport::Concern
|
546
|
-
end
|
547
|
-
module Rails::Command::Behavior::ClassMethods
|
548
|
-
def levenshtein_distance(str1, str2); end
|
549
|
-
def lookup!; end
|
550
|
-
def lookup(namespaces); end
|
551
|
-
def namespaces_to_paths(namespaces); end
|
552
|
-
def no_color!; end
|
553
|
-
def print_list(base, namespaces); end
|
554
|
-
def subclasses; end
|
555
|
-
end
|
556
|
-
module Rails::Generators
|
557
|
-
def namespace; end
|
558
|
-
def namespace=(obj); end
|
559
|
-
def self.aliases; end
|
560
|
-
def self.api_only!; end
|
561
|
-
def self.command_type; end
|
562
|
-
def self.configure!(config); end
|
563
|
-
def self.fallbacks; end
|
564
|
-
def self.file_lookup_paths; end
|
565
|
-
def self.find_by_namespace(name, base = nil, context = nil); end
|
566
|
-
def self.help(command = nil); end
|
567
|
-
def self.hidden_namespaces; end
|
568
|
-
def self.hide_namespace(*namespaces); end
|
569
|
-
def self.hide_namespaces(*namespaces); end
|
570
|
-
def self.invoke(namespace, args = nil, config = nil); end
|
571
|
-
def self.invoke_fallbacks_for(name, base); end
|
572
|
-
def self.lookup_paths; end
|
573
|
-
def self.namespace; end
|
574
|
-
def self.namespace=(obj); end
|
575
|
-
def self.no_color!; end
|
576
|
-
def self.options; end
|
577
|
-
def self.print_generators; end
|
578
|
-
def self.print_list(base, namespaces); end
|
579
|
-
def self.public_namespaces; end
|
580
|
-
def self.sorted_groups; end
|
581
|
-
def self.templates_path; end
|
582
|
-
extend Rails::Command::Behavior::ClassMethods
|
583
|
-
include Rails::Command::Behavior
|
584
|
-
end
|
585
|
-
module Rails::Generators::Testing
|
586
|
-
end
|
587
|
-
module Rails::Generators::Testing::Behaviour
|
588
|
-
def create_generated_attribute(attribute_type, name = nil, index = nil); end
|
589
|
-
def destination_root_is_set?; end
|
590
|
-
def ensure_current_path; end
|
591
|
-
def generator(args = nil, options = nil, config = nil); end
|
592
|
-
def migration_file_name(relative); end
|
593
|
-
def prepare_destination; end
|
594
|
-
def run_generator(args = nil, config = nil); end
|
595
|
-
extend ActiveSupport::Concern
|
596
|
-
include ActiveSupport::Testing::Stream
|
597
|
-
end
|
598
|
-
module Rails::Generators::Testing::Behaviour::ClassMethods
|
599
|
-
def arguments(array); end
|
600
|
-
def destination(path); end
|
601
|
-
def tests(klass); end
|
602
|
-
end
|
603
|
-
module Rails::Generators::Testing::SetupAndTeardown
|
604
|
-
def setup; end
|
605
|
-
def teardown; end
|
606
|
-
end
|
607
|
-
module Rails::Generators::Testing::Assertions
|
608
|
-
def assert_class_method(method, content, &block); end
|
609
|
-
def assert_directory(relative, *contents); end
|
610
|
-
def assert_field_default_value(attribute_type, value); end
|
611
|
-
def assert_field_type(attribute_type, field_type); end
|
612
|
-
def assert_file(relative, *contents); end
|
613
|
-
def assert_instance_method(method, content); end
|
614
|
-
def assert_method(method, content); end
|
615
|
-
def assert_migration(relative, *contents, &block); end
|
616
|
-
def assert_no_directory(relative); end
|
617
|
-
def assert_no_file(relative); end
|
618
|
-
def assert_no_migration(relative); end
|
619
|
-
end
|
620
|
-
class Rails::Generators::TestCase < ActiveSupport::TestCase
|
621
|
-
def current_path; end
|
622
|
-
def current_path=(arg0); end
|
623
|
-
def current_path?; end
|
624
|
-
def default_arguments; end
|
625
|
-
def default_arguments=(arg0); end
|
626
|
-
def default_arguments?; end
|
627
|
-
def destination_root; end
|
628
|
-
def destination_root=(arg0); end
|
629
|
-
def destination_root?; end
|
630
|
-
def generator_class; end
|
631
|
-
def generator_class=(arg0); end
|
632
|
-
def generator_class?; end
|
633
|
-
def self.current_path; end
|
634
|
-
def self.current_path=(val); end
|
635
|
-
def self.current_path?; end
|
636
|
-
def self.default_arguments; end
|
637
|
-
def self.default_arguments=(val); end
|
638
|
-
def self.default_arguments?; end
|
639
|
-
def self.destination_root; end
|
640
|
-
def self.destination_root=(val); end
|
641
|
-
def self.destination_root?; end
|
642
|
-
def self.generator_class; end
|
643
|
-
def self.generator_class=(val); end
|
644
|
-
def self.generator_class?; end
|
645
|
-
extend Rails::Generators::Testing::Behaviour::ClassMethods
|
646
|
-
include FileUtils
|
647
|
-
include Rails::Generators::Testing::Assertions
|
648
|
-
include Rails::Generators::Testing::Behaviour
|
649
|
-
include Rails::Generators::Testing::SetupAndTeardown
|
650
|
-
end
|
651
|
-
module ActiveSupport
|
652
|
-
end
|
653
|
-
class ActiveSupport::TestCase < Minitest::Test
|
654
|
-
def config; end
|
655
|
-
def config=(arg0); end
|
656
|
-
def config?; end
|
657
|
-
def fixture_class_names; end
|
658
|
-
def fixture_class_names=(arg0); end
|
659
|
-
def fixture_class_names?; end
|
660
|
-
def fixture_path; end
|
661
|
-
def fixture_path?; end
|
662
|
-
def fixture_table_names; end
|
663
|
-
def fixture_table_names=(arg0); end
|
664
|
-
def fixture_table_names?; end
|
665
|
-
def pre_loaded_fixtures; end
|
666
|
-
def pre_loaded_fixtures=(arg0); end
|
667
|
-
def pre_loaded_fixtures?; end
|
668
|
-
def self.config; end
|
669
|
-
def self.config=(val); end
|
670
|
-
def self.config?; end
|
671
|
-
def self.fixture_class_names; end
|
672
|
-
def self.fixture_class_names=(val); end
|
673
|
-
def self.fixture_class_names?; end
|
674
|
-
def self.fixture_path; end
|
675
|
-
def self.fixture_path=(val); end
|
676
|
-
def self.fixture_path?; end
|
677
|
-
def self.fixture_table_names; end
|
678
|
-
def self.fixture_table_names=(val); end
|
679
|
-
def self.fixture_table_names?; end
|
680
|
-
def self.pre_loaded_fixtures; end
|
681
|
-
def self.pre_loaded_fixtures=(val); end
|
682
|
-
def self.pre_loaded_fixtures?; end
|
683
|
-
def self.use_instantiated_fixtures; end
|
684
|
-
def self.use_instantiated_fixtures=(val); end
|
685
|
-
def self.use_instantiated_fixtures?; end
|
686
|
-
def self.use_transactional_tests; end
|
687
|
-
def self.use_transactional_tests=(val); end
|
688
|
-
def self.use_transactional_tests?; end
|
689
|
-
def use_instantiated_fixtures; end
|
690
|
-
def use_instantiated_fixtures=(arg0); end
|
691
|
-
def use_instantiated_fixtures?; end
|
692
|
-
def use_transactional_tests; end
|
693
|
-
def use_transactional_tests=(arg0); end
|
694
|
-
def use_transactional_tests?; end
|
695
|
-
extend ActiveRecord::TestFixtures::ClassMethods
|
696
|
-
include ActiveRecord::TestFixtures
|
697
|
-
end
|
698
|
-
class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
|
699
|
-
def before_setup; end
|
700
|
-
def self.fixture_path; end
|
701
|
-
end
|
702
|
-
class Object < BasicObject
|
703
|
-
def create_fixtures(*fixture_set_names, &block); end
|
704
|
-
end
|
705
|
-
class ActionController::TestCase < ActiveSupport::TestCase
|
706
|
-
def before_setup; end
|
707
|
-
end
|
@@ -7,7 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/sqlite3/all/sqlite3.rbi
|
9
9
|
#
|
10
|
-
# sqlite3-1.
|
10
|
+
# sqlite3-1.4.1
|
11
11
|
class SQLite3::Database
|
12
12
|
def authorizer(&block); end
|
13
13
|
def authorizer=(arg0); end
|
@@ -25,23 +25,30 @@ class SQLite3::Database
|
|
25
25
|
def create_aggregate_handler(handler); end
|
26
26
|
def create_function(name, arity, text_rep = nil, &block); end
|
27
27
|
def db_filename(arg0); end
|
28
|
-
def define_aggregator(
|
28
|
+
def define_aggregator(name, aggregator); end
|
29
|
+
def define_aggregator2(arg0, arg1); end
|
29
30
|
def define_function(arg0); end
|
31
|
+
def define_function_with_flags(arg0, arg1); end
|
30
32
|
def enable_load_extension(arg0); end
|
31
33
|
def encoding; end
|
32
34
|
def errcode; end
|
33
35
|
def errmsg; end
|
36
|
+
def exec_batch(arg0, arg1); end
|
34
37
|
def execute(sql, bind_vars = nil, *args, &block); end
|
35
38
|
def execute2(sql, *bind_vars); end
|
36
39
|
def execute_batch(sql, bind_vars = nil, *args); end
|
40
|
+
def execute_batch2(sql, &block); end
|
41
|
+
def extended_result_codes=(arg0); end
|
37
42
|
def filename(db_name = nil); end
|
38
43
|
def get_first_row(sql, *bind_vars); end
|
39
44
|
def get_first_value(sql, *bind_vars); end
|
40
|
-
def initialize(
|
45
|
+
def initialize(file, options = nil, zvfs = nil); end
|
41
46
|
def interrupt; end
|
42
47
|
def last_insert_row_id; end
|
43
48
|
def load_extension(arg0); end
|
44
|
-
def
|
49
|
+
def make_type_translator(should_translate); end
|
50
|
+
def open16(arg0); end
|
51
|
+
def open_v2(arg0, arg1, arg2); end
|
45
52
|
def prepare(sql); end
|
46
53
|
def query(sql, bind_vars = nil, *args); end
|
47
54
|
def readonly?; end
|
@@ -54,6 +61,7 @@ class SQLite3::Database
|
|
54
61
|
def trace(*arg0); end
|
55
62
|
def transaction(mode = nil); end
|
56
63
|
def transaction_active?; end
|
64
|
+
def translate_from_db(types, row); end
|
57
65
|
def translator; end
|
58
66
|
def type_translation; end
|
59
67
|
def type_translation=(value); end
|
@@ -95,6 +103,7 @@ end
|
|
95
103
|
module SQLite3
|
96
104
|
def self.const_missing(name); end
|
97
105
|
def self.libversion; end
|
106
|
+
def self.sqlcipher?; end
|
98
107
|
def self.threadsafe; end
|
99
108
|
def self.threadsafe?; end
|
100
109
|
end
|
@@ -108,7 +117,6 @@ module SQLite3::Constants::ErrorCode
|
|
108
117
|
end
|
109
118
|
class SQLite3::Exception < StandardError
|
110
119
|
def code; end
|
111
|
-
def self.code; end
|
112
120
|
end
|
113
121
|
class SQLite3::SQLException < SQLite3::Exception
|
114
122
|
end
|
@@ -1,59 +1,28 @@
|
|
1
1
|
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
2
|
# srb rbi gems
|
3
3
|
|
4
|
-
# typed:
|
4
|
+
# typed: strong
|
5
5
|
#
|
6
6
|
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
7
|
#
|
8
8
|
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/web-console/all/web-console.rbi
|
9
9
|
#
|
10
|
-
# web-console-
|
11
|
-
class Exception
|
12
|
-
def bindings; end
|
13
|
-
def set_backtrace_with_binding_of_caller(*args); end
|
14
|
-
def set_backtrace_without_binding_of_caller(arg0); end
|
15
|
-
end
|
10
|
+
# web-console-3.7.0
|
16
11
|
module WebConsole
|
17
|
-
def logger; end
|
18
|
-
def logger=(obj); end
|
19
12
|
def self.logger; end
|
20
|
-
|
13
|
+
extend ActiveSupport::Autoload
|
21
14
|
end
|
22
15
|
class WebConsole::Railtie < Rails::Railtie
|
23
16
|
end
|
24
|
-
|
25
|
-
end
|
26
|
-
class WebConsole::DoubleRenderError < WebConsole::Error
|
27
|
-
end
|
28
|
-
module WebConsole::Helper
|
17
|
+
module Kernel
|
29
18
|
def console(binding = nil); end
|
19
|
+
def self.console(binding = nil); end
|
30
20
|
end
|
31
|
-
|
32
|
-
def cleaner; end
|
33
|
-
def eval(input); end
|
34
|
-
def format_exception(exc); end
|
35
|
-
def initialize(binding = nil); end
|
36
|
-
def self.cleaner; end
|
37
|
-
end
|
38
|
-
class WebConsole::Session
|
39
|
-
def eval(input); end
|
40
|
-
def id; end
|
41
|
-
def initialize(bindings); end
|
42
|
-
def inmemory_storage; end
|
43
|
-
def self.find(id); end
|
44
|
-
def self.from_binding(binding); end
|
45
|
-
def self.from_exception(exc); end
|
46
|
-
def self.inmemory_storage; end
|
47
|
-
def store_into_memory; end
|
48
|
-
def switch_binding_to(index); end
|
21
|
+
module ActionDispatch
|
49
22
|
end
|
50
|
-
class
|
51
|
-
def
|
52
|
-
def
|
53
|
-
def self.template_paths; end
|
54
|
-
def self.template_paths=(obj); end
|
55
|
-
def template_paths; end
|
56
|
-
def template_paths=(obj); end
|
23
|
+
class ActionDispatch::DebugExceptions
|
24
|
+
def render_exception_with_web_console(request, exception); end
|
25
|
+
def render_exception_without_web_console(request, exception); end
|
57
26
|
end
|
58
27
|
class WebConsole::Middleware
|
59
28
|
def acceptable_content_type?(headers); end
|
@@ -91,7 +60,7 @@ class WebConsole::Whitelist
|
|
91
60
|
end
|
92
61
|
class WebConsole::Request < ActionDispatch::Request
|
93
62
|
def acceptable?; end
|
94
|
-
def
|
63
|
+
def from_whitelisted_ip?; end
|
95
64
|
def self.whitelisted_ips; end
|
96
65
|
def self.whitelisted_ips=(obj); end
|
97
66
|
def strict_remote_ip; end
|
@@ -102,35 +71,3 @@ class WebConsole::Request::GetSecureIp < ActionDispatch::RemoteIp::GetIp
|
|
102
71
|
def filter_proxies(ips); end
|
103
72
|
def initialize(req, proxies); end
|
104
73
|
end
|
105
|
-
class Anonymous_Struct_21 < Struct
|
106
|
-
def body; end
|
107
|
-
def body=(_); end
|
108
|
-
def headers; end
|
109
|
-
def headers=(_); end
|
110
|
-
def self.[](*arg0); end
|
111
|
-
def self.inspect; end
|
112
|
-
def self.members; end
|
113
|
-
def self.new(*arg0); end
|
114
|
-
def status; end
|
115
|
-
def status=(_); end
|
116
|
-
end
|
117
|
-
class WebConsole::Response < Anonymous_Struct_21
|
118
|
-
def finish; end
|
119
|
-
def write(content); end
|
120
|
-
end
|
121
|
-
class WebConsole::View < ActionView::Base
|
122
|
-
def only_on_error_page(*args); end
|
123
|
-
def render_inlined_string(template); end
|
124
|
-
def render_javascript(template); end
|
125
|
-
def t(key, options = nil); end
|
126
|
-
end
|
127
|
-
class WebConsole::WhinyRequest < SimpleDelegator
|
128
|
-
def from_whitelited_ip?; end
|
129
|
-
def logger; end
|
130
|
-
def request; end
|
131
|
-
def whine_unless(condition); end
|
132
|
-
end
|
133
|
-
class ActionDispatch::DebugExceptions
|
134
|
-
def render_exception_with_web_console(request, exception); end
|
135
|
-
def render_exception_without_web_console(env, exception); end
|
136
|
-
end
|
@@ -5,9 +5,464 @@
|
|
5
5
|
#
|
6
6
|
# https://github.com/sorbet/sorbet-typed/edit/master/lib/actionpack/all/actionpack.rbi
|
7
7
|
#
|
8
|
-
# typed:
|
8
|
+
# typed: false
|
9
|
+
|
10
|
+
class ActionController::Base < ActionController::Metal
|
11
|
+
end
|
12
|
+
|
13
|
+
class AbstractController::Base < Object
|
14
|
+
end
|
15
|
+
|
16
|
+
class ActionController::Metal < AbstractController::Base
|
17
|
+
sig { returns(ActionDispatch::Request) }
|
18
|
+
def request(); end
|
19
|
+
|
20
|
+
sig { returns(ActionDispatch::Response) }
|
21
|
+
def response(); end
|
22
|
+
|
23
|
+
sig { returns(ActionController::Parameters) }
|
24
|
+
def params(); end
|
25
|
+
end
|
26
|
+
|
27
|
+
module ActionDispatch::Http::Parameters
|
28
|
+
sig { returns(ActionController::Parameters) }
|
29
|
+
def parameters(); end
|
30
|
+
|
31
|
+
# params is an alias of parameters
|
32
|
+
sig { returns(ActionController::Parameters) }
|
33
|
+
def params(); end
|
34
|
+
end
|
35
|
+
|
36
|
+
class ActionDispatch::Request
|
37
|
+
end
|
38
|
+
|
39
|
+
class ActionDispatch::Response
|
40
|
+
end
|
41
|
+
|
42
|
+
class ActionController::Parameters
|
43
|
+
sig { returns(T.self_type) }
|
44
|
+
def permit!; end
|
45
|
+
|
46
|
+
# You can pass _a lot_ of stuff to permit, so filters is left untyped for now.
|
47
|
+
sig { params(filters: T.untyped).returns(ActionController::Parameters) }
|
48
|
+
def permit(*filters); end
|
49
|
+
|
50
|
+
sig { returns(T::Boolean) }
|
51
|
+
def permitted?; end
|
52
|
+
|
53
|
+
sig { params(key: T.any(Symbol, T::Array[Symbol])).returns(ActionController::Parameters) }
|
54
|
+
def require(key); end
|
55
|
+
|
56
|
+
# required is an alias of require
|
57
|
+
sig { params(key: T.any(Symbol, T::Array[Symbol])).returns(ActionController::Parameters) }
|
58
|
+
def required(key); end
|
59
|
+
|
60
|
+
sig { returns(ActiveSupport::HashWithIndifferentAccess) }
|
61
|
+
def to_h; end
|
62
|
+
|
63
|
+
sig { returns(T::Hash[T.untyped, T.untyped]) }
|
64
|
+
def to_hash; end
|
65
|
+
|
66
|
+
sig { params(args: String).returns(T.nilable(String)) }
|
67
|
+
def to_query(*args); end
|
68
|
+
|
69
|
+
# to_param is an alias of to_query
|
70
|
+
sig { params(args: String).returns(T.nilable(String)) }
|
71
|
+
def to_param(*args); end
|
72
|
+
end
|
73
|
+
|
74
|
+
module ActionController::StrongParameters
|
75
|
+
sig { returns(ActionController::Parameters) }
|
76
|
+
def params; end
|
77
|
+
end
|
9
78
|
|
10
79
|
class ActionDispatch::Routing::RouteSet
|
11
|
-
sig {params(blk: T.proc.bind(ActionDispatch::Routing::Mapper).void).void}
|
80
|
+
sig { params(blk: T.proc.bind(ActionDispatch::Routing::Mapper).void).void }
|
12
81
|
def draw(&blk); end
|
13
82
|
end
|
83
|
+
|
84
|
+
module ActionController::Flash::ClassMethods
|
85
|
+
sig { params(types: Symbol).void }
|
86
|
+
def add_flash_types(*types); end
|
87
|
+
end
|
88
|
+
|
89
|
+
module ActionController::RequestForgeryProtection::ClassMethods
|
90
|
+
sig do
|
91
|
+
params(
|
92
|
+
only: T.any(T::Array[Symbol], Symbol),
|
93
|
+
except: T.nilable(T.any(T::Array[Symbol], Symbol)),
|
94
|
+
if: T.untyped,
|
95
|
+
unless: T.untyped,
|
96
|
+
prepend: T.untyped,
|
97
|
+
with: T.nilable(Symbol),
|
98
|
+
exception: T.untyped,
|
99
|
+
reset_session: T.untyped,
|
100
|
+
null_session: T.untyped
|
101
|
+
).void
|
102
|
+
end
|
103
|
+
def protect_from_forgery(
|
104
|
+
only: nil,
|
105
|
+
except: nil,
|
106
|
+
if: nil,
|
107
|
+
unless: nil,
|
108
|
+
prepend: false,
|
109
|
+
with: nil,
|
110
|
+
exception: nil,
|
111
|
+
reset_session: nil,
|
112
|
+
null_session: nil
|
113
|
+
); end
|
114
|
+
end
|
115
|
+
|
116
|
+
module ActionDispatch::Routing::Mapper::HttpHelpers
|
117
|
+
# get, put, patch, post, and delete all have the same arguments as
|
118
|
+
# ActionDispatch::Routing::Mapper::Resources#match
|
119
|
+
sig do
|
120
|
+
params(
|
121
|
+
name: T.any(String, Symbol, T::Hash[String, String]),
|
122
|
+
controller: T.nilable(T.any(String, Symbol)),
|
123
|
+
action: T.nilable(T.any(String, Symbol)),
|
124
|
+
param: T.nilable(Symbol),
|
125
|
+
module: T.nilable(T.any(String, Symbol)),
|
126
|
+
as: T.nilable(T.any(String, Symbol)),
|
127
|
+
via: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
128
|
+
to: T.nilable(T.any(String, T.proc.returns(T.untyped))),
|
129
|
+
on: T.nilable(Symbol),
|
130
|
+
constraints: T.untyped,
|
131
|
+
defaults: T.nilable(T::Hash[T.untyped, T.untyped]),
|
132
|
+
anchor: T::Boolean,
|
133
|
+
format: T.nilable(T.any(String, T::Boolean)),
|
134
|
+
path: T.nilable(T.any(String, Symbol)),
|
135
|
+
block: T.untyped
|
136
|
+
).returns(T.untyped)
|
137
|
+
end
|
138
|
+
def delete(
|
139
|
+
name,
|
140
|
+
controller: nil,
|
141
|
+
action: nil,
|
142
|
+
param: :id,
|
143
|
+
module: nil,
|
144
|
+
as: nil,
|
145
|
+
via: nil,
|
146
|
+
to: nil,
|
147
|
+
on: nil,
|
148
|
+
constraints: nil,
|
149
|
+
defaults: nil,
|
150
|
+
anchor: true,
|
151
|
+
format: nil,
|
152
|
+
path: nil,
|
153
|
+
&block
|
154
|
+
); end
|
155
|
+
|
156
|
+
sig do
|
157
|
+
params(
|
158
|
+
name: T.any(String, Symbol, T::Hash[String, String]),
|
159
|
+
controller: T.nilable(T.any(String, Symbol)),
|
160
|
+
action: T.nilable(T.any(String, Symbol)),
|
161
|
+
param: T.nilable(Symbol),
|
162
|
+
module: T.nilable(T.any(String, Symbol)),
|
163
|
+
as: T.nilable(T.any(String, Symbol)),
|
164
|
+
via: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
165
|
+
to: T.nilable(T.any(String, T.proc.returns(T.untyped))),
|
166
|
+
on: T.nilable(Symbol),
|
167
|
+
constraints: T.untyped,
|
168
|
+
defaults: T.nilable(T::Hash[T.untyped, T.untyped]),
|
169
|
+
anchor: T::Boolean,
|
170
|
+
format: T.nilable(T.any(String, T::Boolean)),
|
171
|
+
path: T.nilable(T.any(String, Symbol)),
|
172
|
+
block: T.untyped
|
173
|
+
).returns(T.untyped)
|
174
|
+
end
|
175
|
+
def get(
|
176
|
+
name,
|
177
|
+
controller: nil,
|
178
|
+
action: nil,
|
179
|
+
param: :id,
|
180
|
+
module: nil,
|
181
|
+
as: nil,
|
182
|
+
via: nil,
|
183
|
+
to: nil,
|
184
|
+
on: nil,
|
185
|
+
constraints: nil,
|
186
|
+
defaults: nil,
|
187
|
+
anchor: true,
|
188
|
+
format: nil,
|
189
|
+
path: nil,
|
190
|
+
&block
|
191
|
+
); end
|
192
|
+
|
193
|
+
sig do
|
194
|
+
params(
|
195
|
+
name: T.any(String, Symbol, T::Hash[String, String]),
|
196
|
+
controller: T.nilable(T.any(String, Symbol)),
|
197
|
+
action: T.nilable(T.any(String, Symbol)),
|
198
|
+
param: T.nilable(Symbol),
|
199
|
+
module: T.nilable(T.any(String, Symbol)),
|
200
|
+
as: T.nilable(T.any(String, Symbol)),
|
201
|
+
via: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
202
|
+
to: T.nilable(T.any(String, T.proc.returns(T.untyped))),
|
203
|
+
on: T.nilable(Symbol),
|
204
|
+
constraints: T.untyped,
|
205
|
+
defaults: T.nilable(T::Hash[T.untyped, T.untyped]),
|
206
|
+
anchor: T::Boolean,
|
207
|
+
format: T.nilable(T.any(String, T::Boolean)),
|
208
|
+
path: T.nilable(T.any(String, Symbol)),
|
209
|
+
block: T.untyped
|
210
|
+
).returns(T.untyped)
|
211
|
+
end
|
212
|
+
def patch(
|
213
|
+
name,
|
214
|
+
controller: nil,
|
215
|
+
action: nil,
|
216
|
+
param: :id,
|
217
|
+
module: nil,
|
218
|
+
as: nil,
|
219
|
+
via: nil,
|
220
|
+
to: nil,
|
221
|
+
on: nil,
|
222
|
+
constraints: nil,
|
223
|
+
defaults: nil,
|
224
|
+
anchor: true,
|
225
|
+
format: nil,
|
226
|
+
path: nil,
|
227
|
+
&block
|
228
|
+
); end
|
229
|
+
|
230
|
+
sig do
|
231
|
+
params(
|
232
|
+
name: T.any(String, Symbol, T::Hash[String, String]),
|
233
|
+
controller: T.nilable(T.any(String, Symbol)),
|
234
|
+
action: T.nilable(T.any(String, Symbol)),
|
235
|
+
param: T.nilable(Symbol),
|
236
|
+
module: T.nilable(T.any(String, Symbol)),
|
237
|
+
as: T.nilable(T.any(String, Symbol)),
|
238
|
+
via: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
239
|
+
to: T.nilable(T.any(String, T.proc.returns(T.untyped))),
|
240
|
+
on: T.nilable(Symbol),
|
241
|
+
constraints: T.untyped,
|
242
|
+
defaults: T.nilable(T::Hash[T.untyped, T.untyped]),
|
243
|
+
anchor: T::Boolean,
|
244
|
+
format: T.nilable(T.any(String, T::Boolean)),
|
245
|
+
path: T.nilable(T.any(String, Symbol)),
|
246
|
+
block: T.untyped
|
247
|
+
).returns(T.untyped)
|
248
|
+
end
|
249
|
+
def post(
|
250
|
+
name,
|
251
|
+
controller: nil,
|
252
|
+
action: nil,
|
253
|
+
param: :id,
|
254
|
+
module: nil,
|
255
|
+
as: nil,
|
256
|
+
via: nil,
|
257
|
+
to: nil,
|
258
|
+
on: nil,
|
259
|
+
constraints: nil,
|
260
|
+
defaults: nil,
|
261
|
+
anchor: true,
|
262
|
+
format: nil,
|
263
|
+
path: nil,
|
264
|
+
&block
|
265
|
+
); end
|
266
|
+
|
267
|
+
sig do
|
268
|
+
params(
|
269
|
+
name: T.any(String, Symbol, T::Hash[String, String]),
|
270
|
+
controller: T.nilable(T.any(String, Symbol)),
|
271
|
+
action: T.nilable(T.any(String, Symbol)),
|
272
|
+
param: T.nilable(Symbol),
|
273
|
+
module: T.nilable(T.any(String, Symbol)),
|
274
|
+
as: T.nilable(T.any(String, Symbol)),
|
275
|
+
via: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
276
|
+
to: T.nilable(T.any(String, T.proc.returns(T.untyped))),
|
277
|
+
on: T.nilable(Symbol),
|
278
|
+
constraints: T.untyped,
|
279
|
+
defaults: T.nilable(T::Hash[T.untyped, T.untyped]),
|
280
|
+
anchor: T::Boolean,
|
281
|
+
format: T.nilable(T.any(String, T::Boolean)),
|
282
|
+
path: T.nilable(T.any(String, Symbol)),
|
283
|
+
block: T.untyped
|
284
|
+
).returns(T.untyped)
|
285
|
+
end
|
286
|
+
def put(
|
287
|
+
name,
|
288
|
+
controller: nil,
|
289
|
+
action: nil,
|
290
|
+
param: :id,
|
291
|
+
module: nil,
|
292
|
+
as: nil,
|
293
|
+
via: nil,
|
294
|
+
to: nil,
|
295
|
+
on: nil,
|
296
|
+
constraints: nil,
|
297
|
+
defaults: nil,
|
298
|
+
anchor: true,
|
299
|
+
format: nil,
|
300
|
+
path: nil,
|
301
|
+
&block
|
302
|
+
); end
|
303
|
+
end
|
304
|
+
|
305
|
+
module ActionDispatch::Routing::Mapper::Resources
|
306
|
+
sig { params(name: T.untyped).returns(T.untyped) }
|
307
|
+
def action_path(name); end
|
308
|
+
|
309
|
+
sig { params(block: T.untyped).returns(T.untyped) }
|
310
|
+
def collection(&block); end
|
311
|
+
|
312
|
+
sig do
|
313
|
+
params(
|
314
|
+
name: T.any(String, Symbol, T::Hash[String, String]),
|
315
|
+
controller: T.nilable(T.any(String, Symbol)),
|
316
|
+
action: T.nilable(T.any(String, Symbol)),
|
317
|
+
param: T.nilable(Symbol),
|
318
|
+
module: T.nilable(T.any(String, Symbol)),
|
319
|
+
as: T.nilable(T.any(String, Symbol)),
|
320
|
+
via: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
321
|
+
to: T.nilable(T.any(String, T.proc.returns(T.untyped))),
|
322
|
+
on: T.nilable(Symbol),
|
323
|
+
constraints: T.untyped,
|
324
|
+
defaults: T.nilable(T::Hash[T.untyped, T.untyped]),
|
325
|
+
anchor: T::Boolean,
|
326
|
+
format: T.nilable(T.any(String, T::Boolean)),
|
327
|
+
path: T.nilable(T.any(String, Symbol)),
|
328
|
+
block: T.untyped
|
329
|
+
).returns(T.untyped)
|
330
|
+
end
|
331
|
+
def match(
|
332
|
+
name,
|
333
|
+
controller: nil,
|
334
|
+
action: nil,
|
335
|
+
param: :id,
|
336
|
+
module: nil,
|
337
|
+
as: nil,
|
338
|
+
via: nil,
|
339
|
+
to: nil,
|
340
|
+
on: nil,
|
341
|
+
constraints: nil,
|
342
|
+
defaults: nil,
|
343
|
+
anchor: true,
|
344
|
+
format: nil,
|
345
|
+
path: nil,
|
346
|
+
&block
|
347
|
+
); end
|
348
|
+
|
349
|
+
sig { params(block: T.untyped).returns(T.untyped) }
|
350
|
+
def member(&block); end
|
351
|
+
|
352
|
+
# These are set to T.unsafe(nil) because they do actually have values, but they
|
353
|
+
# can't be determined statically. They take the value of path when no explicit
|
354
|
+
# values are provided.
|
355
|
+
sig do
|
356
|
+
params(
|
357
|
+
path: T.untyped,
|
358
|
+
as: T.untyped,
|
359
|
+
module: T.untyped,
|
360
|
+
shallow_path: T.untyped,
|
361
|
+
shallow_prefix: T.untyped,
|
362
|
+
block: T.untyped
|
363
|
+
).returns(T.untyped)
|
364
|
+
end
|
365
|
+
def namespace(
|
366
|
+
path,
|
367
|
+
as: T.unsafe(nil),
|
368
|
+
module: T.unsafe(nil),
|
369
|
+
shallow_path: T.unsafe(nil),
|
370
|
+
shallow_prefix: T.unsafe(nil),
|
371
|
+
&block
|
372
|
+
); end
|
373
|
+
|
374
|
+
sig do
|
375
|
+
params(
|
376
|
+
resources: T.any(String, Symbol),
|
377
|
+
as: T.nilable(T.any(String, Symbol)),
|
378
|
+
controller: T.nilable(T.any(String, Symbol)),
|
379
|
+
concerns: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
380
|
+
param: T.nilable(Symbol),
|
381
|
+
path_names: T.untyped,
|
382
|
+
path: T.untyped,
|
383
|
+
only: T.nilable(T.any(
|
384
|
+
T::Array[T.any(String, Symbol)],
|
385
|
+
String,
|
386
|
+
Symbol
|
387
|
+
)),
|
388
|
+
except: T.nilable(T.any(
|
389
|
+
T::Array[T.any(String, Symbol)],
|
390
|
+
String,
|
391
|
+
Symbol
|
392
|
+
)),
|
393
|
+
shallow: T::Boolean,
|
394
|
+
shallow_path: T.nilable(String),
|
395
|
+
shallow_prefix: T.nilable(String),
|
396
|
+
format: T.untyped,
|
397
|
+
block: T.untyped
|
398
|
+
).returns(T.untyped)
|
399
|
+
end
|
400
|
+
def resource(
|
401
|
+
*resources,
|
402
|
+
as: nil,
|
403
|
+
controller: nil,
|
404
|
+
concerns: nil,
|
405
|
+
param: nil,
|
406
|
+
path_names: nil,
|
407
|
+
path: nil,
|
408
|
+
only: nil,
|
409
|
+
except: nil,
|
410
|
+
shallow: false,
|
411
|
+
shallow_path: nil,
|
412
|
+
shallow_prefix: nil,
|
413
|
+
format: nil,
|
414
|
+
&block
|
415
|
+
); end
|
416
|
+
|
417
|
+
sig do
|
418
|
+
params(
|
419
|
+
resources: T.any(String, Symbol),
|
420
|
+
as: T.nilable(T.any(String, Symbol)),
|
421
|
+
controller: T.nilable(T.any(String, Symbol)),
|
422
|
+
concerns: T.nilable(T.any(Symbol, T::Array[Symbol])),
|
423
|
+
param: T.nilable(Symbol),
|
424
|
+
path_names: T.untyped,
|
425
|
+
path: T.untyped,
|
426
|
+
only: T.nilable(T.any(
|
427
|
+
T::Array[T.any(String, Symbol)],
|
428
|
+
String,
|
429
|
+
Symbol
|
430
|
+
)),
|
431
|
+
except: T.nilable(T.any(
|
432
|
+
T::Array[T.any(String, Symbol)],
|
433
|
+
String,
|
434
|
+
Symbol
|
435
|
+
)),
|
436
|
+
shallow: T::Boolean,
|
437
|
+
shallow_path: T.nilable(String),
|
438
|
+
shallow_prefix: T.nilable(String),
|
439
|
+
format: T.untyped,
|
440
|
+
block: T.untyped
|
441
|
+
).returns(T.untyped)
|
442
|
+
end
|
443
|
+
def resources(
|
444
|
+
*resources,
|
445
|
+
as: nil,
|
446
|
+
controller: nil,
|
447
|
+
concerns: nil,
|
448
|
+
param: nil,
|
449
|
+
path_names: nil,
|
450
|
+
path: nil,
|
451
|
+
only: nil,
|
452
|
+
except: nil,
|
453
|
+
shallow: false,
|
454
|
+
shallow_path: nil,
|
455
|
+
shallow_prefix: nil,
|
456
|
+
format: nil,
|
457
|
+
&block
|
458
|
+
); end
|
459
|
+
|
460
|
+
sig { params(path: String, to: T.untyped).returns(T.untyped) }
|
461
|
+
def root(path, to: nil); end
|
462
|
+
|
463
|
+
sig { returns(T.untyped) }
|
464
|
+
def shallow; end
|
465
|
+
|
466
|
+
sig { returns(T::Boolean) }
|
467
|
+
def shallow?; end
|
468
|
+
end
|