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
@@ -0,0 +1,17 @@
|
|
1
|
+
# typed: true
|
2
|
+
class Wand < ApplicationRecord
|
3
|
+
include Mythical
|
4
|
+
|
5
|
+
enum core_type: {
|
6
|
+
phoenix_feather: 0,
|
7
|
+
dragon_heartstring: 1,
|
8
|
+
unicorn_tail_hair: 2,
|
9
|
+
basilisk_horn: 3,
|
10
|
+
}
|
11
|
+
|
12
|
+
belongs_to :wizard
|
13
|
+
|
14
|
+
def wood_type
|
15
|
+
'Type ' + super
|
16
|
+
end
|
17
|
+
end
|
data/spec/support/v5.2/bin/setup
CHANGED
@@ -17,6 +17,9 @@ chdir APP_ROOT do
|
|
17
17
|
system! 'gem install bundler --conservative'
|
18
18
|
system('bundle check') || system!('bundle install')
|
19
19
|
|
20
|
+
# Install JavaScript dependencies if using Yarn
|
21
|
+
# system('bin/yarn')
|
22
|
+
|
20
23
|
# puts "\n== Copying sample files =="
|
21
24
|
# unless File.exist?('config/database.yml')
|
22
25
|
# cp 'config/database.yml.sample', 'config/database.yml'
|
@@ -17,6 +17,9 @@ chdir APP_ROOT do
|
|
17
17
|
system! 'gem install bundler --conservative'
|
18
18
|
system('bundle check') || system!('bundle install')
|
19
19
|
|
20
|
+
# Install JavaScript dependencies if using Yarn
|
21
|
+
# system('bin/yarn')
|
22
|
+
|
20
23
|
puts "\n== Updating database =="
|
21
24
|
system! 'bin/rails db:migrate'
|
22
25
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path('..', __dir__)
|
3
|
+
Dir.chdir(APP_ROOT) do
|
4
|
+
begin
|
5
|
+
exec "yarnpkg", *ARGV
|
6
|
+
rescue Errno::ENOENT
|
7
|
+
$stderr.puts "Yarn executable was not detected in the system."
|
8
|
+
$stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
|
9
|
+
exit 1
|
10
|
+
end
|
11
|
+
end
|
@@ -10,15 +10,15 @@ require "active_storage/engine"
|
|
10
10
|
require "action_controller/railtie"
|
11
11
|
require "action_mailer/railtie"
|
12
12
|
require "action_view/railtie"
|
13
|
-
require "action_cable/engine"
|
13
|
+
# require "action_cable/engine"
|
14
14
|
# require "sprockets/railtie"
|
15
|
-
require "rails/test_unit/railtie"
|
15
|
+
# require "rails/test_unit/railtie"
|
16
16
|
|
17
17
|
# Require the gems listed in Gemfile, including any gems
|
18
18
|
# you've limited to :test, :development, or :production.
|
19
19
|
Bundler.require(*Rails.groups)
|
20
20
|
|
21
|
-
module
|
21
|
+
module V52
|
22
22
|
class Application < Rails::Application
|
23
23
|
# Initialize configuration defaults for originally generated Rails version.
|
24
24
|
config.load_defaults 5.2
|
@@ -28,9 +28,7 @@ module RailsApp
|
|
28
28
|
# -- all .rb files in that directory are automatically loaded after loading
|
29
29
|
# the framework and any gems in your application.
|
30
30
|
|
31
|
-
#
|
32
|
-
|
33
|
-
# Skip views, helpers and assets when generating a new resource.
|
34
|
-
config.api_only = true
|
31
|
+
# Don't generate system test files.
|
32
|
+
config.generators.system_tests = nil
|
35
33
|
end
|
36
34
|
end
|
@@ -33,11 +33,6 @@ Rails.application.configure do
|
|
33
33
|
# Store uploaded files on the local file system (see config/storage.yml for options)
|
34
34
|
config.active_storage.service = :local
|
35
35
|
|
36
|
-
# Mount Action Cable outside main process or domain
|
37
|
-
# config.action_cable.mount_path = nil
|
38
|
-
# config.action_cable.url = 'wss://example.com/cable'
|
39
|
-
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
40
|
-
|
41
36
|
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
42
37
|
# config.force_ssl = true
|
43
38
|
|
@@ -53,7 +48,7 @@ Rails.application.configure do
|
|
53
48
|
|
54
49
|
# Use a real queuing backend for Active Job (and separate queues per environment)
|
55
50
|
# config.active_job.queue_adapter = :resque
|
56
|
-
# config.active_job.queue_name_prefix = "
|
51
|
+
# config.active_job.queue_name_prefix = "v5_2_#{Rails.env}"
|
57
52
|
|
58
53
|
config.action_mailer.perform_caching = false
|
59
54
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# typed: strong
|
2
|
+
# Be sure to restart your server when you modify this file.
|
3
|
+
|
4
|
+
# Define an application-wide content security policy
|
5
|
+
# For further information see the following documentation
|
6
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
|
7
|
+
|
8
|
+
# Rails.application.config.content_security_policy do |policy|
|
9
|
+
# policy.default_src :self, :https
|
10
|
+
# policy.font_src :self, :https, :data
|
11
|
+
# policy.img_src :self, :https, :data
|
12
|
+
# policy.object_src :none
|
13
|
+
# policy.script_src :self, :https
|
14
|
+
# policy.style_src :self, :https
|
15
|
+
|
16
|
+
# # Specify URI for violation reports
|
17
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
18
|
+
# end
|
19
|
+
|
20
|
+
# If you are using UJS then enable automatic nonce generation
|
21
|
+
# Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
|
22
|
+
|
23
|
+
# Report CSP violations to a specified URI
|
24
|
+
# For further information see the following documentation:
|
25
|
+
# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
|
26
|
+
# Rails.application.config.content_security_policy_report_only = true
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# typed: true
|
2
|
+
class AddMoreColumnTypesToWands < ActiveRecord::Migration[5.2]
|
3
|
+
def change
|
4
|
+
add_column :wands, :flexibility, :float, null: false, default: 0.5
|
5
|
+
add_column :wands, :hardness, :decimal, null: false, precision: 10, scale: 10, default: 5
|
6
|
+
add_column :wands, :reflectance, :decimal, null: false, precision: 10, scale: 0, default: 0.5
|
7
|
+
add_column :wands, :broken, :boolean, null: false, default: false
|
8
|
+
add_column :wands, :chosen_at_date, :date
|
9
|
+
add_column :wands, :chosen_at_time, :time
|
10
|
+
# JSON column type is only supported on 5.2 or higher
|
11
|
+
unless ['4.2', '5.0', '5.1'].include?(ENV['RAILS_VERSION'])
|
12
|
+
add_column :wands, :spell_history, :json
|
13
|
+
add_column :wands, :maker_info, :json, null: false, default: '{}'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -11,7 +11,7 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 2019_06_20_000004) do
|
15
15
|
|
16
16
|
create_table "spell_books", force: :cascade do |t|
|
17
17
|
t.string "name"
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# typed: true
|
2
|
+
class MythicalRbiPlugin < SorbetRails::ModelPlugins::Base
|
3
|
+
def generate(root)
|
4
|
+
return unless @model_class.include?(Mythical)
|
5
|
+
|
6
|
+
model_class_rbi = root.create_class(self.model_class_name)
|
7
|
+
|
8
|
+
# ActiveSupport::Concern class method will be inserted to the class
|
9
|
+
# directly. We need to also put the sig in the model class rbi directly
|
10
|
+
model_class_rbi.create_method(
|
11
|
+
'mythicals',
|
12
|
+
class_method: true,
|
13
|
+
return_type: "T::Array[#{@model_class.name}]",
|
14
|
+
)
|
15
|
+
end
|
16
|
+
end
|
@@ -350,7 +350,7 @@ class ActionMailer::Base < AbstractController::Base
|
|
350
350
|
extend ActiveSupport::Callbacks::ClassMethods
|
351
351
|
extend ActiveSupport::DescendantsTracker
|
352
352
|
extend ActiveSupport::Rescuable::ClassMethods
|
353
|
-
extend
|
353
|
+
extend Anonymous_Module_17
|
354
354
|
include AbstractController::AssetPaths
|
355
355
|
include AbstractController::Caching
|
356
356
|
include AbstractController::Caching::Fragments
|
@@ -386,54 +386,6 @@ class ActionMailer::Base::LateAttachmentsProxy < SimpleDelegator
|
|
386
386
|
def _raise_error; end
|
387
387
|
def inline; end
|
388
388
|
end
|
389
|
-
module
|
389
|
+
module Anonymous_Module_17
|
390
390
|
def inherited(klass); end
|
391
391
|
end
|
392
|
-
module ActionMailer::TestHelper
|
393
|
-
def assert_emails(number); end
|
394
|
-
def assert_enqueued_email_with(mailer, method, args: nil, queue: nil, &block); end
|
395
|
-
def assert_enqueued_emails(number, &block); end
|
396
|
-
def assert_no_emails(&block); end
|
397
|
-
def assert_no_enqueued_emails(&block); end
|
398
|
-
include ActiveJob::TestHelper
|
399
|
-
end
|
400
|
-
class ActionMailer::NonInferrableMailerError < StandardError
|
401
|
-
def initialize(name); end
|
402
|
-
end
|
403
|
-
class ActionMailer::TestCase < ActiveSupport::TestCase
|
404
|
-
def _mailer_class; end
|
405
|
-
def _mailer_class=(val); end
|
406
|
-
def _mailer_class?; end
|
407
|
-
def self.__callbacks; end
|
408
|
-
def self._mailer_class; end
|
409
|
-
def self._mailer_class=(val); end
|
410
|
-
def self._mailer_class?; end
|
411
|
-
extend ActionMailer::TestCase::Behavior::ClassMethods
|
412
|
-
extend ActiveSupport::Testing::ConstantLookup::ClassMethods
|
413
|
-
include ActionMailer::TestCase::Behavior
|
414
|
-
include ActiveSupport::Testing::ConstantLookup
|
415
|
-
end
|
416
|
-
module ActionMailer::TestCase::ClearTestDeliveries
|
417
|
-
def clear_test_deliveries; end
|
418
|
-
extend ActiveSupport::Concern
|
419
|
-
end
|
420
|
-
module ActionMailer::TestCase::Behavior
|
421
|
-
def charset; end
|
422
|
-
def encode(subject); end
|
423
|
-
def initialize_test_deliveries; end
|
424
|
-
def read_fixture(action); end
|
425
|
-
def restore_delivery_method; end
|
426
|
-
def restore_test_deliveries; end
|
427
|
-
def set_delivery_method(method); end
|
428
|
-
def set_expected_mail; end
|
429
|
-
extend ActiveSupport::Concern
|
430
|
-
include ActionMailer::TestHelper
|
431
|
-
include ActiveSupport::Testing::ConstantLookup
|
432
|
-
include Rails::Dom::Testing::Assertions::DomAssertions
|
433
|
-
include Rails::Dom::Testing::Assertions::SelectorAssertions
|
434
|
-
end
|
435
|
-
module ActionMailer::TestCase::Behavior::ClassMethods
|
436
|
-
def determine_default_mailer(name); end
|
437
|
-
def mailer_class; end
|
438
|
-
def tests(mailer); end
|
439
|
-
end
|
@@ -173,6 +173,7 @@ class ActionDispatch::Response::ContentTypeHeader < Struct
|
|
173
173
|
def mime_type; end
|
174
174
|
def mime_type=(_); end
|
175
175
|
def self.[](*arg0); end
|
176
|
+
def self.inspect; end
|
176
177
|
def self.members; end
|
177
178
|
def self.new(*arg0); end
|
178
179
|
end
|
@@ -479,6 +480,7 @@ class ActionDispatch::Journey::Format::Parameter < Struct
|
|
479
480
|
def name; end
|
480
481
|
def name=(_); end
|
481
482
|
def self.[](*arg0); end
|
483
|
+
def self.inspect; end
|
482
484
|
def self.members; end
|
483
485
|
def self.new(*arg0); end
|
484
486
|
end
|
@@ -1380,6 +1382,7 @@ class ActionDispatch::Routing::RouteSet::Config < Struct
|
|
1380
1382
|
def relative_url_root; end
|
1381
1383
|
def relative_url_root=(_); end
|
1382
1384
|
def self.[](*arg0); end
|
1385
|
+
def self.inspect; end
|
1383
1386
|
def self.members; end
|
1384
1387
|
def self.new(*arg0); end
|
1385
1388
|
end
|
@@ -1589,6 +1592,85 @@ class ActionDispatch::Callbacks
|
|
1589
1592
|
extend ActiveSupport::DescendantsTracker
|
1590
1593
|
include ActiveSupport::Callbacks
|
1591
1594
|
end
|
1595
|
+
module ActionController::ApiRendering
|
1596
|
+
def render_to_body(options = nil); end
|
1597
|
+
extend ActiveSupport::Concern
|
1598
|
+
end
|
1599
|
+
class ActionDispatch::Routing::RouteWrapper < SimpleDelegator
|
1600
|
+
def action; end
|
1601
|
+
def constraints; end
|
1602
|
+
def controller; end
|
1603
|
+
def endpoint; end
|
1604
|
+
def engine?; end
|
1605
|
+
def internal?; end
|
1606
|
+
def name; end
|
1607
|
+
def path; end
|
1608
|
+
def rack_app; end
|
1609
|
+
def reqs; end
|
1610
|
+
end
|
1611
|
+
class ActionDispatch::Routing::RoutesInspector
|
1612
|
+
def collect_engine_routes(route); end
|
1613
|
+
def collect_routes(routes); end
|
1614
|
+
def filter_routes(filter); end
|
1615
|
+
def format(formatter, filter = nil); end
|
1616
|
+
def initialize(routes); end
|
1617
|
+
def normalize_filter(filter); end
|
1618
|
+
end
|
1619
|
+
class ActionDispatch::Routing::ConsoleFormatter
|
1620
|
+
def draw_header(routes); end
|
1621
|
+
def draw_section(routes); end
|
1622
|
+
def header(routes); end
|
1623
|
+
def initialize; end
|
1624
|
+
def no_routes(routes); end
|
1625
|
+
def result; end
|
1626
|
+
def section(routes); end
|
1627
|
+
def section_title(title); end
|
1628
|
+
def widths(routes); end
|
1629
|
+
end
|
1630
|
+
class ActionDispatch::Routing::HtmlTableFormatter
|
1631
|
+
def header(routes); end
|
1632
|
+
def initialize(view); end
|
1633
|
+
def no_routes(*arg0); end
|
1634
|
+
def result; end
|
1635
|
+
def section(routes); end
|
1636
|
+
def section_title(title); end
|
1637
|
+
end
|
1638
|
+
class ActionDispatch::DebugExceptions
|
1639
|
+
def api_request?(content_type); end
|
1640
|
+
def call(env); end
|
1641
|
+
def create_template(request, wrapper); end
|
1642
|
+
def initialize(app, routes_app = nil, response_format = nil); end
|
1643
|
+
def log_array(logger, array); end
|
1644
|
+
def log_error(request, wrapper); end
|
1645
|
+
def logger(request); end
|
1646
|
+
def render(status, body, format); end
|
1647
|
+
def render_exception(request, exception); end
|
1648
|
+
def render_for_api_request(content_type, wrapper); end
|
1649
|
+
def render_for_browser_request(request, wrapper); end
|
1650
|
+
def routes_inspector(exception); end
|
1651
|
+
def stderr_logger; end
|
1652
|
+
end
|
1653
|
+
class ActionDispatch::DebugExceptions::DebugView < ActionView::Base
|
1654
|
+
def debug_hash(object); end
|
1655
|
+
def debug_headers(headers); end
|
1656
|
+
def debug_params(params); end
|
1657
|
+
def render(*arg0); end
|
1658
|
+
end
|
1659
|
+
class ActionDispatch::RemoteIp
|
1660
|
+
def call(env); end
|
1661
|
+
def check_ip; end
|
1662
|
+
def initialize(app, ip_spoofing_check = nil, custom_proxies = nil); end
|
1663
|
+
def proxies; end
|
1664
|
+
end
|
1665
|
+
class ActionDispatch::RemoteIp::IpSpoofAttackError < StandardError
|
1666
|
+
end
|
1667
|
+
class ActionDispatch::RemoteIp::GetIp
|
1668
|
+
def calculate_ip; end
|
1669
|
+
def filter_proxies(ips); end
|
1670
|
+
def initialize(req, check_ip, proxies); end
|
1671
|
+
def ips_from(header); end
|
1672
|
+
def to_s; end
|
1673
|
+
end
|
1592
1674
|
class ActionDispatch::MiddlewareStack
|
1593
1675
|
def [](i); end
|
1594
1676
|
def assert_index(index, where); end
|
@@ -1644,21 +1726,6 @@ class ActionDispatch::RequestId
|
|
1644
1726
|
def internal_request_id; end
|
1645
1727
|
def make_request_id(request_id); end
|
1646
1728
|
end
|
1647
|
-
class ActionDispatch::RemoteIp
|
1648
|
-
def call(env); end
|
1649
|
-
def check_ip; end
|
1650
|
-
def initialize(app, ip_spoofing_check = nil, custom_proxies = nil); end
|
1651
|
-
def proxies; end
|
1652
|
-
end
|
1653
|
-
class ActionDispatch::RemoteIp::IpSpoofAttackError < StandardError
|
1654
|
-
end
|
1655
|
-
class ActionDispatch::RemoteIp::GetIp
|
1656
|
-
def calculate_ip; end
|
1657
|
-
def filter_proxies(ips); end
|
1658
|
-
def initialize(req, check_ip, proxies); end
|
1659
|
-
def ips_from(header); end
|
1660
|
-
def to_s; end
|
1661
|
-
end
|
1662
1729
|
class ActionDispatch::ShowExceptions
|
1663
1730
|
def call(env); end
|
1664
1731
|
def initialize(app, exceptions_app); end
|
@@ -1674,67 +1741,133 @@ class ActionDispatch::PublicExceptions
|
|
1674
1741
|
def render_format(status, content_type, body); end
|
1675
1742
|
def render_html(status); end
|
1676
1743
|
end
|
1677
|
-
class ActionDispatch::
|
1678
|
-
def action; end
|
1679
|
-
def constraints; end
|
1680
|
-
def controller; end
|
1681
|
-
def endpoint; end
|
1682
|
-
def engine?; end
|
1683
|
-
def internal?; end
|
1684
|
-
def name; end
|
1685
|
-
def path; end
|
1686
|
-
def rack_app; end
|
1687
|
-
def reqs; end
|
1744
|
+
class ActionDispatch::Reloader < ActionDispatch::Executor
|
1688
1745
|
end
|
1689
|
-
class ActionDispatch::
|
1690
|
-
def
|
1691
|
-
def
|
1692
|
-
def
|
1693
|
-
def
|
1694
|
-
def
|
1695
|
-
def
|
1746
|
+
class ActionDispatch::Request::Session
|
1747
|
+
def [](key); end
|
1748
|
+
def []=(key, value); end
|
1749
|
+
def clear; end
|
1750
|
+
def delete(key); end
|
1751
|
+
def destroy; end
|
1752
|
+
def each(&block); end
|
1753
|
+
def empty?; end
|
1754
|
+
def exists?; end
|
1755
|
+
def fetch(key, default = nil, &block); end
|
1756
|
+
def has_key?(key); end
|
1757
|
+
def id; end
|
1758
|
+
def include?(key); end
|
1759
|
+
def initialize(by, req); end
|
1760
|
+
def inspect; end
|
1761
|
+
def key?(key); end
|
1762
|
+
def keys; end
|
1763
|
+
def load!; end
|
1764
|
+
def load_for_read!; end
|
1765
|
+
def load_for_write!; end
|
1766
|
+
def loaded?; end
|
1767
|
+
def merge!(other); end
|
1768
|
+
def options; end
|
1769
|
+
def self.create(store, req, default_options); end
|
1770
|
+
def self.find(req); end
|
1771
|
+
def self.set(req, session); end
|
1772
|
+
def stringify_keys(other); end
|
1773
|
+
def to_h; end
|
1774
|
+
def to_hash; end
|
1775
|
+
def update(hash); end
|
1776
|
+
def values; end
|
1696
1777
|
end
|
1697
|
-
class ActionDispatch::
|
1698
|
-
def
|
1699
|
-
def
|
1700
|
-
def
|
1778
|
+
class ActionDispatch::Request::Session::Options
|
1779
|
+
def [](key); end
|
1780
|
+
def []=(k, v); end
|
1781
|
+
def id(req); end
|
1782
|
+
def initialize(by, default_options); end
|
1783
|
+
def self.find(req); end
|
1784
|
+
def self.set(req, options); end
|
1785
|
+
def to_hash; end
|
1786
|
+
def values_at(*args); end
|
1787
|
+
end
|
1788
|
+
class ActionDispatch::Session::SessionRestoreError < StandardError
|
1701
1789
|
def initialize; end
|
1702
|
-
def no_routes(routes); end
|
1703
|
-
def result; end
|
1704
|
-
def section(routes); end
|
1705
|
-
def section_title(title); end
|
1706
|
-
def widths(routes); end
|
1707
1790
|
end
|
1708
|
-
|
1709
|
-
def
|
1710
|
-
def initialize(
|
1711
|
-
def
|
1712
|
-
def
|
1713
|
-
def section(routes); end
|
1714
|
-
def section_title(title); end
|
1791
|
+
module ActionDispatch::Session::Compatibility
|
1792
|
+
def generate_sid; end
|
1793
|
+
def initialize(app, options = nil); end
|
1794
|
+
def initialize_sid; end
|
1795
|
+
def make_request(env); end
|
1715
1796
|
end
|
1716
|
-
|
1717
|
-
def
|
1718
|
-
def
|
1719
|
-
def
|
1720
|
-
|
1721
|
-
|
1722
|
-
def
|
1723
|
-
def
|
1724
|
-
|
1725
|
-
|
1726
|
-
def
|
1727
|
-
|
1728
|
-
|
1729
|
-
|
1797
|
+
module ActionDispatch::Session::StaleSessionCheck
|
1798
|
+
def extract_session_id(env); end
|
1799
|
+
def load_session(env); end
|
1800
|
+
def stale_session_check!; end
|
1801
|
+
end
|
1802
|
+
module ActionDispatch::Session::SessionObject
|
1803
|
+
def loaded_session?(session); end
|
1804
|
+
def prepare_session(req); end
|
1805
|
+
end
|
1806
|
+
class ActionDispatch::Session::AbstractStore < Rack::Session::Abstract::Persisted
|
1807
|
+
def set_cookie(request, session_id, cookie); end
|
1808
|
+
include ActionDispatch::Session::Compatibility
|
1809
|
+
include ActionDispatch::Session::SessionObject
|
1810
|
+
include ActionDispatch::Session::StaleSessionCheck
|
1811
|
+
end
|
1812
|
+
class ActionDispatch::Session::CookieStore < ActionDispatch::Session::AbstractStore
|
1813
|
+
def cookie_jar(request); end
|
1814
|
+
def delete_session(req, session_id, options); end
|
1815
|
+
def extract_session_id(req); end
|
1816
|
+
def get_cookie(req); end
|
1817
|
+
def initialize(app, options = nil); end
|
1818
|
+
def load_session(req); end
|
1819
|
+
def persistent_session_id!(data, sid = nil); end
|
1820
|
+
def set_cookie(request, session_id, cookie); end
|
1821
|
+
def unpacked_cookie_data(req); end
|
1822
|
+
def write_session(req, sid, session_data, options); end
|
1730
1823
|
end
|
1731
|
-
class ActionDispatch::
|
1732
|
-
def
|
1733
|
-
def debug_headers(headers); end
|
1734
|
-
def debug_params(params); end
|
1735
|
-
def render(*arg0); end
|
1824
|
+
class ActionDispatch::Flash
|
1825
|
+
def self.new(app); end
|
1736
1826
|
end
|
1737
|
-
|
1827
|
+
module ActionDispatch::Flash::RequestMethods
|
1828
|
+
def commit_flash; end
|
1829
|
+
def flash; end
|
1830
|
+
def flash=(flash); end
|
1831
|
+
def flash_hash; end
|
1832
|
+
def reset_session; end
|
1833
|
+
end
|
1834
|
+
class ActionDispatch::Flash::FlashNow
|
1835
|
+
def [](k); end
|
1836
|
+
def []=(k, v); end
|
1837
|
+
def alert=(message); end
|
1838
|
+
def flash; end
|
1839
|
+
def flash=(arg0); end
|
1840
|
+
def initialize(flash); end
|
1841
|
+
def notice=(message); end
|
1842
|
+
end
|
1843
|
+
class ActionDispatch::Flash::FlashHash
|
1844
|
+
def [](k); end
|
1845
|
+
def []=(k, v); end
|
1846
|
+
def alert; end
|
1847
|
+
def alert=(message); end
|
1848
|
+
def clear; end
|
1849
|
+
def delete(key); end
|
1850
|
+
def discard(k = nil); end
|
1851
|
+
def each(&block); end
|
1852
|
+
def empty?; end
|
1853
|
+
def initialize(flashes = nil, discard = nil); end
|
1854
|
+
def initialize_copy(other); end
|
1855
|
+
def keep(k = nil); end
|
1856
|
+
def key?(name); end
|
1857
|
+
def keys; end
|
1858
|
+
def merge!(h); end
|
1859
|
+
def notice; end
|
1860
|
+
def notice=(message); end
|
1861
|
+
def now; end
|
1862
|
+
def now_is_loaded?; end
|
1863
|
+
def replace(h); end
|
1864
|
+
def self.from_session_value(value); end
|
1865
|
+
def stringify_array(array); end
|
1866
|
+
def sweep; end
|
1867
|
+
def to_hash; end
|
1868
|
+
def to_session_value; end
|
1869
|
+
def update(h); end
|
1870
|
+
include Enumerable
|
1738
1871
|
end
|
1739
1872
|
class ActionDispatch::Routing::Redirect < ActionDispatch::Routing::Endpoint
|
1740
1873
|
def block; end
|
@@ -1967,23 +2100,69 @@ class ActionDispatch::Routing::Mapper::Scope
|
|
1967
2100
|
end
|
1968
2101
|
class ActionController::LogSubscriber < ActiveSupport::LogSubscriber
|
1969
2102
|
end
|
1970
|
-
|
2103
|
+
module ActionController::ParamsWrapper
|
2104
|
+
def _extract_parameters(parameters); end
|
2105
|
+
def _wrap_parameters(parameters); end
|
2106
|
+
def _wrapper_enabled?; end
|
2107
|
+
def _wrapper_formats; end
|
2108
|
+
def _wrapper_key; end
|
2109
|
+
def process_action(*args); end
|
2110
|
+
extend ActiveSupport::Concern
|
1971
2111
|
end
|
1972
|
-
class
|
2112
|
+
class Anonymous_Struct_2 < Struct
|
2113
|
+
def exclude; end
|
2114
|
+
def exclude=(_); end
|
2115
|
+
def format; end
|
2116
|
+
def format=(_); end
|
2117
|
+
def include; end
|
2118
|
+
def include=(_); end
|
2119
|
+
def klass; end
|
2120
|
+
def klass=(_); end
|
2121
|
+
def model; end
|
2122
|
+
def model=(_); end
|
2123
|
+
def name; end
|
2124
|
+
def name=(_); end
|
2125
|
+
def self.[](*arg0); end
|
2126
|
+
def self.inspect; end
|
2127
|
+
def self.members; end
|
2128
|
+
def self.new(*arg0); end
|
1973
2129
|
end
|
1974
|
-
class
|
1975
|
-
def
|
1976
|
-
def
|
1977
|
-
def
|
1978
|
-
def
|
1979
|
-
def
|
1980
|
-
def
|
1981
|
-
def
|
1982
|
-
def
|
1983
|
-
def
|
1984
|
-
def
|
1985
|
-
def
|
1986
|
-
|
2130
|
+
class ActionController::ParamsWrapper::Options < Anonymous_Struct_2
|
2131
|
+
def _default_wrap_model; end
|
2132
|
+
def include; end
|
2133
|
+
def initialize(name, format, include, exclude, klass, model); end
|
2134
|
+
def lock; end
|
2135
|
+
def locked?; end
|
2136
|
+
def model; end
|
2137
|
+
def name; end
|
2138
|
+
def self.from_hash(hash); end
|
2139
|
+
def synchronize(&block); end
|
2140
|
+
def try_lock; end
|
2141
|
+
def unlock; end
|
2142
|
+
include Mutex_m
|
2143
|
+
end
|
2144
|
+
module ActionController::ParamsWrapper::ClassMethods
|
2145
|
+
def _set_wrapper_options(options); end
|
2146
|
+
def inherited(klass); end
|
2147
|
+
def wrap_parameters(name_or_model_or_options, options = nil); end
|
2148
|
+
end
|
2149
|
+
class AbstractController::Error < StandardError
|
2150
|
+
end
|
2151
|
+
class AbstractController::ActionNotFound < StandardError
|
2152
|
+
end
|
2153
|
+
class AbstractController::Base
|
2154
|
+
def _find_action_name(action_name); end
|
2155
|
+
def _handle_action_missing(*args); end
|
2156
|
+
def _valid_action_name?(action_name); end
|
2157
|
+
def action_method?(name); end
|
2158
|
+
def action_methods; end
|
2159
|
+
def action_name; end
|
2160
|
+
def action_name=(arg0); end
|
2161
|
+
def available_action?(action_name); end
|
2162
|
+
def controller_path; end
|
2163
|
+
def formats; end
|
2164
|
+
def formats=(arg0); end
|
2165
|
+
def method_for_action(action_name); end
|
1987
2166
|
def performed?; end
|
1988
2167
|
def process(action, *args); end
|
1989
2168
|
def process_action(method_name, *args); end
|
@@ -2052,7 +2231,6 @@ class ActionController::Metal < AbstractController::Base
|
|
2052
2231
|
def status=(arg); end
|
2053
2232
|
def to_a; end
|
2054
2233
|
def url_for(string); end
|
2055
|
-
include ActionController::Testing::Functional
|
2056
2234
|
end
|
2057
2235
|
class AbstractController::DoubleRenderError < AbstractController::Error
|
2058
2236
|
def initialize(message = nil); end
|
@@ -2075,6 +2253,15 @@ module AbstractController::Rendering
|
|
2075
2253
|
extend ActiveSupport::Concern
|
2076
2254
|
include ActionView::ViewPaths
|
2077
2255
|
end
|
2256
|
+
module AbstractController::Translation
|
2257
|
+
def l(*args); end
|
2258
|
+
def localize(*args); end
|
2259
|
+
def t(key, options = nil); end
|
2260
|
+
def translate(key, options = nil); end
|
2261
|
+
end
|
2262
|
+
module AbstractController::AssetPaths
|
2263
|
+
extend ActiveSupport::Concern
|
2264
|
+
end
|
2078
2265
|
module AbstractController::UrlFor
|
2079
2266
|
def _routes; end
|
2080
2267
|
extend ActiveSupport::Concern
|
@@ -2103,10 +2290,27 @@ module ActionController::Redirecting
|
|
2103
2290
|
include AbstractController::Logger
|
2104
2291
|
include ActionController::UrlFor
|
2105
2292
|
end
|
2106
|
-
module ActionController::
|
2293
|
+
module ActionController::Rendering
|
2294
|
+
def _normalize_args(action = nil, options = nil, &blk); end
|
2295
|
+
def _normalize_options(options); end
|
2296
|
+
def _normalize_text(options); end
|
2297
|
+
def _process_options(options); end
|
2298
|
+
def _process_variant(options); end
|
2299
|
+
def _render_in_priorities(options); end
|
2300
|
+
def _set_html_content_type; end
|
2301
|
+
def _set_rendered_content_type(format); end
|
2302
|
+
def process_action(*arg0); end
|
2303
|
+
def render(*args); end
|
2107
2304
|
def render_to_body(options = nil); end
|
2305
|
+
def render_to_string(*arg0); end
|
2108
2306
|
extend ActiveSupport::Concern
|
2109
2307
|
end
|
2308
|
+
module ActionController::Rendering::ClassMethods
|
2309
|
+
def inherited(klass); end
|
2310
|
+
def render(*args, &block); end
|
2311
|
+
def renderer; end
|
2312
|
+
def setup_renderer!; end
|
2313
|
+
end
|
2110
2314
|
class ActionController::MissingRenderer < LoadError
|
2111
2315
|
def initialize(format); end
|
2112
2316
|
end
|
@@ -2146,145 +2350,6 @@ end
|
|
2146
2350
|
module ActionController::ConditionalGet::ClassMethods
|
2147
2351
|
def etag(&etagger); end
|
2148
2352
|
end
|
2149
|
-
module ActionController::BasicImplicitRender
|
2150
|
-
def default_render(*args); end
|
2151
|
-
def send_action(method, *args); end
|
2152
|
-
end
|
2153
|
-
module AbstractController::Callbacks
|
2154
|
-
def process_action(*args); end
|
2155
|
-
extend ActiveSupport::Concern
|
2156
|
-
include ActiveSupport::Callbacks
|
2157
|
-
end
|
2158
|
-
module AbstractController::Callbacks::ClassMethods
|
2159
|
-
def _insert_callbacks(callbacks, block = nil); end
|
2160
|
-
def _normalize_callback_option(options, from, to); end
|
2161
|
-
def _normalize_callback_options(options); end
|
2162
|
-
def after_action(*names, &blk); end
|
2163
|
-
def append_after_action(*names, &blk); end
|
2164
|
-
def append_around_action(*names, &blk); end
|
2165
|
-
def append_before_action(*names, &blk); end
|
2166
|
-
def around_action(*names, &blk); end
|
2167
|
-
def before_action(*names, &blk); end
|
2168
|
-
def prepend_after_action(*names, &blk); end
|
2169
|
-
def prepend_around_action(*names, &blk); end
|
2170
|
-
def prepend_before_action(*names, &blk); end
|
2171
|
-
def skip_after_action(*names); end
|
2172
|
-
def skip_around_action(*names); end
|
2173
|
-
def skip_before_action(*names); end
|
2174
|
-
end
|
2175
|
-
module ActionController::ForceSSL
|
2176
|
-
def force_ssl_redirect(host_or_options = nil); end
|
2177
|
-
extend ActiveSupport::Concern
|
2178
|
-
include AbstractController::Callbacks
|
2179
|
-
end
|
2180
|
-
module ActionController::ForceSSL::ClassMethods
|
2181
|
-
def force_ssl(options = nil); end
|
2182
|
-
end
|
2183
|
-
module ActionController::Rendering
|
2184
|
-
def _normalize_args(action = nil, options = nil, &blk); end
|
2185
|
-
def _normalize_options(options); end
|
2186
|
-
def _normalize_text(options); end
|
2187
|
-
def _process_options(options); end
|
2188
|
-
def _process_variant(options); end
|
2189
|
-
def _render_in_priorities(options); end
|
2190
|
-
def _set_html_content_type; end
|
2191
|
-
def _set_rendered_content_type(format); end
|
2192
|
-
def process_action(*arg0); end
|
2193
|
-
def render(*args); end
|
2194
|
-
def render_to_body(options = nil); end
|
2195
|
-
def render_to_string(*arg0); end
|
2196
|
-
extend ActiveSupport::Concern
|
2197
|
-
end
|
2198
|
-
module ActionController::Rendering::ClassMethods
|
2199
|
-
def inherited(klass); end
|
2200
|
-
def render(*args, &block); end
|
2201
|
-
def renderer; end
|
2202
|
-
def setup_renderer!; end
|
2203
|
-
end
|
2204
|
-
module ActionController::DataStreaming
|
2205
|
-
def send_data(data, options = nil); end
|
2206
|
-
def send_file(path, options = nil); end
|
2207
|
-
def send_file_headers!(options); end
|
2208
|
-
extend ActiveSupport::Concern
|
2209
|
-
include ActionController::Rendering
|
2210
|
-
end
|
2211
|
-
module ActionController::Rescue
|
2212
|
-
def process_action(*args); end
|
2213
|
-
def show_detailed_exceptions?; end
|
2214
|
-
extend ActiveSupport::Concern
|
2215
|
-
include ActiveSupport::Rescuable
|
2216
|
-
end
|
2217
|
-
module ActionController::Instrumentation
|
2218
|
-
def append_info_to_payload(payload); end
|
2219
|
-
def cleanup_view_runtime; end
|
2220
|
-
def halted_callback_hook(filter); end
|
2221
|
-
def process_action(*args); end
|
2222
|
-
def redirect_to(*args); end
|
2223
|
-
def render(*args); end
|
2224
|
-
def send_data(data, options = nil); end
|
2225
|
-
def send_file(path, options = nil); end
|
2226
|
-
def view_runtime; end
|
2227
|
-
def view_runtime=(arg0); end
|
2228
|
-
extend ActiveSupport::Concern
|
2229
|
-
include AbstractController::Logger
|
2230
|
-
end
|
2231
|
-
module ActionController::Instrumentation::ClassMethods
|
2232
|
-
def log_process_action(payload); end
|
2233
|
-
end
|
2234
|
-
module ActionController::ParamsWrapper
|
2235
|
-
def _extract_parameters(parameters); end
|
2236
|
-
def _wrap_parameters(parameters); end
|
2237
|
-
def _wrapper_enabled?; end
|
2238
|
-
def _wrapper_formats; end
|
2239
|
-
def _wrapper_key; end
|
2240
|
-
def process_action(*args); end
|
2241
|
-
extend ActiveSupport::Concern
|
2242
|
-
end
|
2243
|
-
class Anonymous_Struct_2 < Struct
|
2244
|
-
def exclude; end
|
2245
|
-
def exclude=(_); end
|
2246
|
-
def format; end
|
2247
|
-
def format=(_); end
|
2248
|
-
def include; end
|
2249
|
-
def include=(_); end
|
2250
|
-
def klass; end
|
2251
|
-
def klass=(_); end
|
2252
|
-
def model; end
|
2253
|
-
def model=(_); end
|
2254
|
-
def name; end
|
2255
|
-
def name=(_); end
|
2256
|
-
def self.[](*arg0); end
|
2257
|
-
def self.members; end
|
2258
|
-
def self.new(*arg0); end
|
2259
|
-
end
|
2260
|
-
class ActionController::ParamsWrapper::Options < Anonymous_Struct_2
|
2261
|
-
def _default_wrap_model; end
|
2262
|
-
def include; end
|
2263
|
-
def initialize(name, format, include, exclude, klass, model); end
|
2264
|
-
def lock; end
|
2265
|
-
def locked?; end
|
2266
|
-
def model; end
|
2267
|
-
def name; end
|
2268
|
-
def self.from_hash(hash); end
|
2269
|
-
def synchronize(&block); end
|
2270
|
-
def try_lock; end
|
2271
|
-
def unlock; end
|
2272
|
-
include Mutex_m
|
2273
|
-
end
|
2274
|
-
module ActionController::ParamsWrapper::ClassMethods
|
2275
|
-
def _set_wrapper_options(options); end
|
2276
|
-
def inherited(klass); end
|
2277
|
-
def wrap_parameters(name_or_model_or_options, options = nil); end
|
2278
|
-
end
|
2279
|
-
module AbstractController::Translation
|
2280
|
-
def l(*args); end
|
2281
|
-
def localize(*args); end
|
2282
|
-
def t(key, options = nil); end
|
2283
|
-
def translate(key, options = nil); end
|
2284
|
-
end
|
2285
|
-
module AbstractController::AssetPaths
|
2286
|
-
extend ActiveSupport::Concern
|
2287
|
-
end
|
2288
2353
|
module ActionController::EtagWithTemplateDigest
|
2289
2354
|
def determine_template_etag(options); end
|
2290
2355
|
def lookup_and_digest_template(template); end
|
@@ -2333,6 +2398,7 @@ module AbstractController::Collector
|
|
2333
2398
|
def url_encoded_form(*args, &block); end
|
2334
2399
|
def vcf(*args, &block); end
|
2335
2400
|
def vtt(*args, &block); end
|
2401
|
+
def web_console_v2(*args, &block); end
|
2336
2402
|
def webm(*args, &block); end
|
2337
2403
|
def woff(*args, &block); end
|
2338
2404
|
def woff2(*args, &block); end
|
@@ -2362,6 +2428,10 @@ class ActionController::MimeResponds::Collector::VariantCollector
|
|
2362
2428
|
def variant; end
|
2363
2429
|
def variant_key; end
|
2364
2430
|
end
|
2431
|
+
module ActionController::BasicImplicitRender
|
2432
|
+
def default_render(*args); end
|
2433
|
+
def send_action(method, *args); end
|
2434
|
+
end
|
2365
2435
|
module ActionController::ImplicitRender
|
2366
2436
|
def default_render(*args); end
|
2367
2437
|
def interactive_browser_request?; end
|
@@ -2395,6 +2465,28 @@ end
|
|
2395
2465
|
module ActionController::FormBuilder::ClassMethods
|
2396
2466
|
def default_form_builder(builder); end
|
2397
2467
|
end
|
2468
|
+
module AbstractController::Callbacks
|
2469
|
+
def process_action(*args); end
|
2470
|
+
extend ActiveSupport::Concern
|
2471
|
+
include ActiveSupport::Callbacks
|
2472
|
+
end
|
2473
|
+
module AbstractController::Callbacks::ClassMethods
|
2474
|
+
def _insert_callbacks(callbacks, block = nil); end
|
2475
|
+
def _normalize_callback_option(options, from, to); end
|
2476
|
+
def _normalize_callback_options(options); end
|
2477
|
+
def after_action(*names, &blk); end
|
2478
|
+
def append_after_action(*names, &blk); end
|
2479
|
+
def append_around_action(*names, &blk); end
|
2480
|
+
def append_before_action(*names, &blk); end
|
2481
|
+
def around_action(*names, &blk); end
|
2482
|
+
def before_action(*names, &blk); end
|
2483
|
+
def prepend_after_action(*names, &blk); end
|
2484
|
+
def prepend_around_action(*names, &blk); end
|
2485
|
+
def prepend_before_action(*names, &blk); end
|
2486
|
+
def skip_after_action(*names); end
|
2487
|
+
def skip_around_action(*names); end
|
2488
|
+
def skip_before_action(*names); end
|
2489
|
+
end
|
2398
2490
|
class ActionController::InvalidAuthenticityToken < ActionController::ActionControllerError
|
2399
2491
|
end
|
2400
2492
|
class ActionController::InvalidCrossOriginRequest < ActionController::ActionControllerError
|
@@ -2465,11 +2557,26 @@ module ActionController::ContentSecurityPolicy::ClassMethods
|
|
2465
2557
|
def content_security_policy(enabled = nil, **options, &block); end
|
2466
2558
|
def content_security_policy_report_only(report_only = nil, **options); end
|
2467
2559
|
end
|
2560
|
+
module ActionController::ForceSSL
|
2561
|
+
def force_ssl_redirect(host_or_options = nil); end
|
2562
|
+
extend ActiveSupport::Concern
|
2563
|
+
include AbstractController::Callbacks
|
2564
|
+
end
|
2565
|
+
module ActionController::ForceSSL::ClassMethods
|
2566
|
+
def force_ssl(options = nil); end
|
2567
|
+
end
|
2468
2568
|
module ActionController::Streaming
|
2469
2569
|
def _process_options(options); end
|
2470
2570
|
def _render_template(options); end
|
2471
2571
|
extend ActiveSupport::Concern
|
2472
2572
|
end
|
2573
|
+
module ActionController::DataStreaming
|
2574
|
+
def send_data(data, options = nil); end
|
2575
|
+
def send_file(path, options = nil); end
|
2576
|
+
def send_file_headers!(options); end
|
2577
|
+
extend ActiveSupport::Concern
|
2578
|
+
include ActionController::Rendering
|
2579
|
+
end
|
2473
2580
|
module ActionController::HttpAuthentication
|
2474
2581
|
end
|
2475
2582
|
module ActionController::HttpAuthentication::Basic
|
@@ -2529,16 +2636,39 @@ module ActionController::HttpAuthentication::Token::ControllerMethods
|
|
2529
2636
|
def authenticate_with_http_token(&login_procedure); end
|
2530
2637
|
def request_http_token_authentication(realm = nil, message = nil); end
|
2531
2638
|
end
|
2532
|
-
module
|
2533
|
-
def
|
2534
|
-
def
|
2535
|
-
extend ActiveSupport::Autoload
|
2639
|
+
module ActionController::Rescue
|
2640
|
+
def process_action(*args); end
|
2641
|
+
def show_detailed_exceptions?; end
|
2536
2642
|
extend ActiveSupport::Concern
|
2537
|
-
include
|
2538
|
-
include AbstractController::Caching::Fragments
|
2643
|
+
include ActiveSupport::Rescuable
|
2539
2644
|
end
|
2540
|
-
module
|
2541
|
-
def
|
2645
|
+
module ActionController::Instrumentation
|
2646
|
+
def append_info_to_payload(payload); end
|
2647
|
+
def cleanup_view_runtime; end
|
2648
|
+
def halted_callback_hook(filter); end
|
2649
|
+
def process_action(*args); end
|
2650
|
+
def redirect_to(*args); end
|
2651
|
+
def render(*args); end
|
2652
|
+
def send_data(data, options = nil); end
|
2653
|
+
def send_file(path, options = nil); end
|
2654
|
+
def view_runtime; end
|
2655
|
+
def view_runtime=(arg0); end
|
2656
|
+
extend ActiveSupport::Concern
|
2657
|
+
include AbstractController::Logger
|
2658
|
+
end
|
2659
|
+
module ActionController::Instrumentation::ClassMethods
|
2660
|
+
def log_process_action(payload); end
|
2661
|
+
end
|
2662
|
+
module AbstractController::Caching
|
2663
|
+
def cache(key, options = nil, &block); end
|
2664
|
+
def view_cache_dependencies; end
|
2665
|
+
extend ActiveSupport::Autoload
|
2666
|
+
extend ActiveSupport::Concern
|
2667
|
+
include AbstractController::Caching::ConfigMethods
|
2668
|
+
include AbstractController::Caching::Fragments
|
2669
|
+
end
|
2670
|
+
module AbstractController::Caching::Fragments
|
2671
|
+
def combined_fragment_cache_key(key); end
|
2542
2672
|
def expire_fragment(key, options = nil); end
|
2543
2673
|
def fragment_cache_key(key); end
|
2544
2674
|
def fragment_exist?(key, options = nil); end
|
@@ -2570,6 +2700,146 @@ class ActionController::Renderer
|
|
2570
2700
|
def self.for(controller, env = nil, defaults = nil); end
|
2571
2701
|
def with_defaults(defaults); end
|
2572
2702
|
end
|
2703
|
+
class ActionController::API < ActionController::Metal
|
2704
|
+
def __callbacks; end
|
2705
|
+
def __callbacks?; end
|
2706
|
+
def _helper_methods; end
|
2707
|
+
def _helper_methods=(val); end
|
2708
|
+
def _helper_methods?; end
|
2709
|
+
def _helpers; end
|
2710
|
+
def _helpers=(val); end
|
2711
|
+
def _helpers?; end
|
2712
|
+
def _process_action_callbacks; end
|
2713
|
+
def _renderers; end
|
2714
|
+
def _renderers=(val); end
|
2715
|
+
def _renderers?; end
|
2716
|
+
def _run_process_action_callbacks(&block); end
|
2717
|
+
def _view_paths; end
|
2718
|
+
def _view_paths=(val); end
|
2719
|
+
def _view_paths?; end
|
2720
|
+
def _wrapper_options; end
|
2721
|
+
def _wrapper_options=(val); end
|
2722
|
+
def _wrapper_options?; end
|
2723
|
+
def default_url_options; end
|
2724
|
+
def default_url_options=(val); end
|
2725
|
+
def default_url_options?; end
|
2726
|
+
def etaggers; end
|
2727
|
+
def etaggers=(val); end
|
2728
|
+
def etaggers?; end
|
2729
|
+
def helpers_path; end
|
2730
|
+
def helpers_path=(val); end
|
2731
|
+
def helpers_path?; end
|
2732
|
+
def include_all_helpers; end
|
2733
|
+
def include_all_helpers=(val); end
|
2734
|
+
def include_all_helpers?; end
|
2735
|
+
def logger; end
|
2736
|
+
def logger=(value); end
|
2737
|
+
def rescue_handlers; end
|
2738
|
+
def rescue_handlers=(val); end
|
2739
|
+
def rescue_handlers?; end
|
2740
|
+
def self.__callbacks; end
|
2741
|
+
def self.__callbacks=(val); end
|
2742
|
+
def self.__callbacks?; end
|
2743
|
+
def self._helper_methods; end
|
2744
|
+
def self._helper_methods=(val); end
|
2745
|
+
def self._helper_methods?; end
|
2746
|
+
def self._helpers; end
|
2747
|
+
def self._helpers=(val); end
|
2748
|
+
def self._helpers?; end
|
2749
|
+
def self._process_action_callbacks; end
|
2750
|
+
def self._process_action_callbacks=(value); end
|
2751
|
+
def self._renderers; end
|
2752
|
+
def self._renderers=(val); end
|
2753
|
+
def self._renderers?; end
|
2754
|
+
def self._view_paths; end
|
2755
|
+
def self._view_paths=(val); end
|
2756
|
+
def self._view_paths?; end
|
2757
|
+
def self._wrapper_options; end
|
2758
|
+
def self._wrapper_options=(val); end
|
2759
|
+
def self._wrapper_options?; end
|
2760
|
+
def self.default_url_options; end
|
2761
|
+
def self.default_url_options=(val); end
|
2762
|
+
def self.default_url_options?; end
|
2763
|
+
def self.etaggers; end
|
2764
|
+
def self.etaggers=(val); end
|
2765
|
+
def self.etaggers?; end
|
2766
|
+
def self.helpers_path; end
|
2767
|
+
def self.helpers_path=(val); end
|
2768
|
+
def self.helpers_path?; end
|
2769
|
+
def self.include_all_helpers; end
|
2770
|
+
def self.include_all_helpers=(val); end
|
2771
|
+
def self.include_all_helpers?; end
|
2772
|
+
def self.logger; end
|
2773
|
+
def self.logger=(value); end
|
2774
|
+
def self.middleware_stack; end
|
2775
|
+
def self.rescue_handlers; end
|
2776
|
+
def self.rescue_handlers=(val); end
|
2777
|
+
def self.rescue_handlers?; end
|
2778
|
+
def self.without_modules(*modules); end
|
2779
|
+
extend AbstractController::Callbacks::ClassMethods
|
2780
|
+
extend AbstractController::Helpers::ClassMethods
|
2781
|
+
extend AbstractController::UrlFor::ClassMethods
|
2782
|
+
extend ActionController::ConditionalGet::ClassMethods
|
2783
|
+
extend ActionController::ForceSSL::ClassMethods
|
2784
|
+
extend ActionController::Helpers::ClassMethods
|
2785
|
+
extend ActionController::Instrumentation::ClassMethods
|
2786
|
+
extend ActionController::ParamsWrapper::ClassMethods
|
2787
|
+
extend ActionController::Railties::Helpers
|
2788
|
+
extend ActionController::Renderers::ClassMethods
|
2789
|
+
extend ActionController::Rendering::ClassMethods
|
2790
|
+
extend ActionView::Rendering::ClassMethods
|
2791
|
+
extend ActionView::ViewPaths::ClassMethods
|
2792
|
+
extend ActiveRecord::Railties::ControllerRuntime::ClassMethods
|
2793
|
+
extend ActiveSupport::Callbacks::ClassMethods
|
2794
|
+
extend ActiveSupport::DescendantsTracker
|
2795
|
+
extend ActiveSupport::Rescuable::ClassMethods
|
2796
|
+
extend Anonymous_Module_3
|
2797
|
+
include AbstractController::Callbacks
|
2798
|
+
include AbstractController::Callbacks
|
2799
|
+
include AbstractController::Helpers
|
2800
|
+
include AbstractController::Logger
|
2801
|
+
include AbstractController::Logger
|
2802
|
+
include AbstractController::Rendering
|
2803
|
+
include AbstractController::UrlFor
|
2804
|
+
include ActionController::ApiRendering
|
2805
|
+
include ActionController::BasicImplicitRender
|
2806
|
+
include ActionController::ConditionalGet
|
2807
|
+
include ActionController::DataStreaming
|
2808
|
+
include ActionController::ForceSSL
|
2809
|
+
include ActionController::Helpers
|
2810
|
+
include ActionController::ImplicitRender
|
2811
|
+
include ActionController::Instrumentation
|
2812
|
+
include ActionController::ParamsWrapper
|
2813
|
+
include ActionController::Redirecting
|
2814
|
+
include ActionController::Renderers
|
2815
|
+
include ActionController::Renderers::All
|
2816
|
+
include ActionController::Rendering
|
2817
|
+
include ActionController::Rendering
|
2818
|
+
include ActionController::Rescue
|
2819
|
+
include ActionController::StrongParameters
|
2820
|
+
include ActionController::UrlFor
|
2821
|
+
include ActionController::UrlFor
|
2822
|
+
include ActionDispatch::Routing::RouteSet::MountedHelpers
|
2823
|
+
include ActionDispatch::Routing::UrlFor
|
2824
|
+
include ActionDispatch::Routing::UrlFor
|
2825
|
+
include ActionView::Rendering
|
2826
|
+
include ActionView::ViewPaths
|
2827
|
+
include ActionView::ViewPaths
|
2828
|
+
include ActiveRecord::Railties::ControllerRuntime
|
2829
|
+
include ActiveSupport::Benchmarkable
|
2830
|
+
include ActiveSupport::Callbacks
|
2831
|
+
include ActiveSupport::Rescuable
|
2832
|
+
include ActiveSupport::Rescuable
|
2833
|
+
end
|
2834
|
+
module Anonymous_Module_3
|
2835
|
+
def inherited(klass); end
|
2836
|
+
end
|
2837
|
+
module ActionView::RoutingUrlFor
|
2838
|
+
def default_url_options=(obj); end
|
2839
|
+
def self.default_url_options=(obj); end
|
2840
|
+
include ActionDispatch::Routing::UrlFor
|
2841
|
+
include ActionDispatch::Routing::UrlFor
|
2842
|
+
end
|
2573
2843
|
class ActionController::Base < ActionController::Metal
|
2574
2844
|
def __callbacks; end
|
2575
2845
|
def __callbacks?; end
|
@@ -2773,7 +3043,7 @@ class ActionController::Base < ActionController::Metal
|
|
2773
3043
|
extend ActiveSupport::Callbacks::ClassMethods
|
2774
3044
|
extend ActiveSupport::DescendantsTracker
|
2775
3045
|
extend ActiveSupport::Rescuable::ClassMethods
|
2776
|
-
extend
|
3046
|
+
extend Anonymous_Module_4
|
2777
3047
|
include AbstractController::AssetPaths
|
2778
3048
|
include AbstractController::Caching
|
2779
3049
|
include AbstractController::Caching::Fragments
|
@@ -2834,412 +3104,6 @@ class ActionController::Base < ActionController::Metal
|
|
2834
3104
|
include ActiveSupport::Rescuable
|
2835
3105
|
include ActiveSupport::Rescuable
|
2836
3106
|
end
|
2837
|
-
module Anonymous_Module_3
|
2838
|
-
def inherited(klass); end
|
2839
|
-
end
|
2840
|
-
module ActionView::RoutingUrlFor
|
2841
|
-
def default_url_options=(obj); end
|
2842
|
-
def self.default_url_options=(obj); end
|
2843
|
-
include ActionDispatch::Routing::UrlFor
|
2844
|
-
include ActionDispatch::Routing::UrlFor
|
2845
|
-
end
|
2846
|
-
class ActionController::API < ActionController::Metal
|
2847
|
-
def __callbacks; end
|
2848
|
-
def __callbacks?; end
|
2849
|
-
def _process_action_callbacks; end
|
2850
|
-
def _renderers; end
|
2851
|
-
def _renderers=(val); end
|
2852
|
-
def _renderers?; end
|
2853
|
-
def _run_process_action_callbacks(&block); end
|
2854
|
-
def _view_paths; end
|
2855
|
-
def _view_paths=(val); end
|
2856
|
-
def _view_paths?; end
|
2857
|
-
def _wrapper_options; end
|
2858
|
-
def _wrapper_options=(val); end
|
2859
|
-
def _wrapper_options?; end
|
2860
|
-
def default_url_options; end
|
2861
|
-
def default_url_options=(val); end
|
2862
|
-
def default_url_options?; end
|
2863
|
-
def etaggers; end
|
2864
|
-
def etaggers=(val); end
|
2865
|
-
def etaggers?; end
|
2866
|
-
def logger; end
|
2867
|
-
def logger=(value); end
|
2868
|
-
def rescue_handlers; end
|
2869
|
-
def rescue_handlers=(val); end
|
2870
|
-
def rescue_handlers?; end
|
2871
|
-
def self.__callbacks; end
|
2872
|
-
def self.__callbacks=(val); end
|
2873
|
-
def self.__callbacks?; end
|
2874
|
-
def self._process_action_callbacks; end
|
2875
|
-
def self._process_action_callbacks=(value); end
|
2876
|
-
def self._renderers; end
|
2877
|
-
def self._renderers=(val); end
|
2878
|
-
def self._renderers?; end
|
2879
|
-
def self._view_paths; end
|
2880
|
-
def self._view_paths=(val); end
|
2881
|
-
def self._view_paths?; end
|
2882
|
-
def self._wrapper_options; end
|
2883
|
-
def self._wrapper_options=(val); end
|
2884
|
-
def self._wrapper_options?; end
|
2885
|
-
def self.default_url_options; end
|
2886
|
-
def self.default_url_options=(val); end
|
2887
|
-
def self.default_url_options?; end
|
2888
|
-
def self.etaggers; end
|
2889
|
-
def self.etaggers=(val); end
|
2890
|
-
def self.etaggers?; end
|
2891
|
-
def self.logger; end
|
2892
|
-
def self.logger=(value); end
|
2893
|
-
def self.middleware_stack; end
|
2894
|
-
def self.rescue_handlers; end
|
2895
|
-
def self.rescue_handlers=(val); end
|
2896
|
-
def self.rescue_handlers?; end
|
2897
|
-
def self.without_modules(*modules); end
|
2898
|
-
extend AbstractController::Callbacks::ClassMethods
|
2899
|
-
extend AbstractController::UrlFor::ClassMethods
|
2900
|
-
extend ActionController::ConditionalGet::ClassMethods
|
2901
|
-
extend ActionController::ForceSSL::ClassMethods
|
2902
|
-
extend ActionController::Instrumentation::ClassMethods
|
2903
|
-
extend ActionController::ParamsWrapper::ClassMethods
|
2904
|
-
extend ActionController::Railties::Helpers
|
2905
|
-
extend ActionController::Renderers::ClassMethods
|
2906
|
-
extend ActionController::Rendering::ClassMethods
|
2907
|
-
extend ActionView::ViewPaths::ClassMethods
|
2908
|
-
extend ActiveRecord::Railties::ControllerRuntime::ClassMethods
|
2909
|
-
extend ActiveSupport::Callbacks::ClassMethods
|
2910
|
-
extend ActiveSupport::DescendantsTracker
|
2911
|
-
extend ActiveSupport::Rescuable::ClassMethods
|
2912
|
-
extend Anonymous_Module_4
|
2913
|
-
include AbstractController::Callbacks
|
2914
|
-
include AbstractController::Callbacks
|
2915
|
-
include AbstractController::Logger
|
2916
|
-
include AbstractController::Logger
|
2917
|
-
include AbstractController::Rendering
|
2918
|
-
include AbstractController::UrlFor
|
2919
|
-
include ActionController::ApiRendering
|
2920
|
-
include ActionController::BasicImplicitRender
|
2921
|
-
include ActionController::ConditionalGet
|
2922
|
-
include ActionController::DataStreaming
|
2923
|
-
include ActionController::ForceSSL
|
2924
|
-
include ActionController::Instrumentation
|
2925
|
-
include ActionController::ParamsWrapper
|
2926
|
-
include ActionController::Redirecting
|
2927
|
-
include ActionController::Renderers
|
2928
|
-
include ActionController::Renderers::All
|
2929
|
-
include ActionController::Rendering
|
2930
|
-
include ActionController::Rendering
|
2931
|
-
include ActionController::Rescue
|
2932
|
-
include ActionController::StrongParameters
|
2933
|
-
include ActionController::UrlFor
|
2934
|
-
include ActionController::UrlFor
|
2935
|
-
include ActionDispatch::Routing::RouteSet::MountedHelpers
|
2936
|
-
include ActionDispatch::Routing::UrlFor
|
2937
|
-
include ActionDispatch::Routing::UrlFor
|
2938
|
-
include ActionView::ViewPaths
|
2939
|
-
include ActiveRecord::Railties::ControllerRuntime
|
2940
|
-
include ActiveSupport::Benchmarkable
|
2941
|
-
include ActiveSupport::Callbacks
|
2942
|
-
include ActiveSupport::Rescuable
|
2943
|
-
include ActiveSupport::Rescuable
|
2944
|
-
end
|
2945
3107
|
module Anonymous_Module_4
|
2946
3108
|
def inherited(klass); end
|
2947
3109
|
end
|
2948
|
-
module ActionController::TemplateAssertions
|
2949
|
-
def assert_template(options = nil, message = nil); end
|
2950
|
-
end
|
2951
|
-
module ActionController::Testing
|
2952
|
-
extend ActiveSupport::Concern
|
2953
|
-
end
|
2954
|
-
module ActionController::Testing::Functional
|
2955
|
-
def recycle!; end
|
2956
|
-
end
|
2957
|
-
class ActionDispatch::TestRequest < ActionDispatch::Request
|
2958
|
-
def accept=(mime_types); end
|
2959
|
-
def action=(action_name); end
|
2960
|
-
def host=(host); end
|
2961
|
-
def if_modified_since=(last_modified); end
|
2962
|
-
def if_none_match=(etag); end
|
2963
|
-
def path=(path); end
|
2964
|
-
def port=(number); end
|
2965
|
-
def remote_addr=(addr); end
|
2966
|
-
def request_method=(method); end
|
2967
|
-
def request_uri=(uri); end
|
2968
|
-
def self.create(env = nil); end
|
2969
|
-
def self.default_env; end
|
2970
|
-
def user_agent=(user_agent); end
|
2971
|
-
end
|
2972
|
-
class ActionDispatch::Flash
|
2973
|
-
def self.new(app); end
|
2974
|
-
end
|
2975
|
-
module ActionDispatch::Flash::RequestMethods
|
2976
|
-
def commit_flash; end
|
2977
|
-
def flash; end
|
2978
|
-
def flash=(flash); end
|
2979
|
-
def flash_hash; end
|
2980
|
-
def reset_session; end
|
2981
|
-
end
|
2982
|
-
class ActionDispatch::Flash::FlashNow
|
2983
|
-
def [](k); end
|
2984
|
-
def []=(k, v); end
|
2985
|
-
def alert=(message); end
|
2986
|
-
def flash; end
|
2987
|
-
def flash=(arg0); end
|
2988
|
-
def initialize(flash); end
|
2989
|
-
def notice=(message); end
|
2990
|
-
end
|
2991
|
-
class ActionDispatch::Flash::FlashHash
|
2992
|
-
def [](k); end
|
2993
|
-
def []=(k, v); end
|
2994
|
-
def alert; end
|
2995
|
-
def alert=(message); end
|
2996
|
-
def clear; end
|
2997
|
-
def delete(key); end
|
2998
|
-
def discard(k = nil); end
|
2999
|
-
def each(&block); end
|
3000
|
-
def empty?; end
|
3001
|
-
def initialize(flashes = nil, discard = nil); end
|
3002
|
-
def initialize_copy(other); end
|
3003
|
-
def keep(k = nil); end
|
3004
|
-
def key?(name); end
|
3005
|
-
def keys; end
|
3006
|
-
def merge!(h); end
|
3007
|
-
def notice; end
|
3008
|
-
def notice=(message); end
|
3009
|
-
def now; end
|
3010
|
-
def now_is_loaded?; end
|
3011
|
-
def replace(h); end
|
3012
|
-
def self.from_session_value(value); end
|
3013
|
-
def stringify_array(array); end
|
3014
|
-
def sweep; end
|
3015
|
-
def to_hash; end
|
3016
|
-
def to_session_value; end
|
3017
|
-
def update(h); end
|
3018
|
-
include Enumerable
|
3019
|
-
end
|
3020
|
-
module ActionDispatch::TestProcess
|
3021
|
-
def assigns(key = nil); end
|
3022
|
-
def cookies; end
|
3023
|
-
def flash; end
|
3024
|
-
def redirect_to_url; end
|
3025
|
-
def session; end
|
3026
|
-
include ActionDispatch::TestProcess::FixtureFile
|
3027
|
-
end
|
3028
|
-
module ActionDispatch::TestProcess::FixtureFile
|
3029
|
-
def fixture_file_upload(path, mime_type = nil, binary = nil); end
|
3030
|
-
end
|
3031
|
-
module ActionDispatch::Assertions
|
3032
|
-
def html_document; end
|
3033
|
-
extend ActiveSupport::Concern
|
3034
|
-
include ActionDispatch::Assertions::ResponseAssertions
|
3035
|
-
include ActionDispatch::Assertions::RoutingAssertions
|
3036
|
-
include Rails::Dom::Testing::Assertions
|
3037
|
-
end
|
3038
|
-
module ActionDispatch::Assertions::ResponseAssertions
|
3039
|
-
def assert_redirected_to(options = nil, message = nil); end
|
3040
|
-
def assert_response(type, message = nil); end
|
3041
|
-
def code_with_name(code_or_name); end
|
3042
|
-
def generate_response_message(expected, actual = nil); end
|
3043
|
-
def location_if_redirected; end
|
3044
|
-
def normalize_argument_to_redirection(fragment); end
|
3045
|
-
def parameterize(value); end
|
3046
|
-
def response_body_if_short; end
|
3047
|
-
end
|
3048
|
-
module ActionDispatch::Assertions::RoutingAssertions
|
3049
|
-
def assert_generates(expected_path, options, defaults = nil, extras = nil, message = nil); end
|
3050
|
-
def assert_recognizes(expected_options, path, extras = nil, msg = nil); end
|
3051
|
-
def assert_routing(path, options, defaults = nil, extras = nil, message = nil); end
|
3052
|
-
def fail_on(exception_class, message); end
|
3053
|
-
def method_missing(selector, *args, &block); end
|
3054
|
-
def recognized_request_for(path, extras = nil, msg); end
|
3055
|
-
def with_routing; end
|
3056
|
-
end
|
3057
|
-
class ActionController::TestRequest < ActionDispatch::TestRequest
|
3058
|
-
def assign_parameters(routes, controller_path, action, parameters, generated_path, query_string_keys); end
|
3059
|
-
def content_type=(type); end
|
3060
|
-
def controller_class; end
|
3061
|
-
def initialize(env, session, controller_class); end
|
3062
|
-
def params_parsers; end
|
3063
|
-
def query_string=(string); end
|
3064
|
-
def self.create(controller_class); end
|
3065
|
-
def self.default_env; end
|
3066
|
-
def self.new_session; end
|
3067
|
-
end
|
3068
|
-
class ActionController::LiveTestResponse < ActionController::Live::Response
|
3069
|
-
def error?; end
|
3070
|
-
def missing?; end
|
3071
|
-
def success?; end
|
3072
|
-
end
|
3073
|
-
class ActionController::TestSession < Rack::Session::Abstract::SessionHash
|
3074
|
-
def destroy; end
|
3075
|
-
def exists?; end
|
3076
|
-
def fetch(key, *args, &block); end
|
3077
|
-
def initialize(session = nil); end
|
3078
|
-
def keys; end
|
3079
|
-
def load!; end
|
3080
|
-
def values; end
|
3081
|
-
end
|
3082
|
-
class ActionController::TestCase < ActiveSupport::TestCase
|
3083
|
-
def _controller_class; end
|
3084
|
-
def _controller_class=(val); end
|
3085
|
-
def _controller_class?; end
|
3086
|
-
def self.__callbacks; end
|
3087
|
-
def self._controller_class; end
|
3088
|
-
def self._controller_class=(val); end
|
3089
|
-
def self._controller_class?; end
|
3090
|
-
extend ActionController::TestCase::Behavior::ClassMethods
|
3091
|
-
extend ActiveSupport::Testing::ConstantLookup::ClassMethods
|
3092
|
-
include ActionController::TemplateAssertions
|
3093
|
-
include ActionController::TestCase::Behavior
|
3094
|
-
include ActionDispatch::Assertions
|
3095
|
-
include ActiveSupport::Testing::ConstantLookup
|
3096
|
-
include Rails::Dom::Testing::Assertions
|
3097
|
-
include Rails::Dom::Testing::Assertions
|
3098
|
-
end
|
3099
|
-
module ActionController::TestCase::Behavior
|
3100
|
-
def build_response(klass); end
|
3101
|
-
def check_required_ivars; end
|
3102
|
-
def controller_class_name; end
|
3103
|
-
def delete(action, **args); end
|
3104
|
-
def document_root_element; end
|
3105
|
-
def generated_path(generated_extras); end
|
3106
|
-
def get(action, **args); end
|
3107
|
-
def head(action, **args); end
|
3108
|
-
def patch(action, **args); end
|
3109
|
-
def post(action, **args); end
|
3110
|
-
def process(action, method: nil, params: nil, session: nil, body: nil, flash: nil, format: nil, xhr: nil, as: nil); end
|
3111
|
-
def put(action, **args); end
|
3112
|
-
def query_parameter_names(generated_extras); end
|
3113
|
-
def request; end
|
3114
|
-
def response; end
|
3115
|
-
def scrub_env!(env); end
|
3116
|
-
def setup_controller_request_and_response; end
|
3117
|
-
extend ActiveSupport::Concern
|
3118
|
-
include ActionDispatch::TestProcess
|
3119
|
-
include ActiveSupport::Testing::ConstantLookup
|
3120
|
-
include Rails::Dom::Testing::Assertions
|
3121
|
-
end
|
3122
|
-
module ActionController::TestCase::Behavior::ClassMethods
|
3123
|
-
def controller_class; end
|
3124
|
-
def controller_class=(new_class); end
|
3125
|
-
def determine_default_controller_class(name); end
|
3126
|
-
def tests(controller_class); end
|
3127
|
-
end
|
3128
|
-
class ActionDispatch::RequestEncoder
|
3129
|
-
def accept_header; end
|
3130
|
-
def content_type; end
|
3131
|
-
def encode_params(params); end
|
3132
|
-
def initialize(mime_name, param_encoder, response_parser); end
|
3133
|
-
def response_parser; end
|
3134
|
-
def self.encoder(name); end
|
3135
|
-
def self.parser(content_type); end
|
3136
|
-
def self.register_encoder(mime_name, param_encoder: nil, response_parser: nil); end
|
3137
|
-
end
|
3138
|
-
class ActionDispatch::RequestEncoder::IdentityEncoder
|
3139
|
-
def accept_header; end
|
3140
|
-
def content_type; end
|
3141
|
-
def encode_params(params); end
|
3142
|
-
def response_parser; end
|
3143
|
-
end
|
3144
|
-
module ActionDispatch::Integration
|
3145
|
-
end
|
3146
|
-
module ActionDispatch::Integration::RequestHelpers
|
3147
|
-
def delete(path, **args); end
|
3148
|
-
def follow_redirect!; end
|
3149
|
-
def get(path, **args); end
|
3150
|
-
def head(path, *args); end
|
3151
|
-
def patch(path, **args); end
|
3152
|
-
def post(path, **args); end
|
3153
|
-
def put(path, **args); end
|
3154
|
-
end
|
3155
|
-
class ActionDispatch::Integration::Session
|
3156
|
-
def _mock_session; end
|
3157
|
-
def accept; end
|
3158
|
-
def accept=(arg0); end
|
3159
|
-
def body(*args, &block); end
|
3160
|
-
def build_expanded_path(path); end
|
3161
|
-
def build_full_uri(path, env); end
|
3162
|
-
def controller; end
|
3163
|
-
def cookies; end
|
3164
|
-
def default_url_options; end
|
3165
|
-
def default_url_options=(val); end
|
3166
|
-
def default_url_options?; end
|
3167
|
-
def headers(*args, &block); end
|
3168
|
-
def host!(arg0); end
|
3169
|
-
def host; end
|
3170
|
-
def host=(arg0); end
|
3171
|
-
def https!(flag = nil); end
|
3172
|
-
def https?; end
|
3173
|
-
def initialize(app); end
|
3174
|
-
def path(*args, &block); end
|
3175
|
-
def process(method, path, params: nil, headers: nil, env: nil, xhr: nil, as: nil); end
|
3176
|
-
def redirect?(*args, &block); end
|
3177
|
-
def remote_addr; end
|
3178
|
-
def remote_addr=(arg0); end
|
3179
|
-
def request; end
|
3180
|
-
def request_count; end
|
3181
|
-
def request_count=(arg0); end
|
3182
|
-
def reset!; end
|
3183
|
-
def response; end
|
3184
|
-
def self.default_url_options; end
|
3185
|
-
def self.default_url_options=(val); end
|
3186
|
-
def self.default_url_options?; end
|
3187
|
-
def status(*args, &block); end
|
3188
|
-
def status_message(*args, &block); end
|
3189
|
-
def url_options; end
|
3190
|
-
include ActionDispatch::Routing::UrlFor
|
3191
|
-
include ActionDispatch::TestProcess
|
3192
|
-
include Minitest::Assertions
|
3193
|
-
include Rails::Dom::Testing::Assertions
|
3194
|
-
end
|
3195
|
-
module ActionDispatch::Integration::Runner
|
3196
|
-
def app; end
|
3197
|
-
def assigns(*args); end
|
3198
|
-
def before_setup; end
|
3199
|
-
def cookies(*args); end
|
3200
|
-
def copy_session_variables!; end
|
3201
|
-
def create_session(app); end
|
3202
|
-
def default_url_options; end
|
3203
|
-
def default_url_options=(options); end
|
3204
|
-
def delete(*args); end
|
3205
|
-
def follow_redirect!(*args); end
|
3206
|
-
def get(*args); end
|
3207
|
-
def head(*args); end
|
3208
|
-
def initialize(*args, &blk); end
|
3209
|
-
def integration_session; end
|
3210
|
-
def method_missing(method, *args, &block); end
|
3211
|
-
def open_session; end
|
3212
|
-
def patch(*args); end
|
3213
|
-
def post(*args); end
|
3214
|
-
def put(*args); end
|
3215
|
-
def remove!; end
|
3216
|
-
def reset!; end
|
3217
|
-
def respond_to_missing?(method, _); end
|
3218
|
-
include ActionDispatch::Assertions
|
3219
|
-
include Rails::Dom::Testing::Assertions
|
3220
|
-
end
|
3221
|
-
class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
|
3222
|
-
def self.__callbacks; end
|
3223
|
-
extend ActionDispatch::IntegrationTest::Behavior::ClassMethods
|
3224
|
-
include ActionDispatch::IntegrationTest::Behavior
|
3225
|
-
include ActionDispatch::IntegrationTest::UrlOptions
|
3226
|
-
include ActionDispatch::Routing::UrlFor
|
3227
|
-
include ActionDispatch::TestProcess::FixtureFile
|
3228
|
-
include ActionMailer::TestCase::ClearTestDeliveries
|
3229
|
-
end
|
3230
|
-
module ActionDispatch::IntegrationTest::UrlOptions
|
3231
|
-
def url_options; end
|
3232
|
-
extend ActiveSupport::Concern
|
3233
|
-
end
|
3234
|
-
module ActionDispatch::IntegrationTest::Behavior
|
3235
|
-
def app; end
|
3236
|
-
def document_root_element; end
|
3237
|
-
extend ActiveSupport::Concern
|
3238
|
-
include ActionController::TemplateAssertions
|
3239
|
-
include ActionDispatch::Integration::Runner
|
3240
|
-
end
|
3241
|
-
module ActionDispatch::IntegrationTest::Behavior::ClassMethods
|
3242
|
-
def app; end
|
3243
|
-
def app=(app); end
|
3244
|
-
def register_encoder(*args); end
|
3245
|
-
end
|