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