sorbet-rails 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (404) hide show
  1. checksums.yaml +4 -4
  2. data/.codecov.yml +4 -0
  3. data/.github/ISSUE_TEMPLATE/bug.md +26 -0
  4. data/.gitignore +5 -0
  5. data/.travis.yml +26 -7
  6. data/CONTRIBUTING.md +135 -0
  7. data/Gemfile +29 -11
  8. data/README.md +40 -7
  9. data/lib/sorbet-rails/custom_finder_methods.rb +1 -1
  10. data/lib/sorbet-rails/model_rbi_formatter.rb +72 -41
  11. data/lib/sorbet-rails/routes_rbi_formatter.rb +6 -14
  12. data/lib/sorbet-rails/tasks/rails_rbi.rake +13 -6
  13. data/rbi/activerecord.rbi +32 -7
  14. data/sorbet-rails.gemspec +2 -4
  15. data/spec/bin/install.sh +11 -0
  16. data/spec/bin/run_all_specs.sh +9 -5
  17. data/spec/bin/run_spec.sh +33 -0
  18. data/spec/bin/{reset_test_data.sh → update_test_data.sh} +2 -1
  19. data/spec/custom_finder_methods_spec.rb +75 -0
  20. data/spec/model_rbi_formatter_spec.rb +8 -6
  21. data/spec/rails_helper.rb +32 -5
  22. data/spec/rake_helper.rb +47 -0
  23. data/spec/rake_rails_rbi_models_spec.rb +64 -0
  24. data/spec/rake_rails_rbi_routes_spec.rb +15 -0
  25. data/spec/support/rails_shared/app/models/wizard.rb +4 -4
  26. data/spec/support/rails_shared/db/migrate/20190620001234_create_wizards.rb +1 -1
  27. data/spec/support/rails_shared/db/migrate/20190620003037_create_wands.rb +1 -1
  28. data/spec/support/rails_shared/db/migrate/20190620003739_create_spell_books.rb +1 -1
  29. data/spec/support/rails_shared/db/migrate/20190622000000_add_more_column_types_to_wands.rb +5 -3
  30. data/spec/support/rails_symlinks/app/controllers +1 -0
  31. data/spec/support/rails_symlinks/app/models +1 -0
  32. data/spec/support/rails_symlinks/config/routes.rb +5 -0
  33. data/spec/support/rails_symlinks/db/migrate +1 -0
  34. data/spec/support/v4.2/.gitignore +17 -0
  35. data/spec/support/v4.2/Gemfile +31 -0
  36. data/spec/support/v4.2/README.rdoc +28 -0
  37. data/spec/support/v4.2/Rakefile +6 -0
  38. data/spec/support/{5.1.7/lib/tasks → v4.2/app/assets/images}/.keep +0 -0
  39. data/spec/support/v4.2/app/assets/stylesheets/application.css +15 -0
  40. data/spec/support/v4.2/app/controllers/application_controller.rb +5 -0
  41. data/spec/support/{5.1.7/log → v4.2/app/controllers/concerns}/.keep +0 -0
  42. data/spec/support/v4.2/app/helpers/application_helper.rb +2 -0
  43. data/spec/support/{5.1.7/test/controllers → v4.2/app/mailers}/.keep +0 -0
  44. data/spec/support/v4.2/app/models +1 -0
  45. data/spec/support/v4.2/app/views/layouts/application.html.erb +13 -0
  46. data/spec/support/{5.1.7 → v4.2}/bin/bundle +0 -0
  47. data/spec/support/v4.2/bin/rails +4 -0
  48. data/spec/support/v4.2/bin/rake +4 -0
  49. data/spec/support/v4.2/bin/setup +29 -0
  50. data/spec/support/v4.2/config.ru +4 -0
  51. data/spec/support/v4.2/config/application.rb +35 -0
  52. data/spec/support/v4.2/config/boot.rb +3 -0
  53. data/spec/support/v4.2/config/database.yml +25 -0
  54. data/spec/support/v4.2/config/environment.rb +5 -0
  55. data/spec/support/v4.2/config/environments/development.rb +28 -0
  56. data/spec/support/v4.2/config/environments/production.rb +67 -0
  57. data/spec/support/v4.2/config/environments/test.rb +42 -0
  58. data/spec/support/{5.1.7 → v4.2}/config/initializers/backtrace_silencers.rb +0 -0
  59. data/spec/support/v4.2/config/initializers/cookies_serializer.rb +3 -0
  60. data/spec/support/{5.1.7 → v4.2}/config/initializers/filter_parameter_logging.rb +0 -0
  61. data/spec/support/{5.1.7 → v4.2}/config/initializers/inflections.rb +0 -0
  62. data/spec/support/{5.1.7 → v4.2}/config/initializers/mime_types.rb +0 -0
  63. data/spec/support/v4.2/config/initializers/session_store.rb +3 -0
  64. data/spec/support/v4.2/config/initializers/to_time_preserves_timezone.rb +10 -0
  65. data/spec/support/v4.2/config/initializers/wrap_parameters.rb +14 -0
  66. data/spec/support/v4.2/config/locales/en.yml +23 -0
  67. data/spec/support/v4.2/config/routes.rb +5 -0
  68. data/spec/support/v4.2/config/secrets.yml +22 -0
  69. data/spec/support/v4.2/db/migrate/20190620001234_create_wizards.rb +12 -0
  70. data/spec/support/v4.2/db/migrate/20190620003037_create_wands.rb +11 -0
  71. data/spec/support/v4.2/db/migrate/20190620003739_create_spell_books.rb +8 -0
  72. data/spec/support/v4.2/db/migrate/20190622000000_add_more_column_types_to_wands.rb +10 -0
  73. data/spec/support/v4.2/db/schema.rb +44 -0
  74. data/spec/support/v4.2/db/seeds.rb +7 -0
  75. data/spec/support/{5.1.7/test/fixtures → v4.2/lib/assets}/.keep +0 -0
  76. data/spec/support/{5.1.7/test/fixtures/files → v4.2/lib/tasks}/.keep +0 -0
  77. data/spec/support/{5.1.7/test/integration → v4.2/log}/.keep +0 -0
  78. data/spec/support/v4.2/public/404.html +67 -0
  79. data/spec/support/v4.2/public/422.html +67 -0
  80. data/spec/support/v4.2/public/500.html +66 -0
  81. data/spec/support/{5.1.7/test/mailers/.keep → v4.2/public/favicon.ico} +0 -0
  82. data/spec/support/v4.2/public/robots.txt +5 -0
  83. data/spec/support/{5.1.7/test/models → v4.2/test/controllers}/.keep +0 -0
  84. data/spec/support/{5.1.7/tmp → v4.2/test/fixtures}/.keep +0 -0
  85. data/spec/support/{5.1.7/vendor → v4.2/test/helpers}/.keep +0 -0
  86. data/spec/support/{5.2.3/lib/tasks → v4.2/test/integration}/.keep +0 -0
  87. data/spec/support/{5.2.3/log → v4.2/test/mailers}/.keep +0 -0
  88. data/spec/support/{5.2.3/storage → v4.2/test/models}/.keep +0 -0
  89. data/spec/support/{5.1.7 → v4.2}/test/test_helper.rb +0 -0
  90. data/spec/support/{5.2.3/test/controllers → v4.2/vendor/assets/stylesheets}/.keep +0 -0
  91. data/spec/support/v5.0/.gitignore +21 -0
  92. data/spec/support/v5.0/Gemfile +37 -0
  93. data/spec/support/{5.1.7 → v5.0}/README.md +0 -0
  94. data/spec/support/{5.1.7 → v5.0}/Rakefile +0 -0
  95. data/spec/support/{5.1.7 → v5.0}/app/channels/application_cable/channel.rb +0 -0
  96. data/spec/support/{5.1.7 → v5.0}/app/channels/application_cable/connection.rb +0 -0
  97. data/spec/support/v5.0/app/controllers +1 -0
  98. data/spec/support/{5.1.7 → v5.0}/app/jobs/application_job.rb +0 -0
  99. data/spec/support/{5.1.7 → v5.0}/app/mailers/application_mailer.rb +0 -0
  100. data/spec/support/v5.0/app/models +1 -0
  101. data/spec/support/{5.1.7 → v5.0}/app/views/layouts/mailer.html.erb +0 -0
  102. data/spec/support/{5.1.7 → v5.0}/app/views/layouts/mailer.text.erb +0 -0
  103. data/spec/support/v5.0/bin/bundle +3 -0
  104. data/spec/support/v5.0/bin/rails +4 -0
  105. data/spec/support/v5.0/bin/rake +4 -0
  106. data/spec/support/v5.0/bin/setup +34 -0
  107. data/spec/support/{5.1.7 → v5.0}/bin/update +0 -0
  108. data/spec/support/{5.1.7 → v5.0}/config.ru +0 -0
  109. data/spec/support/v5.0/config/application.rb +30 -0
  110. data/spec/support/{5.1.7 → v5.0}/config/boot.rb +0 -0
  111. data/spec/support/v5.0/config/cable.yml +9 -0
  112. data/spec/support/v5.0/config/database.yml +25 -0
  113. data/spec/support/{5.1.7 → v5.0}/config/environment.rb +0 -0
  114. data/spec/support/v5.0/config/environments/development.rb +47 -0
  115. data/spec/support/v5.0/config/environments/production.rb +78 -0
  116. data/spec/support/v5.0/config/environments/test.rb +42 -0
  117. data/spec/support/{5.1.7 → v5.0}/config/initializers/application_controller_renderer.rb +0 -0
  118. data/spec/support/{5.2.3 → v5.0}/config/initializers/backtrace_silencers.rb +0 -0
  119. data/spec/support/{5.1.7 → v5.0}/config/initializers/cors.rb +0 -0
  120. data/spec/support/{5.2.3 → v5.0}/config/initializers/filter_parameter_logging.rb +0 -0
  121. data/spec/support/{5.2.3 → v5.0}/config/initializers/inflections.rb +0 -0
  122. data/spec/support/{5.2.3 → v5.0}/config/initializers/mime_types.rb +0 -0
  123. data/spec/support/v5.0/config/initializers/new_framework_defaults.rb +18 -0
  124. data/spec/support/{5.1.7 → v5.0}/config/initializers/wrap_parameters.rb +0 -0
  125. data/spec/support/v5.0/config/locales/en.yml +23 -0
  126. data/spec/support/v5.0/config/puma.rb +47 -0
  127. data/spec/support/v5.0/config/routes.rb +5 -0
  128. data/spec/support/v5.0/config/secrets.yml +22 -0
  129. data/spec/support/v5.0/db/migrate +1 -0
  130. data/spec/support/v5.0/db/schema.rb +45 -0
  131. data/spec/support/{5.1.7 → v5.0}/db/seeds.rb +0 -0
  132. data/spec/support/{5.2.3/test/fixtures → v5.0/lib/tasks}/.keep +0 -0
  133. data/spec/support/{5.2.3/test/fixtures/files → v5.0/log}/.keep +0 -0
  134. data/spec/support/v5.0/public/robots.txt +5 -0
  135. data/spec/support/v5.0/rails_symlinks/app/controllers +1 -0
  136. data/spec/support/v5.0/rails_symlinks/app/models +1 -0
  137. data/spec/support/v5.0/rails_symlinks/config/routes.rb +5 -0
  138. data/spec/support/v5.0/rails_symlinks/db/migrate +1 -0
  139. data/spec/support/{5.2.3/test/integration → v5.0/test/controllers}/.keep +0 -0
  140. data/spec/support/{5.2.3/test/mailers → v5.0/test/fixtures}/.keep +0 -0
  141. data/spec/support/{5.2.3/test/models → v5.0/test/fixtures/files}/.keep +0 -0
  142. data/spec/support/{5.2.3/tmp → v5.0/test/integration}/.keep +0 -0
  143. data/spec/support/{5.2.3/vendor → v5.0/test/mailers}/.keep +0 -0
  144. data/spec/support/v5.0/test/models/.keep +0 -0
  145. data/spec/support/v5.0/test/test_helper.rb +10 -0
  146. data/spec/support/v5.0/tmp/.keep +0 -0
  147. data/spec/support/{5.1.7 → v5.1}/Gemfile +6 -6
  148. data/spec/support/{5.2.3 → v5.1}/README.md +0 -0
  149. data/spec/support/{5.2.3 → v5.1}/Rakefile +0 -0
  150. data/spec/support/{5.2.3 → v5.1}/app/channels/application_cable/channel.rb +0 -0
  151. data/spec/support/{5.2.3 → v5.1}/app/channels/application_cable/connection.rb +0 -0
  152. data/spec/support/v5.1/app/controllers +1 -0
  153. data/spec/support/{5.2.3 → v5.1}/app/jobs/application_job.rb +0 -0
  154. data/spec/support/{5.2.3 → v5.1}/app/mailers/application_mailer.rb +0 -0
  155. data/spec/support/v5.1/app/models +1 -0
  156. data/spec/support/{5.2.3 → v5.1}/app/views/layouts/mailer.html.erb +0 -0
  157. data/spec/support/{5.2.3 → v5.1}/app/views/layouts/mailer.text.erb +0 -0
  158. data/spec/support/v5.1/bin/bundle +3 -0
  159. data/spec/support/{5.1.7 → v5.1}/bin/rails +0 -0
  160. data/spec/support/{5.1.7 → v5.1}/bin/rake +0 -0
  161. data/spec/support/{5.1.7 → v5.1}/bin/setup +0 -0
  162. data/spec/support/{5.1.7 → v5.1}/bin/spring +0 -0
  163. data/spec/support/v5.1/bin/update +29 -0
  164. data/spec/support/{5.2.3 → v5.1}/config.ru +0 -0
  165. data/spec/support/{5.1.7 → v5.1}/config/application.rb +0 -0
  166. data/spec/support/{5.2.3 → v5.1}/config/boot.rb +0 -0
  167. data/spec/support/{5.1.7 → v5.1}/config/cable.yml +0 -0
  168. data/spec/support/{5.1.7 → v5.1}/config/database.yml +0 -0
  169. data/spec/support/{5.2.3 → v5.1}/config/environment.rb +0 -0
  170. data/spec/support/{5.1.7 → v5.1}/config/environments/development.rb +0 -0
  171. data/spec/support/{5.1.7 → v5.1}/config/environments/production.rb +0 -0
  172. data/spec/support/{5.1.7 → v5.1}/config/environments/test.rb +0 -0
  173. data/spec/support/{5.2.3 → v5.1}/config/initializers/application_controller_renderer.rb +0 -0
  174. data/spec/support/v5.1/config/initializers/backtrace_silencers.rb +7 -0
  175. data/spec/support/{5.2.3 → v5.1}/config/initializers/cors.rb +0 -0
  176. data/spec/support/v5.1/config/initializers/filter_parameter_logging.rb +4 -0
  177. data/spec/support/v5.1/config/initializers/inflections.rb +16 -0
  178. data/spec/support/v5.1/config/initializers/mime_types.rb +4 -0
  179. data/spec/support/{5.2.3 → v5.1}/config/initializers/wrap_parameters.rb +0 -0
  180. data/spec/support/{5.1.7 → v5.1}/config/locales/en.yml +0 -0
  181. data/spec/support/{5.1.7 → v5.1}/config/puma.rb +0 -0
  182. data/spec/support/v5.1/config/routes.rb +1 -0
  183. data/spec/support/{5.1.7 → v5.1}/config/secrets.yml +0 -0
  184. data/spec/support/{5.1.7 → v5.1}/config/spring.rb +0 -0
  185. data/spec/support/v5.1/db/migrate +1 -0
  186. data/spec/support/{5.1.7 → v5.1}/db/schema.rb +0 -0
  187. data/spec/support/{5.2.3 → v5.1}/db/seeds.rb +0 -0
  188. data/spec/support/v5.1/lib/tasks/.keep +0 -0
  189. data/spec/support/v5.1/log/.keep +0 -0
  190. data/spec/support/{5.1.7 → v5.1}/public/robots.txt +0 -0
  191. data/spec/support/v5.1/test/controllers/.keep +0 -0
  192. data/spec/support/v5.1/test/fixtures/.keep +0 -0
  193. data/spec/support/v5.1/test/fixtures/files/.keep +0 -0
  194. data/spec/support/v5.1/test/integration/.keep +0 -0
  195. data/spec/support/v5.1/test/mailers/.keep +0 -0
  196. data/spec/support/v5.1/test/models/.keep +0 -0
  197. data/spec/support/v5.1/test/test_helper.rb +10 -0
  198. data/spec/support/v5.1/tmp/.keep +0 -0
  199. data/spec/support/v5.1/vendor/.keep +0 -0
  200. data/spec/support/{5.2.3 → v5.2}/Gemfile +4 -15
  201. data/spec/support/v5.2/README.md +24 -0
  202. data/spec/support/v5.2/Rakefile +6 -0
  203. data/spec/support/v5.2/app/channels/application_cable/channel.rb +4 -0
  204. data/spec/support/v5.2/app/channels/application_cable/connection.rb +4 -0
  205. data/spec/support/v5.2/app/controllers +1 -0
  206. data/spec/support/v5.2/app/jobs/application_job.rb +2 -0
  207. data/spec/support/v5.2/app/mailers/application_mailer.rb +4 -0
  208. data/spec/support/v5.2/app/models +1 -0
  209. data/spec/support/v5.2/app/views/layouts/mailer.html.erb +13 -0
  210. data/spec/support/v5.2/app/views/layouts/mailer.text.erb +1 -0
  211. data/spec/support/{5.2.3 → v5.2}/bin/bundle +0 -0
  212. data/spec/support/{5.2.3 → v5.2}/bin/rails +0 -0
  213. data/spec/support/{5.2.3 → v5.2}/bin/rake +0 -0
  214. data/spec/support/{5.2.3 → v5.2}/bin/setup +0 -0
  215. data/spec/support/{5.2.3 → v5.2}/bin/spring +0 -0
  216. data/spec/support/{5.2.3 → v5.2}/bin/update +0 -0
  217. data/spec/support/v5.2/config.ru +5 -0
  218. data/spec/support/{5.2.3 → v5.2}/config/application.rb +0 -0
  219. data/spec/support/v5.2/config/boot.rb +3 -0
  220. data/spec/support/{5.2.3 → v5.2}/config/cable.yml +0 -0
  221. data/spec/support/{5.2.3 → v5.2}/config/credentials.yml.enc +0 -0
  222. data/spec/support/{5.2.3 → v5.2}/config/database.yml +0 -0
  223. data/spec/support/v5.2/config/environment.rb +5 -0
  224. data/spec/support/{5.2.3 → v5.2}/config/environments/development.rb +1 -1
  225. data/spec/support/{5.2.3 → v5.2}/config/environments/production.rb +0 -0
  226. data/spec/support/{5.2.3 → v5.2}/config/environments/test.rb +0 -0
  227. data/spec/support/v5.2/config/initializers/application_controller_renderer.rb +8 -0
  228. data/spec/support/v5.2/config/initializers/backtrace_silencers.rb +7 -0
  229. data/spec/support/v5.2/config/initializers/cors.rb +16 -0
  230. data/spec/support/v5.2/config/initializers/filter_parameter_logging.rb +4 -0
  231. data/spec/support/v5.2/config/initializers/inflections.rb +16 -0
  232. data/spec/support/v5.2/config/initializers/mime_types.rb +4 -0
  233. data/spec/support/v5.2/config/initializers/wrap_parameters.rb +14 -0
  234. data/spec/support/{5.2.3 → v5.2}/config/locales/en.yml +0 -0
  235. data/spec/support/{5.2.3 → v5.2}/config/puma.rb +0 -0
  236. data/spec/support/v5.2/config/routes.rb +1 -0
  237. data/spec/support/{5.2.3 → v5.2}/config/spring.rb +0 -0
  238. data/spec/support/{5.2.3 → v5.2}/config/storage.yml +0 -0
  239. data/spec/support/v5.2/db/migrate +1 -0
  240. data/spec/support/{5.2.3 → v5.2}/db/schema.rb +4 -4
  241. data/spec/support/v5.2/db/seeds.rb +7 -0
  242. data/spec/support/v5.2/lib/tasks/.keep +0 -0
  243. data/spec/support/v5.2/log/.keep +0 -0
  244. data/spec/support/{5.2.3 → v5.2}/public/robots.txt +0 -0
  245. data/spec/support/v5.2/sorbet/.keep +0 -0
  246. data/spec/support/v5.2/sorbet/config +2 -0
  247. data/spec/support/v5.2/sorbet/rbi/gems/actioncable.rbi +309 -0
  248. data/spec/support/v5.2/sorbet/rbi/gems/actionmailer.rbi +439 -0
  249. data/spec/support/v5.2/sorbet/rbi/gems/actionpack.rbi +3245 -0
  250. data/spec/support/v5.2/sorbet/rbi/gems/actionview.rbi +1129 -0
  251. data/spec/support/v5.2/sorbet/rbi/gems/activejob.rbi +281 -0
  252. data/spec/support/v5.2/sorbet/rbi/gems/activemodel.rbi +740 -0
  253. data/spec/support/v5.2/sorbet/rbi/gems/activerecord.rbi +3996 -0
  254. data/spec/support/v5.2/sorbet/rbi/gems/activestorage.rbi +173 -0
  255. data/spec/support/v5.2/sorbet/rbi/gems/activesupport.rbi +2309 -0
  256. data/spec/support/v5.2/sorbet/rbi/gems/arel.rbi +1248 -0
  257. data/spec/support/v5.2/sorbet/rbi/gems/byebug.rbi +1039 -0
  258. data/spec/support/v5.2/sorbet/rbi/gems/concurrent-ruby.rbi +1583 -0
  259. data/spec/support/v5.2/sorbet/rbi/gems/crass.rbi +92 -0
  260. data/spec/support/v5.2/sorbet/rbi/gems/erubi.rbi +26 -0
  261. data/spec/support/v5.2/sorbet/rbi/gems/globalid.rbi +98 -0
  262. data/spec/support/v5.2/sorbet/rbi/gems/i18n.rbi +191 -0
  263. data/spec/support/v5.2/sorbet/rbi/gems/loofah.rbi +129 -0
  264. data/spec/support/v5.2/sorbet/rbi/gems/mail.rbi +1091 -0
  265. data/spec/support/v5.2/sorbet/rbi/gems/marcel.rbi +12 -0
  266. data/spec/support/v5.2/sorbet/rbi/gems/method_source.rbi +63 -0
  267. data/spec/support/v5.2/sorbet/rbi/gems/mini_mime.rbi +45 -0
  268. data/spec/support/v5.2/sorbet/rbi/gems/minitest.rbi +276 -0
  269. data/spec/support/v5.2/sorbet/rbi/gems/nokogiri.rbi +1006 -0
  270. data/spec/support/v5.2/sorbet/rbi/gems/puma.rbi +570 -0
  271. data/spec/support/v5.2/sorbet/rbi/gems/rack-test.rbi +161 -0
  272. data/spec/support/v5.2/sorbet/rbi/gems/rack.rbi +534 -0
  273. data/spec/support/v5.2/sorbet/rbi/gems/rails-dom-testing.rbi +67 -0
  274. data/spec/support/v5.2/sorbet/rbi/gems/rails-html-sanitizer.rbi +90 -0
  275. data/spec/support/v5.2/sorbet/rbi/gems/railties.rbi +722 -0
  276. data/spec/support/v5.2/sorbet/rbi/gems/rake.rbi +251 -0
  277. data/spec/support/v5.2/sorbet/rbi/gems/sqlite3.rbi +353 -0
  278. data/spec/support/v5.2/sorbet/rbi/gems/thor.rbi +449 -0
  279. data/spec/support/v5.2/sorbet/rbi/gems/thread_safe.rbi +81 -0
  280. data/spec/support/v5.2/sorbet/rbi/gems/tzinfo.rbi +407 -0
  281. data/spec/support/v5.2/sorbet/rbi/hidden-definitions/errors.txt +10040 -0
  282. data/spec/support/v5.2/sorbet/rbi/hidden-definitions/hidden.rbi +24386 -0
  283. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionmailer/all/actionmailer.rbi +13 -0
  284. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/actionpack/all/actionpack.rbi +13 -0
  285. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/all/activerecord.rbi +51 -0
  286. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activerecord/~>5.2/activerecord.rbi +10 -0
  287. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/activesupport/all/activesupport.rbi +107 -0
  288. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/bundler/all/bundler.rbi +8547 -0
  289. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/railties/all/railties.rbi +22 -0
  290. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/open3.rbi +111 -0
  291. data/spec/support/v5.2/sorbet/rbi/sorbet-typed/lib/ruby/all/resolv.rbi +543 -0
  292. data/spec/support/v5.2/sorbet/rbi/todo.rbi +11 -0
  293. data/spec/support/v5.2/storage/.keep +0 -0
  294. data/spec/support/v5.2/test/controllers/.keep +0 -0
  295. data/spec/support/v5.2/test/fixtures/.keep +0 -0
  296. data/spec/support/v5.2/test/fixtures/files/.keep +0 -0
  297. data/spec/support/v5.2/test/integration/.keep +0 -0
  298. data/spec/support/v5.2/test/mailers/.keep +0 -0
  299. data/spec/support/v5.2/test/models/.keep +0 -0
  300. data/spec/support/{5.2.3 → v5.2}/test/test_helper.rb +0 -0
  301. data/spec/support/v5.2/tmp/.keep +0 -0
  302. data/spec/support/v5.2/vendor/.keep +0 -0
  303. data/spec/support/v6.0/.gitignore +26 -0
  304. data/spec/support/v6.0/Gemfile +35 -0
  305. data/spec/support/v6.0/README.md +24 -0
  306. data/spec/support/v6.0/Rakefile +6 -0
  307. data/spec/support/v6.0/app/channels/application_cable/channel.rb +4 -0
  308. data/spec/support/v6.0/app/channels/application_cable/connection.rb +4 -0
  309. data/spec/support/v6.0/app/controllers +1 -0
  310. data/spec/support/v6.0/app/jobs/application_job.rb +7 -0
  311. data/spec/support/v6.0/app/mailers/application_mailer.rb +4 -0
  312. data/spec/support/v6.0/app/models +1 -0
  313. data/spec/support/v6.0/app/views/layouts/mailer.html.erb +13 -0
  314. data/spec/support/v6.0/app/views/layouts/mailer.text.erb +1 -0
  315. data/spec/support/v6.0/bin/bundle +105 -0
  316. data/spec/support/v6.0/bin/rails +4 -0
  317. data/spec/support/v6.0/bin/rake +4 -0
  318. data/spec/support/v6.0/bin/setup +33 -0
  319. data/spec/support/v6.0/config.ru +5 -0
  320. data/spec/support/v6.0/config/application.rb +37 -0
  321. data/spec/support/v6.0/config/boot.rb +3 -0
  322. data/spec/support/v6.0/config/cable.yml +10 -0
  323. data/spec/support/v6.0/config/credentials.yml.enc +1 -0
  324. data/spec/support/v6.0/config/database.yml +25 -0
  325. data/spec/support/v6.0/config/environment.rb +5 -0
  326. data/spec/support/v6.0/config/environments/development.rb +52 -0
  327. data/spec/support/v6.0/config/environments/production.rb +105 -0
  328. data/spec/support/v6.0/config/environments/test.rb +48 -0
  329. data/spec/support/v6.0/config/initializers/application_controller_renderer.rb +8 -0
  330. data/spec/support/v6.0/config/initializers/backtrace_silencers.rb +7 -0
  331. data/spec/support/v6.0/config/initializers/cors.rb +16 -0
  332. data/spec/support/v6.0/config/initializers/filter_parameter_logging.rb +4 -0
  333. data/spec/support/v6.0/config/initializers/inflections.rb +16 -0
  334. data/spec/support/v6.0/config/initializers/mime_types.rb +4 -0
  335. data/spec/support/v6.0/config/initializers/wrap_parameters.rb +14 -0
  336. data/spec/support/v6.0/config/locales/en.yml +33 -0
  337. data/spec/support/v6.0/config/puma.rb +35 -0
  338. data/spec/support/v6.0/config/routes.rb +5 -0
  339. data/spec/support/v6.0/config/storage.yml +34 -0
  340. data/spec/support/v6.0/db/migrate +1 -0
  341. data/spec/support/v6.0/db/schema.rb +47 -0
  342. data/spec/support/v6.0/db/seeds.rb +7 -0
  343. data/spec/support/v6.0/lib/tasks/.keep +0 -0
  344. data/spec/support/v6.0/log/.keep +0 -0
  345. data/spec/support/v6.0/public/robots.txt +1 -0
  346. data/spec/support/v6.0/storage/.keep +0 -0
  347. data/spec/support/v6.0/test/channels/application_cable/connection_test.rb +11 -0
  348. data/spec/support/v6.0/test/controllers/.keep +0 -0
  349. data/spec/support/v6.0/test/fixtures/.keep +0 -0
  350. data/spec/support/v6.0/test/fixtures/files/.keep +0 -0
  351. data/spec/support/v6.0/test/integration/.keep +0 -0
  352. data/spec/support/v6.0/test/mailers/.keep +0 -0
  353. data/spec/support/v6.0/test/models/.keep +0 -0
  354. data/spec/support/v6.0/test/test_helper.rb +13 -0
  355. data/spec/support/v6.0/tmp/.keep +0 -0
  356. data/spec/support/v6.0/vendor/.keep +0 -0
  357. data/spec/test_data/{5.2.3 → v4.2}/expected_no_routes.rbi +1 -1
  358. data/spec/test_data/v4.2/expected_potion.rbi +113 -0
  359. data/spec/test_data/{5.1.7 → v4.2}/expected_routes.rbi +0 -0
  360. data/spec/test_data/v4.2/expected_spell_book.rbi +146 -0
  361. data/spec/test_data/v4.2/expected_wand.rbi +278 -0
  362. data/spec/test_data/v4.2/expected_wizard.rbi +239 -0
  363. data/spec/test_data/v4.2/expected_wizard_wo_spellbook.rbi +239 -0
  364. data/spec/test_data/{5.1.7 → v5.0}/expected_no_routes.rbi +1 -1
  365. data/spec/test_data/{5.2.3 → v5.0}/expected_potion.rbi +58 -62
  366. data/spec/test_data/v5.0/expected_routes.rbi +13 -0
  367. data/spec/test_data/v5.0/expected_spell_book.rbi +155 -0
  368. data/spec/test_data/{5.1.7 → v5.0}/expected_wand.rbi +125 -72
  369. data/spec/test_data/v5.0/expected_wizard.rbi +248 -0
  370. data/spec/test_data/v5.0/expected_wizard_wo_spellbook.rbi +248 -0
  371. data/spec/test_data/v5.1/expected_no_routes.rbi +11 -0
  372. data/spec/test_data/{5.1.7 → v5.1}/expected_potion.rbi +62 -60
  373. data/spec/test_data/v5.1/expected_routes.rbi +13 -0
  374. data/spec/test_data/v5.1/expected_spell_book.rbi +161 -0
  375. data/spec/test_data/v5.1/expected_wand.rbi +293 -0
  376. data/spec/test_data/v5.1/expected_wizard.rbi +254 -0
  377. data/spec/test_data/v5.1/expected_wizard_wo_spellbook.rbi +254 -0
  378. data/spec/test_data/v5.2/expected_no_routes.rbi +11 -0
  379. data/spec/test_data/v5.2/expected_potion.rbi +128 -0
  380. data/spec/test_data/{5.2.3 → v5.2}/expected_routes.rbi +0 -0
  381. data/spec/test_data/v5.2/expected_spell_book.rbi +161 -0
  382. data/spec/test_data/{5.2.3 → v5.2}/expected_wand.rbi +135 -70
  383. data/spec/test_data/v5.2/expected_wizard.rbi +254 -0
  384. data/spec/test_data/v5.2/expected_wizard_wo_spellbook.rbi +254 -0
  385. data/spec/test_data/v6.0/expected_no_routes.rbi +11 -0
  386. data/spec/test_data/v6.0/expected_potion.rbi +140 -0
  387. data/spec/test_data/v6.0/expected_routes.rbi +91 -0
  388. data/spec/test_data/v6.0/expected_spell_book.rbi +173 -0
  389. data/spec/test_data/v6.0/expected_wand.rbi +335 -0
  390. data/spec/test_data/v6.0/expected_wizard.rbi +278 -0
  391. data/spec/test_data/v6.0/expected_wizard_wo_spellbook.rbi +278 -0
  392. metadata +752 -281
  393. data/spec/support/5.1.7/app/controllers +0 -1
  394. data/spec/support/5.1.7/app/models +0 -1
  395. data/spec/support/5.1.7/config/routes.rb +0 -1
  396. data/spec/support/5.1.7/db/migrate +0 -1
  397. data/spec/support/5.2.3/app/controllers +0 -1
  398. data/spec/support/5.2.3/app/models +0 -1
  399. data/spec/support/5.2.3/config/routes.rb +0 -1
  400. data/spec/support/5.2.3/db/migrate +0 -1
  401. data/spec/test_data/5.1.7/expected_wizard.rbi +0 -207
  402. data/spec/test_data/5.1.7/expected_wizard_wo_spellbook.rbi +0 -207
  403. data/spec/test_data/5.2.3/expected_wizard.rbi +0 -207
  404. data/spec/test_data/5.2.3/expected_wizard_wo_spellbook.rbi +0 -207
@@ -0,0 +1,67 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rails-dom-testing/all/rails-dom-testing.rbi
9
+ #
10
+ # rails-dom-testing-2.0.3
11
+ module Rails
12
+ end
13
+ module Rails::Dom
14
+ end
15
+ module Rails::Dom::Testing
16
+ end
17
+ module Rails::Dom::Testing::Assertions
18
+ extend ActiveSupport::Concern
19
+ include Rails::Dom::Testing::Assertions::DomAssertions
20
+ include Rails::Dom::Testing::Assertions::SelectorAssertions
21
+ end
22
+ module Rails::Dom::Testing::Assertions::DomAssertions
23
+ def assert_dom_equal(expected, actual, message = nil); end
24
+ def assert_dom_not_equal(expected, actual, message = nil); end
25
+ def compare_doms(expected, actual); end
26
+ def equal_attribute?(attr, other_attr); end
27
+ def equal_attribute_nodes?(nodes, other_nodes); end
28
+ def equal_children?(child, other_child); end
29
+ def fragment(text); end
30
+ end
31
+ module Rails::Dom::Testing::Assertions::SelectorAssertions
32
+ def assert_select(*args, &block); end
33
+ def assert_select_email(&block); end
34
+ def assert_select_encoded(element = nil, &block); end
35
+ def assert_size_match!(size, equals, css_selector, message = nil); end
36
+ def css_select(*args); end
37
+ def document_root_element; end
38
+ def nest_selection(selection); end
39
+ def nodeset(node); end
40
+ include Rails::Dom::Testing::Assertions::SelectorAssertions::CountDescribable
41
+ end
42
+ module Rails::Dom::Testing::Assertions::SelectorAssertions::CountDescribable
43
+ def count_description(min, max, count); end
44
+ def pluralize_element(quantity); end
45
+ extend ActiveSupport::Concern
46
+ end
47
+ class SubstitutionContext
48
+ def initialize; end
49
+ def match(matches, attribute, matcher); end
50
+ def matcher_for(value, format_for_presentation); end
51
+ def substitutable?(value); end
52
+ def substitute!(selector, values, format_for_presentation = nil); end
53
+ end
54
+ class HTMLSelector
55
+ def context; end
56
+ def css_selector; end
57
+ def extract_equality_tests; end
58
+ def extract_root(previous_selection, root_fallback); end
59
+ def extract_selectors; end
60
+ def filter(matches); end
61
+ def initialize(values, previous_selection = nil, &root_fallback); end
62
+ def message; end
63
+ def select; end
64
+ def selecting_no_body?; end
65
+ def self.context; end
66
+ def tests; end
67
+ end
@@ -0,0 +1,90 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: strong
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/rails-html-sanitizer/all/rails-html-sanitizer.rbi
9
+ #
10
+ # rails-html-sanitizer-1.0.4
11
+ module Rails
12
+ end
13
+ module Rails::Html
14
+ end
15
+ class Rails::Html::Sanitizer
16
+ def properly_encode(fragment, options); end
17
+ def remove_xpaths(node, xpaths); end
18
+ def sanitize(html, options = nil); end
19
+ def self.full_sanitizer; end
20
+ def self.link_sanitizer; end
21
+ def self.white_list_sanitizer; end
22
+ end
23
+ class Rails::Html::PermitScrubber < Loofah::Scrubber
24
+ def allowed_node?(node); end
25
+ def attributes; end
26
+ def attributes=(attributes); end
27
+ def initialize; end
28
+ def keep_node?(node); end
29
+ def scrub(node); end
30
+ def scrub_attribute(node, attr_node); end
31
+ def scrub_attribute?(name); end
32
+ def scrub_attributes(node); end
33
+ def scrub_css_attribute(node); end
34
+ def scrub_node(node); end
35
+ def skip_node?(node); end
36
+ def tags; end
37
+ def tags=(tags); end
38
+ def validate!(var, name); end
39
+ end
40
+ class Rails::Html::TargetScrubber < Rails::Html::PermitScrubber
41
+ def allowed_node?(node); end
42
+ def scrub_attribute?(name); end
43
+ end
44
+ class Rails::Html::TextOnlyScrubber < Loofah::Scrubber
45
+ def initialize; end
46
+ def scrub(node); end
47
+ end
48
+ class Rails::Html::FullSanitizer < Rails::Html::Sanitizer
49
+ def sanitize(html, options = nil); end
50
+ end
51
+ class Rails::Html::LinkSanitizer < Rails::Html::Sanitizer
52
+ def initialize; end
53
+ def sanitize(html, options = nil); end
54
+ end
55
+ class Rails::Html::WhiteListSanitizer < Rails::Html::Sanitizer
56
+ def allowed_attributes(options); end
57
+ def allowed_tags(options); end
58
+ def initialize; end
59
+ def sanitize(html, options = nil); end
60
+ def sanitize_css(style_string); end
61
+ def self.allowed_attributes; end
62
+ def self.allowed_attributes=(arg0); end
63
+ def self.allowed_tags; end
64
+ def self.allowed_tags=(arg0); end
65
+ end
66
+ module ActionView
67
+ end
68
+ module ActionView::Helpers
69
+ end
70
+ module ActionView::Helpers::SanitizeHelper
71
+ end
72
+ module ActionView::Helpers::SanitizeHelper::ClassMethods
73
+ def deprecate_option(name); end
74
+ def sanitized_allowed_attributes=(attributes); end
75
+ def sanitized_allowed_css_keywords; end
76
+ def sanitized_allowed_css_keywords=(_); end
77
+ def sanitized_allowed_css_properties; end
78
+ def sanitized_allowed_css_properties=(_); end
79
+ def sanitized_allowed_protocols; end
80
+ def sanitized_allowed_protocols=(_); end
81
+ def sanitized_allowed_tags=(tags); end
82
+ def sanitized_bad_tags; end
83
+ def sanitized_bad_tags=(_); end
84
+ def sanitized_protocol_separator; end
85
+ def sanitized_protocol_separator=(_); end
86
+ def sanitized_shorthand_css_properties; end
87
+ def sanitized_shorthand_css_properties=(_); end
88
+ def sanitized_uri_attributes; end
89
+ def sanitized_uri_attributes=(_); end
90
+ end
@@ -0,0 +1,722 @@
1
+ # This file is autogenerated. Do not edit it by hand. Regenerate it with:
2
+ # srb rbi gems
3
+
4
+ # typed: true
5
+ #
6
+ # If you would like to make changes to this file, great! Please create the gem's shim here:
7
+ #
8
+ # https://github.com/sorbet/sorbet-typed/new/master?filename=lib/railties/all/railties.rbi
9
+ #
10
+ # railties-5.2.3
11
+ module Rails
12
+ def self.app_class; end
13
+ def self.app_class=(arg0); end
14
+ def self.application; end
15
+ def self.application=(arg0); end
16
+ def self.backtrace_cleaner; end
17
+ def self.cache; end
18
+ def self.cache=(arg0); end
19
+ def self.configuration; end
20
+ def self.env; end
21
+ def self.env=(environment); end
22
+ def self.gem_version; end
23
+ def self.groups(*groups); end
24
+ def self.initialize!(*args, &block); end
25
+ def self.initialized?(*args, &block); end
26
+ def self.logger; end
27
+ def self.logger=(arg0); end
28
+ def self.public_path; end
29
+ def self.root; end
30
+ def self.version; end
31
+ extend ActiveSupport::Autoload
32
+ end
33
+ module Rails::Initializable
34
+ def initializers; end
35
+ def run_initializers(group = nil, *args); end
36
+ def self.included(base); end
37
+ end
38
+ class Rails::Initializable::Initializer
39
+ def after; end
40
+ def before; end
41
+ def belongs_to?(group); end
42
+ def bind(context); end
43
+ def block; end
44
+ def context_class; end
45
+ def initialize(name, context, options, &block); end
46
+ def name; end
47
+ def run(*args); end
48
+ end
49
+ class Rails::Initializable::Collection < Array
50
+ def +(other); end
51
+ def tsort_each_child(initializer, &block); end
52
+ def tsort_each_node; end
53
+ include TSort
54
+ end
55
+ module Rails::Initializable::ClassMethods
56
+ def initializer(name, opts = nil, &blk); end
57
+ def initializers; end
58
+ def initializers_chain; end
59
+ def initializers_for(binding); end
60
+ end
61
+ class Rails::Railtie
62
+ def config; end
63
+ def configure(&block); end
64
+ def each_registered_block(type, &block); end
65
+ def initialize; end
66
+ def railtie_name(*args, &block); end
67
+ def railtie_namespace; end
68
+ def run_console_blocks(app); end
69
+ def run_generators_blocks(app); end
70
+ def run_runner_blocks(app); end
71
+ def run_tasks_blocks(app); end
72
+ def self.abstract_railtie?; end
73
+ def self.config(*args, &block); end
74
+ def self.configure(&block); end
75
+ def self.console(&blk); end
76
+ def self.generate_railtie_name(string); end
77
+ def self.generators(&blk); end
78
+ def self.inherited(base); end
79
+ def self.instance; end
80
+ def self.method_missing(name, *args, &block); end
81
+ def self.new(*arg0); end
82
+ def self.railtie_name(name = nil); end
83
+ def self.rake_tasks(&blk); end
84
+ def self.register_block_for(type, &blk); end
85
+ def self.respond_to_missing?(name, _); end
86
+ def self.runner(&blk); end
87
+ def self.subclasses; end
88
+ extend Rails::Initializable::ClassMethods
89
+ include Rails::Initializable
90
+ end
91
+ class Rails::Engine < Rails::Railtie
92
+ def _all_autoload_once_paths; end
93
+ def _all_autoload_paths; end
94
+ def _all_load_paths; end
95
+ def app; end
96
+ def build_middleware; end
97
+ def build_request(env); end
98
+ def call(env); end
99
+ def config; end
100
+ def default_middleware_stack; end
101
+ def eager_load!; end
102
+ def endpoint; end
103
+ def engine_name(*args, &block); end
104
+ def env_config; end
105
+ def has_migrations?; end
106
+ def helpers; end
107
+ def helpers_paths; end
108
+ def initialize; end
109
+ def isolated?(*args, &block); end
110
+ def load_config_initializer(initializer); end
111
+ def load_console(app = nil); end
112
+ def load_generators(app = nil); end
113
+ def load_runner(app = nil); end
114
+ def load_seed; end
115
+ def load_tasks(app = nil); end
116
+ def middleware(*args, &block); end
117
+ def paths(*args, &block); end
118
+ def railties; end
119
+ def root(*args, &block); end
120
+ def routes; end
121
+ def routes?; end
122
+ def run_tasks_blocks(*arg0); end
123
+ def self.called_from; end
124
+ def self.called_from=(arg0); end
125
+ def self.eager_load!(*args, &block); end
126
+ def self.endpoint(endpoint = nil); end
127
+ def self.engine_name(name = nil); end
128
+ def self.find(path); end
129
+ def self.find_root(from); end
130
+ def self.find_root_with_flag(flag, root_path, default = nil); end
131
+ def self.inherited(base); end
132
+ def self.isolate_namespace(mod); end
133
+ def self.isolated; end
134
+ def self.isolated=(arg0); end
135
+ def self.isolated?; end
136
+ def with_inline_jobs; end
137
+ end
138
+ class Rails::Engine::Railties
139
+ def -(others); end
140
+ def _all; end
141
+ def each(*args, &block); end
142
+ def initialize; end
143
+ include Enumerable
144
+ end
145
+ class Rails::Secrets
146
+ def self.decrypt(data); end
147
+ def self.encrypt(data); end
148
+ def self.encryptor; end
149
+ def self.handle_missing_key; end
150
+ def self.key; end
151
+ def self.key_path; end
152
+ def self.parse(paths, env:); end
153
+ def self.path; end
154
+ def self.preprocess(path); end
155
+ def self.read; end
156
+ def self.read_for_editing(&block); end
157
+ def self.read_key_file; end
158
+ def self.root=(arg0); end
159
+ def self.write(contents); end
160
+ def self.writing(contents); end
161
+ end
162
+ class Rails::Secrets::MissingKeyError < RuntimeError
163
+ def initialize; end
164
+ end
165
+ class Rails::Application < Rails::Engine
166
+ def assets; end
167
+ def assets=(arg0); end
168
+ def build_middleware; end
169
+ def build_middleware_stack; end
170
+ def build_request(env); end
171
+ def config; end
172
+ def config=(configuration); end
173
+ def config_for(name, env: nil); end
174
+ def console(&blk); end
175
+ def credentials; end
176
+ def default_middleware_stack; end
177
+ def default_url_options(*args, &block); end
178
+ def default_url_options=(arg); end
179
+ def encrypted(path, key_path: nil, env_key: nil); end
180
+ def env_config; end
181
+ def executor; end
182
+ def generate_development_secret; end
183
+ def generators(&blk); end
184
+ def helpers_paths; end
185
+ def initialize!(group = nil); end
186
+ def initialize(initial_variable_values = nil, &block); end
187
+ def initialized?; end
188
+ def initializer(name, opts = nil, &block); end
189
+ def initializers; end
190
+ def isolate_namespace(mod); end
191
+ def key_generator; end
192
+ def message_verifier(verifier_name); end
193
+ def migration_railties; end
194
+ def ordered_railties; end
195
+ def railties_initializers(current); end
196
+ def rake_tasks(&block); end
197
+ def reload_routes!; end
198
+ def reloader; end
199
+ def reloaders; end
200
+ def require_environment!; end
201
+ def routes_reloader; end
202
+ def run_console_blocks(app); end
203
+ def run_generators_blocks(app); end
204
+ def run_load_hooks!; end
205
+ def run_runner_blocks(app); end
206
+ def run_tasks_blocks(app); end
207
+ def runner(&blk); end
208
+ def sandbox; end
209
+ def sandbox=(arg0); end
210
+ def sandbox?; end
211
+ def secret_key_base; end
212
+ def secrets; end
213
+ def secrets=(secrets); end
214
+ def self.add_lib_to_load_path!(root); end
215
+ def self.create(initial_variable_values = nil, &block); end
216
+ def self.find_root(from); end
217
+ def self.inherited(base); end
218
+ def self.instance; end
219
+ def self.new(*arg0); end
220
+ def to_app; end
221
+ def validate_secret_key_base(secret_key_base); end
222
+ def watchable_args; end
223
+ end
224
+ module Rails::VERSION
225
+ end
226
+ module Rails::Paths
227
+ end
228
+ class Rails::Paths::Root
229
+ def [](path); end
230
+ def []=(path, value); end
231
+ def add(path, options = nil); end
232
+ def all_paths; end
233
+ def autoload_once; end
234
+ def autoload_paths; end
235
+ def eager_load; end
236
+ def filter_by(&block); end
237
+ def initialize(path); end
238
+ def keys; end
239
+ def load_paths; end
240
+ def path; end
241
+ def path=(arg0); end
242
+ def values; end
243
+ def values_at(*list); end
244
+ end
245
+ class Rails::Paths::Path
246
+ def <<(path); end
247
+ def absolute_current; end
248
+ def autoload!; end
249
+ def autoload?; end
250
+ def autoload_once!; end
251
+ def autoload_once?; end
252
+ def children; end
253
+ def concat(paths); end
254
+ def each(&block); end
255
+ def eager_load!; end
256
+ def eager_load?; end
257
+ def existent; end
258
+ def existent_directories; end
259
+ def expanded; end
260
+ def extensions; end
261
+ def first; end
262
+ def glob; end
263
+ def glob=(arg0); end
264
+ def initialize(root, current, paths, options = nil); end
265
+ def last; end
266
+ def load_path!; end
267
+ def load_path?; end
268
+ def push(path); end
269
+ def skip_autoload!; end
270
+ def skip_autoload_once!; end
271
+ def skip_eager_load!; end
272
+ def skip_load_path!; end
273
+ def to_a; end
274
+ def to_ary; end
275
+ def unshift(*paths); end
276
+ include Enumerable
277
+ end
278
+ module Rails::Rack
279
+ end
280
+ module Rails::Configuration
281
+ end
282
+ class Rails::Configuration::MiddlewareStackProxy
283
+ def +(other); end
284
+ def delete(*args, &block); end
285
+ def delete_operations; end
286
+ def initialize(operations = nil, delete_operations = nil); end
287
+ def insert(*args, &block); end
288
+ def insert_after(*args, &block); end
289
+ def insert_before(*args, &block); end
290
+ def merge_into(other); end
291
+ def operations; end
292
+ def swap(*args, &block); end
293
+ def unshift(*args, &block); end
294
+ def use(*args, &block); end
295
+ end
296
+ class Rails::Configuration::Generators
297
+ def aliases; end
298
+ def aliases=(arg0); end
299
+ def api_only; end
300
+ def api_only=(arg0); end
301
+ def colorize_logging; end
302
+ def colorize_logging=(arg0); end
303
+ def fallbacks; end
304
+ def fallbacks=(arg0); end
305
+ def hidden_namespaces; end
306
+ def hide_namespace(namespace); end
307
+ def initialize; end
308
+ def initialize_copy(source); end
309
+ def method_missing(method, *args); end
310
+ def options; end
311
+ def options=(arg0); end
312
+ def templates; end
313
+ def templates=(arg0); end
314
+ end
315
+ class Rails::Railtie::Configuration
316
+ def after_initialize(&block); end
317
+ def app_generators; end
318
+ def app_middleware; end
319
+ def before_configuration(&block); end
320
+ def before_eager_load(&block); end
321
+ def before_initialize(&block); end
322
+ def eager_load_namespaces; end
323
+ def initialize; end
324
+ def method_missing(name, *args, &blk); end
325
+ def respond_to?(name, include_private = nil); end
326
+ def self.eager_load_namespaces; end
327
+ def to_prepare(&blk); end
328
+ def to_prepare_blocks; end
329
+ def watchable_dirs; end
330
+ def watchable_files; end
331
+ end
332
+ class Rails::Engine::Configuration < Rails::Railtie::Configuration
333
+ def autoload_once_paths; end
334
+ def autoload_once_paths=(arg0); end
335
+ def autoload_paths; end
336
+ def autoload_paths=(arg0); end
337
+ def eager_load_paths; end
338
+ def eager_load_paths=(arg0); end
339
+ def generators; end
340
+ def initialize(root = nil); end
341
+ def middleware; end
342
+ def middleware=(arg0); end
343
+ def paths; end
344
+ def root; end
345
+ def root=(value); end
346
+ end
347
+ module Rails::TestUnit
348
+ end
349
+ class Rails::TestUnit::Runner
350
+ def filters; end
351
+ def self.attach_before_load_options(opts); end
352
+ def self.compose_filter(runnable, filter); end
353
+ def self.extract_filters(argv); end
354
+ def self.filters; end
355
+ def self.load_tests(argv); end
356
+ def self.parse_options(argv); end
357
+ def self.rake_run(argv = nil); end
358
+ def self.run(argv = nil); end
359
+ end
360
+ class Rails::TestUnit::CompositeFilter
361
+ def ===(method); end
362
+ def derive_line_filters(patterns); end
363
+ def derive_named_filter(filter); end
364
+ def initialize(runnable, filter, patterns); end
365
+ def named_filter; end
366
+ end
367
+ class Rails::TestUnit::Filter
368
+ def ===(method); end
369
+ def definition_for(method); end
370
+ def initialize(runnable, file, line); end
371
+ end
372
+ module Rails::LineFiltering
373
+ def run(reporter, options = nil); end
374
+ end
375
+ class Rails::TestUnitRailtie < Rails::Railtie
376
+ end
377
+ class SourceAnnotationExtractor
378
+ def display(results, options = nil); end
379
+ def extract_annotations_from(file, pattern); end
380
+ def find(dirs); end
381
+ def find_in(dir); end
382
+ def initialize(tag); end
383
+ def self.enumerate(tag, options = nil); end
384
+ def tag; end
385
+ end
386
+ class SourceAnnotationExtractor::Annotation < Struct
387
+ def line; end
388
+ def line=(_); end
389
+ def self.[](*arg0); end
390
+ def self.directories; end
391
+ def self.extensions; end
392
+ def self.members; end
393
+ def self.new(*arg0); end
394
+ def self.register_directories(*dirs); end
395
+ def self.register_extensions(*exts, &block); end
396
+ def tag; end
397
+ def tag=(_); end
398
+ def text; end
399
+ def text=(_); end
400
+ def to_s(options = nil); end
401
+ end
402
+ class Rails::Application::Configuration < Rails::Engine::Configuration
403
+ def allow_concurrency; end
404
+ def allow_concurrency=(arg0); end
405
+ def annotations; end
406
+ def api_only; end
407
+ def api_only=(value); end
408
+ def asset_host; end
409
+ def asset_host=(arg0); end
410
+ def autoflush_log; end
411
+ def autoflush_log=(arg0); end
412
+ def beginning_of_week; end
413
+ def beginning_of_week=(arg0); end
414
+ def cache_classes; end
415
+ def cache_classes=(arg0); end
416
+ def cache_store; end
417
+ def cache_store=(arg0); end
418
+ def colorize_logging; end
419
+ def colorize_logging=(val); end
420
+ def consider_all_requests_local; end
421
+ def consider_all_requests_local=(arg0); end
422
+ def console; end
423
+ def console=(arg0); end
424
+ def content_security_policy(&block); end
425
+ def content_security_policy_nonce_generator; end
426
+ def content_security_policy_nonce_generator=(arg0); end
427
+ def content_security_policy_report_only; end
428
+ def content_security_policy_report_only=(arg0); end
429
+ def database_configuration; end
430
+ def debug_exception_response_format; end
431
+ def debug_exception_response_format=(value); end
432
+ def eager_load; end
433
+ def eager_load=(arg0); end
434
+ def enable_dependency_loading; end
435
+ def enable_dependency_loading=(arg0); end
436
+ def encoding; end
437
+ def encoding=(value); end
438
+ def exceptions_app; end
439
+ def exceptions_app=(arg0); end
440
+ def file_watcher; end
441
+ def file_watcher=(arg0); end
442
+ def filter_parameters; end
443
+ def filter_parameters=(arg0); end
444
+ def filter_redirect; end
445
+ def filter_redirect=(arg0); end
446
+ def force_ssl; end
447
+ def force_ssl=(arg0); end
448
+ def helpers_paths; end
449
+ def helpers_paths=(arg0); end
450
+ def initialize(*arg0); end
451
+ def load_defaults(target_version); end
452
+ def loaded_config_version; end
453
+ def log_formatter; end
454
+ def log_formatter=(arg0); end
455
+ def log_level; end
456
+ def log_level=(arg0); end
457
+ def log_tags; end
458
+ def log_tags=(arg0); end
459
+ def logger; end
460
+ def logger=(arg0); end
461
+ def paths; end
462
+ def public_file_server; end
463
+ def public_file_server=(arg0); end
464
+ def railties_order; end
465
+ def railties_order=(arg0); end
466
+ def read_encrypted_secrets; end
467
+ def read_encrypted_secrets=(arg0); end
468
+ def relative_url_root; end
469
+ def relative_url_root=(arg0); end
470
+ def reload_classes_only_on_change; end
471
+ def reload_classes_only_on_change=(arg0); end
472
+ def require_master_key; end
473
+ def require_master_key=(arg0); end
474
+ def secret_key_base; end
475
+ def secret_key_base=(arg0); end
476
+ def secret_token; end
477
+ def secret_token=(arg0); end
478
+ def session_options; end
479
+ def session_options=(arg0); end
480
+ def session_store(new_session_store = nil, **options); end
481
+ def session_store?; end
482
+ def ssl_options; end
483
+ def ssl_options=(arg0); end
484
+ def time_zone; end
485
+ def time_zone=(arg0); end
486
+ def x; end
487
+ def x=(arg0); end
488
+ end
489
+ class Rails::Application::Configuration::Custom
490
+ def initialize; end
491
+ def method_missing(method, *args); end
492
+ def respond_to_missing?(symbol, *arg1); end
493
+ end
494
+ module Rails::Application::Bootstrap
495
+ extend Rails::Initializable::ClassMethods
496
+ include Rails::Initializable
497
+ end
498
+ module Rails::Application::Finisher
499
+ extend Rails::Initializable::ClassMethods
500
+ include Rails::Initializable
501
+ end
502
+ class Rails::Application::Finisher::MutexHook
503
+ def complete(_state); end
504
+ def initialize(mutex = nil); end
505
+ def run; end
506
+ end
507
+ module Rails::Application::Finisher::InterlockHook
508
+ def self.complete(_state); end
509
+ def self.run; end
510
+ end
511
+ class Rails::Application::RoutesReloader
512
+ def clear!; end
513
+ def eager_load; end
514
+ def eager_load=(arg0); end
515
+ def execute(*args, &block); end
516
+ def execute_if_updated(*args, &block); end
517
+ def finalize!; end
518
+ def initialize; end
519
+ def load_paths; end
520
+ def paths; end
521
+ def reload!; end
522
+ def revert; end
523
+ def route_sets; end
524
+ def updated?(*args, &block); end
525
+ def updater; end
526
+ end
527
+ class Rails::Application::DefaultMiddlewareStack
528
+ def app; end
529
+ def build_stack; end
530
+ def config; end
531
+ def initialize(app, config, paths); end
532
+ def load_rack_cache; end
533
+ def paths; end
534
+ def show_exceptions_app; end
535
+ end
536
+ class Rails::Rack::Logger < ActiveSupport::LogSubscriber
537
+ end
538
+ module Rails::Command
539
+ def self.command_type; end
540
+ def self.environment; end
541
+ def self.file_lookup_paths; end
542
+ def self.find_by_namespace(namespace, command_name = nil); end
543
+ def self.hidden_commands; end
544
+ def self.invoke(full_namespace, args = nil, **config); end
545
+ def self.lookup_paths; end
546
+ def self.print_commands; end
547
+ def self.root; end
548
+ def self.sorted_groups; end
549
+ extend ActiveSupport::Autoload
550
+ extend Rails::Command::Behavior::ClassMethods
551
+ include Rails::Command::Behavior
552
+ end
553
+ module Rails::Command::Behavior
554
+ extend ActiveSupport::Concern
555
+ end
556
+ module Rails::Command::Behavior::ClassMethods
557
+ def levenshtein_distance(str1, str2); end
558
+ def lookup!; end
559
+ def lookup(namespaces); end
560
+ def namespaces_to_paths(namespaces); end
561
+ def no_color!; end
562
+ def print_list(base, namespaces); end
563
+ def subclasses; end
564
+ end
565
+ module Rails::Generators
566
+ def namespace; end
567
+ def namespace=(obj); end
568
+ def self.aliases; end
569
+ def self.api_only!; end
570
+ def self.command_type; end
571
+ def self.configure!(config); end
572
+ def self.fallbacks; end
573
+ def self.file_lookup_paths; end
574
+ def self.find_by_namespace(name, base = nil, context = nil); end
575
+ def self.help(command = nil); end
576
+ def self.hidden_namespaces; end
577
+ def self.hide_namespace(*namespaces); end
578
+ def self.hide_namespaces(*namespaces); end
579
+ def self.invoke(namespace, args = nil, config = nil); end
580
+ def self.invoke_fallbacks_for(name, base); end
581
+ def self.lookup_paths; end
582
+ def self.namespace; end
583
+ def self.namespace=(obj); end
584
+ def self.no_color!; end
585
+ def self.options; end
586
+ def self.print_generators; end
587
+ def self.print_list(base, namespaces); end
588
+ def self.public_namespaces; end
589
+ def self.sorted_groups; end
590
+ def self.templates_path; end
591
+ extend Rails::Command::Behavior::ClassMethods
592
+ include Rails::Command::Behavior
593
+ end
594
+ module Rails::Generators::Testing
595
+ end
596
+ module Rails::Generators::Testing::Behaviour
597
+ def create_generated_attribute(attribute_type, name = nil, index = nil); end
598
+ def destination_root_is_set?; end
599
+ def ensure_current_path; end
600
+ def generator(args = nil, options = nil, config = nil); end
601
+ def migration_file_name(relative); end
602
+ def prepare_destination; end
603
+ def run_generator(args = nil, config = nil); end
604
+ extend ActiveSupport::Concern
605
+ include ActiveSupport::Testing::Stream
606
+ end
607
+ module Rails::Generators::Testing::Behaviour::ClassMethods
608
+ def arguments(array); end
609
+ def destination(path); end
610
+ def tests(klass); end
611
+ end
612
+ module Rails::Generators::Testing::SetupAndTeardown
613
+ def setup; end
614
+ def teardown; end
615
+ end
616
+ module Rails::Generators::Testing::Assertions
617
+ def assert_class_method(method, content, &block); end
618
+ def assert_directory(relative, *contents); end
619
+ def assert_field_default_value(attribute_type, value); end
620
+ def assert_field_type(attribute_type, field_type); end
621
+ def assert_file(relative, *contents); end
622
+ def assert_instance_method(method, content); end
623
+ def assert_method(method, content); end
624
+ def assert_migration(relative, *contents, &block); end
625
+ def assert_no_directory(relative); end
626
+ def assert_no_file(relative); end
627
+ def assert_no_migration(relative); end
628
+ end
629
+ class Rails::Generators::TestCase < ActiveSupport::TestCase
630
+ def current_path; end
631
+ def current_path=(val); end
632
+ def current_path?; end
633
+ def default_arguments; end
634
+ def default_arguments=(val); end
635
+ def default_arguments?; end
636
+ def destination_root; end
637
+ def destination_root=(val); end
638
+ def destination_root?; end
639
+ def generator_class; end
640
+ def generator_class=(val); end
641
+ def generator_class?; end
642
+ def self.current_path; end
643
+ def self.current_path=(val); end
644
+ def self.current_path?; end
645
+ def self.default_arguments; end
646
+ def self.default_arguments=(val); end
647
+ def self.default_arguments?; end
648
+ def self.destination_root; end
649
+ def self.destination_root=(val); end
650
+ def self.destination_root?; end
651
+ def self.generator_class; end
652
+ def self.generator_class=(val); end
653
+ def self.generator_class?; end
654
+ extend Rails::Generators::Testing::Behaviour::ClassMethods
655
+ include FileUtils
656
+ include Rails::Generators::Testing::Assertions
657
+ include Rails::Generators::Testing::Behaviour
658
+ include Rails::Generators::Testing::SetupAndTeardown
659
+ end
660
+ class ActiveRecord::ExplainRegistry
661
+ def self.collect?(*args, &block); end
662
+ end
663
+ class ActiveRecord::Scoping::ScopeRegistry
664
+ def self.value_for(*args, &block); end
665
+ end
666
+ class ActiveRecord::SchemaMigration < ActiveRecord::Base
667
+ def self.default_scope_override; end
668
+ end
669
+ module ActiveSupport
670
+ end
671
+ class ActiveSupport::TestCase < Minitest::Test
672
+ def config; end
673
+ def config=(val); end
674
+ def config?; end
675
+ def fixture_class_names; end
676
+ def fixture_class_names=(val); end
677
+ def fixture_class_names?; end
678
+ def fixture_path; end
679
+ def fixture_path?; end
680
+ def fixture_table_names; end
681
+ def fixture_table_names=(val); end
682
+ def fixture_table_names?; end
683
+ def pre_loaded_fixtures; end
684
+ def pre_loaded_fixtures=(val); end
685
+ def pre_loaded_fixtures?; end
686
+ def self.config; end
687
+ def self.config=(val); end
688
+ def self.config?; end
689
+ def self.fixture_class_names; end
690
+ def self.fixture_class_names=(val); end
691
+ def self.fixture_class_names?; end
692
+ def self.fixture_path; end
693
+ def self.fixture_path=(val); end
694
+ def self.fixture_path?; end
695
+ def self.fixture_table_names; end
696
+ def self.fixture_table_names=(val); end
697
+ def self.fixture_table_names?; end
698
+ def self.pre_loaded_fixtures; end
699
+ def self.pre_loaded_fixtures=(val); end
700
+ def self.pre_loaded_fixtures?; end
701
+ def self.use_instantiated_fixtures; end
702
+ def self.use_instantiated_fixtures=(val); end
703
+ def self.use_instantiated_fixtures?; end
704
+ def self.use_transactional_tests; end
705
+ def self.use_transactional_tests=(val); end
706
+ def self.use_transactional_tests?; end
707
+ def use_instantiated_fixtures; end
708
+ def use_instantiated_fixtures=(val); end
709
+ def use_instantiated_fixtures?; end
710
+ def use_transactional_tests; end
711
+ def use_transactional_tests=(val); end
712
+ def use_transactional_tests?; end
713
+ extend ActiveRecord::TestFixtures::ClassMethods
714
+ include ActiveRecord::TestFixtures
715
+ end
716
+ class ActionDispatch::IntegrationTest < ActiveSupport::TestCase
717
+ def before_setup; end
718
+ def self.fixture_path; end
719
+ end
720
+ class ActionController::TestCase < ActiveSupport::TestCase
721
+ def before_setup; end
722
+ end