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,449 @@
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/thor/all/thor.rbi
9
+ #
10
+ # thor-0.20.3
11
+ class Thor
12
+ def self.banner(command, namespace = nil, subcommand = nil); end
13
+ def self.baseclass; end
14
+ def self.check_unknown_options!(options = nil); end
15
+ def self.check_unknown_options?(config); end
16
+ def self.command_help(shell, command_name); end
17
+ def self.create_command(meth); end
18
+ def self.create_task(meth); end
19
+ def self.default_command(meth = nil); end
20
+ def self.default_task(meth = nil); end
21
+ def self.desc(usage, description, options = nil); end
22
+ def self.disable_required_check!(*command_names); end
23
+ def self.disable_required_check; end
24
+ def self.disable_required_check?(command); end
25
+ def self.dispatch(meth, given_args, given_opts, config); end
26
+ def self.dynamic_command_class; end
27
+ def self.find_command_possibilities(meth); end
28
+ def self.find_task_possibilities(meth); end
29
+ def self.help(shell, subcommand = nil); end
30
+ def self.initialize_added; end
31
+ def self.long_desc(long_description, options = nil); end
32
+ def self.map(mappings = nil); end
33
+ def self.method_option(name, options = nil); end
34
+ def self.method_options(options = nil); end
35
+ def self.normalize_command_name(meth); end
36
+ def self.normalize_task_name(meth); end
37
+ def self.option(name, options = nil); end
38
+ def self.options(options = nil); end
39
+ def self.package_name(name, _ = nil); end
40
+ def self.printable_commands(all = nil, subcommand = nil); end
41
+ def self.printable_tasks(all = nil, subcommand = nil); end
42
+ def self.register(klass, subcommand_name, usage, description, options = nil); end
43
+ def self.retrieve_command_name(args); end
44
+ def self.retrieve_task_name(args); end
45
+ def self.stop_on_unknown_option!(*command_names); end
46
+ def self.stop_on_unknown_option; end
47
+ def self.stop_on_unknown_option?(command); end
48
+ def self.subcommand(subcommand, subcommand_class); end
49
+ def self.subcommand_classes; end
50
+ def self.subcommand_help(cmd); end
51
+ def self.subcommands; end
52
+ def self.subtask(subcommand, subcommand_class); end
53
+ def self.subtask_help(cmd); end
54
+ def self.subtasks; end
55
+ def self.task_help(shell, command_name); end
56
+ extend Thor::Base::ClassMethods
57
+ extend Thor::Invocation::ClassMethods
58
+ include Thor::Base
59
+ include Thor::Invocation
60
+ include Thor::Shell
61
+ end
62
+ class Anonymous_Struct_24 < Struct
63
+ def ancestor_name; end
64
+ def ancestor_name=(_); end
65
+ def description; end
66
+ def description=(_); end
67
+ def long_description; end
68
+ def long_description=(_); end
69
+ def name; end
70
+ def name=(_); end
71
+ def options; end
72
+ def options=(_); end
73
+ def self.[](*arg0); end
74
+ def self.members; end
75
+ def self.new(*arg0); end
76
+ def usage; end
77
+ def usage=(_); end
78
+ end
79
+ class Thor::Command < Anonymous_Struct_24
80
+ def formatted_usage(klass, namespace = nil, subcommand = nil); end
81
+ def handle_argument_error?(instance, error, caller); end
82
+ def handle_no_method_error?(instance, error, caller); end
83
+ def hidden?; end
84
+ def initialize(name, description, long_description, usage, options = nil); end
85
+ def initialize_copy(other); end
86
+ def local_method?(instance, name); end
87
+ def not_debugging?(instance); end
88
+ def private_method?(instance); end
89
+ def public_method?(instance); end
90
+ def required_options; end
91
+ def run(instance, args = nil); end
92
+ def sans_backtrace(backtrace, caller); end
93
+ end
94
+ class Thor::HiddenCommand < Thor::Command
95
+ def hidden?; end
96
+ end
97
+ class Thor::DynamicCommand < Thor::Command
98
+ def initialize(name, options = nil); end
99
+ def run(instance, args = nil); end
100
+ end
101
+ module Thor::CoreExt
102
+ end
103
+ class Thor::CoreExt::HashWithIndifferentAccess < Hash
104
+ def [](key); end
105
+ def []=(key, value); end
106
+ def convert_key(key); end
107
+ def delete(key); end
108
+ def fetch(key, *args); end
109
+ def initialize(hash = nil); end
110
+ def key?(key); end
111
+ def merge!(other); end
112
+ def merge(other); end
113
+ def method_missing(method, *args); end
114
+ def replace(other_hash); end
115
+ def reverse_merge!(other_hash); end
116
+ def reverse_merge(other); end
117
+ def to_hash; end
118
+ def values_at(*indices); end
119
+ end
120
+ class Thor::CoreExt::OrderedHash < Hash
121
+ end
122
+ class Thor::Error < StandardError
123
+ end
124
+ class Thor::UndefinedCommandError < Thor::Error
125
+ def all_commands; end
126
+ def command; end
127
+ def initialize(command, all_commands, namespace); end
128
+ end
129
+ class Thor::UndefinedCommandError::SpellChecker
130
+ def corrections; end
131
+ def error; end
132
+ def initialize(error); end
133
+ def spell_checker; end
134
+ end
135
+ class Thor::AmbiguousCommandError < Thor::Error
136
+ end
137
+ class Thor::InvocationError < Thor::Error
138
+ end
139
+ class Thor::UnknownArgumentError < Thor::Error
140
+ def initialize(switches, unknown); end
141
+ def switches; end
142
+ def unknown; end
143
+ end
144
+ class Thor::UnknownArgumentError::SpellChecker
145
+ def corrections; end
146
+ def error; end
147
+ def initialize(error); end
148
+ def spell_checker; end
149
+ end
150
+ class Thor::RequiredArgumentMissingError < Thor::InvocationError
151
+ end
152
+ class Thor::MalformattedArgumentError < Thor::InvocationError
153
+ end
154
+ module Thor::Invocation
155
+ def _parse_initialization_options(args, opts, config); end
156
+ def _retrieve_class_and_command(name, sent_command = nil); end
157
+ def _retrieve_class_and_task(name, sent_command = nil); end
158
+ def _shared_configuration; end
159
+ def current_command_chain; end
160
+ def initialize(args = nil, options = nil, config = nil, &block); end
161
+ def invoke(name = nil, *args); end
162
+ def invoke_all; end
163
+ def invoke_command(command, *args); end
164
+ def invoke_task(command, *args); end
165
+ def invoke_with_padding(*args); end
166
+ def self.included(base); end
167
+ end
168
+ module Thor::Invocation::ClassMethods
169
+ def prepare_for_invocation(key, name); end
170
+ end
171
+ class Thor::Argument
172
+ def banner; end
173
+ def default; end
174
+ def default_banner; end
175
+ def description; end
176
+ def enum; end
177
+ def human_name; end
178
+ def initialize(name, options = nil); end
179
+ def name; end
180
+ def required; end
181
+ def required?; end
182
+ def show_default?; end
183
+ def type; end
184
+ def usage; end
185
+ def valid_type?(type); end
186
+ def validate!; end
187
+ end
188
+ class Thor::Arguments
189
+ def check_requirement!; end
190
+ def current_is_value?; end
191
+ def initialize(arguments = nil); end
192
+ def last?; end
193
+ def no_or_skip?(arg); end
194
+ def parse(args); end
195
+ def parse_array(name); end
196
+ def parse_hash(name); end
197
+ def parse_numeric(name); end
198
+ def parse_string(name); end
199
+ def peek; end
200
+ def remaining; end
201
+ def self.parse(*args); end
202
+ def self.split(args); end
203
+ def shift; end
204
+ def unshift(arg); end
205
+ end
206
+ class Thor::Option < Thor::Argument
207
+ def aliases; end
208
+ def array?; end
209
+ def boolean?; end
210
+ def dasherize(str); end
211
+ def dasherized?; end
212
+ def group; end
213
+ def hash?; end
214
+ def hide; end
215
+ def human_name; end
216
+ def initialize(name, options = nil); end
217
+ def lazy_default; end
218
+ def numeric?; end
219
+ def self.parse(key, value); end
220
+ def string?; end
221
+ def switch_name; end
222
+ def undasherize(str); end
223
+ def usage(padding = nil); end
224
+ def validate!; end
225
+ def validate_default_type!; end
226
+ end
227
+ class Thor::Options < Thor::Arguments
228
+ def check_unknown!; end
229
+ def current_is_switch?; end
230
+ def current_is_switch_formatted?; end
231
+ def current_is_value?; end
232
+ def initialize(hash_options = nil, defaults = nil, stop_on_unknown = nil, disable_required_check = nil); end
233
+ def normalize_switch(arg); end
234
+ def parse(args); end
235
+ def parse_boolean(switch); end
236
+ def parse_peek(switch, option); end
237
+ def parsing_options?; end
238
+ def peek; end
239
+ def remaining; end
240
+ def self.to_switches(options); end
241
+ def switch?(arg); end
242
+ def switch_option(arg); end
243
+ end
244
+ module Thor::Base
245
+ def args; end
246
+ def args=(arg0); end
247
+ def initialize(args = nil, local_options = nil, config = nil); end
248
+ def options; end
249
+ def options=(arg0); end
250
+ def parent_options; end
251
+ def parent_options=(arg0); end
252
+ def self.included(base); end
253
+ def self.register_klass_file(klass); end
254
+ def self.shell; end
255
+ def self.shell=(arg0); end
256
+ def self.subclass_files; end
257
+ def self.subclasses; end
258
+ end
259
+ module Thor::Shell
260
+ def _shared_configuration; end
261
+ def ask(*args, &block); end
262
+ def error(*args, &block); end
263
+ def file_collision(*args, &block); end
264
+ def initialize(args = nil, options = nil, config = nil); end
265
+ def no?(*args, &block); end
266
+ def print_in_columns(*args, &block); end
267
+ def print_table(*args, &block); end
268
+ def print_wrapped(*args, &block); end
269
+ def say(*args, &block); end
270
+ def say_status(*args, &block); end
271
+ def set_color(*args, &block); end
272
+ def shell; end
273
+ def shell=(arg0); end
274
+ def terminal_width(*args, &block); end
275
+ def with_padding; end
276
+ def yes?(*args, &block); end
277
+ end
278
+ module Thor::LineEditor
279
+ def self.best_available; end
280
+ def self.readline(prompt, options = nil); end
281
+ end
282
+ class Thor::LineEditor::Basic
283
+ def echo?; end
284
+ def get_input; end
285
+ def initialize(prompt, options); end
286
+ def options; end
287
+ def prompt; end
288
+ def readline; end
289
+ def self.available?; end
290
+ end
291
+ class Thor::LineEditor::Readline < Thor::LineEditor::Basic
292
+ def add_to_history?; end
293
+ def completion_options; end
294
+ def completion_proc; end
295
+ def readline; end
296
+ def self.available?; end
297
+ def use_path_completion?; end
298
+ end
299
+ class Thor::LineEditor::Readline::PathCompletion
300
+ def absolute_matches; end
301
+ def base_path; end
302
+ def glob_pattern; end
303
+ def initialize(text); end
304
+ def matches; end
305
+ def relative_matches; end
306
+ def text; end
307
+ end
308
+ module Thor::Sandbox
309
+ end
310
+ module Thor::Util
311
+ def self.camel_case(str); end
312
+ def self.escape_globs(path); end
313
+ def self.find_by_namespace(namespace); end
314
+ def self.find_class_and_command_by_namespace(namespace, fallback = nil); end
315
+ def self.find_class_and_task_by_namespace(namespace, fallback = nil); end
316
+ def self.globs_for(path); end
317
+ def self.load_thorfile(path, content = nil, debug = nil); end
318
+ def self.namespace_from_thor_class(constant); end
319
+ def self.namespaces_in_content(contents, file = nil); end
320
+ def self.ruby_command; end
321
+ def self.snake_case(str); end
322
+ def self.thor_classes_in(klass); end
323
+ def self.thor_root; end
324
+ def self.thor_root_glob; end
325
+ def self.user_home; end
326
+ end
327
+ module Thor::Base::ClassMethods
328
+ def all_commands; end
329
+ def all_tasks; end
330
+ def argument(name, options = nil); end
331
+ def arguments; end
332
+ def attr_accessor(*arg0); end
333
+ def attr_reader(*arg0); end
334
+ def attr_writer(*arg0); end
335
+ def baseclass; end
336
+ def basename; end
337
+ def build_option(name, options, scope); end
338
+ def build_options(options, scope); end
339
+ def check_default_type!; end
340
+ def check_default_type; end
341
+ def check_default_type?; end
342
+ def check_unknown_options!; end
343
+ def check_unknown_options; end
344
+ def check_unknown_options?(config); end
345
+ def class_option(name, options = nil); end
346
+ def class_options(options = nil); end
347
+ def class_options_help(shell, groups = nil); end
348
+ def commands; end
349
+ def create_command(meth); end
350
+ def create_task(meth); end
351
+ def disable_required_check?(command_name); end
352
+ def dispatch(command, given_args, given_opts, config); end
353
+ def exit_on_failure?; end
354
+ def find_and_refresh_command(name); end
355
+ def find_and_refresh_task(name); end
356
+ def from_superclass(method, default = nil); end
357
+ def group(name = nil); end
358
+ def handle_argument_error(command, error, args, arity); end
359
+ def handle_no_command_error(command, has_namespace = nil); end
360
+ def handle_no_task_error(command, has_namespace = nil); end
361
+ def inherited(klass); end
362
+ def initialize_added; end
363
+ def is_thor_reserved_word?(word, type); end
364
+ def method_added(meth); end
365
+ def namespace(name = nil); end
366
+ def no_commands; end
367
+ def no_tasks; end
368
+ def print_options(shell, options, group_name = nil); end
369
+ def public_command(*names); end
370
+ def public_task(*names); end
371
+ def remove_argument(*names); end
372
+ def remove_class_option(*names); end
373
+ def remove_command(*names); end
374
+ def remove_task(*names); end
375
+ def start(given_args = nil, config = nil); end
376
+ def stop_on_unknown_option?(command_name); end
377
+ def strict_args_position!; end
378
+ def strict_args_position; end
379
+ def strict_args_position?(config); end
380
+ def tasks; end
381
+ end
382
+ class Thor::Group
383
+ def self.banner; end
384
+ def self.baseclass; end
385
+ def self.class_options_help(shell, groups = nil); end
386
+ def self.create_command(meth); end
387
+ def self.create_task(meth); end
388
+ def self.desc(description = nil); end
389
+ def self.dispatch(command, given_args, given_opts, config); end
390
+ def self.get_options_from_invocations(group_options, base_options); end
391
+ def self.handle_argument_error(command, error, _args, arity); end
392
+ def self.help(shell); end
393
+ def self.invocation_blocks; end
394
+ def self.invocations; end
395
+ def self.invoke(*names, &block); end
396
+ def self.invoke_from_option(*names, &block); end
397
+ def self.printable_commands(*arg0); end
398
+ def self.printable_tasks(*arg0); end
399
+ def self.remove_invocation(*names); end
400
+ def self.self_command; end
401
+ def self.self_task; end
402
+ extend Thor::Base::ClassMethods
403
+ extend Thor::Invocation::ClassMethods
404
+ include Thor::Base
405
+ include Thor::Invocation
406
+ include Thor::Shell
407
+ end
408
+ class Thor::Shell::Basic
409
+ def as_unicode; end
410
+ def ask(statement, *args); end
411
+ def ask_filtered(statement, color, options); end
412
+ def ask_simply(statement, color, options); end
413
+ def base; end
414
+ def base=(arg0); end
415
+ def can_display_colors?; end
416
+ def dynamic_width; end
417
+ def dynamic_width_stty; end
418
+ def dynamic_width_tput; end
419
+ def error(statement); end
420
+ def file_collision(destination); end
421
+ def file_collision_help; end
422
+ def git_merge_tool; end
423
+ def indent(count = nil); end
424
+ def initialize; end
425
+ def is?(value); end
426
+ def lookup_color(color); end
427
+ def merge(destination, content); end
428
+ def merge_tool; end
429
+ def mute; end
430
+ def mute?; end
431
+ def no?(statement, color = nil); end
432
+ def padding; end
433
+ def padding=(value); end
434
+ def prepare_message(message, *color); end
435
+ def print_in_columns(array); end
436
+ def print_table(array, options = nil); end
437
+ def print_wrapped(message, options = nil); end
438
+ def quiet?; end
439
+ def say(message = nil, color = nil, force_new_line = nil); end
440
+ def say_status(status, message, log_status = nil); end
441
+ def set_color(string, *arg1); end
442
+ def show_diff(destination, content); end
443
+ def stderr; end
444
+ def stdout; end
445
+ def terminal_width; end
446
+ def truncate(string, width); end
447
+ def unix?; end
448
+ def yes?(statement, color = nil); end
449
+ end
@@ -0,0 +1,81 @@
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/thread_safe/all/thread_safe.rbi
9
+ #
10
+ # thread_safe-0.3.6
11
+ module ThreadSafe
12
+ end
13
+ module Threadsafe
14
+ def self.const_missing(name); end
15
+ end
16
+ class SynchronizedDelegator < SimpleDelegator
17
+ def initialize(obj); end
18
+ def method_missing(method, *args, &block); end
19
+ def setup; end
20
+ def teardown; end
21
+ end
22
+ class ThreadSafe::NonConcurrentCacheBackend
23
+ def [](key); end
24
+ def []=(key, value); end
25
+ def _get(key); end
26
+ def _set(key, value); end
27
+ def clear; end
28
+ def compute(key); end
29
+ def compute_if_absent(key); end
30
+ def compute_if_present(key); end
31
+ def delete(key); end
32
+ def delete_pair(key, value); end
33
+ def dupped_backend; end
34
+ def each_pair; end
35
+ def get_and_set(key, value); end
36
+ def get_or_default(key, default_value); end
37
+ def initialize(options = nil); end
38
+ def initialize_copy(other); end
39
+ def key?(key); end
40
+ def merge_pair(key, value); end
41
+ def pair?(key, expected_value); end
42
+ def replace_if_exists(key, new_value); end
43
+ def replace_pair(key, old_value, new_value); end
44
+ def size; end
45
+ def store_computed_value(key, new_value); end
46
+ def value?(value); end
47
+ end
48
+ class ThreadSafe::MriCacheBackend < ThreadSafe::NonConcurrentCacheBackend
49
+ def []=(key, value); end
50
+ def clear; end
51
+ def compute(key); end
52
+ def compute_if_absent(key); end
53
+ def compute_if_present(key); end
54
+ def delete(key); end
55
+ def delete_pair(key, value); end
56
+ def get_and_set(key, value); end
57
+ def merge_pair(key, value); end
58
+ def replace_if_exists(key, new_value); end
59
+ def replace_pair(key, old_value, new_value); end
60
+ end
61
+ class ThreadSafe::Cache < ThreadSafe::MriCacheBackend
62
+ def [](key); end
63
+ def each_key; end
64
+ def each_value; end
65
+ def empty?; end
66
+ def fetch(key, default_value = nil); end
67
+ def fetch_or_store(key, default_value = nil); end
68
+ def get(key); end
69
+ def initialize(options = nil, &block); end
70
+ def initialize_copy(other); end
71
+ def key(value); end
72
+ def keys; end
73
+ def marshal_dump; end
74
+ def marshal_load(hash); end
75
+ def populate_from(hash); end
76
+ def put(key, value); end
77
+ def put_if_absent(key, value); end
78
+ def raise_fetch_no_key; end
79
+ def validate_options_hash!(options); end
80
+ def values; end
81
+ end