sorbet-rails 0.7.4 → 0.7.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/dependabot.yml +7 -0
- data/.github/workflows/ci-master.yml +28 -0
- data/.github/workflows/ci.yml +26 -0
- data/.github/workflows/publish-gem.yml +27 -0
- data/CONTRIBUTING.md +1 -2
- data/Gemfile +5 -9
- data/README.md +18 -4
- data/Rakefile +13 -24
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +12 -9
- data/lib/sorbet-rails/dependent_gem_rbis/activerecord.rbi +4 -0
- data/lib/sorbet-rails/dependent_gem_rbis/parlour.rbi +1 -1
- data/lib/sorbet-rails/gem_plugins/aasm_plugin.rb +50 -0
- data/lib/sorbet-rails/gem_plugins/money_rails_plugin.rb +76 -0
- data/lib/sorbet-rails/job_rbi_formatter.rb +1 -1
- data/lib/sorbet-rails/model_plugins/active_record_querying.rb +25 -1
- data/lib/sorbet-rails/model_plugins/active_record_serialized_attribute.rb +3 -2
- data/lib/sorbet-rails/model_plugins/base.rb +8 -1
- data/lib/sorbet-rails/model_plugins/custom_finder_methods.rb +1 -1
- data/lib/sorbet-rails/model_plugins/plugins.rb +6 -0
- data/lib/sorbet-rails/model_utils.rb +14 -7
- data/lib/sorbet-rails/rails_mixins/custom_finder_methods.rb +4 -0
- data/lib/sorbet-rails/railtie.rb +1 -1
- data/lib/sorbet-rails/routes_rbi_formatter.rb +8 -0
- data/lib/sorbet-rails/tasks/rails_rbi.rake +12 -8
- data/sorbet-rails.gemspec +2 -2
- data/spec/bin/run_all_specs.sh +3 -4
- data/spec/bin/run_spec.sh +4 -1
- data/spec/generators/rails-template.rb +3 -20
- data/spec/generators/sorbet_test_cases.rb +26 -4
- data/spec/rails_helper.rb +5 -5
- data/spec/rake_rails_rbi_models_spec.rb +11 -4
- data/spec/sorbet_spec.rb +2 -1
- data/spec/support/v5.2/Gemfile +1 -3
- data/spec/support/v5.2/Gemfile.lock +66 -71
- data/spec/support/v5.2/app/controllers/application_controller.rb +1 -1
- data/spec/support/v5.2/app/mailers/application_mailer.rb +1 -1
- data/spec/support/v5.2/app/mailers/daily_prophet_mailer.rb +1 -1
- data/spec/support/v5.2/app/mailers/hogwarts_acceptance_mailer.rb +1 -1
- data/spec/support/v5.2/app/models/spell_book.rb +1 -1
- data/spec/support/v5.2/app/models/wand.rb +1 -1
- data/spec/support/v5.2/app/models/wizard.rb +1 -1
- data/spec/support/v5.2/config/environments/development.rb +1 -1
- data/spec/support/v5.2/config/environments/production.rb +1 -1
- data/spec/support/v5.2/config/environments/test.rb +1 -1
- data/spec/support/v5.2/config/routes.rb +1 -1
- data/spec/support/v5.2/sorbet_test_cases.rb +26 -4
- data/spec/support/v6.0/Gemfile +1 -1
- data/spec/support/v6.0/Gemfile.lock +81 -85
- data/spec/support/v6.0/app/mailers/application_mailer.rb +1 -1
- data/spec/support/v6.0/config/environments/development.rb +1 -1
- data/spec/support/v6.0/config/environments/test.rb +1 -1
- data/spec/support/v6.0/config/initializers/cookies_serializer.rb +1 -1
- data/spec/support/v6.0/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/v6.0/config/routes.rb +1 -1
- data/spec/support/v6.0/sorbet_test_cases.rb +26 -4
- data/spec/support/{v5.1 → v6.1}/.gitignore +13 -2
- data/spec/support/{v5.1 → v6.1}/Gemfile +12 -15
- data/spec/support/{v5.1 → v6.1}/Gemfile.lock +87 -59
- data/spec/support/{v5.0 → v6.1}/README.md +0 -0
- data/spec/support/{v5.0 → v6.1}/Rakefile +0 -0
- data/spec/support/{v5.0 → v6.1}/app/assets/config/manifest.js +0 -0
- data/spec/support/{v5.0 → v6.1}/app/assets/images/.keep +0 -0
- data/spec/support/{v5.1 → v6.1}/app/assets/stylesheets/application.css +0 -0
- data/spec/support/{v5.0 → v6.1}/app/controllers/application_controller.rb +1 -2
- data/spec/support/{v5.0 → v6.1}/app/controllers/concerns/.keep +0 -0
- data/spec/support/{v5.0 → v6.1}/app/helpers/application_helper.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/helpers/bar_helper.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/helpers/baz_helper.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/helpers/foo_helper.rb +0 -0
- data/spec/support/v6.1/app/jobs/application_job.rb +8 -0
- data/spec/support/{v5.0 → v6.1}/app/jobs/award_house_point_hourglasses.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/app/mailers/application_mailer.rb +1 -1
- data/spec/support/{v5.0 → v6.1}/app/mailers/daily_prophet_mailer.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/mailers/hogwarts_acceptance_mailer.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/application_record.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/concerns/.keep +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/concerns/mythical.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/app/models/headmaster.rb +1 -1
- data/spec/support/{v5.1 → v6.1}/app/models/potion.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/app/models/robe.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/school.rb +1 -1
- data/spec/support/{v5.1 → v6.1}/app/models/spell.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/spell_book.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/squib.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/app/models/subject.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/wand.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/models/wizard.rb +2 -1
- data/spec/support/{v5.1 → v6.1}/app/views/layouts/application.html.erb +2 -1
- data/spec/support/{v5.0 → v6.1}/app/views/layouts/mailer.html.erb +0 -0
- data/spec/support/{v5.0 → v6.1}/app/views/layouts/mailer.text.erb +0 -0
- data/spec/support/v6.1/bin/bundle +114 -0
- data/spec/support/{v5.0 → v6.1}/bin/rails +0 -0
- data/spec/support/{v5.0 → v6.1}/bin/rake +0 -0
- data/spec/support/{v5.1 → v6.1}/bin/setup +6 -11
- data/spec/support/{v5.1 → v6.1}/config/application.rb +8 -4
- data/spec/support/{v5.0 → v6.1}/config/boot.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/config/database.yml +1 -1
- data/spec/support/{v5.0 → v6.1}/config/environment.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/config/environments/development.rb +12 -4
- data/spec/support/{v5.1 → v6.1}/config/environments/production.rb +29 -7
- data/spec/support/{v5.1 → v6.1}/config/environments/test.rb +13 -7
- data/spec/support/{v5.0 → v6.1}/config/initializers/application_controller_renderer.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/support/v6.1/config/initializers/content_security_policy.rb +29 -0
- data/spec/support/{v5.1 → v6.1}/config/initializers/cookies_serializer.rb +1 -1
- data/spec/support/{v5.0 → v6.1}/config/initializers/filter_parameter_logging.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/config/initializers/inflections.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/config/initializers/mime_types.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/config/initializers/sorbet_rails.rb +1 -1
- data/spec/support/{v5.0 → v6.1}/config/initializers/wrap_parameters.rb +0 -0
- data/spec/support/{v5.1 → v6.1}/config/locales/en.yml +1 -1
- data/spec/support/{v5.1 → v6.1}/config/puma.rb +8 -26
- data/spec/support/v6.1/config/routes.rb +5 -0
- data/spec/support/v6.1/config/storage.yml +34 -0
- data/spec/support/{v5.0 → v6.1}/config.ru +0 -0
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000001_create_wizards.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000002_create_wands.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000003_create_spell_books.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000004_add_more_column_types_to_wands.rb +2 -2
- data/spec/support/v6.1/db/migrate/20190620000005_add_broom_to_wizard.rb +6 -0
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000006_add_more_enums_to_wizard.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000007_add_type_to_wizard.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000008_add_robe_to_wizard.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000009_add_school.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000010_add_subject.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000011_add_subjects_wizards.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000012_add_spell.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/migrate/20190620000013_add_spells_spell_books.rb +2 -2
- data/spec/support/{v5.0 → v6.1}/db/migrate/20190620000014_create_headmasters.rb +2 -2
- data/spec/support/{v5.0 → v6.1}/db/migrate/20190620000015_add_serialized_to_wizards.rb +2 -2
- data/spec/support/{v5.1 → v6.1}/db/schema.rb +14 -11
- data/spec/support/{v5.0 → v6.1}/db/seeds.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/lib/assets/.keep +0 -0
- data/spec/support/{v5.0 → v6.1}/lib/mythical_rbi_plugin.rb +0 -0
- data/spec/support/{v5.0 → v6.1}/lib/tasks/.keep +0 -0
- data/spec/support/{v5.0 → v6.1}/log/.keep +0 -0
- data/spec/support/{v5.0 → v6.1}/sorbet_test_cases.rb +26 -4
- data/spec/support/{v5.0/tmp → v6.1/storage}/.keep +0 -0
- data/spec/support/{v5.0/vendor/assets/stylesheets → v6.1/tmp}/.keep +0 -0
- data/spec/support/{v5.1/app/assets/images → v6.1/tmp/pids}/.keep +0 -0
- data/spec/support/{v5.1/app/controllers/concerns → v6.1/vendor}/.keep +0 -0
- data/spec/test_data/v5.2/expected_active_record_base.rbi +10 -10
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +10 -10
- data/spec/test_data/v5.2/expected_attachment.rbi +13 -7
- data/spec/test_data/v5.2/expected_blob.rbi +13 -7
- data/spec/test_data/v5.2/expected_headmaster.rbi +13 -7
- data/spec/test_data/v5.2/expected_internal_metadata.rbi +13 -7
- data/spec/test_data/v5.2/expected_potion.rbi +13 -7
- data/spec/test_data/v5.2/expected_robe.rbi +13 -7
- data/spec/test_data/v5.2/expected_routes.rbi +8 -0
- data/spec/test_data/v5.2/expected_schema_migration.rbi +13 -7
- data/spec/test_data/v5.2/expected_school.rbi +13 -7
- data/spec/test_data/v5.2/expected_spell/habtm_spell_books.rbi +13 -7
- data/spec/test_data/v5.2/expected_spell.rbi +13 -7
- data/spec/test_data/v5.2/expected_spell_book/habtm_spells.rbi +13 -7
- data/spec/test_data/v5.2/expected_spell_book.rbi +13 -7
- data/spec/test_data/v5.2/expected_squib.rbi +15 -9
- data/spec/test_data/v5.2/expected_subject/habtm_wizards.rbi +13 -7
- data/spec/test_data/v5.2/expected_subject.rbi +13 -7
- data/spec/test_data/v5.2/expected_wand.rbi +13 -7
- data/spec/test_data/v5.2/expected_wizard/habtm_subjects.rbi +13 -7
- data/spec/test_data/v5.2/expected_wizard.rbi +15 -9
- data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +15 -9
- data/spec/test_data/v6.0/expected_active_record_base.rbi +10 -10
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +10 -10
- data/spec/test_data/v6.0/expected_attachment.rbi +13 -7
- data/spec/test_data/v6.0/expected_blob.rbi +13 -7
- data/spec/test_data/v6.0/expected_headmaster.rbi +13 -7
- data/spec/test_data/v6.0/expected_internal_metadata.rbi +13 -7
- data/spec/test_data/v6.0/expected_potion.rbi +13 -7
- data/spec/test_data/v6.0/expected_robe.rbi +13 -7
- data/spec/test_data/v6.0/expected_routes.rbi +8 -0
- data/spec/test_data/v6.0/expected_schema_migration.rbi +13 -7
- data/spec/test_data/v6.0/expected_school.rbi +13 -7
- data/spec/test_data/v6.0/expected_spell/habtm_spell_books.rbi +13 -7
- data/spec/test_data/v6.0/expected_spell.rbi +13 -7
- data/spec/test_data/v6.0/expected_spell_book/habtm_spells.rbi +13 -7
- data/spec/test_data/v6.0/expected_spell_book.rbi +13 -7
- data/spec/test_data/v6.0/expected_squib.rbi +15 -9
- data/spec/test_data/v6.0/expected_subject/habtm_wizards.rbi +13 -7
- data/spec/test_data/v6.0/expected_subject.rbi +13 -7
- data/spec/test_data/v6.0/expected_wand.rbi +13 -7
- data/spec/test_data/v6.0/expected_wizard/habtm_subjects.rbi +13 -7
- data/spec/test_data/v6.0/expected_wizard.rbi +15 -9
- data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +15 -9
- data/spec/test_data/{v5.1 → v6.1}/expected_active_record_base.rbi +16 -16
- data/spec/test_data/{v5.1 → v6.1}/expected_active_record_relation.rbi +26 -29
- data/spec/test_data/{v5.0 → v6.1}/expected_application_job.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_application_mailer.rbi +0 -0
- data/spec/test_data/v6.1/expected_attachment.rbi +334 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_award_house_point_hourglasses.rbi +0 -0
- data/spec/test_data/v6.1/expected_blob.rbi +382 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_custom_application_job.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_custom_application_mailer.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_custom_award_house_point_hourglasses.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_custom_daily_prophet_mailer.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_custom_hogwarts_acceptance_mailer.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_daily_prophet_mailer.rbi +0 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_habtm_subjects.rbi +48 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_habtm_wizards.rbi +48 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_headmaster.rbi +33 -3
- data/spec/test_data/{v5.0 → v6.1}/expected_helpers.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_helpers_with_application_and_devise_helpers.rbi +0 -0
- data/spec/test_data/{v5.0 → v6.1}/expected_hogwarts_acceptance_mailer.rbi +0 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_internal_metadata.rbi +33 -3
- data/spec/test_data/{v5.0 → v6.1}/expected_no_routes.rbi +0 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_potion.rbi +33 -3
- data/spec/test_data/v6.1/expected_record.rbi +295 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_robe.rbi +33 -3
- data/spec/test_data/v6.1/expected_routes.rbi +175 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_schema_migration.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_school.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_spell/habtm_spell_books.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_spell.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_spell_book/habtm_spell_books.rbi +48 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_spell_book/habtm_spells.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_spell_book.rbi +69 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_squib.rbi +505 -61
- data/spec/test_data/{v5.0 → v6.1}/expected_srb_tc_output.txt +0 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_subject/habtm_wizards.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_subject.rbi +33 -3
- data/spec/test_data/v6.1/expected_variant_record.rbi +370 -0
- data/spec/test_data/{v5.1 → v6.1}/expected_wand.rbi +99 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_wizard/habtm_subjects.rbi +33 -3
- data/spec/test_data/{v5.1 → v6.1}/expected_wizard.rbi +505 -61
- data/spec/test_data/{v5.1 → v6.1}/expected_wizard_wo_spellbook.rbi +499 -55
- metadata +266 -501
- data/.travis.yml +0 -42
- data/lib/sorbet-rails/type_assert/actionpack.rbi +0 -4
- data/spec/support/v5.0/.gitignore +0 -21
- data/spec/support/v5.0/Gemfile +0 -37
- data/spec/support/v5.0/Gemfile.lock +0 -161
- data/spec/support/v5.0/app/assets/stylesheets/application.css +0 -15
- data/spec/support/v5.0/app/jobs/application_job.rb +0 -3
- data/spec/support/v5.0/app/mailers/application_mailer.rb +0 -5
- data/spec/support/v5.0/app/models/headmaster.rb +0 -8
- data/spec/support/v5.0/app/models/potion.rb +0 -6
- data/spec/support/v5.0/app/models/robe.rb +0 -4
- data/spec/support/v5.0/app/models/spell.rb +0 -5
- data/spec/support/v5.0/app/models/subject.rb +0 -5
- data/spec/support/v5.0/app/views/layouts/application.html.erb +0 -13
- data/spec/support/v5.0/bin/bundle +0 -3
- data/spec/support/v5.0/bin/setup +0 -34
- data/spec/support/v5.0/bin/update +0 -29
- data/spec/support/v5.0/config/application.rb +0 -27
- data/spec/support/v5.0/config/database.yml +0 -25
- data/spec/support/v5.0/config/environments/development.rb +0 -48
- data/spec/support/v5.0/config/environments/production.rb +0 -75
- data/spec/support/v5.0/config/environments/test.rb +0 -43
- data/spec/support/v5.0/config/initializers/cookies_serializer.rb +0 -6
- data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +0 -27
- data/spec/support/v5.0/config/initializers/session_store.rb +0 -4
- data/spec/support/v5.0/config/locales/en.yml +0 -23
- data/spec/support/v5.0/config/puma.rb +0 -48
- data/spec/support/v5.0/config/routes.rb +0 -5
- data/spec/support/v5.0/db/migrate/20190620000001_create_wizards.rb +0 -14
- data/spec/support/v5.0/db/migrate/20190620000002_create_wands.rb +0 -12
- data/spec/support/v5.0/db/migrate/20190620000003_create_spell_books.rb +0 -10
- data/spec/support/v5.0/db/migrate/20190620000004_add_more_column_types_to_wands.rb +0 -17
- data/spec/support/v5.0/db/migrate/20190620000005_add_broom_to_wizard.rb +0 -6
- data/spec/support/v5.0/db/migrate/20190620000006_add_more_enums_to_wizard.rb +0 -9
- data/spec/support/v5.0/db/migrate/20190620000007_add_type_to_wizard.rb +0 -6
- data/spec/support/v5.0/db/migrate/20190620000008_add_robe_to_wizard.rb +0 -8
- data/spec/support/v5.0/db/migrate/20190620000009_add_school.rb +0 -10
- data/spec/support/v5.0/db/migrate/20190620000010_add_subject.rb +0 -8
- data/spec/support/v5.0/db/migrate/20190620000011_add_subjects_wizards.rb +0 -8
- data/spec/support/v5.0/db/migrate/20190620000012_add_spell.rb +0 -8
- data/spec/support/v5.0/db/migrate/20190620000013_add_spells_spell_books.rb +0 -8
- data/spec/support/v5.0/db/schema.rb +0 -96
- data/spec/support/v5.0/public/robots.txt +0 -5
- data/spec/support/v5.1/README.md +0 -24
- data/spec/support/v5.1/Rakefile +0 -6
- data/spec/support/v5.1/app/assets/config/manifest.js +0 -2
- data/spec/support/v5.1/app/controllers/application_controller.rb +0 -4
- data/spec/support/v5.1/app/helpers/application_helper.rb +0 -3
- data/spec/support/v5.1/app/helpers/bar_helper.rb +0 -3
- data/spec/support/v5.1/app/helpers/baz_helper.rb +0 -3
- data/spec/support/v5.1/app/helpers/foo_helper.rb +0 -3
- data/spec/support/v5.1/app/jobs/application_job.rb +0 -3
- data/spec/support/v5.1/app/jobs/award_house_point_hourglasses.rb +0 -12
- data/spec/support/v5.1/app/mailers/daily_prophet_mailer.rb +0 -9
- data/spec/support/v5.1/app/mailers/hogwarts_acceptance_mailer.rb +0 -29
- data/spec/support/v5.1/app/models/application_record.rb +0 -4
- data/spec/support/v5.1/app/models/concerns/.keep +0 -0
- data/spec/support/v5.1/app/models/concerns/mythical.rb +0 -11
- data/spec/support/v5.1/app/models/school.rb +0 -5
- data/spec/support/v5.1/app/models/spell_book.rb +0 -18
- data/spec/support/v5.1/app/models/squib.rb +0 -6
- data/spec/support/v5.1/app/models/wand.rb +0 -19
- data/spec/support/v5.1/app/models/wizard.rb +0 -65
- data/spec/support/v5.1/app/views/layouts/mailer.html.erb +0 -13
- data/spec/support/v5.1/app/views/layouts/mailer.text.erb +0 -1
- data/spec/support/v5.1/bin/bundle +0 -3
- data/spec/support/v5.1/bin/rails +0 -4
- data/spec/support/v5.1/bin/rake +0 -4
- data/spec/support/v5.1/bin/update +0 -29
- data/spec/support/v5.1/bin/yarn +0 -11
- data/spec/support/v5.1/config/boot.rb +0 -4
- data/spec/support/v5.1/config/environment.rb +0 -6
- data/spec/support/v5.1/config/initializers/application_controller_renderer.rb +0 -9
- data/spec/support/v5.1/config/initializers/backtrace_silencers.rb +0 -8
- data/spec/support/v5.1/config/initializers/filter_parameter_logging.rb +0 -5
- data/spec/support/v5.1/config/initializers/inflections.rb +0 -17
- data/spec/support/v5.1/config/initializers/mime_types.rb +0 -5
- data/spec/support/v5.1/config/initializers/sorbet_rails.rb +0 -3
- data/spec/support/v5.1/config/initializers/wrap_parameters.rb +0 -15
- data/spec/support/v5.1/config/routes.rb +0 -5
- data/spec/support/v5.1/config.ru +0 -5
- data/spec/support/v5.1/db/migrate/20190620000005_add_broom_to_wizard.rb +0 -6
- data/spec/support/v5.1/db/migrate/20190620000014_create_headmasters.rb +0 -9
- data/spec/support/v5.1/db/migrate/20190620000015_add_serialized_to_wizards.rb +0 -9
- data/spec/support/v5.1/db/seeds.rb +0 -8
- data/spec/support/v5.1/lib/assets/.keep +0 -0
- data/spec/support/v5.1/lib/mythical_rbi_plugin.rb +0 -16
- data/spec/support/v5.1/lib/tasks/.keep +0 -0
- data/spec/support/v5.1/log/.keep +0 -0
- data/spec/support/v5.1/package.json +0 -5
- data/spec/support/v5.1/public/robots.txt +0 -1
- data/spec/support/v5.1/sorbet_test_cases.rb +0 -409
- data/spec/support/v5.1/tmp/.keep +0 -0
- data/spec/support/v5.1/vendor/.keep +0 -0
- data/spec/test_data/v5.0/expected_active_record_base.rbi +0 -113
- data/spec/test_data/v5.0/expected_active_record_relation.rbi +0 -198
- data/spec/test_data/v5.0/expected_habtm_subjects.rbi +0 -660
- data/spec/test_data/v5.0/expected_habtm_wizards.rbi +0 -660
- data/spec/test_data/v5.0/expected_headmaster.rbi +0 -328
- data/spec/test_data/v5.0/expected_internal_metadata.rbi +0 -298
- data/spec/test_data/v5.0/expected_potion.rbi +0 -280
- data/spec/test_data/v5.0/expected_robe.rbi +0 -301
- data/spec/test_data/v5.0/expected_routes.rbi +0 -27
- data/spec/test_data/v5.0/expected_schema_migration.rbi +0 -271
- data/spec/test_data/v5.0/expected_school.rbi +0 -301
- data/spec/test_data/v5.0/expected_spell/habtm_spell_books.rbi +0 -319
- data/spec/test_data/v5.0/expected_spell.rbi +0 -292
- data/spec/test_data/v5.0/expected_spell_book/habtm_spell_books.rbi +0 -637
- data/spec/test_data/v5.0/expected_spell_book/habtm_spells.rbi +0 -319
- data/spec/test_data/v5.0/expected_spell_book.rbi +0 -415
- data/spec/test_data/v5.0/expected_squib.rbi +0 -832
- data/spec/test_data/v5.0/expected_subject/habtm_wizards.rbi +0 -319
- data/spec/test_data/v5.0/expected_subject.rbi +0 -292
- data/spec/test_data/v5.0/expected_wand.rbi +0 -497
- data/spec/test_data/v5.0/expected_wizard/habtm_subjects.rbi +0 -319
- data/spec/test_data/v5.0/expected_wizard.rbi +0 -908
- data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +0 -902
- data/spec/test_data/v5.1/expected_application_job.rbi +0 -20
- data/spec/test_data/v5.1/expected_application_mailer.rbi +0 -5
- data/spec/test_data/v5.1/expected_award_house_point_hourglasses.rbi +0 -20
- data/spec/test_data/v5.1/expected_custom_application_job.rbi +0 -21
- data/spec/test_data/v5.1/expected_custom_application_mailer.rbi +0 -6
- data/spec/test_data/v5.1/expected_custom_award_house_point_hourglasses.rbi +0 -21
- data/spec/test_data/v5.1/expected_custom_daily_prophet_mailer.rbi +0 -8
- data/spec/test_data/v5.1/expected_custom_hogwarts_acceptance_mailer.rbi +0 -21
- data/spec/test_data/v5.1/expected_daily_prophet_mailer.rbi +0 -7
- data/spec/test_data/v5.1/expected_helpers.rbi +0 -27
- data/spec/test_data/v5.1/expected_helpers_with_application_and_devise_helpers.rbi +0 -34
- data/spec/test_data/v5.1/expected_hogwarts_acceptance_mailer.rbi +0 -20
- data/spec/test_data/v5.1/expected_no_routes.rbi +0 -4
- data/spec/test_data/v5.1/expected_routes.rbi +0 -27
- data/spec/test_data/v5.1/expected_srb_tc_output.txt +0 -1
@@ -1,832 +0,0 @@
|
|
1
|
-
# This is an autogenerated file for dynamic methods in Squib
|
2
|
-
# Please rerun bundle exec rake rails_rbi:models[Squib] to regenerate.
|
3
|
-
|
4
|
-
# typed: strong
|
5
|
-
module Squib::EnumInstanceMethods
|
6
|
-
sig { returns(T::Boolean) }
|
7
|
-
def broom_nimbus?; end
|
8
|
-
|
9
|
-
sig { void }
|
10
|
-
def broom_nimbus!; end
|
11
|
-
|
12
|
-
sig { returns(T::Boolean) }
|
13
|
-
def broom_firebolt?; end
|
14
|
-
|
15
|
-
sig { void }
|
16
|
-
def broom_firebolt!; end
|
17
|
-
|
18
|
-
sig { returns(T::Boolean) }
|
19
|
-
def color_brown_eyes?; end
|
20
|
-
|
21
|
-
sig { void }
|
22
|
-
def color_brown_eyes!; end
|
23
|
-
|
24
|
-
sig { returns(T::Boolean) }
|
25
|
-
def color_green_eyes?; end
|
26
|
-
|
27
|
-
sig { void }
|
28
|
-
def color_green_eyes!; end
|
29
|
-
|
30
|
-
sig { returns(T::Boolean) }
|
31
|
-
def color_blue_eyes?; end
|
32
|
-
|
33
|
-
sig { void }
|
34
|
-
def color_blue_eyes!; end
|
35
|
-
|
36
|
-
sig { returns(T::Boolean) }
|
37
|
-
def brown_hair?; end
|
38
|
-
|
39
|
-
sig { void }
|
40
|
-
def brown_hair!; end
|
41
|
-
|
42
|
-
sig { returns(T::Boolean) }
|
43
|
-
def black_hair?; end
|
44
|
-
|
45
|
-
sig { void }
|
46
|
-
def black_hair!; end
|
47
|
-
|
48
|
-
sig { returns(T::Boolean) }
|
49
|
-
def blonde_hair?; end
|
50
|
-
|
51
|
-
sig { void }
|
52
|
-
def blonde_hair!; end
|
53
|
-
|
54
|
-
sig { returns(T::Boolean) }
|
55
|
-
def Gryffindor?; end
|
56
|
-
|
57
|
-
sig { void }
|
58
|
-
def Gryffindor!; end
|
59
|
-
|
60
|
-
sig { returns(T::Boolean) }
|
61
|
-
def Hufflepuff?; end
|
62
|
-
|
63
|
-
sig { void }
|
64
|
-
def Hufflepuff!; end
|
65
|
-
|
66
|
-
sig { returns(T::Boolean) }
|
67
|
-
def Ravenclaw?; end
|
68
|
-
|
69
|
-
sig { void }
|
70
|
-
def Ravenclaw!; end
|
71
|
-
|
72
|
-
sig { returns(T::Boolean) }
|
73
|
-
def Slytherin?; end
|
74
|
-
|
75
|
-
sig { void }
|
76
|
-
def Slytherin!; end
|
77
|
-
|
78
|
-
sig { returns(T::Boolean) }
|
79
|
-
def Hagrid?; end
|
80
|
-
|
81
|
-
sig { void }
|
82
|
-
def Hagrid!; end
|
83
|
-
|
84
|
-
sig { returns(T::Boolean) }
|
85
|
-
def quidditch_keeper?; end
|
86
|
-
|
87
|
-
sig { void }
|
88
|
-
def quidditch_keeper!; end
|
89
|
-
|
90
|
-
sig { returns(T::Boolean) }
|
91
|
-
def quidditch_seeker?; end
|
92
|
-
|
93
|
-
sig { void }
|
94
|
-
def quidditch_seeker!; end
|
95
|
-
|
96
|
-
sig { returns(T::Boolean) }
|
97
|
-
def quidditch_beater?; end
|
98
|
-
|
99
|
-
sig { void }
|
100
|
-
def quidditch_beater!; end
|
101
|
-
|
102
|
-
sig { returns(T::Boolean) }
|
103
|
-
def quidditch_chaser?; end
|
104
|
-
|
105
|
-
sig { void }
|
106
|
-
def quidditch_chaser!; end
|
107
|
-
end
|
108
|
-
|
109
|
-
module Squib::ActiveRelation_WhereNot
|
110
|
-
sig { params(opts: T.untyped, rest: T.untyped).returns(T.self_type) }
|
111
|
-
def not(opts, *rest); end
|
112
|
-
end
|
113
|
-
|
114
|
-
module Squib::GeneratedSerializedAttributeMethods
|
115
|
-
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
116
|
-
def newt_subjects; end
|
117
|
-
|
118
|
-
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
119
|
-
def newt_subjects=(value); end
|
120
|
-
|
121
|
-
sig { returns(T::Boolean) }
|
122
|
-
def newt_subjects?; end
|
123
|
-
|
124
|
-
sig { returns(T.nilable(T::Hash[T.untyped, T.untyped])) }
|
125
|
-
def owl_results; end
|
126
|
-
|
127
|
-
sig { params(value: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
128
|
-
def owl_results=(value); end
|
129
|
-
|
130
|
-
sig { returns(T::Boolean) }
|
131
|
-
def owl_results?; end
|
132
|
-
|
133
|
-
sig { returns(T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))) }
|
134
|
-
def patronus_characteristics; end
|
135
|
-
|
136
|
-
sig { params(value: T.nilable(T.any(T::Array[T.untyped], T::Boolean, Float, T::Hash[T.untyped, T.untyped], Integer, String))).void }
|
137
|
-
def patronus_characteristics=(value); end
|
138
|
-
|
139
|
-
sig { returns(T::Boolean) }
|
140
|
-
def patronus_characteristics?; end
|
141
|
-
|
142
|
-
sig { returns(T.nilable(T::Array[T.untyped])) }
|
143
|
-
def pets; end
|
144
|
-
|
145
|
-
sig { params(value: T.nilable(T::Array[T.untyped])).void }
|
146
|
-
def pets=(value); end
|
147
|
-
|
148
|
-
sig { returns(T::Boolean) }
|
149
|
-
def pets?; end
|
150
|
-
end
|
151
|
-
|
152
|
-
module Squib::GeneratedAttributeMethods
|
153
|
-
sig { returns(T.nilable(String)) }
|
154
|
-
def broom; end
|
155
|
-
|
156
|
-
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
157
|
-
def broom=(value); end
|
158
|
-
|
159
|
-
sig { returns(T::Boolean) }
|
160
|
-
def broom?; end
|
161
|
-
|
162
|
-
sig { returns(ActiveSupport::TimeWithZone) }
|
163
|
-
def created_at; end
|
164
|
-
|
165
|
-
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
166
|
-
def created_at=(value); end
|
167
|
-
|
168
|
-
sig { returns(T::Boolean) }
|
169
|
-
def created_at?; end
|
170
|
-
|
171
|
-
sig { returns(T.nilable(String)) }
|
172
|
-
def eye_color; end
|
173
|
-
|
174
|
-
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
175
|
-
def eye_color=(value); end
|
176
|
-
|
177
|
-
sig { returns(T::Boolean) }
|
178
|
-
def eye_color?; end
|
179
|
-
|
180
|
-
sig { returns(T.nilable(String)) }
|
181
|
-
def hair_color; end
|
182
|
-
|
183
|
-
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
184
|
-
def hair_color=(value); end
|
185
|
-
|
186
|
-
sig { returns(T::Boolean) }
|
187
|
-
def hair_color?; end
|
188
|
-
|
189
|
-
sig { returns(T.nilable(Integer)) }
|
190
|
-
def hair_length; end
|
191
|
-
|
192
|
-
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
193
|
-
def hair_length=(value); end
|
194
|
-
|
195
|
-
sig { returns(T::Boolean) }
|
196
|
-
def hair_length?; end
|
197
|
-
|
198
|
-
sig { returns(T.nilable(String)) }
|
199
|
-
def house; end
|
200
|
-
|
201
|
-
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
202
|
-
def house=(value); end
|
203
|
-
|
204
|
-
sig { returns(T::Boolean) }
|
205
|
-
def house?; end
|
206
|
-
|
207
|
-
sig { returns(Integer) }
|
208
|
-
def id; end
|
209
|
-
|
210
|
-
sig { params(value: T.any(Numeric, ActiveSupport::Duration)).void }
|
211
|
-
def id=(value); end
|
212
|
-
|
213
|
-
sig { returns(T::Boolean) }
|
214
|
-
def id?; end
|
215
|
-
|
216
|
-
sig { returns(String) }
|
217
|
-
def name; end
|
218
|
-
|
219
|
-
sig { params(value: T.any(String, Symbol)).void }
|
220
|
-
def name=(value); end
|
221
|
-
|
222
|
-
sig { returns(T::Boolean) }
|
223
|
-
def name?; end
|
224
|
-
|
225
|
-
sig { returns(T.nilable(String)) }
|
226
|
-
def notes; end
|
227
|
-
|
228
|
-
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
229
|
-
def notes=(value); end
|
230
|
-
|
231
|
-
sig { returns(T::Boolean) }
|
232
|
-
def notes?; end
|
233
|
-
|
234
|
-
sig { returns(T.nilable(String)) }
|
235
|
-
def parent_email; end
|
236
|
-
|
237
|
-
sig { params(value: T.nilable(T.any(String, Symbol))).void }
|
238
|
-
def parent_email=(value); end
|
239
|
-
|
240
|
-
sig { returns(T::Boolean) }
|
241
|
-
def parent_email?; end
|
242
|
-
|
243
|
-
sig { returns(T.nilable(String)) }
|
244
|
-
def professor; end
|
245
|
-
|
246
|
-
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
247
|
-
def professor=(value); end
|
248
|
-
|
249
|
-
sig { returns(T::Boolean) }
|
250
|
-
def professor?; end
|
251
|
-
|
252
|
-
sig { returns(T.nilable(String)) }
|
253
|
-
def quidditch_position; end
|
254
|
-
|
255
|
-
sig { params(value: T.nilable(T.any(Integer, String, Symbol))).void }
|
256
|
-
def quidditch_position=(value); end
|
257
|
-
|
258
|
-
sig { returns(T::Boolean) }
|
259
|
-
def quidditch_position?; end
|
260
|
-
|
261
|
-
sig { returns(T.nilable(Integer)) }
|
262
|
-
def school_id; end
|
263
|
-
|
264
|
-
sig { params(value: T.nilable(T.any(Numeric, ActiveSupport::Duration))).void }
|
265
|
-
def school_id=(value); end
|
266
|
-
|
267
|
-
sig { returns(T::Boolean) }
|
268
|
-
def school_id?; end
|
269
|
-
|
270
|
-
sig { returns(String) }
|
271
|
-
def type; end
|
272
|
-
|
273
|
-
sig { params(value: T.any(String, Symbol)).void }
|
274
|
-
def type=(value); end
|
275
|
-
|
276
|
-
sig { returns(T::Boolean) }
|
277
|
-
def type?; end
|
278
|
-
|
279
|
-
sig { returns(ActiveSupport::TimeWithZone) }
|
280
|
-
def updated_at; end
|
281
|
-
|
282
|
-
sig { params(value: T.any(Date, Time, ActiveSupport::TimeWithZone)).void }
|
283
|
-
def updated_at=(value); end
|
284
|
-
|
285
|
-
sig { returns(T::Boolean) }
|
286
|
-
def updated_at?; end
|
287
|
-
end
|
288
|
-
|
289
|
-
module Squib::GeneratedAssociationMethods
|
290
|
-
sig { returns(T.nilable(::School)) }
|
291
|
-
def school; end
|
292
|
-
|
293
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
294
|
-
def build_school(*args, &block); end
|
295
|
-
|
296
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
297
|
-
def create_school(*args, &block); end
|
298
|
-
|
299
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::School).void)).returns(::School) }
|
300
|
-
def create_school!(*args, &block); end
|
301
|
-
|
302
|
-
sig { params(value: T.nilable(::School)).void }
|
303
|
-
def school=(value); end
|
304
|
-
|
305
|
-
sig { returns(T.nilable(::School)) }
|
306
|
-
def reload_school; end
|
307
|
-
|
308
|
-
sig { returns(::SpellBook::ActiveRecord_Associations_CollectionProxy) }
|
309
|
-
def spell_books; end
|
310
|
-
|
311
|
-
sig { returns(T::Array[Integer]) }
|
312
|
-
def spell_book_ids; end
|
313
|
-
|
314
|
-
sig { params(value: T::Enumerable[::SpellBook]).void }
|
315
|
-
def spell_books=(value); end
|
316
|
-
|
317
|
-
sig { returns(::Subject::ActiveRecord_Associations_CollectionProxy) }
|
318
|
-
def subjects; end
|
319
|
-
|
320
|
-
sig { returns(T::Array[Integer]) }
|
321
|
-
def subject_ids; end
|
322
|
-
|
323
|
-
sig { params(value: T::Enumerable[::Subject]).void }
|
324
|
-
def subjects=(value); end
|
325
|
-
|
326
|
-
sig { returns(T.nilable(::Wand)) }
|
327
|
-
def wand; end
|
328
|
-
|
329
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
330
|
-
def build_wand(*args, &block); end
|
331
|
-
|
332
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
333
|
-
def create_wand(*args, &block); end
|
334
|
-
|
335
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.params(object: ::Wand).void)).returns(::Wand) }
|
336
|
-
def create_wand!(*args, &block); end
|
337
|
-
|
338
|
-
sig { params(value: T.nilable(::Wand)).void }
|
339
|
-
def wand=(value); end
|
340
|
-
|
341
|
-
sig { returns(T.nilable(::Wand)) }
|
342
|
-
def reload_wand; end
|
343
|
-
end
|
344
|
-
|
345
|
-
module Squib::CustomFinderMethods
|
346
|
-
sig { params(limit: Integer).returns(T::Array[Squib]) }
|
347
|
-
def first_n(limit); end
|
348
|
-
|
349
|
-
sig { params(limit: Integer).returns(T::Array[Squib]) }
|
350
|
-
def last_n(limit); end
|
351
|
-
|
352
|
-
sig { params(args: T::Array[T.any(Integer, String)]).returns(T::Array[Squib]) }
|
353
|
-
def find_n(*args); end
|
354
|
-
|
355
|
-
sig { params(id: Integer).returns(T.nilable(Squib)) }
|
356
|
-
def find_by_id(id); end
|
357
|
-
|
358
|
-
sig { params(id: Integer).returns(Squib) }
|
359
|
-
def find_by_id!(id); end
|
360
|
-
end
|
361
|
-
|
362
|
-
class Squib < Wizard
|
363
|
-
include Squib::EnumInstanceMethods
|
364
|
-
include Squib::GeneratedSerializedAttributeMethods
|
365
|
-
include Squib::GeneratedAttributeMethods
|
366
|
-
include Squib::GeneratedAssociationMethods
|
367
|
-
extend Squib::CustomFinderMethods
|
368
|
-
extend Squib::QueryMethodsReturningRelation
|
369
|
-
RelationType = T.type_alias { T.any(Squib::ActiveRecord_Relation, Squib::ActiveRecord_Associations_CollectionProxy, Squib::ActiveRecord_AssociationRelation) }
|
370
|
-
|
371
|
-
sig { returns(T::Hash[T.any(String, Symbol), String]) }
|
372
|
-
def self.brooms; end
|
373
|
-
|
374
|
-
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
375
|
-
def self.eye_colors; end
|
376
|
-
|
377
|
-
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
378
|
-
def self.hair_colors; end
|
379
|
-
|
380
|
-
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
381
|
-
def self.houses; end
|
382
|
-
|
383
|
-
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
384
|
-
def self.professors; end
|
385
|
-
|
386
|
-
sig { returns(T::Hash[T.any(String, Symbol), Integer]) }
|
387
|
-
def self.quidditch_positions; end
|
388
|
-
|
389
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
390
|
-
def self.Gryffindor(*args); end
|
391
|
-
|
392
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
393
|
-
def self.Hagrid(*args); end
|
394
|
-
|
395
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
396
|
-
def self.Hufflepuff(*args); end
|
397
|
-
|
398
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
399
|
-
def self.Ravenclaw(*args); end
|
400
|
-
|
401
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
402
|
-
def self.Slytherin(*args); end
|
403
|
-
|
404
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
405
|
-
def self.black_hair(*args); end
|
406
|
-
|
407
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
408
|
-
def self.blonde_hair(*args); end
|
409
|
-
|
410
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
411
|
-
def self.broom_firebolt(*args); end
|
412
|
-
|
413
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
414
|
-
def self.broom_nimbus(*args); end
|
415
|
-
|
416
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
417
|
-
def self.brown_hair(*args); end
|
418
|
-
|
419
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
420
|
-
def self.color_blue_eyes(*args); end
|
421
|
-
|
422
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
423
|
-
def self.color_brown_eyes(*args); end
|
424
|
-
|
425
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
426
|
-
def self.color_green_eyes(*args); end
|
427
|
-
|
428
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
429
|
-
def self.quidditch_beater(*args); end
|
430
|
-
|
431
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
432
|
-
def self.quidditch_chaser(*args); end
|
433
|
-
|
434
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
435
|
-
def self.quidditch_keeper(*args); end
|
436
|
-
|
437
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
438
|
-
def self.quidditch_seeker(*args); end
|
439
|
-
|
440
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
441
|
-
def self.recent(*args); end
|
442
|
-
end
|
443
|
-
|
444
|
-
class Squib::ActiveRecord_Relation < ActiveRecord::Relation
|
445
|
-
include Squib::ActiveRelation_WhereNot
|
446
|
-
include Squib::CustomFinderMethods
|
447
|
-
include Squib::QueryMethodsReturningRelation
|
448
|
-
Elem = type_member(fixed: Squib)
|
449
|
-
|
450
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
451
|
-
def Gryffindor(*args); end
|
452
|
-
|
453
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
454
|
-
def Hagrid(*args); end
|
455
|
-
|
456
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
457
|
-
def Hufflepuff(*args); end
|
458
|
-
|
459
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
460
|
-
def Ravenclaw(*args); end
|
461
|
-
|
462
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
463
|
-
def Slytherin(*args); end
|
464
|
-
|
465
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
466
|
-
def black_hair(*args); end
|
467
|
-
|
468
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
469
|
-
def blonde_hair(*args); end
|
470
|
-
|
471
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
472
|
-
def broom_firebolt(*args); end
|
473
|
-
|
474
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
475
|
-
def broom_nimbus(*args); end
|
476
|
-
|
477
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
478
|
-
def brown_hair(*args); end
|
479
|
-
|
480
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
481
|
-
def color_blue_eyes(*args); end
|
482
|
-
|
483
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
484
|
-
def color_brown_eyes(*args); end
|
485
|
-
|
486
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
487
|
-
def color_green_eyes(*args); end
|
488
|
-
|
489
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
490
|
-
def quidditch_beater(*args); end
|
491
|
-
|
492
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
493
|
-
def quidditch_chaser(*args); end
|
494
|
-
|
495
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
496
|
-
def quidditch_keeper(*args); end
|
497
|
-
|
498
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
499
|
-
def quidditch_seeker(*args); end
|
500
|
-
|
501
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
502
|
-
def recent(*args); end
|
503
|
-
end
|
504
|
-
|
505
|
-
class Squib::ActiveRecord_AssociationRelation < ActiveRecord::AssociationRelation
|
506
|
-
include Squib::ActiveRelation_WhereNot
|
507
|
-
include Squib::CustomFinderMethods
|
508
|
-
include Squib::QueryMethodsReturningAssociationRelation
|
509
|
-
Elem = type_member(fixed: Squib)
|
510
|
-
|
511
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
512
|
-
def Gryffindor(*args); end
|
513
|
-
|
514
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
515
|
-
def Hagrid(*args); end
|
516
|
-
|
517
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
518
|
-
def Hufflepuff(*args); end
|
519
|
-
|
520
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
521
|
-
def Ravenclaw(*args); end
|
522
|
-
|
523
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
524
|
-
def Slytherin(*args); end
|
525
|
-
|
526
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
527
|
-
def black_hair(*args); end
|
528
|
-
|
529
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
530
|
-
def blonde_hair(*args); end
|
531
|
-
|
532
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
533
|
-
def broom_firebolt(*args); end
|
534
|
-
|
535
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
536
|
-
def broom_nimbus(*args); end
|
537
|
-
|
538
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
539
|
-
def brown_hair(*args); end
|
540
|
-
|
541
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
542
|
-
def color_blue_eyes(*args); end
|
543
|
-
|
544
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
545
|
-
def color_brown_eyes(*args); end
|
546
|
-
|
547
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
548
|
-
def color_green_eyes(*args); end
|
549
|
-
|
550
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
551
|
-
def quidditch_beater(*args); end
|
552
|
-
|
553
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
554
|
-
def quidditch_chaser(*args); end
|
555
|
-
|
556
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
557
|
-
def quidditch_keeper(*args); end
|
558
|
-
|
559
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
560
|
-
def quidditch_seeker(*args); end
|
561
|
-
|
562
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
563
|
-
def recent(*args); end
|
564
|
-
end
|
565
|
-
|
566
|
-
class Squib::ActiveRecord_Associations_CollectionProxy < ActiveRecord::Associations::CollectionProxy
|
567
|
-
include Squib::CustomFinderMethods
|
568
|
-
include Squib::QueryMethodsReturningAssociationRelation
|
569
|
-
Elem = type_member(fixed: Squib)
|
570
|
-
|
571
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
572
|
-
def Gryffindor(*args); end
|
573
|
-
|
574
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
575
|
-
def Hagrid(*args); end
|
576
|
-
|
577
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
578
|
-
def Hufflepuff(*args); end
|
579
|
-
|
580
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
581
|
-
def Ravenclaw(*args); end
|
582
|
-
|
583
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
584
|
-
def Slytherin(*args); end
|
585
|
-
|
586
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
587
|
-
def black_hair(*args); end
|
588
|
-
|
589
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
590
|
-
def blonde_hair(*args); end
|
591
|
-
|
592
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
593
|
-
def broom_firebolt(*args); end
|
594
|
-
|
595
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
596
|
-
def broom_nimbus(*args); end
|
597
|
-
|
598
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
599
|
-
def brown_hair(*args); end
|
600
|
-
|
601
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
602
|
-
def color_blue_eyes(*args); end
|
603
|
-
|
604
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
605
|
-
def color_brown_eyes(*args); end
|
606
|
-
|
607
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
608
|
-
def color_green_eyes(*args); end
|
609
|
-
|
610
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
611
|
-
def quidditch_beater(*args); end
|
612
|
-
|
613
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
614
|
-
def quidditch_chaser(*args); end
|
615
|
-
|
616
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
617
|
-
def quidditch_keeper(*args); end
|
618
|
-
|
619
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
620
|
-
def quidditch_seeker(*args); end
|
621
|
-
|
622
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
623
|
-
def recent(*args); end
|
624
|
-
|
625
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
626
|
-
def <<(*records); end
|
627
|
-
|
628
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
629
|
-
def append(*records); end
|
630
|
-
|
631
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
632
|
-
def push(*records); end
|
633
|
-
|
634
|
-
sig { params(records: T.any(Squib, T::Array[Squib])).returns(T.self_type) }
|
635
|
-
def concat(*records); end
|
636
|
-
end
|
637
|
-
|
638
|
-
module Squib::QueryMethodsReturningRelation
|
639
|
-
sig { returns(Squib::ActiveRecord_Relation) }
|
640
|
-
def all; end
|
641
|
-
|
642
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
643
|
-
def unscoped(&block); end
|
644
|
-
|
645
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
646
|
-
def select(*args); end
|
647
|
-
|
648
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
649
|
-
def order(*args); end
|
650
|
-
|
651
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
652
|
-
def reorder(*args); end
|
653
|
-
|
654
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
655
|
-
def group(*args); end
|
656
|
-
|
657
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
658
|
-
def limit(*args); end
|
659
|
-
|
660
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
661
|
-
def offset(*args); end
|
662
|
-
|
663
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
664
|
-
def joins(*args); end
|
665
|
-
|
666
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
667
|
-
def left_joins(*args); end
|
668
|
-
|
669
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
670
|
-
def left_outer_joins(*args); end
|
671
|
-
|
672
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
673
|
-
def where(*args); end
|
674
|
-
|
675
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
676
|
-
def rewhere(*args); end
|
677
|
-
|
678
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
679
|
-
def preload(*args); end
|
680
|
-
|
681
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
682
|
-
def eager_load(*args); end
|
683
|
-
|
684
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
685
|
-
def includes(*args); end
|
686
|
-
|
687
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
688
|
-
def from(*args); end
|
689
|
-
|
690
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
691
|
-
def lock(*args); end
|
692
|
-
|
693
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
694
|
-
def readonly(*args); end
|
695
|
-
|
696
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
697
|
-
def or(*args); end
|
698
|
-
|
699
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
700
|
-
def having(*args); end
|
701
|
-
|
702
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
703
|
-
def create_with(*args); end
|
704
|
-
|
705
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
706
|
-
def distinct(*args); end
|
707
|
-
|
708
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
709
|
-
def references(*args); end
|
710
|
-
|
711
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
712
|
-
def none(*args); end
|
713
|
-
|
714
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
715
|
-
def unscope(*args); end
|
716
|
-
|
717
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_Relation) }
|
718
|
-
def except(*args); end
|
719
|
-
|
720
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
721
|
-
def extending(*args, &block); end
|
722
|
-
|
723
|
-
sig do
|
724
|
-
params(
|
725
|
-
of: T.nilable(Integer),
|
726
|
-
start: T.nilable(Integer),
|
727
|
-
finish: T.nilable(Integer),
|
728
|
-
load: T.nilable(T::Boolean),
|
729
|
-
error_on_ignore: T.nilable(T::Boolean),
|
730
|
-
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_Relation).void)
|
731
|
-
).returns(ActiveRecord::Batches::BatchEnumerator)
|
732
|
-
end
|
733
|
-
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
734
|
-
end
|
735
|
-
|
736
|
-
module Squib::QueryMethodsReturningAssociationRelation
|
737
|
-
sig { returns(Squib::ActiveRecord_AssociationRelation) }
|
738
|
-
def all; end
|
739
|
-
|
740
|
-
sig { params(block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_Relation) }
|
741
|
-
def unscoped(&block); end
|
742
|
-
|
743
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
744
|
-
def select(*args); end
|
745
|
-
|
746
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
747
|
-
def order(*args); end
|
748
|
-
|
749
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
750
|
-
def reorder(*args); end
|
751
|
-
|
752
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
753
|
-
def group(*args); end
|
754
|
-
|
755
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
756
|
-
def limit(*args); end
|
757
|
-
|
758
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
759
|
-
def offset(*args); end
|
760
|
-
|
761
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
762
|
-
def joins(*args); end
|
763
|
-
|
764
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
765
|
-
def left_joins(*args); end
|
766
|
-
|
767
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
768
|
-
def left_outer_joins(*args); end
|
769
|
-
|
770
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
771
|
-
def where(*args); end
|
772
|
-
|
773
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
774
|
-
def rewhere(*args); end
|
775
|
-
|
776
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
777
|
-
def preload(*args); end
|
778
|
-
|
779
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
780
|
-
def eager_load(*args); end
|
781
|
-
|
782
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
783
|
-
def includes(*args); end
|
784
|
-
|
785
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
786
|
-
def from(*args); end
|
787
|
-
|
788
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
789
|
-
def lock(*args); end
|
790
|
-
|
791
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
792
|
-
def readonly(*args); end
|
793
|
-
|
794
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
795
|
-
def or(*args); end
|
796
|
-
|
797
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
798
|
-
def having(*args); end
|
799
|
-
|
800
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
801
|
-
def create_with(*args); end
|
802
|
-
|
803
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
804
|
-
def distinct(*args); end
|
805
|
-
|
806
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
807
|
-
def references(*args); end
|
808
|
-
|
809
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
810
|
-
def none(*args); end
|
811
|
-
|
812
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
813
|
-
def unscope(*args); end
|
814
|
-
|
815
|
-
sig { params(args: T.untyped).returns(Squib::ActiveRecord_AssociationRelation) }
|
816
|
-
def except(*args); end
|
817
|
-
|
818
|
-
sig { params(args: T.untyped, block: T.nilable(T.proc.void)).returns(Squib::ActiveRecord_AssociationRelation) }
|
819
|
-
def extending(*args, &block); end
|
820
|
-
|
821
|
-
sig do
|
822
|
-
params(
|
823
|
-
of: T.nilable(Integer),
|
824
|
-
start: T.nilable(Integer),
|
825
|
-
finish: T.nilable(Integer),
|
826
|
-
load: T.nilable(T::Boolean),
|
827
|
-
error_on_ignore: T.nilable(T::Boolean),
|
828
|
-
block: T.nilable(T.proc.params(e: Squib::ActiveRecord_AssociationRelation).void)
|
829
|
-
).returns(ActiveRecord::Batches::BatchEnumerator)
|
830
|
-
end
|
831
|
-
def in_batches(of: 1000, start: nil, finish: nil, load: false, error_on_ignore: nil, &block); end
|
832
|
-
end
|