sorbet-rails 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -2
- data/.travis.yml +7 -1
- data/CONTRIBUTING.md +3 -1
- data/Gemfile +11 -0
- data/README.md +0 -2
- data/{rbi → lib/sorbet-rails/rbi}/activerecord.rbi +118 -86
- data/lib/sorbet-rails/tasks/rails_rbi.rake +15 -6
- data/lib/sorbet-rails/utils.rb +11 -0
- data/sorbet-rails.gemspec +1 -1
- data/spec/bin/run_all_specs.sh +3 -2
- data/spec/bin/run_spec.sh +33 -26
- data/spec/model_rbi_formatter_spec.rb +0 -15
- data/spec/rails_helper.rb +12 -7
- data/spec/rake_rails_rbi_models_spec.rb +22 -5
- data/spec/rake_rails_rbi_routes_spec.rb +0 -1
- data/spec/sorbet_spec.rb +80 -0
- data/spec/support/rails_shared/config/routes.rb +1 -0
- data/spec/support/rails_shared/sorbet_test_cases.rb +120 -0
- data/spec/support/rails_symlinks/sorbet_test_cases.rb +1 -0
- data/spec/support/v4.2/Gemfile +13 -0
- data/spec/support/v4.2/Gemfile.lock +138 -0
- data/spec/support/v4.2/app/controllers/application_controller.rb +1 -0
- data/spec/support/v4.2/app/helpers/application_helper.rb +1 -0
- data/spec/support/v4.2/config/application.rb +1 -0
- data/spec/support/v4.2/config/boot.rb +1 -0
- data/spec/support/v4.2/config/environment.rb +1 -0
- data/spec/support/v4.2/config/environments/development.rb +1 -0
- data/spec/support/v4.2/config/environments/production.rb +1 -0
- data/spec/support/v4.2/config/environments/test.rb +1 -0
- data/spec/support/v4.2/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v4.2/config/initializers/cookies_serializer.rb +1 -0
- data/spec/support/v4.2/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v4.2/config/initializers/inflections.rb +1 -0
- data/spec/support/v4.2/config/initializers/mime_types.rb +1 -0
- data/spec/support/v4.2/config/initializers/session_store.rb +1 -0
- data/spec/support/v4.2/config/initializers/to_time_preserves_timezone.rb +1 -0
- data/spec/support/v4.2/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v4.2/config/routes.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190620001234_create_wizards.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190620003037_create_wands.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190620003739_create_spell_books.rb +1 -0
- data/spec/support/v4.2/db/migrate/20190622000000_add_more_column_types_to_wands.rb +1 -0
- data/spec/support/v4.2/db/schema.rb +1 -0
- data/spec/support/v4.2/db/seeds.rb +1 -0
- data/spec/support/v4.2/sorbet/config +2 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionmailer.rbi +267 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionpack.rbi +2885 -0
- data/spec/support/v4.2/sorbet/rbi/gems/actionview.rbi +978 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activejob.rbi +19 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activemodel.rbi +335 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activerecord.rbi +3382 -0
- data/spec/support/v4.2/sorbet/rbi/gems/activesupport.rbi +1892 -0
- data/spec/support/v4.2/sorbet/rbi/gems/arel.rbi +1109 -0
- data/spec/support/v4.2/sorbet/rbi/gems/binding_of_caller.rbi +22 -0
- data/spec/support/v4.2/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v4.2/sorbet/rbi/gems/concurrent-ruby.rbi +218 -0
- data/spec/support/v4.2/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v4.2/sorbet/rbi/gems/debug_inspector.rbi +18 -0
- data/spec/support/v4.2/sorbet/rbi/gems/erubis.rbi +265 -0
- data/spec/support/v4.2/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v4.2/sorbet/rbi/gems/i18n.rbi +186 -0
- data/spec/support/v4.2/sorbet/rbi/gems/jbuilder.rbi +99 -0
- data/spec/support/v4.2/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v4.2/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v4.2/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v4.2/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v4.2/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rack-test.rbi +145 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rack.rbi +490 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-deprecated_sanitizer.rbi +13 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-dom-testing.rbi +76 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v4.2/sorbet/rbi/gems/railties.rbi +623 -0
- data/spec/support/v4.2/sorbet/rbi/gems/rdoc.rbi +1053 -0
- data/spec/support/v4.2/sorbet/rbi/gems/sdoc.rbi +73 -0
- data/spec/support/v4.2/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v4.2/sorbet/rbi/gems/sqlite3.rbi +345 -0
- data/spec/support/v4.2/sorbet/rbi/gems/thor.rbi +401 -0
- data/spec/support/v4.2/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v4.2/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v4.2/sorbet/rbi/gems/web-console.rbi +136 -0
- data/spec/support/v4.2/sorbet/rbi/hidden-definitions/errors.txt +11998 -0
- data/spec/support/v4.2/sorbet/rbi/hidden-definitions/hidden.rbi +27774 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v4.2/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v4.2/sorbet/rbi/todo.rbi +8 -0
- data/spec/support/v4.2/sorbet_test_cases.rb +1 -0
- data/spec/support/v4.2/test/test_helper.rb +1 -0
- data/spec/support/v5.0/Gemfile +13 -0
- data/spec/support/v5.0/Gemfile.lock +130 -0
- data/spec/support/v5.0/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v5.0/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v5.0/app/jobs/application_job.rb +1 -0
- data/spec/support/v5.0/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v5.0/config/application.rb +1 -0
- data/spec/support/v5.0/config/boot.rb +1 -0
- data/spec/support/v5.0/config/environment.rb +1 -0
- data/spec/support/v5.0/config/environments/development.rb +1 -0
- data/spec/support/v5.0/config/environments/production.rb +1 -0
- data/spec/support/v5.0/config/environments/test.rb +1 -0
- data/spec/support/v5.0/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v5.0/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v5.0/config/initializers/cors.rb +1 -0
- data/spec/support/v5.0/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v5.0/config/initializers/inflections.rb +1 -0
- data/spec/support/v5.0/config/initializers/mime_types.rb +1 -0
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +1 -0
- data/spec/support/v5.0/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v5.0/config/puma.rb +1 -0
- data/spec/support/v5.0/config/routes.rb +1 -0
- data/spec/support/v5.0/db/schema.rb +1 -0
- data/spec/support/v5.0/db/seeds.rb +1 -0
- data/spec/support/v5.0/rails_symlinks/config/routes.rb +1 -0
- data/spec/support/v5.0/sorbet/config +2 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actioncable.rbi +309 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionmailer.rbi +379 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionpack.rbi +3150 -0
- data/spec/support/v5.0/sorbet/rbi/gems/actionview.rbi +1093 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activejob.rbi +252 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activemodel.rbi +562 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activerecord.rbi +4060 -0
- data/spec/support/v5.0/sorbet/rbi/gems/activesupport.rbi +2078 -0
- data/spec/support/v5.0/sorbet/rbi/gems/arel.rbi +1222 -0
- data/spec/support/v5.0/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v5.0/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/spec/support/v5.0/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v5.0/sorbet/rbi/gems/erubis.rbi +265 -0
- data/spec/support/v5.0/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v5.0/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v5.0/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v5.0/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v5.0/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v5.0/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v5.0/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v5.0/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v5.0/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rack-test.rbi +145 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rack.rbi +534 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v5.0/sorbet/rbi/gems/railties.rbi +682 -0
- data/spec/support/v5.0/sorbet/rbi/gems/rake.rbi +255 -0
- data/spec/support/v5.0/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v5.0/sorbet/rbi/gems/sqlite3.rbi +345 -0
- data/spec/support/v5.0/sorbet/rbi/gems/thor.rbi +401 -0
- data/spec/support/v5.0/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v5.0/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v5.0/sorbet/rbi/hidden-definitions/errors.txt +10523 -0
- data/spec/support/v5.0/sorbet/rbi/hidden-definitions/hidden.rbi +24969 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v5.0/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v5.0/sorbet/rbi/todo.rbi +10 -0
- data/spec/support/v5.0/sorbet_test_cases.rb +1 -0
- data/spec/support/v5.0/test/test_helper.rb +1 -0
- data/spec/support/v5.1/Gemfile +13 -0
- data/spec/support/v5.1/Gemfile.lock +15 -20
- data/spec/support/v5.1/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v5.1/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v5.1/app/jobs/application_job.rb +1 -0
- data/spec/support/v5.1/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v5.1/bin/rails +0 -5
- data/spec/support/v5.1/bin/rake +0 -5
- data/spec/support/v5.1/config/application.rb +1 -0
- data/spec/support/v5.1/config/boot.rb +1 -0
- data/spec/support/v5.1/config/environment.rb +1 -0
- data/spec/support/v5.1/config/environments/development.rb +2 -1
- data/spec/support/v5.1/config/environments/production.rb +1 -0
- data/spec/support/v5.1/config/environments/test.rb +1 -0
- data/spec/support/v5.1/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v5.1/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v5.1/config/initializers/cors.rb +1 -0
- data/spec/support/v5.1/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v5.1/config/initializers/inflections.rb +1 -0
- data/spec/support/v5.1/config/initializers/mime_types.rb +1 -0
- data/spec/support/v5.1/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v5.1/config/puma.rb +1 -0
- data/spec/support/v5.1/config/spring.rb +1 -0
- data/spec/support/v5.1/db/schema.rb +1 -0
- data/spec/support/v5.1/db/seeds.rb +1 -0
- data/spec/support/v5.1/sorbet/config +2 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actioncable.rbi +309 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionmailer.rbi +429 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionpack.rbi +3171 -0
- data/spec/support/v5.1/sorbet/rbi/gems/actionview.rbi +1115 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activejob.rbi +273 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activemodel.rbi +547 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activerecord.rbi +4093 -0
- data/spec/support/v5.1/sorbet/rbi/gems/activesupport.rbi +2180 -0
- data/spec/support/v5.1/sorbet/rbi/gems/arel.rbi +1220 -0
- data/spec/support/v5.1/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v5.1/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/spec/support/v5.1/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v5.1/sorbet/rbi/gems/erubi.rbi +26 -0
- data/spec/support/v5.1/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v5.1/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v5.1/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v5.1/sorbet/rbi/gems/mail.rbi +1091 -0
- data/spec/support/v5.1/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v5.1/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v5.1/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v5.1/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v5.1/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rack-test.rbi +161 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rack.rbi +534 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v5.1/sorbet/rbi/gems/railties.rbi +707 -0
- data/spec/support/v5.1/sorbet/rbi/gems/rake.rbi +255 -0
- data/spec/support/v5.1/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v5.1/sorbet/rbi/gems/sqlite3.rbi +345 -0
- data/spec/support/v5.1/sorbet/rbi/gems/thor.rbi +450 -0
- data/spec/support/v5.1/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v5.1/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v5.1/sorbet/rbi/hidden-definitions/errors.txt +10226 -0
- data/spec/support/v5.1/sorbet/rbi/hidden-definitions/hidden.rbi +24635 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v5.1/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v5.1/sorbet/rbi/todo.rbi +11 -0
- data/spec/support/v5.1/sorbet_test_cases.rb +1 -0
- data/spec/support/v5.1/test/test_helper.rb +1 -0
- data/spec/support/v5.2/Gemfile +12 -0
- data/spec/support/v5.2/Gemfile.lock +12 -0
- data/spec/support/v5.2/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v5.2/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v5.2/app/jobs/application_job.rb +1 -0
- data/spec/support/v5.2/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v5.2/bin/rails +0 -5
- data/spec/support/v5.2/bin/rake +0 -5
- data/spec/support/v5.2/config/application.rb +1 -0
- data/spec/support/v5.2/config/boot.rb +1 -0
- data/spec/support/v5.2/config/environment.rb +1 -0
- data/spec/support/v5.2/config/environments/development.rb +1 -0
- data/spec/support/v5.2/config/environments/production.rb +1 -0
- data/spec/support/v5.2/config/environments/test.rb +1 -0
- data/spec/support/v5.2/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v5.2/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v5.2/config/initializers/cors.rb +1 -0
- data/spec/support/v5.2/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v5.2/config/initializers/inflections.rb +1 -0
- data/spec/support/v5.2/config/initializers/mime_types.rb +1 -0
- data/spec/support/v5.2/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v5.2/config/puma.rb +1 -0
- data/spec/support/v5.2/config/spring.rb +1 -0
- data/spec/support/v5.2/db/schema.rb +1 -0
- data/spec/support/v5.2/db/seeds.rb +1 -0
- data/spec/support/v5.2/sorbet/rbi/gems/sorbet-runtime.rbi +644 -0
- data/spec/support/v5.2/sorbet/rbi/hidden-definitions/errors.txt +12 -6
- data/spec/support/v5.2/sorbet/rbi/hidden-definitions/hidden.rbi +57 -19
- data/spec/support/v5.2/sorbet_test_cases.rb +1 -0
- data/spec/support/v5.2/test/test_helper.rb +1 -0
- data/spec/support/v5.2-no-sorbet/Gemfile +57 -0
- data/spec/support/v5.2-no-sorbet/Gemfile.lock +140 -0
- data/spec/support/v5.2-no-sorbet/README.md +24 -0
- data/spec/support/v5.2-no-sorbet/Rakefile +6 -0
- data/spec/support/v5.2-no-sorbet/app/channels/application_cable/channel.rb +5 -0
- data/spec/support/v5.2-no-sorbet/app/channels/application_cable/connection.rb +5 -0
- data/spec/support/v5.2-no-sorbet/app/controllers +1 -0
- data/spec/support/v5.2-no-sorbet/app/jobs/application_job.rb +3 -0
- data/spec/support/v5.2-no-sorbet/app/mailers/application_mailer.rb +5 -0
- data/spec/support/v5.2-no-sorbet/app/models +1 -0
- data/spec/support/v5.2-no-sorbet/app/views/layouts/mailer.html.erb +13 -0
- data/spec/support/v5.2-no-sorbet/app/views/layouts/mailer.text.erb +1 -0
- data/spec/support/v5.2-no-sorbet/bin/bundle +3 -0
- data/spec/support/v5.2-no-sorbet/bin/rails +4 -0
- data/spec/support/v5.2-no-sorbet/bin/rake +4 -0
- data/spec/support/v5.2-no-sorbet/bin/setup +33 -0
- data/spec/support/v5.2-no-sorbet/bin/spring +17 -0
- data/spec/support/v5.2-no-sorbet/bin/update +28 -0
- data/spec/support/v5.2-no-sorbet/config/application.rb +36 -0
- data/spec/support/v5.2-no-sorbet/config/boot.rb +4 -0
- data/spec/support/v5.2-no-sorbet/config/cable.yml +10 -0
- data/spec/support/v5.2-no-sorbet/config/credentials.yml.enc +1 -0
- data/spec/support/v5.2-no-sorbet/config/database.yml +25 -0
- data/spec/support/v5.2-no-sorbet/config/environment.rb +6 -0
- data/spec/support/v5.2-no-sorbet/config/environments/development.rb +55 -0
- data/spec/support/v5.2-no-sorbet/config/environments/production.rb +86 -0
- data/spec/support/v5.2-no-sorbet/config/environments/test.rb +47 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/application_controller_renderer.rb +9 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/backtrace_silencers.rb +8 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/cors.rb +17 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/filter_parameter_logging.rb +5 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/inflections.rb +17 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/mime_types.rb +5 -0
- data/spec/support/v5.2-no-sorbet/config/initializers/wrap_parameters.rb +15 -0
- data/spec/support/v5.2-no-sorbet/config/locales/en.yml +33 -0
- data/spec/support/v5.2-no-sorbet/config/puma.rb +35 -0
- data/spec/support/v5.2-no-sorbet/config/routes.rb +1 -0
- data/spec/support/v5.2-no-sorbet/config/spring.rb +7 -0
- data/spec/support/v5.2-no-sorbet/config/storage.yml +34 -0
- data/spec/support/v5.2-no-sorbet/config.ru +5 -0
- data/spec/support/v5.2-no-sorbet/db/migrate +1 -0
- data/spec/support/v5.2-no-sorbet/db/schema.rb +48 -0
- data/spec/support/v5.2-no-sorbet/db/seeds.rb +8 -0
- data/spec/support/v5.2-no-sorbet/lib/tasks/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/log/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/public/robots.txt +1 -0
- data/spec/support/v5.2-no-sorbet/storage/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/controllers/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/fixtures/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/fixtures/files/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/integration/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/mailers/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/models/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/test/test_helper.rb +11 -0
- data/spec/support/v5.2-no-sorbet/tmp/.keep +0 -0
- data/spec/support/v5.2-no-sorbet/vendor/.keep +0 -0
- data/spec/support/v6.0/Gemfile +12 -0
- data/spec/support/v6.0/Gemfile.lock +157 -0
- data/spec/support/v6.0/app/channels/application_cable/channel.rb +1 -0
- data/spec/support/v6.0/app/channels/application_cable/connection.rb +1 -0
- data/spec/support/v6.0/app/jobs/application_job.rb +1 -0
- data/spec/support/v6.0/app/mailers/application_mailer.rb +1 -0
- data/spec/support/v6.0/config/application.rb +1 -0
- data/spec/support/v6.0/config/boot.rb +1 -0
- data/spec/support/v6.0/config/environment.rb +1 -0
- data/spec/support/v6.0/config/environments/development.rb +1 -0
- data/spec/support/v6.0/config/environments/production.rb +1 -0
- data/spec/support/v6.0/config/environments/test.rb +1 -0
- data/spec/support/v6.0/config/initializers/application_controller_renderer.rb +1 -0
- data/spec/support/v6.0/config/initializers/backtrace_silencers.rb +1 -0
- data/spec/support/v6.0/config/initializers/cors.rb +1 -0
- data/spec/support/v6.0/config/initializers/filter_parameter_logging.rb +1 -0
- data/spec/support/v6.0/config/initializers/inflections.rb +1 -0
- data/spec/support/v6.0/config/initializers/mime_types.rb +1 -0
- data/spec/support/v6.0/config/initializers/wrap_parameters.rb +1 -0
- data/spec/support/v6.0/config/puma.rb +1 -0
- data/spec/support/v6.0/config/routes.rb +1 -0
- data/spec/support/v6.0/db/schema.rb +1 -0
- data/spec/support/v6.0/db/seeds.rb +1 -0
- data/spec/support/v6.0/sorbet/config +2 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actioncable.rbi +245 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailbox.rbi +56 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionmailer.rbi +69 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionpack.rbi +2401 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actiontext.rbi +32 -0
- data/spec/support/v6.0/sorbet/rbi/gems/actionview.rbi +1033 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activejob.rbi +362 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activemodel.rbi +750 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activerecord.rbi +5552 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activestorage.rbi +217 -0
- data/spec/support/v6.0/sorbet/rbi/gems/activesupport.rbi +2430 -0
- data/spec/support/v6.0/sorbet/rbi/gems/byebug.rbi +1039 -0
- data/spec/support/v6.0/sorbet/rbi/gems/concurrent-ruby.rbi +1587 -0
- data/spec/support/v6.0/sorbet/rbi/gems/crass.rbi +92 -0
- data/spec/support/v6.0/sorbet/rbi/gems/erubi.rbi +26 -0
- data/spec/support/v6.0/sorbet/rbi/gems/globalid.rbi +98 -0
- data/spec/support/v6.0/sorbet/rbi/gems/i18n.rbi +191 -0
- data/spec/support/v6.0/sorbet/rbi/gems/loofah.rbi +129 -0
- data/spec/support/v6.0/sorbet/rbi/gems/mail.rbi +1542 -0
- data/spec/support/v6.0/sorbet/rbi/gems/marcel.rbi +12 -0
- data/spec/support/v6.0/sorbet/rbi/gems/method_source.rbi +63 -0
- data/spec/support/v6.0/sorbet/rbi/gems/mini_mime.rbi +45 -0
- data/spec/support/v6.0/sorbet/rbi/gems/minitest.rbi +276 -0
- data/spec/support/v6.0/sorbet/rbi/gems/nokogiri.rbi +1010 -0
- data/spec/support/v6.0/sorbet/rbi/gems/puma.rbi +570 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rack-test.rbi +161 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rack.rbi +522 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
- data/spec/support/v6.0/sorbet/rbi/gems/railties.rbi +760 -0
- data/spec/support/v6.0/sorbet/rbi/gems/rake.rbi +254 -0
- data/spec/support/v6.0/sorbet/rbi/gems/sorbet-runtime.rbi +647 -0
- data/spec/support/v6.0/sorbet/rbi/gems/sqlite3.rbi +353 -0
- data/spec/support/v6.0/sorbet/rbi/gems/thor.rbi +450 -0
- data/spec/support/v6.0/sorbet/rbi/gems/thread_safe.rbi +81 -0
- data/spec/support/v6.0/sorbet/rbi/gems/tzinfo.rbi +407 -0
- data/spec/support/v6.0/sorbet/rbi/gems/zeitwerk.rbi +119 -0
- data/spec/support/v6.0/sorbet/rbi/hidden-definitions/errors.txt +12074 -0
- data/spec/support/v6.0/sorbet/rbi/hidden-definitions/hidden.rbi +28231 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
- data/spec/support/v6.0/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
- data/spec/support/v6.0/sorbet/rbi/todo.rbi +11 -0
- data/spec/support/v6.0/sorbet_test_cases.rb +1 -0
- data/spec/support/v6.0/test/channels/application_cable/connection_test.rb +1 -0
- data/spec/support/v6.0/test/test_helper.rb +1 -0
- data/spec/test_data/v4.2/expected_srb_tc_output.txt +178 -0
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +155 -0
- data/spec/test_data/v5.0/expected_schema_migration.rbi +128 -0
- data/spec/test_data/v5.0/expected_srb_tc_output.txt +178 -0
- data/spec/test_data/v5.1/expected_internal_metadata.rbi +161 -0
- data/spec/test_data/v5.1/expected_schema_migration.rbi +134 -0
- data/spec/test_data/v5.1/expected_srb_tc_output.txt +160 -0
- data/spec/test_data/v5.2/expected_attachment.rbi +137 -0
- data/spec/test_data/v5.2/expected_blob.rbi +149 -0
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +161 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +134 -0
- data/spec/test_data/v5.2/expected_srb_tc_output.txt +160 -0
- data/spec/test_data/v5.2-no-sorbet/expected_attachment.rbi +137 -0
- data/spec/test_data/v5.2-no-sorbet/expected_blob.rbi +149 -0
- data/spec/test_data/v5.2-no-sorbet/expected_internal_metadata.rbi +161 -0
- data/spec/test_data/v5.2-no-sorbet/expected_no_routes.rbi +11 -0
- data/spec/test_data/v5.2-no-sorbet/expected_potion.rbi +128 -0
- data/spec/test_data/v5.2-no-sorbet/expected_routes.rbi +43 -0
- data/spec/test_data/v5.2-no-sorbet/expected_schema_migration.rbi +134 -0
- data/spec/test_data/v5.2-no-sorbet/expected_spell_book.rbi +161 -0
- data/spec/test_data/v5.2-no-sorbet/expected_srb_tc_output.txt +160 -0
- data/spec/test_data/v5.2-no-sorbet/expected_wand.rbi +311 -0
- data/spec/test_data/v5.2-no-sorbet/expected_wizard.rbi +254 -0
- data/spec/test_data/v5.2-no-sorbet/expected_wizard_wo_spellbook.rbi +254 -0
- data/spec/test_data/v6.0/expected_attachment.rbi +149 -0
- data/spec/test_data/v6.0/expected_blob.rbi +161 -0
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +173 -0
- data/spec/test_data/v6.0/expected_schema_migration.rbi +146 -0
- data/spec/test_data/v6.0/expected_srb_tc_output.txt +160 -0
- data/spec/utils_spec.rb +24 -0
- metadata +573 -2
@@ -0,0 +1,145 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rack-test/all/rack-test.rbi
|
9
|
+
#
|
10
|
+
# rack-test-0.6.3
|
11
|
+
module Rack
|
12
|
+
end
|
13
|
+
class Rack::MockSession
|
14
|
+
def after_request(&block); end
|
15
|
+
def clear_cookies; end
|
16
|
+
def cookie_jar; end
|
17
|
+
def cookie_jar=(arg0); end
|
18
|
+
def default_host; end
|
19
|
+
def initialize(app, default_host = nil); end
|
20
|
+
def last_request; end
|
21
|
+
def last_response; end
|
22
|
+
def request(uri, env); end
|
23
|
+
def set_cookie(cookie, uri = nil); end
|
24
|
+
end
|
25
|
+
module Rack::Test
|
26
|
+
def self.encoding_aware_strings?; end
|
27
|
+
end
|
28
|
+
class Rack::Test::Cookie
|
29
|
+
def <=>(other); end
|
30
|
+
def default_uri; end
|
31
|
+
def domain; end
|
32
|
+
def empty?; end
|
33
|
+
def expired?; end
|
34
|
+
def expires; end
|
35
|
+
def initialize(raw, uri = nil, default_host = nil); end
|
36
|
+
def matches?(uri); end
|
37
|
+
def name; end
|
38
|
+
def path; end
|
39
|
+
def raw; end
|
40
|
+
def replaces?(other); end
|
41
|
+
def secure?; end
|
42
|
+
def valid?(uri); end
|
43
|
+
def value; end
|
44
|
+
include Rack::Utils
|
45
|
+
end
|
46
|
+
class Rack::Test::CookieJar
|
47
|
+
def <<(new_cookie); end
|
48
|
+
def [](name); end
|
49
|
+
def []=(name, value); end
|
50
|
+
def delete(name); end
|
51
|
+
def for(uri); end
|
52
|
+
def hash_for(uri = nil); end
|
53
|
+
def initialize(cookies = nil, default_host = nil); end
|
54
|
+
def merge(raw_cookies, uri = nil); end
|
55
|
+
def to_hash; end
|
56
|
+
end
|
57
|
+
class Rack::Test::MockDigestRequest
|
58
|
+
def initialize(params); end
|
59
|
+
def method; end
|
60
|
+
def method_missing(sym); end
|
61
|
+
def response(password); end
|
62
|
+
end
|
63
|
+
module Rack::Test::Utils
|
64
|
+
def build_file_part(parameter_name, uploaded_file); end
|
65
|
+
def build_multipart(params, first = nil); end
|
66
|
+
def build_nested_query(value, prefix = nil); end
|
67
|
+
def build_parts(parameters); end
|
68
|
+
def build_primitive_part(parameter_name, value); end
|
69
|
+
def get_parts(parameters); end
|
70
|
+
def self.build_multipart(params, first = nil); end
|
71
|
+
def self.build_nested_query(value, prefix = nil); end
|
72
|
+
include Rack::Utils
|
73
|
+
end
|
74
|
+
module Rack::Test::Methods
|
75
|
+
def _current_session_names; end
|
76
|
+
def authorize(*args, &block); end
|
77
|
+
def basic_authorize(*args, &block); end
|
78
|
+
def build_rack_mock_session; end
|
79
|
+
def build_rack_test_session(name); end
|
80
|
+
def clear_cookies(*args, &block); end
|
81
|
+
def current_session; end
|
82
|
+
def delete(*args, &block); end
|
83
|
+
def digest_authorize(*args, &block); end
|
84
|
+
def env(*args, &block); end
|
85
|
+
def follow_redirect!(*args, &block); end
|
86
|
+
def get(*args, &block); end
|
87
|
+
def head(*args, &block); end
|
88
|
+
def header(*args, &block); end
|
89
|
+
def last_request(*args, &block); end
|
90
|
+
def last_response(*args, &block); end
|
91
|
+
def options(*args, &block); end
|
92
|
+
def patch(*args, &block); end
|
93
|
+
def post(*args, &block); end
|
94
|
+
def put(*args, &block); end
|
95
|
+
def rack_mock_session(name = nil); end
|
96
|
+
def rack_test_session(name = nil); end
|
97
|
+
def request(*args, &block); end
|
98
|
+
def set_cookie(*args, &block); end
|
99
|
+
def with_session(name); end
|
100
|
+
extend Forwardable
|
101
|
+
end
|
102
|
+
class Rack::Test::UploadedFile
|
103
|
+
def content_type; end
|
104
|
+
def content_type=(arg0); end
|
105
|
+
def initialize(path, content_type = nil, binary = nil); end
|
106
|
+
def local_path; end
|
107
|
+
def method_missing(method_name, *args, &block); end
|
108
|
+
def original_filename; end
|
109
|
+
def path; end
|
110
|
+
def respond_to?(method_name, include_private = nil); end
|
111
|
+
def tempfile; end
|
112
|
+
end
|
113
|
+
class Rack::Test::Error < StandardError
|
114
|
+
end
|
115
|
+
class Rack::Test::Session
|
116
|
+
def authorize(username, password); end
|
117
|
+
def basic_authorize(username, password); end
|
118
|
+
def clear_cookies(*args, &block); end
|
119
|
+
def default_env; end
|
120
|
+
def delete(uri, params = nil, env = nil, &block); end
|
121
|
+
def digest_auth_configured?; end
|
122
|
+
def digest_auth_header; end
|
123
|
+
def digest_authorize(username, password); end
|
124
|
+
def env(name, value); end
|
125
|
+
def env_for(path, env); end
|
126
|
+
def follow_redirect!; end
|
127
|
+
def get(uri, params = nil, env = nil, &block); end
|
128
|
+
def head(uri, params = nil, env = nil, &block); end
|
129
|
+
def header(name, value); end
|
130
|
+
def headers_for_env; end
|
131
|
+
def initialize(mock_session); end
|
132
|
+
def last_request(*args, &block); end
|
133
|
+
def last_response(*args, &block); end
|
134
|
+
def options(uri, params = nil, env = nil, &block); end
|
135
|
+
def params_to_string(params); end
|
136
|
+
def patch(uri, params = nil, env = nil, &block); end
|
137
|
+
def post(uri, params = nil, env = nil, &block); end
|
138
|
+
def process_request(uri, env); end
|
139
|
+
def put(uri, params = nil, env = nil, &block); end
|
140
|
+
def request(uri, env = nil, &block); end
|
141
|
+
def retry_with_digest_auth?(env); end
|
142
|
+
def set_cookie(*args, &block); end
|
143
|
+
extend Forwardable
|
144
|
+
include Rack::Test::Utils
|
145
|
+
end
|
@@ -0,0 +1,490 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rack/all/rack.rbi
|
9
|
+
#
|
10
|
+
# rack-1.6.11
|
11
|
+
module Rack
|
12
|
+
def self.release; end
|
13
|
+
def self.version; end
|
14
|
+
end
|
15
|
+
module Rack::Multipart
|
16
|
+
def self.build_multipart(params, first = nil); end
|
17
|
+
def self.parse_multipart(env); end
|
18
|
+
end
|
19
|
+
module Rack::Utils
|
20
|
+
def best_q_match(q_value_header, available_mimes); end
|
21
|
+
def build_nested_query(value, prefix = nil); end
|
22
|
+
def build_query(params); end
|
23
|
+
def byte_ranges(env, size); end
|
24
|
+
def bytesize(string); end
|
25
|
+
def clean_path_info(path_info); end
|
26
|
+
def delete_cookie_header!(header, key, value = nil); end
|
27
|
+
def escape(s); end
|
28
|
+
def escape_html(string); end
|
29
|
+
def escape_path(s); end
|
30
|
+
def normalize_params(params, name, v = nil, depth = nil); end
|
31
|
+
def params_hash_type?(obj); end
|
32
|
+
def parse_nested_query(qs, d = nil); end
|
33
|
+
def parse_query(qs, d = nil, &unescaper); end
|
34
|
+
def q_values(q_value_header); end
|
35
|
+
def rfc2109(time); end
|
36
|
+
def rfc2822(time); end
|
37
|
+
def secure_compare(a, b); end
|
38
|
+
def select_best_encoding(available_encodings, accept_encoding); end
|
39
|
+
def self.best_q_match(q_value_header, available_mimes); end
|
40
|
+
def self.build_nested_query(value, prefix = nil); end
|
41
|
+
def self.build_query(params); end
|
42
|
+
def self.byte_ranges(env, size); end
|
43
|
+
def self.bytesize(string); end
|
44
|
+
def self.clean_path_info(path_info); end
|
45
|
+
def self.delete_cookie_header!(header, key, value = nil); end
|
46
|
+
def self.escape(s); end
|
47
|
+
def self.escape_html(string); end
|
48
|
+
def self.escape_path(s); end
|
49
|
+
def self.key_space_limit; end
|
50
|
+
def self.key_space_limit=(arg0); end
|
51
|
+
def self.multipart_part_limit; end
|
52
|
+
def self.multipart_part_limit=(arg0); end
|
53
|
+
def self.normalize_params(params, name, v = nil, depth = nil); end
|
54
|
+
def self.param_depth_limit; end
|
55
|
+
def self.param_depth_limit=(arg0); end
|
56
|
+
def self.params_hash_type?(obj); end
|
57
|
+
def self.parse_nested_query(qs, d = nil); end
|
58
|
+
def self.parse_query(qs, d = nil, &unescaper); end
|
59
|
+
def self.q_values(q_value_header); end
|
60
|
+
def self.rfc2109(time); end
|
61
|
+
def self.rfc2822(time); end
|
62
|
+
def self.secure_compare(a, b); end
|
63
|
+
def self.select_best_encoding(available_encodings, accept_encoding); end
|
64
|
+
def self.set_cookie_header!(header, key, value); end
|
65
|
+
def self.status_code(status); end
|
66
|
+
def self.unescape(s, encoding = nil); end
|
67
|
+
def set_cookie_header!(header, key, value); end
|
68
|
+
def status_code(status); end
|
69
|
+
def unescape(s, encoding = nil); end
|
70
|
+
end
|
71
|
+
class Rack::Utils::ParameterTypeError < TypeError
|
72
|
+
end
|
73
|
+
class Rack::Utils::InvalidParameterError < ArgumentError
|
74
|
+
end
|
75
|
+
class Rack::Utils::Context
|
76
|
+
def app; end
|
77
|
+
def call(env); end
|
78
|
+
def context(env, app = nil); end
|
79
|
+
def for; end
|
80
|
+
def initialize(app_f, app_r); end
|
81
|
+
def recontext(app); end
|
82
|
+
end
|
83
|
+
class Rack::Utils::HeaderHash < Hash
|
84
|
+
def [](k); end
|
85
|
+
def []=(k, v); end
|
86
|
+
def delete(k); end
|
87
|
+
def each; end
|
88
|
+
def has_key?(k); end
|
89
|
+
def include?(k); end
|
90
|
+
def initialize(hash = nil); end
|
91
|
+
def key?(k); end
|
92
|
+
def member?(k); end
|
93
|
+
def merge!(other); end
|
94
|
+
def merge(other); end
|
95
|
+
def replace(other); end
|
96
|
+
def self.new(hash = nil); end
|
97
|
+
def to_hash; end
|
98
|
+
end
|
99
|
+
class Rack::Utils::KeySpaceConstrainedParams
|
100
|
+
def [](key); end
|
101
|
+
def []=(key, value); end
|
102
|
+
def initialize(limit = nil); end
|
103
|
+
def key?(key); end
|
104
|
+
def to_params_hash; end
|
105
|
+
end
|
106
|
+
module Rack::Auth
|
107
|
+
end
|
108
|
+
module Rack::Auth::Digest
|
109
|
+
end
|
110
|
+
module Rack::Session
|
111
|
+
end
|
112
|
+
class Rack::Request
|
113
|
+
def GET; end
|
114
|
+
def POST; end
|
115
|
+
def [](key); end
|
116
|
+
def []=(key, value); end
|
117
|
+
def accept_encoding; end
|
118
|
+
def accept_language; end
|
119
|
+
def base_url; end
|
120
|
+
def body; end
|
121
|
+
def content_charset; end
|
122
|
+
def content_length; end
|
123
|
+
def content_type; end
|
124
|
+
def cookies; end
|
125
|
+
def delete?; end
|
126
|
+
def delete_param(k); end
|
127
|
+
def env; end
|
128
|
+
def form_data?; end
|
129
|
+
def forwarded_scheme; end
|
130
|
+
def fullpath; end
|
131
|
+
def get?; end
|
132
|
+
def head?; end
|
133
|
+
def host; end
|
134
|
+
def host_with_port; end
|
135
|
+
def initialize(env); end
|
136
|
+
def ip; end
|
137
|
+
def link?; end
|
138
|
+
def logger; end
|
139
|
+
def media_type; end
|
140
|
+
def media_type_params; end
|
141
|
+
def options?; end
|
142
|
+
def params; end
|
143
|
+
def parse_http_accept_header(header); end
|
144
|
+
def parse_multipart(env); end
|
145
|
+
def parse_query(qs); end
|
146
|
+
def parseable_data?; end
|
147
|
+
def patch?; end
|
148
|
+
def path; end
|
149
|
+
def path_info; end
|
150
|
+
def path_info=(s); end
|
151
|
+
def port; end
|
152
|
+
def post?; end
|
153
|
+
def put?; end
|
154
|
+
def query_string; end
|
155
|
+
def referer; end
|
156
|
+
def referrer; end
|
157
|
+
def reject_trusted_ip_addresses(ip_addresses); end
|
158
|
+
def request_method; end
|
159
|
+
def scheme; end
|
160
|
+
def script_name; end
|
161
|
+
def script_name=(s); end
|
162
|
+
def session; end
|
163
|
+
def session_options; end
|
164
|
+
def split_ip_addresses(ip_addresses); end
|
165
|
+
def ssl?; end
|
166
|
+
def strip_doublequotes(s); end
|
167
|
+
def trace?; end
|
168
|
+
def trusted_proxy?(ip); end
|
169
|
+
def unlink?; end
|
170
|
+
def update_param(k, v); end
|
171
|
+
def url; end
|
172
|
+
def user_agent; end
|
173
|
+
def values_at(*keys); end
|
174
|
+
def xhr?; end
|
175
|
+
end
|
176
|
+
class Rack::BodyProxy
|
177
|
+
def close; end
|
178
|
+
def closed?; end
|
179
|
+
def each(*args, &block); end
|
180
|
+
def initialize(body, &block); end
|
181
|
+
def method_missing(*args, &block); end
|
182
|
+
def respond_to?(*args); end
|
183
|
+
end
|
184
|
+
class Rack::Response
|
185
|
+
def [](key); end
|
186
|
+
def []=(key, value); end
|
187
|
+
def body; end
|
188
|
+
def body=(arg0); end
|
189
|
+
def close; end
|
190
|
+
def delete_cookie(key, value = nil); end
|
191
|
+
def each(&callback); end
|
192
|
+
def empty?; end
|
193
|
+
def finish(&block); end
|
194
|
+
def header; end
|
195
|
+
def headers; end
|
196
|
+
def initialize(body = nil, status = nil, header = nil); end
|
197
|
+
def length; end
|
198
|
+
def length=(arg0); end
|
199
|
+
def redirect(target, status = nil); end
|
200
|
+
def set_cookie(key, value); end
|
201
|
+
def status; end
|
202
|
+
def status=(arg0); end
|
203
|
+
def to_a(&block); end
|
204
|
+
def to_ary(&block); end
|
205
|
+
def write(str); end
|
206
|
+
include Rack::Response::Helpers
|
207
|
+
end
|
208
|
+
module Rack::Response::Helpers
|
209
|
+
def accepted?; end
|
210
|
+
def bad_request?; end
|
211
|
+
def client_error?; end
|
212
|
+
def content_length; end
|
213
|
+
def content_type; end
|
214
|
+
def created?; end
|
215
|
+
def forbidden?; end
|
216
|
+
def headers; end
|
217
|
+
def i_m_a_teapot?; end
|
218
|
+
def include?(header); end
|
219
|
+
def informational?; end
|
220
|
+
def invalid?; end
|
221
|
+
def location; end
|
222
|
+
def method_not_allowed?; end
|
223
|
+
def not_found?; end
|
224
|
+
def ok?; end
|
225
|
+
def original_headers; end
|
226
|
+
def redirect?; end
|
227
|
+
def redirection?; end
|
228
|
+
def server_error?; end
|
229
|
+
def successful?; end
|
230
|
+
def unauthorized?; end
|
231
|
+
def unprocessable?; end
|
232
|
+
end
|
233
|
+
module Rack::Mime
|
234
|
+
def match?(value, matcher); end
|
235
|
+
def mime_type(ext, fallback = nil); end
|
236
|
+
def self.match?(value, matcher); end
|
237
|
+
def self.mime_type(ext, fallback = nil); end
|
238
|
+
end
|
239
|
+
class Rack::File
|
240
|
+
def _call(env); end
|
241
|
+
def cache_control; end
|
242
|
+
def cache_control=(arg0); end
|
243
|
+
def call(env); end
|
244
|
+
def each; end
|
245
|
+
def fail(status, body, headers = nil); end
|
246
|
+
def filesize; end
|
247
|
+
def initialize(root, headers = nil, default_mime = nil); end
|
248
|
+
def mime_type; end
|
249
|
+
def path; end
|
250
|
+
def path=(arg0); end
|
251
|
+
def response_body; end
|
252
|
+
def root; end
|
253
|
+
def root=(arg0); end
|
254
|
+
def serving(env); end
|
255
|
+
def to_path; end
|
256
|
+
end
|
257
|
+
class Rack::Sendfile
|
258
|
+
def call(env); end
|
259
|
+
def initialize(app, variation = nil, mappings = nil); end
|
260
|
+
def map_accel_path(env, path); end
|
261
|
+
def variation(env); end
|
262
|
+
end
|
263
|
+
class Rack::Lock
|
264
|
+
def call(env); end
|
265
|
+
def initialize(app, mutex = nil); end
|
266
|
+
end
|
267
|
+
class Rack::Runtime
|
268
|
+
def call(env); end
|
269
|
+
def clock_time; end
|
270
|
+
def initialize(app, name = nil); end
|
271
|
+
end
|
272
|
+
class Rack::MethodOverride
|
273
|
+
def allowed_methods; end
|
274
|
+
def call(env); end
|
275
|
+
def initialize(app); end
|
276
|
+
def method_override(env); end
|
277
|
+
def method_override_param(req); end
|
278
|
+
end
|
279
|
+
module Rack::Session::Abstract
|
280
|
+
end
|
281
|
+
class Rack::Session::Abstract::SessionHash
|
282
|
+
def [](key); end
|
283
|
+
def []=(key, value); end
|
284
|
+
def clear; end
|
285
|
+
def delete(key); end
|
286
|
+
def destroy; end
|
287
|
+
def each(&block); end
|
288
|
+
def empty?; end
|
289
|
+
def exists?; end
|
290
|
+
def fetch(key); end
|
291
|
+
def has_key?(key); end
|
292
|
+
def id; end
|
293
|
+
def id=(arg0); end
|
294
|
+
def include?(key); end
|
295
|
+
def initialize(store, env); end
|
296
|
+
def inspect; end
|
297
|
+
def key?(key); end
|
298
|
+
def keys; end
|
299
|
+
def load!; end
|
300
|
+
def load_for_read!; end
|
301
|
+
def load_for_write!; end
|
302
|
+
def loaded?; end
|
303
|
+
def merge!(hash); end
|
304
|
+
def options; end
|
305
|
+
def replace(hash); end
|
306
|
+
def self.find(env); end
|
307
|
+
def self.set(env, session); end
|
308
|
+
def self.set_options(env, options); end
|
309
|
+
def store(key, value); end
|
310
|
+
def stringify_keys(other); end
|
311
|
+
def to_hash; end
|
312
|
+
def update(hash); end
|
313
|
+
def values; end
|
314
|
+
include Enumerable
|
315
|
+
end
|
316
|
+
class Rack::Session::Abstract::ID
|
317
|
+
def call(env); end
|
318
|
+
def commit_session(env, status, headers, body); end
|
319
|
+
def commit_session?(env, session, options); end
|
320
|
+
def context(env, app = nil); end
|
321
|
+
def current_session_id(env); end
|
322
|
+
def default_options; end
|
323
|
+
def destroy_session(env, sid, options); end
|
324
|
+
def extract_session_id(env); end
|
325
|
+
def force_options?(options); end
|
326
|
+
def forced_session_update?(session, options); end
|
327
|
+
def generate_sid(secure = nil); end
|
328
|
+
def get_session(env, sid); end
|
329
|
+
def initialize(app, options = nil); end
|
330
|
+
def initialize_sid; end
|
331
|
+
def key; end
|
332
|
+
def load_session(env); end
|
333
|
+
def loaded_session?(session); end
|
334
|
+
def prepare_session(env); end
|
335
|
+
def security_matches?(env, options); end
|
336
|
+
def session_class; end
|
337
|
+
def session_exists?(env); end
|
338
|
+
def set_cookie(env, headers, cookie); end
|
339
|
+
def set_session(env, sid, session, options); end
|
340
|
+
end
|
341
|
+
class Rack::Session::Cookie < Rack::Session::Abstract::ID
|
342
|
+
def coder; end
|
343
|
+
def destroy_session(env, session_id, options); end
|
344
|
+
def digest_match?(data, digest); end
|
345
|
+
def extract_session_id(env); end
|
346
|
+
def generate_hmac(data, secret); end
|
347
|
+
def get_session(env, sid); end
|
348
|
+
def initialize(app, options = nil); end
|
349
|
+
def persistent_session_id!(data, sid = nil); end
|
350
|
+
def set_session(env, session_id, session, options); end
|
351
|
+
def unpacked_cookie_data(env); end
|
352
|
+
end
|
353
|
+
class Rack::Session::Cookie::Base64
|
354
|
+
def decode(str); end
|
355
|
+
def encode(str); end
|
356
|
+
end
|
357
|
+
class Rack::Session::Cookie::Base64::Marshal < Rack::Session::Cookie::Base64
|
358
|
+
def decode(str); end
|
359
|
+
def encode(str); end
|
360
|
+
end
|
361
|
+
class Rack::Session::Cookie::Base64::JSON < Rack::Session::Cookie::Base64
|
362
|
+
def decode(str); end
|
363
|
+
def encode(obj); end
|
364
|
+
end
|
365
|
+
class Rack::Session::Cookie::Base64::ZipJSON < Rack::Session::Cookie::Base64
|
366
|
+
def decode(str); end
|
367
|
+
def encode(obj); end
|
368
|
+
end
|
369
|
+
class Rack::Session::Cookie::Identity
|
370
|
+
def decode(str); end
|
371
|
+
def encode(str); end
|
372
|
+
end
|
373
|
+
class Rack::Head
|
374
|
+
def call(env); end
|
375
|
+
def initialize(app); end
|
376
|
+
end
|
377
|
+
class Rack::ConditionalGet
|
378
|
+
def call(env); end
|
379
|
+
def etag_matches?(none_match, headers); end
|
380
|
+
def fresh?(env, headers); end
|
381
|
+
def initialize(app); end
|
382
|
+
def modified_since?(modified_since, headers); end
|
383
|
+
def to_rfc2822(since); end
|
384
|
+
end
|
385
|
+
class Rack::ETag
|
386
|
+
def call(env); end
|
387
|
+
def digest_body(body); end
|
388
|
+
def etag_body?(body); end
|
389
|
+
def etag_status?(status); end
|
390
|
+
def initialize(app, no_cache_control = nil, cache_control = nil); end
|
391
|
+
def skip_caching?(headers); end
|
392
|
+
end
|
393
|
+
class Rack::Chunked
|
394
|
+
def call(env); end
|
395
|
+
def chunkable_version?(ver); end
|
396
|
+
def initialize(app); end
|
397
|
+
include Rack::Utils
|
398
|
+
end
|
399
|
+
class Rack::Chunked::Body
|
400
|
+
def close; end
|
401
|
+
def each; end
|
402
|
+
def initialize(body); end
|
403
|
+
include Rack::Utils
|
404
|
+
end
|
405
|
+
class Rack::Lint
|
406
|
+
def _call(env); end
|
407
|
+
def call(env = nil); end
|
408
|
+
def check_content_length(status, headers); end
|
409
|
+
def check_content_type(status, headers); end
|
410
|
+
def check_env(env); end
|
411
|
+
def check_error(error); end
|
412
|
+
def check_headers(header); end
|
413
|
+
def check_hijack(env); end
|
414
|
+
def check_hijack_response(headers, env); end
|
415
|
+
def check_input(input); end
|
416
|
+
def check_status(status); end
|
417
|
+
def close; end
|
418
|
+
def each; end
|
419
|
+
def initialize(app); end
|
420
|
+
def verify_content_length(bytes); end
|
421
|
+
include Rack::Lint::Assertion
|
422
|
+
end
|
423
|
+
class Rack::Lint::LintError < RuntimeError
|
424
|
+
end
|
425
|
+
module Rack::Lint::Assertion
|
426
|
+
def assert(message, &block); end
|
427
|
+
end
|
428
|
+
class Rack::Lint::InputWrapper
|
429
|
+
def close(*args); end
|
430
|
+
def each(*args); end
|
431
|
+
def gets(*args); end
|
432
|
+
def initialize(input); end
|
433
|
+
def read(*args); end
|
434
|
+
def rewind(*args); end
|
435
|
+
include Rack::Lint::Assertion
|
436
|
+
end
|
437
|
+
class Rack::Lint::ErrorWrapper
|
438
|
+
def close(*args); end
|
439
|
+
def flush; end
|
440
|
+
def initialize(error); end
|
441
|
+
def puts(str); end
|
442
|
+
def write(str); end
|
443
|
+
include Rack::Lint::Assertion
|
444
|
+
end
|
445
|
+
class Rack::Lint::HijackWrapper
|
446
|
+
def close(*args, &block); end
|
447
|
+
def close_read(*args, &block); end
|
448
|
+
def close_write(*args, &block); end
|
449
|
+
def closed?(*args, &block); end
|
450
|
+
def flush(*args, &block); end
|
451
|
+
def initialize(io); end
|
452
|
+
def read(*args, &block); end
|
453
|
+
def read_nonblock(*args, &block); end
|
454
|
+
def write(*args, &block); end
|
455
|
+
def write_nonblock(*args, &block); end
|
456
|
+
extend Forwardable
|
457
|
+
include Rack::Lint::Assertion
|
458
|
+
end
|
459
|
+
class Rack::MockRequest
|
460
|
+
def delete(uri, opts = nil); end
|
461
|
+
def get(uri, opts = nil); end
|
462
|
+
def head(uri, opts = nil); end
|
463
|
+
def initialize(app); end
|
464
|
+
def options(uri, opts = nil); end
|
465
|
+
def patch(uri, opts = nil); end
|
466
|
+
def post(uri, opts = nil); end
|
467
|
+
def put(uri, opts = nil); end
|
468
|
+
def request(method = nil, uri = nil, opts = nil); end
|
469
|
+
def self.env_for(uri = nil, opts = nil); end
|
470
|
+
def self.env_with_encoding(env, opts, uri); end
|
471
|
+
def self.parse_uri_rfc2396(uri); end
|
472
|
+
end
|
473
|
+
class Rack::MockRequest::FatalWarning < RuntimeError
|
474
|
+
end
|
475
|
+
class Rack::MockRequest::FatalWarner
|
476
|
+
def flush; end
|
477
|
+
def puts(warning); end
|
478
|
+
def string; end
|
479
|
+
def write(warning); end
|
480
|
+
end
|
481
|
+
class Rack::MockResponse < Rack::Response
|
482
|
+
def =~(other); end
|
483
|
+
def body; end
|
484
|
+
def empty?; end
|
485
|
+
def errors; end
|
486
|
+
def errors=(arg0); end
|
487
|
+
def initialize(status, headers, body, errors = nil); end
|
488
|
+
def match(other); end
|
489
|
+
def original_headers; end
|
490
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# This file is autogenerated. Do not edit it by hand. Regenerate it with:
|
2
|
+
# srb rbi gems
|
3
|
+
|
4
|
+
# typed: strong
|
5
|
+
#
|
6
|
+
# If you would like to make changes to this file, great! Please create the gem's shim here:
|
7
|
+
#
|
8
|
+
# https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rails-deprecated_sanitizer/all/rails-deprecated_sanitizer.rbi
|
9
|
+
#
|
10
|
+
# rails-deprecated_sanitizer-1.0.3
|
11
|
+
module HTML
|
12
|
+
extend ActiveSupport::Autoload
|
13
|
+
end
|