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,92 @@
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/crass/all/crass.rbi
9
+ #
10
+ # crass-1.0.4
11
+ module Crass
12
+ def self.parse(input, options = nil); end
13
+ def self.parse_properties(input, options = nil); end
14
+ end
15
+ class Crass::TokenScanner
16
+ def collect; end
17
+ def consume; end
18
+ def current; end
19
+ def initialize(tokens); end
20
+ def peek; end
21
+ def pos; end
22
+ def reconsume; end
23
+ def reset; end
24
+ def tokens; end
25
+ end
26
+ class Crass::Scanner
27
+ def consume; end
28
+ def consume_rest; end
29
+ def current; end
30
+ def eos?; end
31
+ def initialize(input); end
32
+ def mark; end
33
+ def marked; end
34
+ def marker; end
35
+ def marker=(arg0); end
36
+ def peek(length = nil); end
37
+ def pos; end
38
+ def pos=(arg0); end
39
+ def reconsume; end
40
+ def reset; end
41
+ def scan(pattern); end
42
+ def scan_until(pattern); end
43
+ def string; end
44
+ end
45
+ class Crass::Tokenizer
46
+ def consume; end
47
+ def consume_bad_url; end
48
+ def consume_comments; end
49
+ def consume_escaped; end
50
+ def consume_ident; end
51
+ def consume_name; end
52
+ def consume_number; end
53
+ def consume_numeric; end
54
+ def consume_string(ending = nil); end
55
+ def consume_unicode_range; end
56
+ def consume_url; end
57
+ def convert_string_to_number(str); end
58
+ def create_token(type, properties = nil); end
59
+ def initialize(input, options = nil); end
60
+ def preprocess(input); end
61
+ def self.tokenize(input, options = nil); end
62
+ def start_identifier?(text = nil); end
63
+ def start_number?(text = nil); end
64
+ def tokenize; end
65
+ def valid_escape?(text = nil); end
66
+ end
67
+ class Crass::Parser
68
+ def consume_at_rule(input = nil); end
69
+ def consume_component_value(input = nil); end
70
+ def consume_declaration(input = nil); end
71
+ def consume_declarations(input = nil, options = nil); end
72
+ def consume_function(input = nil); end
73
+ def consume_qualified_rule(input = nil); end
74
+ def consume_rules(flags = nil); end
75
+ def consume_simple_block(input = nil); end
76
+ def create_node(type, properties = nil); end
77
+ def create_selector(input); end
78
+ def create_style_rule(rule); end
79
+ def initialize(input, options = nil); end
80
+ def parse_component_value(input = nil); end
81
+ def parse_component_values(input = nil); end
82
+ def parse_declaration(input = nil); end
83
+ def parse_declarations(input = nil, options = nil); end
84
+ def parse_properties(input = nil); end
85
+ def parse_rule(input = nil); end
86
+ def parse_value(nodes); end
87
+ def self.parse_properties(input, options = nil); end
88
+ def self.parse_rules(input, options = nil); end
89
+ def self.parse_stylesheet(input, options = nil); end
90
+ def self.stringify(nodes, options = nil); end
91
+ def tokens; end
92
+ end
@@ -0,0 +1,26 @@
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/erubi/all/erubi.rbi
9
+ #
10
+ # erubi-1.8.0
11
+ module Erubi
12
+ def self.h(value); end
13
+ end
14
+ class Erubi::Engine
15
+ def add_code(code); end
16
+ def add_expression(indicator, code); end
17
+ def add_expression_result(code); end
18
+ def add_expression_result_escaped(code); end
19
+ def add_postamble(postamble); end
20
+ def add_text(text); end
21
+ def bufvar; end
22
+ def filename; end
23
+ def handle(indicator, code, tailch, rspace, lspace); end
24
+ def initialize(input, properties = nil); end
25
+ def src; end
26
+ end
@@ -0,0 +1,98 @@
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/globalid/all/globalid.rbi
9
+ #
10
+ # globalid-0.4.2
11
+ module URI
12
+ end
13
+ class URI::GID < URI::Generic
14
+ def app; end
15
+ def check_host(host); end
16
+ def check_path(path); end
17
+ def check_scheme(scheme); end
18
+ def model_id; end
19
+ def model_name; end
20
+ def params; end
21
+ def parse_query_params(query); end
22
+ def query=(query); end
23
+ def self.build(args); end
24
+ def self.create(app, model, params = nil); end
25
+ def self.parse(uri); end
26
+ def self.validate_app(app); end
27
+ def set_model_components(path, validate = nil); end
28
+ def set_params(params); end
29
+ def set_path(path); end
30
+ def set_query(query); end
31
+ def to_s; end
32
+ def validate_component(component); end
33
+ def validate_model_id(model_id, model_name); end
34
+ end
35
+ class URI::GID::MissingModelIdError < URI::InvalidComponentError
36
+ end
37
+ class GlobalID
38
+ def ==(other); end
39
+ def app(*args, &block); end
40
+ def eql?(other); end
41
+ def find(options = nil); end
42
+ def hash; end
43
+ def initialize(gid, options = nil); end
44
+ def model_class; end
45
+ def model_id(*args, &block); end
46
+ def model_name(*args, &block); end
47
+ def params(*args, &block); end
48
+ def self.app; end
49
+ def self.app=(app); end
50
+ def self.create(model, options = nil); end
51
+ def self.eager_load!; end
52
+ def self.find(gid, options = nil); end
53
+ def self.parse(gid, options = nil); end
54
+ def self.parse_encoded_gid(gid, options); end
55
+ def self.repad_gid(gid); end
56
+ def to_param; end
57
+ def to_s(*args, &block); end
58
+ def uri; end
59
+ extend ActiveSupport::Autoload
60
+ end
61
+ class GlobalID::Railtie < Rails::Railtie
62
+ end
63
+ class SignedGlobalID < GlobalID
64
+ def ==(other); end
65
+ def encoded_expiration; end
66
+ def expires_at; end
67
+ def initialize(gid, options = nil); end
68
+ def pick_expiration(options); end
69
+ def purpose; end
70
+ def self.expires_in; end
71
+ def self.expires_in=(arg0); end
72
+ def self.parse(sgid, options = nil); end
73
+ def self.pick_purpose(options); end
74
+ def self.pick_verifier(options); end
75
+ def self.raise_if_expired(expires_at); end
76
+ def self.verifier; end
77
+ def self.verifier=(arg0); end
78
+ def self.verify(sgid, options); end
79
+ def to_h; end
80
+ def to_param; end
81
+ def to_s; end
82
+ def verifier; end
83
+ end
84
+ class SignedGlobalID::ExpiredMessage < StandardError
85
+ end
86
+ class GlobalID::Verifier < ActiveSupport::MessageVerifier
87
+ def decode(data); end
88
+ def encode(data); end
89
+ end
90
+ module GlobalID::Identification
91
+ def to_gid(options = nil); end
92
+ def to_gid_param(options = nil); end
93
+ def to_global_id(options = nil); end
94
+ def to_sgid(options = nil); end
95
+ def to_sgid_param(options = nil); end
96
+ def to_signed_global_id(options = nil); end
97
+ extend ActiveSupport::Concern
98
+ end
@@ -0,0 +1,191 @@
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/i18n/all/i18n.rbi
9
+ #
10
+ # i18n-1.6.0
11
+ module I18n
12
+ def self.interpolate(string, values); end
13
+ def self.interpolate_hash(string, values); end
14
+ def self.new_double_nested_cache; end
15
+ extend I18n::Base
16
+ end
17
+ class I18n::ExceptionHandler
18
+ def call(exception, _locale, _key, _options); end
19
+ end
20
+ class I18n::ArgumentError < ArgumentError
21
+ end
22
+ class I18n::Disabled < I18n::ArgumentError
23
+ def initialize(method); end
24
+ end
25
+ class I18n::InvalidLocale < I18n::ArgumentError
26
+ def initialize(locale); end
27
+ def locale; end
28
+ end
29
+ class I18n::InvalidLocaleData < I18n::ArgumentError
30
+ def filename; end
31
+ def initialize(filename, exception_message); end
32
+ end
33
+ class I18n::MissingTranslation < I18n::ArgumentError
34
+ include I18n::MissingTranslation::Base
35
+ end
36
+ module I18n::MissingTranslation::Base
37
+ def initialize(locale, key, options = nil); end
38
+ def key; end
39
+ def keys; end
40
+ def locale; end
41
+ def message; end
42
+ def options; end
43
+ def to_exception; end
44
+ def to_s; end
45
+ end
46
+ class I18n::MissingTranslationData < I18n::ArgumentError
47
+ include I18n::MissingTranslation::Base
48
+ end
49
+ class I18n::InvalidPluralizationData < I18n::ArgumentError
50
+ def count; end
51
+ def entry; end
52
+ def initialize(entry, count, key); end
53
+ def key; end
54
+ end
55
+ class I18n::MissingInterpolationArgument < I18n::ArgumentError
56
+ def initialize(key, values, string); end
57
+ def key; end
58
+ def string; end
59
+ def values; end
60
+ end
61
+ class I18n::ReservedInterpolationKey < I18n::ArgumentError
62
+ def initialize(key, string); end
63
+ def key; end
64
+ def string; end
65
+ end
66
+ class I18n::UnknownFileType < I18n::ArgumentError
67
+ def filename; end
68
+ def initialize(type, filename); end
69
+ def type; end
70
+ end
71
+ module I18n::Base
72
+ def available_locales; end
73
+ def available_locales=(value); end
74
+ def available_locales_initialized?; end
75
+ def backend; end
76
+ def backend=(value); end
77
+ def config; end
78
+ def config=(value); end
79
+ def default_locale; end
80
+ def default_locale=(value); end
81
+ def default_separator; end
82
+ def default_separator=(value); end
83
+ def eager_load!; end
84
+ def enforce_available_locales!(locale); end
85
+ def enforce_available_locales; end
86
+ def enforce_available_locales=(value); end
87
+ def exception_handler; end
88
+ def exception_handler=(value); end
89
+ def exists?(key, _locale = nil, locale: nil); end
90
+ def handle_exception(handling, exception, locale, key, options); end
91
+ def l(object, locale: nil, format: nil, **options); end
92
+ def load_path; end
93
+ def load_path=(value); end
94
+ def locale; end
95
+ def locale=(value); end
96
+ def locale_available?(locale); end
97
+ def localize(object, locale: nil, format: nil, **options); end
98
+ def normalize_key(key, separator); end
99
+ def normalize_keys(locale, key, scope, separator = nil); end
100
+ def reload!; end
101
+ def t!(key, options = nil); end
102
+ def t(key = nil, *arg1, throw: nil, raise: nil, locale: nil, **options); end
103
+ def translate!(key, options = nil); end
104
+ def translate(key = nil, *arg1, throw: nil, raise: nil, locale: nil, **options); end
105
+ def transliterate(key, *arg1, throw: nil, raise: nil, locale: nil, replacement: nil, **options); end
106
+ def with_locale(tmp_locale = nil); end
107
+ end
108
+ class I18n::Config
109
+ def available_locales; end
110
+ def available_locales=(locales); end
111
+ def available_locales_initialized?; end
112
+ def available_locales_set; end
113
+ def backend; end
114
+ def backend=(backend); end
115
+ def clear_available_locales_set; end
116
+ def default_locale; end
117
+ def default_locale=(locale); end
118
+ def default_separator; end
119
+ def default_separator=(separator); end
120
+ def enforce_available_locales; end
121
+ def enforce_available_locales=(enforce_available_locales); end
122
+ def exception_handler; end
123
+ def exception_handler=(exception_handler); end
124
+ def interpolation_patterns; end
125
+ def interpolation_patterns=(interpolation_patterns); end
126
+ def load_path; end
127
+ def load_path=(load_path); end
128
+ def locale; end
129
+ def locale=(locale); end
130
+ def missing_interpolation_argument_handler; end
131
+ def missing_interpolation_argument_handler=(exception_handler); end
132
+ end
133
+ module I18n::Backend
134
+ end
135
+ module I18n::HashRefinements
136
+ end
137
+ module I18n::Backend::Transliterator
138
+ def self.get(rule = nil); end
139
+ def transliterate(locale, string, replacement = nil); end
140
+ end
141
+ class I18n::Backend::Transliterator::ProcTransliterator
142
+ def initialize(rule); end
143
+ def transliterate(string, replacement = nil); end
144
+ end
145
+ class I18n::Backend::Transliterator::HashTransliterator
146
+ def add(hash); end
147
+ def add_default_approximations; end
148
+ def approximations; end
149
+ def initialize(rule = nil); end
150
+ def transliterate(string, replacement = nil); end
151
+ end
152
+ module I18n::Backend::Base
153
+ def available_locales; end
154
+ def deep_interpolate(locale, data, values = nil); end
155
+ def default(locale, object, subject, options = nil); end
156
+ def eager_load!; end
157
+ def eager_loaded?; end
158
+ def exists?(locale, key); end
159
+ def interpolate(locale, subject, values = nil); end
160
+ def load_file(filename); end
161
+ def load_json(filename); end
162
+ def load_rb(filename); end
163
+ def load_translations(*filenames); end
164
+ def load_yaml(filename); end
165
+ def load_yml(filename); end
166
+ def localize(locale, object, format = nil, options = nil); end
167
+ def lookup(locale, key, scope = nil, options = nil); end
168
+ def pluralization_key(entry, count); end
169
+ def pluralize(locale, entry, count); end
170
+ def reload!; end
171
+ def resolve(locale, object, subject, options = nil); end
172
+ def store_translations(locale, data, options = nil); end
173
+ def subtrees?; end
174
+ def translate(locale, key, options = nil); end
175
+ def translate_localization_format(locale, object, format, options); end
176
+ include I18n::Backend::Transliterator
177
+ end
178
+ class I18n::Backend::Simple
179
+ include I18n::Backend::Simple::Implementation
180
+ end
181
+ module I18n::Backend::Simple::Implementation
182
+ def available_locales; end
183
+ def eager_load!; end
184
+ def init_translations; end
185
+ def initialized?; end
186
+ def lookup(locale, key, scope = nil, options = nil); end
187
+ def reload!; end
188
+ def store_translations(locale, data, options = nil); end
189
+ def translations(do_init: nil); end
190
+ include I18n::Backend::Base
191
+ end
@@ -0,0 +1,129 @@
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/loofah/all/loofah.rbi
9
+ #
10
+ # loofah-2.2.3
11
+ module Loofah
12
+ def self.document(*args, &block); end
13
+ def self.fragment(*args, &block); end
14
+ def self.remove_extraneous_whitespace(string); end
15
+ def self.scrub_document(string_or_io, method); end
16
+ def self.scrub_fragment(string_or_io, method); end
17
+ def self.scrub_xml_document(string_or_io, method); end
18
+ def self.scrub_xml_fragment(string_or_io, method); end
19
+ def self.xml_document(*args, &block); end
20
+ def self.xml_fragment(*args, &block); end
21
+ end
22
+ module Loofah::MetaHelpers
23
+ def self.add_downcased_set_members_to_all_set_constants(mojule); end
24
+ end
25
+ module Loofah::Elements
26
+ end
27
+ module Loofah::HTML5
28
+ end
29
+ module Loofah::HTML5::WhiteList
30
+ end
31
+ module Loofah::LibxmlWorkarounds
32
+ end
33
+ module Loofah::HTML5::Scrub
34
+ def self.allowed_element?(element_name); end
35
+ def self.force_correct_attribute_escaping!(node); end
36
+ def self.scrub_attributes(node); end
37
+ def self.scrub_css(style); end
38
+ def self.scrub_css_attribute(node); end
39
+ end
40
+ class Loofah::ScrubberNotFound < RuntimeError
41
+ end
42
+ class Loofah::Scrubber
43
+ def append_attribute(node, attribute, value); end
44
+ def block; end
45
+ def direction; end
46
+ def html5lib_sanitize(node); end
47
+ def initialize(options = nil, &block); end
48
+ def scrub(node); end
49
+ def traverse(node); end
50
+ def traverse_conditionally_bottom_up(node); end
51
+ def traverse_conditionally_top_down(node); end
52
+ end
53
+ module Loofah::Scrubbers
54
+ def self.scrubber_symbols; end
55
+ end
56
+ class Loofah::Scrubbers::Strip < Loofah::Scrubber
57
+ def initialize; end
58
+ def scrub(node); end
59
+ end
60
+ class Loofah::Scrubbers::Prune < Loofah::Scrubber
61
+ def initialize; end
62
+ def scrub(node); end
63
+ end
64
+ class Loofah::Scrubbers::Escape < Loofah::Scrubber
65
+ def initialize; end
66
+ def scrub(node); end
67
+ end
68
+ class Loofah::Scrubbers::Whitewash < Loofah::Scrubber
69
+ def initialize; end
70
+ def scrub(node); end
71
+ end
72
+ class Loofah::Scrubbers::NoFollow < Loofah::Scrubber
73
+ def initialize; end
74
+ def scrub(node); end
75
+ end
76
+ class Loofah::Scrubbers::NoOpener < Loofah::Scrubber
77
+ def initialize; end
78
+ def scrub(node); end
79
+ end
80
+ class Loofah::Scrubbers::NewlineBlockElements < Loofah::Scrubber
81
+ def initialize; end
82
+ def scrub(node); end
83
+ end
84
+ class Loofah::Scrubbers::Unprintable < Loofah::Scrubber
85
+ def initialize; end
86
+ def scrub(node); end
87
+ end
88
+ module Loofah::ScrubBehavior
89
+ def self.resolve_scrubber(scrubber); end
90
+ end
91
+ module Loofah::ScrubBehavior::Node
92
+ def scrub!(scrubber); end
93
+ end
94
+ module Loofah::ScrubBehavior::NodeSet
95
+ def scrub!(scrubber); end
96
+ end
97
+ module Loofah::TextBehavior
98
+ def inner_text(options = nil); end
99
+ def text(options = nil); end
100
+ def to_str(options = nil); end
101
+ def to_text(options = nil); end
102
+ end
103
+ module Loofah::DocumentDecorator
104
+ def initialize(*args, &block); end
105
+ end
106
+ module Loofah::XML
107
+ end
108
+ class Loofah::XML::Document < Nokogiri::XML::Document
109
+ include Loofah::DocumentDecorator
110
+ include Loofah::ScrubBehavior::Node
111
+ end
112
+ class Loofah::XML::DocumentFragment < Nokogiri::XML::DocumentFragment
113
+ def self.parse(tags); end
114
+ end
115
+ module Loofah::HTML
116
+ end
117
+ class Loofah::HTML::Document < Nokogiri::HTML::Document
118
+ def serialize_root; end
119
+ include Loofah::DocumentDecorator
120
+ include Loofah::ScrubBehavior::Node
121
+ include Loofah::TextBehavior
122
+ end
123
+ class Loofah::HTML::DocumentFragment < Nokogiri::HTML::DocumentFragment
124
+ def self.parse(tags, encoding = nil); end
125
+ def serialize; end
126
+ def serialize_root; end
127
+ def to_s; end
128
+ include Loofah::TextBehavior
129
+ end