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
@@ -84,6 +84,8 @@ T.assert_type!(Wizard.where.not(id: 1), Wizard::ActiveRecord_Relation)
|
|
84
84
|
T.assert_type!(Wizard.preload(:spell_books), Wizard::ActiveRecord_Relation)
|
85
85
|
T.assert_type!(Wizard.eager_load(:spell_books), Wizard::ActiveRecord_Relation)
|
86
86
|
T.assert_type!(Wizard.order(:id), Wizard::ActiveRecord_Relation)
|
87
|
+
T.assert_type!(Wizard.select { |r| r.id == 1 }, T::Array[Wizard])
|
88
|
+
T.assert_type!(Wizard.select_columns(:id, :name), Wizard::ActiveRecord_Relation)
|
87
89
|
|
88
90
|
# Finder methods -- ActiveRecord::Relation
|
89
91
|
T.assert_type!(Wizard.all.exists?(name: 'Harry Potter'), T::Boolean)
|
@@ -121,12 +123,17 @@ T.assert_type!(Wizard.all.find_each, T::Enumerator[Wizard])
|
|
121
123
|
Wizard.all.find_in_batches { |w| T.assert_type!(w, T::Array[Wizard]) }
|
122
124
|
T.assert_type!(Wizard.all.find_in_batches, T::Enumerator[T::Array[Wizard]])
|
123
125
|
Wizard.all.in_batches { |w| T.assert_type!(w, Wizard::ActiveRecord_Relation) }
|
124
|
-
T.assert_type!(Wizard.all.in_batches,
|
126
|
+
T.assert_type!(Wizard.all.in_batches, ActiveRecord::Batches::BatchEnumerator)
|
125
127
|
# T.assert_type!(Wizard.all.destroy_all, T::Array[Wizard]) # Ignored until we add support
|
126
128
|
T.assert_type!(Wizard.all.any?, T::Boolean)
|
127
129
|
T.assert_type!(Wizard.all.many?, T::Boolean)
|
128
130
|
T.assert_type!(Wizard.all.none?, T::Boolean)
|
129
131
|
T.assert_type!(Wizard.all.one?, T::Boolean)
|
132
|
+
T.assert_type!(Wizard.all.any? { |r| r.id > 1 }, T::Boolean)
|
133
|
+
T.assert_type!(Wizard.all.many? { |r| r.id > 1 }, T::Boolean)
|
134
|
+
T.assert_type!(Wizard.all.none? { |r| r.id > 1 }, T::Boolean)
|
135
|
+
T.assert_type!(Wizard.all.one? { |r| r.id > 1 }, T::Boolean)
|
136
|
+
|
130
137
|
# T.assert_type!(Wizard.all.update_all(name: 'Harry Potter'), Integer) # Ignored until we add support
|
131
138
|
# T.assert_type!(Wizard.all.delete_all, Integer) # Ignored until we add support
|
132
139
|
# Query methods
|
@@ -141,6 +148,8 @@ T.assert_type!(Wizard.all.where.not(id: 1), Wizard::ActiveRecord_Relation)
|
|
141
148
|
T.assert_type!(Wizard.all.preload(:spell_books), Wizard::ActiveRecord_Relation)
|
142
149
|
T.assert_type!(Wizard.all.eager_load(:spell_books), Wizard::ActiveRecord_Relation)
|
143
150
|
T.assert_type!(Wizard.all.order(:id), Wizard::ActiveRecord_Relation)
|
151
|
+
T.assert_type!(Wizard.all.select { |r| r.id == 1 }, T::Array[Wizard])
|
152
|
+
T.assert_type!(Wizard.all.select_columns(:id, :name), Wizard::ActiveRecord_Relation)
|
144
153
|
# Enumerable methods
|
145
154
|
Wizard.all.each { |w| T.assert_type!(w, Wizard) }
|
146
155
|
Wizard.all.map { |w| T.assert_type!(w, Wizard) }
|
@@ -185,12 +194,16 @@ T.assert_type!(spell_books.find_each, T::Enumerator[SpellBook])
|
|
185
194
|
spell_books.find_in_batches { |s| T.assert_type!(s, T::Array[SpellBook]) }
|
186
195
|
T.assert_type!(spell_books.find_in_batches, T::Enumerator[T::Array[SpellBook]])
|
187
196
|
spell_books.in_batches { |s| T.assert_type!(s, SpellBook::ActiveRecord_AssociationRelation) }
|
188
|
-
T.assert_type!(spell_books.in_batches,
|
197
|
+
T.assert_type!(spell_books.in_batches, ActiveRecord::Batches::BatchEnumerator)
|
189
198
|
# T.assert_type!(spell_books.destroy_all, T::Array[SpellBook]) # Ignored until we add support
|
190
199
|
T.assert_type!(spell_books.any?, T::Boolean)
|
191
200
|
T.assert_type!(spell_books.many?, T::Boolean)
|
192
201
|
T.assert_type!(spell_books.none?, T::Boolean)
|
193
202
|
T.assert_type!(spell_books.one?, T::Boolean)
|
203
|
+
T.assert_type!(spell_books.any? { |r| r.id > 1 }, T::Boolean)
|
204
|
+
T.assert_type!(spell_books.many? { |r| r.id > 1 }, T::Boolean)
|
205
|
+
T.assert_type!(spell_books.none? { |r| r.id > 1 }, T::Boolean)
|
206
|
+
T.assert_type!(spell_books.one? { |r| r.id > 1 }, T::Boolean)
|
194
207
|
# T.assert_type!(spell_books.update_all(name: 'Fantastic Beasts'), Integer) # Ignored until we add support
|
195
208
|
# T.assert_type!(spell_books.delete_all, Integer) # Ignored until we add support
|
196
209
|
# Query methods
|
@@ -205,6 +218,9 @@ T.assert_type!(spell_books.where.not(id: 1), SpellBook::ActiveRecord_Association
|
|
205
218
|
T.assert_type!(spell_books.preload(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
206
219
|
T.assert_type!(spell_books.eager_load(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
207
220
|
T.assert_type!(spell_books.order(:id), SpellBook::ActiveRecord_AssociationRelation)
|
221
|
+
T.assert_type!(spell_books.select { |r| r.id == 1 }, T::Array[SpellBook])
|
222
|
+
T.assert_type!(spell_books.select_columns(:id, :name), SpellBook::ActiveRecord_AssociationRelation)
|
223
|
+
|
208
224
|
# Enumerable methods
|
209
225
|
spell_books.each { |s| T.assert_type!(s, SpellBook) }
|
210
226
|
spell_books.map { |s| T.assert_type!(s, SpellBook) }
|
@@ -257,12 +273,16 @@ T.assert_type!(spell_books_query.find_each, T::Enumerator[SpellBook])
|
|
257
273
|
spell_books_query.find_in_batches { |s| T.assert_type!(s, T::Array[SpellBook]) }
|
258
274
|
T.assert_type!(spell_books_query.find_in_batches, T::Enumerator[T::Array[SpellBook]])
|
259
275
|
spell_books_query.in_batches { |s| T.assert_type!(s, SpellBook::ActiveRecord_AssociationRelation) }
|
260
|
-
T.assert_type!(spell_books_query.in_batches,
|
276
|
+
T.assert_type!(spell_books_query.in_batches, ActiveRecord::Batches::BatchEnumerator)
|
261
277
|
# T.assert_type!(spell_books_query.destroy_all, T::Array[SpellBook]) # Ignored until we add support
|
262
278
|
T.assert_type!(spell_books_query.any?, T::Boolean)
|
263
279
|
T.assert_type!(spell_books_query.many?, T::Boolean)
|
264
280
|
T.assert_type!(spell_books_query.none?, T::Boolean)
|
265
281
|
T.assert_type!(spell_books_query.one?, T::Boolean)
|
282
|
+
T.assert_type!(spell_books_query.any? { |r| r.id > 1 }, T::Boolean)
|
283
|
+
T.assert_type!(spell_books_query.many? { |r| r.id > 1 }, T::Boolean)
|
284
|
+
T.assert_type!(spell_books_query.none? { |r| r.id > 1 }, T::Boolean)
|
285
|
+
T.assert_type!(spell_books_query.one? { |r| r.id > 1 }, T::Boolean)
|
266
286
|
# T.assert_type!(spell_books_query.update_all(name: 'Fantastic Beasts'), Integer) # Ignored until we add support
|
267
287
|
# T.assert_type!(spell_books_query.delete_all, Integer) # Ignored until we add support
|
268
288
|
# Query methods
|
@@ -277,6 +297,8 @@ T.assert_type!(spell_books_query.where.not(id: 1), SpellBook::ActiveRecord_Assoc
|
|
277
297
|
T.assert_type!(spell_books_query.preload(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
278
298
|
T.assert_type!(spell_books_query.eager_load(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
279
299
|
T.assert_type!(spell_books_query.order(:id), SpellBook::ActiveRecord_AssociationRelation)
|
300
|
+
T.assert_type!(spell_books.select { |r| r.id == 1 }, T::Array[SpellBook])
|
301
|
+
T.assert_type!(spell_books.select_columns(:id, :name), SpellBook::ActiveRecord_AssociationRelation)
|
280
302
|
# Enumerable methods
|
281
303
|
spell_books_query.each { |s| T.assert_type!(s, SpellBook) }
|
282
304
|
spell_books_query.map { |s| T.assert_type!(s, SpellBook) }
|
@@ -316,7 +338,7 @@ T.assert_type!(
|
|
316
338
|
)
|
317
339
|
T.assert_type!(
|
318
340
|
wizard.patronus_characteristics,
|
319
|
-
T.nilable(
|
341
|
+
T.nilable(ActiveRecord::Coders::JSON),
|
320
342
|
)
|
321
343
|
T.assert_type!(wizard.pets, T.nilable(T::Array[T.untyped]))
|
322
344
|
|
data/spec/support/v6.0/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../..
|
3
3
|
specs:
|
4
|
-
sorbet-rails (0.7.
|
4
|
+
sorbet-rails (0.7.100)
|
5
5
|
method_source (>= 0.9.2)
|
6
6
|
parlour (>= 4.0.1)
|
7
7
|
parser (>= 2.7)
|
@@ -11,56 +11,56 @@ PATH
|
|
11
11
|
GEM
|
12
12
|
remote: https://rubygems.org/
|
13
13
|
specs:
|
14
|
-
actioncable (6.0.
|
15
|
-
actionpack (= 6.0.
|
14
|
+
actioncable (6.0.4)
|
15
|
+
actionpack (= 6.0.4)
|
16
16
|
nio4r (~> 2.0)
|
17
17
|
websocket-driver (>= 0.6.1)
|
18
|
-
actionmailbox (6.0.
|
19
|
-
actionpack (= 6.0.
|
20
|
-
activejob (= 6.0.
|
21
|
-
activerecord (= 6.0.
|
22
|
-
activestorage (= 6.0.
|
23
|
-
activesupport (= 6.0.
|
18
|
+
actionmailbox (6.0.4)
|
19
|
+
actionpack (= 6.0.4)
|
20
|
+
activejob (= 6.0.4)
|
21
|
+
activerecord (= 6.0.4)
|
22
|
+
activestorage (= 6.0.4)
|
23
|
+
activesupport (= 6.0.4)
|
24
24
|
mail (>= 2.7.1)
|
25
|
-
actionmailer (6.0.
|
26
|
-
actionpack (= 6.0.
|
27
|
-
actionview (= 6.0.
|
28
|
-
activejob (= 6.0.
|
25
|
+
actionmailer (6.0.4)
|
26
|
+
actionpack (= 6.0.4)
|
27
|
+
actionview (= 6.0.4)
|
28
|
+
activejob (= 6.0.4)
|
29
29
|
mail (~> 2.5, >= 2.5.4)
|
30
30
|
rails-dom-testing (~> 2.0)
|
31
|
-
actionpack (6.0.
|
32
|
-
actionview (= 6.0.
|
33
|
-
activesupport (= 6.0.
|
31
|
+
actionpack (6.0.4)
|
32
|
+
actionview (= 6.0.4)
|
33
|
+
activesupport (= 6.0.4)
|
34
34
|
rack (~> 2.0, >= 2.0.8)
|
35
35
|
rack-test (>= 0.6.3)
|
36
36
|
rails-dom-testing (~> 2.0)
|
37
37
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
38
|
-
actiontext (6.0.
|
39
|
-
actionpack (= 6.0.
|
40
|
-
activerecord (= 6.0.
|
41
|
-
activestorage (= 6.0.
|
42
|
-
activesupport (= 6.0.
|
38
|
+
actiontext (6.0.4)
|
39
|
+
actionpack (= 6.0.4)
|
40
|
+
activerecord (= 6.0.4)
|
41
|
+
activestorage (= 6.0.4)
|
42
|
+
activesupport (= 6.0.4)
|
43
43
|
nokogiri (>= 1.8.5)
|
44
|
-
actionview (6.0.
|
45
|
-
activesupport (= 6.0.
|
44
|
+
actionview (6.0.4)
|
45
|
+
activesupport (= 6.0.4)
|
46
46
|
builder (~> 3.1)
|
47
47
|
erubi (~> 1.4)
|
48
48
|
rails-dom-testing (~> 2.0)
|
49
49
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
50
|
-
activejob (6.0.
|
51
|
-
activesupport (= 6.0.
|
50
|
+
activejob (6.0.4)
|
51
|
+
activesupport (= 6.0.4)
|
52
52
|
globalid (>= 0.3.6)
|
53
|
-
activemodel (6.0.
|
54
|
-
activesupport (= 6.0.
|
55
|
-
activerecord (6.0.
|
56
|
-
activemodel (= 6.0.
|
57
|
-
activesupport (= 6.0.
|
58
|
-
activestorage (6.0.
|
59
|
-
actionpack (= 6.0.
|
60
|
-
activejob (= 6.0.
|
61
|
-
activerecord (= 6.0.
|
62
|
-
marcel (~> 0.
|
63
|
-
activesupport (6.0.
|
53
|
+
activemodel (6.0.4)
|
54
|
+
activesupport (= 6.0.4)
|
55
|
+
activerecord (6.0.4)
|
56
|
+
activemodel (= 6.0.4)
|
57
|
+
activesupport (= 6.0.4)
|
58
|
+
activestorage (6.0.4)
|
59
|
+
actionpack (= 6.0.4)
|
60
|
+
activejob (= 6.0.4)
|
61
|
+
activerecord (= 6.0.4)
|
62
|
+
marcel (~> 1.0.0)
|
63
|
+
activesupport (6.0.4)
|
64
64
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
65
65
|
i18n (>= 0.7, < 2)
|
66
66
|
minitest (~> 5.1)
|
@@ -72,106 +72,105 @@ GEM
|
|
72
72
|
byebug (11.1.3)
|
73
73
|
commander (4.6.0)
|
74
74
|
highline (~> 2.0.0)
|
75
|
-
concurrent-ruby (1.1.
|
75
|
+
concurrent-ruby (1.1.9)
|
76
76
|
crass (1.0.6)
|
77
|
-
erubi (1.
|
77
|
+
erubi (1.10.0)
|
78
78
|
globalid (0.4.2)
|
79
79
|
activesupport (>= 4.2.0)
|
80
80
|
highline (2.0.3)
|
81
|
-
i18n (1.8.
|
81
|
+
i18n (1.8.10)
|
82
82
|
concurrent-ruby (~> 1.0)
|
83
|
-
jbuilder (2.
|
83
|
+
jbuilder (2.11.2)
|
84
84
|
activesupport (>= 5.0.0)
|
85
|
-
loofah (2.
|
85
|
+
loofah (2.10.0)
|
86
86
|
crass (~> 1.0.2)
|
87
87
|
nokogiri (>= 1.5.9)
|
88
88
|
mail (2.7.1)
|
89
89
|
mini_mime (>= 0.1.1)
|
90
|
-
marcel (0.
|
91
|
-
mimemagic (~> 0.3.2)
|
90
|
+
marcel (1.0.1)
|
92
91
|
method_source (1.0.0)
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
nokogiri (1.11.1)
|
92
|
+
mini_mime (1.1.0)
|
93
|
+
mini_portile2 (2.5.3)
|
94
|
+
minitest (5.14.4)
|
95
|
+
nio4r (2.5.7)
|
96
|
+
nokogiri (1.11.7)
|
99
97
|
mini_portile2 (~> 2.5.0)
|
100
98
|
racc (~> 1.4)
|
101
|
-
nokogiri (1.11.
|
99
|
+
nokogiri (1.11.7-x86_64-darwin)
|
102
100
|
racc (~> 1.4)
|
103
|
-
parlour (6.0.
|
101
|
+
parlour (6.0.1)
|
104
102
|
commander (~> 4.5)
|
105
103
|
parser
|
106
104
|
rainbow (~> 3.0)
|
107
105
|
sorbet-runtime (>= 0.5)
|
108
|
-
parser (3.0.
|
106
|
+
parser (3.0.2.0)
|
109
107
|
ast (~> 2.4.1)
|
110
108
|
polyfill (1.9.0)
|
111
|
-
puma (4.3.
|
109
|
+
puma (4.3.8)
|
112
110
|
nio4r (~> 2.0)
|
113
111
|
racc (1.5.2)
|
114
112
|
rack (2.2.3)
|
115
113
|
rack-test (1.1.0)
|
116
114
|
rack (>= 1.0, < 3)
|
117
|
-
rails (6.0.
|
118
|
-
actioncable (= 6.0.
|
119
|
-
actionmailbox (= 6.0.
|
120
|
-
actionmailer (= 6.0.
|
121
|
-
actionpack (= 6.0.
|
122
|
-
actiontext (= 6.0.
|
123
|
-
actionview (= 6.0.
|
124
|
-
activejob (= 6.0.
|
125
|
-
activemodel (= 6.0.
|
126
|
-
activerecord (= 6.0.
|
127
|
-
activestorage (= 6.0.
|
128
|
-
activesupport (= 6.0.
|
115
|
+
rails (6.0.4)
|
116
|
+
actioncable (= 6.0.4)
|
117
|
+
actionmailbox (= 6.0.4)
|
118
|
+
actionmailer (= 6.0.4)
|
119
|
+
actionpack (= 6.0.4)
|
120
|
+
actiontext (= 6.0.4)
|
121
|
+
actionview (= 6.0.4)
|
122
|
+
activejob (= 6.0.4)
|
123
|
+
activemodel (= 6.0.4)
|
124
|
+
activerecord (= 6.0.4)
|
125
|
+
activestorage (= 6.0.4)
|
126
|
+
activesupport (= 6.0.4)
|
129
127
|
bundler (>= 1.3.0)
|
130
|
-
railties (= 6.0.
|
128
|
+
railties (= 6.0.4)
|
131
129
|
sprockets-rails (>= 2.0.0)
|
132
130
|
rails-dom-testing (2.0.3)
|
133
131
|
activesupport (>= 4.2.0)
|
134
132
|
nokogiri (>= 1.6)
|
135
133
|
rails-html-sanitizer (1.3.0)
|
136
134
|
loofah (~> 2.3)
|
137
|
-
railties (6.0.
|
138
|
-
actionpack (= 6.0.
|
139
|
-
activesupport (= 6.0.
|
135
|
+
railties (6.0.4)
|
136
|
+
actionpack (= 6.0.4)
|
137
|
+
activesupport (= 6.0.4)
|
140
138
|
method_source
|
141
139
|
rake (>= 0.8.7)
|
142
140
|
thor (>= 0.20.3, < 2.0)
|
143
141
|
rainbow (3.0.0)
|
144
|
-
rake (13.0.
|
142
|
+
rake (13.0.6)
|
145
143
|
safe_type (1.1.1)
|
146
|
-
sorbet (0.5.
|
147
|
-
sorbet-static (= 0.5.
|
148
|
-
sorbet-coerce (0.
|
144
|
+
sorbet (0.5.6519)
|
145
|
+
sorbet-static (= 0.5.6519)
|
146
|
+
sorbet-coerce (0.5.0)
|
149
147
|
polyfill (~> 1.8)
|
150
148
|
safe_type (~> 1.1, >= 1.1.1)
|
151
149
|
sorbet-runtime (>= 0.4.4704)
|
152
|
-
sorbet-runtime (0.5.
|
153
|
-
sorbet-static (0.5.
|
150
|
+
sorbet-runtime (0.5.6519)
|
151
|
+
sorbet-static (0.5.6519-universal-darwin-19)
|
152
|
+
sorbet-static (0.5.6519-x86_64-linux)
|
154
153
|
sprockets (4.0.2)
|
155
154
|
concurrent-ruby (~> 1.0)
|
156
155
|
rack (> 1, < 3)
|
157
|
-
sprockets-rails (3.2.
|
156
|
+
sprockets-rails (3.2.2)
|
158
157
|
actionpack (>= 4.0)
|
159
158
|
activesupport (>= 4.0)
|
160
159
|
sprockets (>= 3.0.0)
|
161
160
|
sqlite3 (1.4.2)
|
162
|
-
thor (1.0
|
161
|
+
thor (1.1.0)
|
163
162
|
thread_safe (0.3.6)
|
164
|
-
tzinfo (1.2.
|
163
|
+
tzinfo (1.2.9)
|
165
164
|
thread_safe (~> 0.1)
|
166
|
-
web-console (4.0
|
165
|
+
web-console (4.1.0)
|
167
166
|
actionview (>= 6.0.0)
|
168
167
|
activemodel (>= 6.0.0)
|
169
168
|
bindex (>= 0.4.0)
|
170
169
|
railties (>= 6.0.0)
|
171
|
-
websocket-driver (0.7.
|
170
|
+
websocket-driver (0.7.5)
|
172
171
|
websocket-extensions (>= 0.1.0)
|
173
172
|
websocket-extensions (0.1.5)
|
174
|
-
zeitwerk (2.
|
173
|
+
zeitwerk (2.4.2)
|
175
174
|
|
176
175
|
PLATFORMS
|
177
176
|
ruby
|
@@ -189,8 +188,5 @@ DEPENDENCIES
|
|
189
188
|
tzinfo-data
|
190
189
|
web-console (>= 3.3.0)
|
191
190
|
|
192
|
-
RUBY VERSION
|
193
|
-
ruby 2.5.5p157
|
194
|
-
|
195
191
|
BUNDLED WITH
|
196
|
-
2.2.
|
192
|
+
2.2.24
|
@@ -84,6 +84,8 @@ T.assert_type!(Wizard.where.not(id: 1), Wizard::ActiveRecord_Relation)
|
|
84
84
|
T.assert_type!(Wizard.preload(:spell_books), Wizard::ActiveRecord_Relation)
|
85
85
|
T.assert_type!(Wizard.eager_load(:spell_books), Wizard::ActiveRecord_Relation)
|
86
86
|
T.assert_type!(Wizard.order(:id), Wizard::ActiveRecord_Relation)
|
87
|
+
T.assert_type!(Wizard.select { |r| r.id == 1 }, T::Array[Wizard])
|
88
|
+
T.assert_type!(Wizard.select_columns(:id, :name), Wizard::ActiveRecord_Relation)
|
87
89
|
|
88
90
|
# Finder methods -- ActiveRecord::Relation
|
89
91
|
T.assert_type!(Wizard.all.exists?(name: 'Harry Potter'), T::Boolean)
|
@@ -121,12 +123,17 @@ T.assert_type!(Wizard.all.find_each, T::Enumerator[Wizard])
|
|
121
123
|
Wizard.all.find_in_batches { |w| T.assert_type!(w, T::Array[Wizard]) }
|
122
124
|
T.assert_type!(Wizard.all.find_in_batches, T::Enumerator[T::Array[Wizard]])
|
123
125
|
Wizard.all.in_batches { |w| T.assert_type!(w, Wizard::ActiveRecord_Relation) }
|
124
|
-
T.assert_type!(Wizard.all.in_batches,
|
126
|
+
T.assert_type!(Wizard.all.in_batches, ActiveRecord::Batches::BatchEnumerator)
|
125
127
|
# T.assert_type!(Wizard.all.destroy_all, T::Array[Wizard]) # Ignored until we add support
|
126
128
|
T.assert_type!(Wizard.all.any?, T::Boolean)
|
127
129
|
T.assert_type!(Wizard.all.many?, T::Boolean)
|
128
130
|
T.assert_type!(Wizard.all.none?, T::Boolean)
|
129
131
|
T.assert_type!(Wizard.all.one?, T::Boolean)
|
132
|
+
T.assert_type!(Wizard.all.any? { |r| r.id > 1 }, T::Boolean)
|
133
|
+
T.assert_type!(Wizard.all.many? { |r| r.id > 1 }, T::Boolean)
|
134
|
+
T.assert_type!(Wizard.all.none? { |r| r.id > 1 }, T::Boolean)
|
135
|
+
T.assert_type!(Wizard.all.one? { |r| r.id > 1 }, T::Boolean)
|
136
|
+
|
130
137
|
# T.assert_type!(Wizard.all.update_all(name: 'Harry Potter'), Integer) # Ignored until we add support
|
131
138
|
# T.assert_type!(Wizard.all.delete_all, Integer) # Ignored until we add support
|
132
139
|
# Query methods
|
@@ -141,6 +148,8 @@ T.assert_type!(Wizard.all.where.not(id: 1), Wizard::ActiveRecord_Relation)
|
|
141
148
|
T.assert_type!(Wizard.all.preload(:spell_books), Wizard::ActiveRecord_Relation)
|
142
149
|
T.assert_type!(Wizard.all.eager_load(:spell_books), Wizard::ActiveRecord_Relation)
|
143
150
|
T.assert_type!(Wizard.all.order(:id), Wizard::ActiveRecord_Relation)
|
151
|
+
T.assert_type!(Wizard.all.select { |r| r.id == 1 }, T::Array[Wizard])
|
152
|
+
T.assert_type!(Wizard.all.select_columns(:id, :name), Wizard::ActiveRecord_Relation)
|
144
153
|
# Enumerable methods
|
145
154
|
Wizard.all.each { |w| T.assert_type!(w, Wizard) }
|
146
155
|
Wizard.all.map { |w| T.assert_type!(w, Wizard) }
|
@@ -185,12 +194,16 @@ T.assert_type!(spell_books.find_each, T::Enumerator[SpellBook])
|
|
185
194
|
spell_books.find_in_batches { |s| T.assert_type!(s, T::Array[SpellBook]) }
|
186
195
|
T.assert_type!(spell_books.find_in_batches, T::Enumerator[T::Array[SpellBook]])
|
187
196
|
spell_books.in_batches { |s| T.assert_type!(s, SpellBook::ActiveRecord_AssociationRelation) }
|
188
|
-
T.assert_type!(spell_books.in_batches,
|
197
|
+
T.assert_type!(spell_books.in_batches, ActiveRecord::Batches::BatchEnumerator)
|
189
198
|
# T.assert_type!(spell_books.destroy_all, T::Array[SpellBook]) # Ignored until we add support
|
190
199
|
T.assert_type!(spell_books.any?, T::Boolean)
|
191
200
|
T.assert_type!(spell_books.many?, T::Boolean)
|
192
201
|
T.assert_type!(spell_books.none?, T::Boolean)
|
193
202
|
T.assert_type!(spell_books.one?, T::Boolean)
|
203
|
+
T.assert_type!(spell_books.any? { |r| r.id > 1 }, T::Boolean)
|
204
|
+
T.assert_type!(spell_books.many? { |r| r.id > 1 }, T::Boolean)
|
205
|
+
T.assert_type!(spell_books.none? { |r| r.id > 1 }, T::Boolean)
|
206
|
+
T.assert_type!(spell_books.one? { |r| r.id > 1 }, T::Boolean)
|
194
207
|
# T.assert_type!(spell_books.update_all(name: 'Fantastic Beasts'), Integer) # Ignored until we add support
|
195
208
|
# T.assert_type!(spell_books.delete_all, Integer) # Ignored until we add support
|
196
209
|
# Query methods
|
@@ -205,6 +218,9 @@ T.assert_type!(spell_books.where.not(id: 1), SpellBook::ActiveRecord_Association
|
|
205
218
|
T.assert_type!(spell_books.preload(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
206
219
|
T.assert_type!(spell_books.eager_load(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
207
220
|
T.assert_type!(spell_books.order(:id), SpellBook::ActiveRecord_AssociationRelation)
|
221
|
+
T.assert_type!(spell_books.select { |r| r.id == 1 }, T::Array[SpellBook])
|
222
|
+
T.assert_type!(spell_books.select_columns(:id, :name), SpellBook::ActiveRecord_AssociationRelation)
|
223
|
+
|
208
224
|
# Enumerable methods
|
209
225
|
spell_books.each { |s| T.assert_type!(s, SpellBook) }
|
210
226
|
spell_books.map { |s| T.assert_type!(s, SpellBook) }
|
@@ -257,12 +273,16 @@ T.assert_type!(spell_books_query.find_each, T::Enumerator[SpellBook])
|
|
257
273
|
spell_books_query.find_in_batches { |s| T.assert_type!(s, T::Array[SpellBook]) }
|
258
274
|
T.assert_type!(spell_books_query.find_in_batches, T::Enumerator[T::Array[SpellBook]])
|
259
275
|
spell_books_query.in_batches { |s| T.assert_type!(s, SpellBook::ActiveRecord_AssociationRelation) }
|
260
|
-
T.assert_type!(spell_books_query.in_batches,
|
276
|
+
T.assert_type!(spell_books_query.in_batches, ActiveRecord::Batches::BatchEnumerator)
|
261
277
|
# T.assert_type!(spell_books_query.destroy_all, T::Array[SpellBook]) # Ignored until we add support
|
262
278
|
T.assert_type!(spell_books_query.any?, T::Boolean)
|
263
279
|
T.assert_type!(spell_books_query.many?, T::Boolean)
|
264
280
|
T.assert_type!(spell_books_query.none?, T::Boolean)
|
265
281
|
T.assert_type!(spell_books_query.one?, T::Boolean)
|
282
|
+
T.assert_type!(spell_books_query.any? { |r| r.id > 1 }, T::Boolean)
|
283
|
+
T.assert_type!(spell_books_query.many? { |r| r.id > 1 }, T::Boolean)
|
284
|
+
T.assert_type!(spell_books_query.none? { |r| r.id > 1 }, T::Boolean)
|
285
|
+
T.assert_type!(spell_books_query.one? { |r| r.id > 1 }, T::Boolean)
|
266
286
|
# T.assert_type!(spell_books_query.update_all(name: 'Fantastic Beasts'), Integer) # Ignored until we add support
|
267
287
|
# T.assert_type!(spell_books_query.delete_all, Integer) # Ignored until we add support
|
268
288
|
# Query methods
|
@@ -277,6 +297,8 @@ T.assert_type!(spell_books_query.where.not(id: 1), SpellBook::ActiveRecord_Assoc
|
|
277
297
|
T.assert_type!(spell_books_query.preload(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
278
298
|
T.assert_type!(spell_books_query.eager_load(:wizard), SpellBook::ActiveRecord_AssociationRelation)
|
279
299
|
T.assert_type!(spell_books_query.order(:id), SpellBook::ActiveRecord_AssociationRelation)
|
300
|
+
T.assert_type!(spell_books.select { |r| r.id == 1 }, T::Array[SpellBook])
|
301
|
+
T.assert_type!(spell_books.select_columns(:id, :name), SpellBook::ActiveRecord_AssociationRelation)
|
280
302
|
# Enumerable methods
|
281
303
|
spell_books_query.each { |s| T.assert_type!(s, SpellBook) }
|
282
304
|
spell_books_query.map { |s| T.assert_type!(s, SpellBook) }
|
@@ -316,7 +338,7 @@ T.assert_type!(
|
|
316
338
|
)
|
317
339
|
T.assert_type!(
|
318
340
|
wizard.patronus_characteristics,
|
319
|
-
T.nilable(
|
341
|
+
T.nilable(ActiveRecord::Coders::JSON),
|
320
342
|
)
|
321
343
|
T.assert_type!(wizard.pets, T.nilable(T::Array[T.untyped]))
|
322
344
|
|
@@ -10,6 +10,7 @@
|
|
10
10
|
# Ignore the default SQLite database.
|
11
11
|
/db/*.sqlite3
|
12
12
|
/db/*.sqlite3-journal
|
13
|
+
/db/*.sqlite3-*
|
13
14
|
|
14
15
|
# Ignore all logfiles and tempfiles.
|
15
16
|
/log/*
|
@@ -17,7 +18,17 @@
|
|
17
18
|
!/log/.keep
|
18
19
|
!/tmp/.keep
|
19
20
|
|
20
|
-
|
21
|
-
/
|
21
|
+
# Ignore pidfiles, but keep the directory.
|
22
|
+
/tmp/pids/*
|
23
|
+
!/tmp/pids/
|
24
|
+
!/tmp/pids/.keep
|
22
25
|
|
26
|
+
# Ignore uploaded files in development.
|
27
|
+
/storage/*
|
28
|
+
!/storage/.keep
|
29
|
+
|
30
|
+
/public/assets
|
23
31
|
.byebug_history
|
32
|
+
|
33
|
+
# Ignore master key for decrypting credentials and more.
|
34
|
+
/config/master.key
|
@@ -1,24 +1,21 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
2
3
|
|
3
|
-
|
4
|
-
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
|
5
|
-
"https://github.com/#{repo_name}.git"
|
6
|
-
end
|
7
|
-
|
4
|
+
ruby '2.5.5'
|
8
5
|
|
9
6
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
10
|
-
gem 'rails', '~>
|
7
|
+
gem 'rails', '~> 6.1.4'
|
11
8
|
# Use sqlite3 as the database for Active Record
|
12
|
-
gem 'sqlite3'
|
9
|
+
gem 'sqlite3', '~> 1.4'
|
13
10
|
# Use Puma as the app server
|
14
|
-
gem 'puma', '~>
|
11
|
+
gem 'puma', '~> 5.0'
|
15
12
|
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
|
16
|
-
gem 'jbuilder', '~> 2.
|
17
|
-
# Use
|
13
|
+
gem 'jbuilder', '~> 2.7'
|
14
|
+
# Use Active Model has_secure_password
|
18
15
|
# gem 'bcrypt', '~> 3.1.7'
|
19
16
|
|
20
|
-
# Use
|
21
|
-
# gem '
|
17
|
+
# Use Active Storage variant
|
18
|
+
# gem 'image_processing', '~> 1.2'
|
22
19
|
|
23
20
|
group :development, :test do
|
24
21
|
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
|
@@ -26,8 +23,8 @@ group :development, :test do
|
|
26
23
|
end
|
27
24
|
|
28
25
|
group :development do
|
29
|
-
# Access an
|
30
|
-
gem 'web-console', '>=
|
26
|
+
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
|
27
|
+
gem 'web-console', '>= 4.1.0'
|
31
28
|
end
|
32
29
|
|
33
30
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
@@ -35,4 +32,4 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
|
35
32
|
|
36
33
|
gem 'sorbet-rails', path: '../../../.'
|
37
34
|
gem 'sorbet'
|
38
|
-
gem 'sorbet-runtime'
|
35
|
+
gem 'sorbet-runtime'
|