active_cached_resource 0.0.1.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/.standard.yml +2 -0
  5. data/CHANGELOG.md +5 -0
  6. data/README.md +45 -0
  7. data/Rakefile +21 -0
  8. data/example/consumer/.dockerignore +41 -0
  9. data/example/consumer/.gitattributes +9 -0
  10. data/example/consumer/.gitignore +36 -0
  11. data/example/consumer/.kamal/hooks/docker-setup.sample +3 -0
  12. data/example/consumer/.kamal/hooks/post-deploy.sample +14 -0
  13. data/example/consumer/.kamal/hooks/post-proxy-reboot.sample +3 -0
  14. data/example/consumer/.kamal/hooks/pre-build.sample +51 -0
  15. data/example/consumer/.kamal/hooks/pre-connect.sample +47 -0
  16. data/example/consumer/.kamal/hooks/pre-deploy.sample +109 -0
  17. data/example/consumer/.kamal/hooks/pre-proxy-reboot.sample +3 -0
  18. data/example/consumer/.kamal/secrets +17 -0
  19. data/example/consumer/Dockerfile +65 -0
  20. data/example/consumer/Gemfile +17 -0
  21. data/example/consumer/Rakefile +6 -0
  22. data/example/consumer/app/controllers/application_controller.rb +2 -0
  23. data/example/consumer/app/controllers/concerns/.keep +0 -0
  24. data/example/consumer/app/jobs/application_job.rb +7 -0
  25. data/example/consumer/app/mailers/application_mailer.rb +4 -0
  26. data/example/consumer/app/models/application_record.rb +3 -0
  27. data/example/consumer/app/models/concerns/.keep +0 -0
  28. data/example/consumer/app/models/person.rb +9 -0
  29. data/example/consumer/app/views/layouts/mailer.html.erb +13 -0
  30. data/example/consumer/app/views/layouts/mailer.text.erb +1 -0
  31. data/example/consumer/bin/brakeman +7 -0
  32. data/example/consumer/bin/bundle +109 -0
  33. data/example/consumer/bin/dev +2 -0
  34. data/example/consumer/bin/docker-entrypoint +14 -0
  35. data/example/consumer/bin/jobs +6 -0
  36. data/example/consumer/bin/kamal +27 -0
  37. data/example/consumer/bin/rails +4 -0
  38. data/example/consumer/bin/rake +4 -0
  39. data/example/consumer/bin/rubocop +8 -0
  40. data/example/consumer/bin/setup +34 -0
  41. data/example/consumer/bin/thrust +5 -0
  42. data/example/consumer/config/application.rb +20 -0
  43. data/example/consumer/config/boot.rb +3 -0
  44. data/example/consumer/config/cache.yml +16 -0
  45. data/example/consumer/config/credentials.yml.enc +1 -0
  46. data/example/consumer/config/database.yml +14 -0
  47. data/example/consumer/config/deploy.yml +116 -0
  48. data/example/consumer/config/environment.rb +5 -0
  49. data/example/consumer/config/environments/development.rb +64 -0
  50. data/example/consumer/config/environments/production.rb +85 -0
  51. data/example/consumer/config/environments/test.rb +50 -0
  52. data/example/consumer/config/initializers/cors.rb +16 -0
  53. data/example/consumer/config/initializers/filter_parameter_logging.rb +8 -0
  54. data/example/consumer/config/initializers/inflections.rb +16 -0
  55. data/example/consumer/config/locales/en.yml +31 -0
  56. data/example/consumer/config/puma.rb +41 -0
  57. data/example/consumer/config/queue.yml +18 -0
  58. data/example/consumer/config/recurring.yml +10 -0
  59. data/example/consumer/config/routes.rb +10 -0
  60. data/example/consumer/config.ru +6 -0
  61. data/example/consumer/db/cache_schema.rb +14 -0
  62. data/example/consumer/db/queue_schema.rb +129 -0
  63. data/example/consumer/db/seeds.rb +0 -0
  64. data/example/consumer/lib/tasks/.keep +0 -0
  65. data/example/consumer/log/.keep +0 -0
  66. data/example/consumer/public/robots.txt +1 -0
  67. data/example/consumer/script/.keep +0 -0
  68. data/example/consumer/storage/.keep +0 -0
  69. data/example/consumer/tmp/.keep +0 -0
  70. data/example/consumer/tmp/cache/.keep +0 -0
  71. data/example/consumer/tmp/pids/.keep +0 -0
  72. data/example/consumer/tmp/storage/.keep +0 -0
  73. data/example/consumer/vendor/.keep +0 -0
  74. data/example/provider/.dockerignore +41 -0
  75. data/example/provider/.gitattributes +9 -0
  76. data/example/provider/.gitignore +32 -0
  77. data/example/provider/.kamal/hooks/docker-setup.sample +3 -0
  78. data/example/provider/.kamal/hooks/post-deploy.sample +14 -0
  79. data/example/provider/.kamal/hooks/post-proxy-reboot.sample +3 -0
  80. data/example/provider/.kamal/hooks/pre-build.sample +51 -0
  81. data/example/provider/.kamal/hooks/pre-connect.sample +47 -0
  82. data/example/provider/.kamal/hooks/pre-deploy.sample +109 -0
  83. data/example/provider/.kamal/hooks/pre-proxy-reboot.sample +3 -0
  84. data/example/provider/.kamal/secrets +17 -0
  85. data/example/provider/Dockerfile +65 -0
  86. data/example/provider/Gemfile +14 -0
  87. data/example/provider/Rakefile +6 -0
  88. data/example/provider/app/controllers/application_controller.rb +2 -0
  89. data/example/provider/app/controllers/concerns/.keep +0 -0
  90. data/example/provider/app/controllers/people_controller.rb +68 -0
  91. data/example/provider/app/jobs/application_job.rb +7 -0
  92. data/example/provider/app/mailers/application_mailer.rb +4 -0
  93. data/example/provider/app/models/address.rb +3 -0
  94. data/example/provider/app/models/application_record.rb +3 -0
  95. data/example/provider/app/models/company.rb +3 -0
  96. data/example/provider/app/models/concerns/.keep +0 -0
  97. data/example/provider/app/models/person.rb +6 -0
  98. data/example/provider/app/views/layouts/mailer.html.erb +13 -0
  99. data/example/provider/app/views/layouts/mailer.text.erb +1 -0
  100. data/example/provider/bin/brakeman +7 -0
  101. data/example/provider/bin/bundle +109 -0
  102. data/example/provider/bin/dev +2 -0
  103. data/example/provider/bin/docker-entrypoint +14 -0
  104. data/example/provider/bin/jobs +6 -0
  105. data/example/provider/bin/kamal +27 -0
  106. data/example/provider/bin/rails +4 -0
  107. data/example/provider/bin/rake +4 -0
  108. data/example/provider/bin/rubocop +8 -0
  109. data/example/provider/bin/setup +34 -0
  110. data/example/provider/bin/thrust +5 -0
  111. data/example/provider/config/application.rb +44 -0
  112. data/example/provider/config/boot.rb +3 -0
  113. data/example/provider/config/cache.yml +16 -0
  114. data/example/provider/config/credentials.yml.enc +1 -0
  115. data/example/provider/config/database.yml +20 -0
  116. data/example/provider/config/deploy.yml +116 -0
  117. data/example/provider/config/environment.rb +5 -0
  118. data/example/provider/config/environments/development.rb +64 -0
  119. data/example/provider/config/environments/production.rb +85 -0
  120. data/example/provider/config/environments/test.rb +50 -0
  121. data/example/provider/config/initializers/cors.rb +16 -0
  122. data/example/provider/config/initializers/filter_parameter_logging.rb +8 -0
  123. data/example/provider/config/initializers/inflections.rb +16 -0
  124. data/example/provider/config/locales/en.yml +31 -0
  125. data/example/provider/config/puma.rb +41 -0
  126. data/example/provider/config/queue.yml +18 -0
  127. data/example/provider/config/recurring.yml +10 -0
  128. data/example/provider/config/routes.rb +4 -0
  129. data/example/provider/config.ru +6 -0
  130. data/example/provider/db/cache_schema.rb +14 -0
  131. data/example/provider/db/migrate/20241202183937_create_people.rb +11 -0
  132. data/example/provider/db/migrate/20241202183955_create_addresses.rb +13 -0
  133. data/example/provider/db/migrate/20241202184017_create_companies.rb +14 -0
  134. data/example/provider/db/queue_schema.rb +129 -0
  135. data/example/provider/db/schema.rb +47 -0
  136. data/example/provider/db/seeds.rb +18 -0
  137. data/example/provider/lib/tasks/.keep +0 -0
  138. data/example/provider/log/.keep +0 -0
  139. data/example/provider/public/robots.txt +1 -0
  140. data/example/provider/script/.keep +0 -0
  141. data/example/provider/storage/.keep +0 -0
  142. data/example/provider/tmp/.keep +0 -0
  143. data/example/provider/tmp/pids/.keep +0 -0
  144. data/example/provider/tmp/storage/.keep +0 -0
  145. data/example/provider/vendor/.keep +0 -0
  146. data/lib/active_cached_resource/caching.rb +176 -0
  147. data/lib/active_cached_resource/caching_strategies/active_support_cache.rb +31 -0
  148. data/lib/active_cached_resource/caching_strategies/base.rb +114 -0
  149. data/lib/active_cached_resource/caching_strategies/sql_cache.rb +32 -0
  150. data/lib/active_cached_resource/configuration.rb +50 -0
  151. data/lib/active_cached_resource/logger.rb +22 -0
  152. data/lib/active_cached_resource/model.rb +33 -0
  153. data/lib/active_cached_resource/version.rb +12 -0
  154. data/lib/active_cached_resource.rb +64 -0
  155. data/lib/activeresource/.gitignore +15 -0
  156. data/lib/activeresource/README.md +283 -0
  157. data/lib/activeresource/examples/performance.rb +72 -0
  158. data/lib/activeresource/lib/active_resource/active_job_serializer.rb +26 -0
  159. data/lib/activeresource/lib/active_resource/associations/builder/association.rb +32 -0
  160. data/lib/activeresource/lib/active_resource/associations/builder/belongs_to.rb +16 -0
  161. data/lib/activeresource/lib/active_resource/associations/builder/has_many.rb +14 -0
  162. data/lib/activeresource/lib/active_resource/associations/builder/has_one.rb +14 -0
  163. data/lib/activeresource/lib/active_resource/associations.rb +175 -0
  164. data/lib/activeresource/lib/active_resource/base.rb +1741 -0
  165. data/lib/activeresource/lib/active_resource/callbacks.rb +22 -0
  166. data/lib/activeresource/lib/active_resource/collection.rb +214 -0
  167. data/lib/activeresource/lib/active_resource/connection.rb +298 -0
  168. data/lib/activeresource/lib/active_resource/custom_methods.rb +129 -0
  169. data/lib/activeresource/lib/active_resource/exceptions.rb +98 -0
  170. data/lib/activeresource/lib/active_resource/formats/json_format.rb +28 -0
  171. data/lib/activeresource/lib/active_resource/formats/xml_format.rb +27 -0
  172. data/lib/activeresource/lib/active_resource/formats.rb +24 -0
  173. data/lib/activeresource/lib/active_resource/http_mock.rb +386 -0
  174. data/lib/activeresource/lib/active_resource/inheriting_hash.rb +34 -0
  175. data/lib/activeresource/lib/active_resource/log_subscriber.rb +26 -0
  176. data/lib/activeresource/lib/active_resource/railtie.rb +31 -0
  177. data/lib/activeresource/lib/active_resource/reflection.rb +78 -0
  178. data/lib/activeresource/lib/active_resource/schema.rb +60 -0
  179. data/lib/activeresource/lib/active_resource/singleton.rb +111 -0
  180. data/lib/activeresource/lib/active_resource/threadsafe_attributes.rb +65 -0
  181. data/lib/activeresource/lib/active_resource/validations.rb +176 -0
  182. data/lib/activeresource/lib/active_resource.rb +49 -0
  183. data/lib/activeresource/lib/activeresource.rb +3 -0
  184. data/lib/activeresource/test/abstract_unit.rb +153 -0
  185. data/lib/activeresource/test/cases/active_job_serializer_test.rb +53 -0
  186. data/lib/activeresource/test/cases/association_test.rb +104 -0
  187. data/lib/activeresource/test/cases/associations/builder/belongs_to_test.rb +42 -0
  188. data/lib/activeresource/test/cases/associations/builder/has_many_test.rb +28 -0
  189. data/lib/activeresource/test/cases/associations/builder/has_one_test.rb +28 -0
  190. data/lib/activeresource/test/cases/authorization_test.rb +276 -0
  191. data/lib/activeresource/test/cases/base/custom_methods_test.rb +155 -0
  192. data/lib/activeresource/test/cases/base/equality_test.rb +53 -0
  193. data/lib/activeresource/test/cases/base/load_test.rb +249 -0
  194. data/lib/activeresource/test/cases/base/schema_test.rb +428 -0
  195. data/lib/activeresource/test/cases/base_errors_test.rb +129 -0
  196. data/lib/activeresource/test/cases/base_test.rb +1622 -0
  197. data/lib/activeresource/test/cases/callbacks_test.rb +155 -0
  198. data/lib/activeresource/test/cases/collection_test.rb +172 -0
  199. data/lib/activeresource/test/cases/connection_test.rb +357 -0
  200. data/lib/activeresource/test/cases/finder_test.rb +217 -0
  201. data/lib/activeresource/test/cases/format_test.rb +137 -0
  202. data/lib/activeresource/test/cases/http_mock_test.rb +213 -0
  203. data/lib/activeresource/test/cases/inheritence_test.rb +19 -0
  204. data/lib/activeresource/test/cases/inheriting_hash_test.rb +25 -0
  205. data/lib/activeresource/test/cases/log_subscriber_test.rb +63 -0
  206. data/lib/activeresource/test/cases/reflection_test.rb +65 -0
  207. data/lib/activeresource/test/cases/validations_test.rb +78 -0
  208. data/lib/activeresource/test/fixtures/address.rb +20 -0
  209. data/lib/activeresource/test/fixtures/beast.rb +16 -0
  210. data/lib/activeresource/test/fixtures/comment.rb +5 -0
  211. data/lib/activeresource/test/fixtures/customer.rb +5 -0
  212. data/lib/activeresource/test/fixtures/inventory.rb +14 -0
  213. data/lib/activeresource/test/fixtures/person.rb +15 -0
  214. data/lib/activeresource/test/fixtures/pet.rb +6 -0
  215. data/lib/activeresource/test/fixtures/post.rb +5 -0
  216. data/lib/activeresource/test/fixtures/product.rb +11 -0
  217. data/lib/activeresource/test/fixtures/project.rb +19 -0
  218. data/lib/activeresource/test/fixtures/proxy.rb +6 -0
  219. data/lib/activeresource/test/fixtures/sound.rb +11 -0
  220. data/lib/activeresource/test/fixtures/street_address.rb +6 -0
  221. data/lib/activeresource/test/fixtures/subscription_plan.rb +7 -0
  222. data/lib/activeresource/test/fixtures/weather.rb +21 -0
  223. data/lib/activeresource/test/setter_trap.rb +28 -0
  224. data/lib/activeresource/test/singleton_test.rb +138 -0
  225. data/lib/activeresource/test/threadsafe_attributes_test.rb +91 -0
  226. data/lib/generators/active_cached_resource/install_generator.rb +31 -0
  227. data/lib/generators/active_cached_resource/templates/migration.erb +16 -0
  228. data/sorbet/config +4 -0
  229. data/sorbet/rbi/annotations/.gitattributes +1 -0
  230. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  231. data/sorbet/rbi/annotations/activesupport.rbi +457 -0
  232. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  233. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  234. data/sorbet/rbi/dsl/.gitattributes +1 -0
  235. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  236. data/sorbet/rbi/gems/.gitattributes +1 -0
  237. data/sorbet/rbi/gems/actioncable@8.0.0.rbi +252 -0
  238. data/sorbet/rbi/gems/actionmailbox@8.0.0.rbi +9 -0
  239. data/sorbet/rbi/gems/actionmailer@8.0.0.rbi +9 -0
  240. data/sorbet/rbi/gems/actionpack@8.0.0.rbi +20909 -0
  241. data/sorbet/rbi/gems/actiontext@8.0.0.rbi +9 -0
  242. data/sorbet/rbi/gems/actionview@8.0.0.rbi +16207 -0
  243. data/sorbet/rbi/gems/activejob@8.0.0.rbi +9 -0
  244. data/sorbet/rbi/gems/activemodel-serializers-xml@1.0.3.rbi +166 -0
  245. data/sorbet/rbi/gems/activemodel@8.0.0.rbi +6857 -0
  246. data/sorbet/rbi/gems/activerecord@8.0.0.rbi +42896 -0
  247. data/sorbet/rbi/gems/activeresource@6.1.4.rbi +3944 -0
  248. data/sorbet/rbi/gems/activestorage@8.0.0.rbi +9 -0
  249. data/sorbet/rbi/gems/activesupport@8.0.0.rbi +21251 -0
  250. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  251. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  252. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  253. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +78 -0
  254. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  255. data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
  256. data/sorbet/rbi/gems/byebug@11.1.3.rbi +3607 -0
  257. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
  258. data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +11645 -0
  259. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  260. data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
  261. data/sorbet/rbi/gems/date@3.4.0.rbi +75 -0
  262. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1131 -0
  263. data/sorbet/rbi/gems/docile@1.4.1.rbi +377 -0
  264. data/sorbet/rbi/gems/drb@2.2.1.rbi +1347 -0
  265. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  266. data/sorbet/rbi/gems/globalid@1.2.1.rbi +9 -0
  267. data/sorbet/rbi/gems/i18n@1.14.6.rbi +2359 -0
  268. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  269. data/sorbet/rbi/gems/json@2.8.2.rbi +1901 -0
  270. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  271. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +240 -0
  272. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  273. data/sorbet/rbi/gems/loofah@2.23.1.rbi +1081 -0
  274. data/sorbet/rbi/gems/mail@2.8.1.rbi +9 -0
  275. data/sorbet/rbi/gems/marcel@1.0.4.rbi +9 -0
  276. data/sorbet/rbi/gems/method_source@1.1.0.rbi +304 -0
  277. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  278. data/sorbet/rbi/gems/minitest@5.25.2.rbi +1547 -0
  279. data/sorbet/rbi/gems/net-imap@0.5.1.rbi +9 -0
  280. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
  281. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
  282. data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +9 -0
  283. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  284. data/sorbet/rbi/gems/nio4r@2.7.4.rbi +9 -0
  285. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  286. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  287. data/sorbet/rbi/gems/parser@3.3.6.0.rbi +5519 -0
  288. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  289. data/sorbet/rbi/gems/pry-byebug@3.10.1.rbi +1151 -0
  290. data/sorbet/rbi/gems/pry@0.14.2.rbi +10076 -0
  291. data/sorbet/rbi/gems/psych@5.2.0.rbi +1785 -0
  292. data/sorbet/rbi/gems/racc@1.8.1.rbi +162 -0
  293. data/sorbet/rbi/gems/rack-session@2.0.0.rbi +727 -0
  294. data/sorbet/rbi/gems/rack-test@2.1.0.rbi +747 -0
  295. data/sorbet/rbi/gems/rack@3.1.8.rbi +4905 -0
  296. data/sorbet/rbi/gems/rackup@2.2.1.rbi +230 -0
  297. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +758 -0
  298. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +785 -0
  299. data/sorbet/rbi/gems/rails@8.0.0.rbi +9 -0
  300. data/sorbet/rbi/gems/railties@8.0.0.rbi +6287 -0
  301. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  302. data/sorbet/rbi/gems/rake@13.2.1.rbi +3091 -0
  303. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  304. data/sorbet/rbi/gems/rdoc@6.8.1.rbi +12572 -0
  305. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  306. data/sorbet/rbi/gems/reline@0.5.12.rbi +2416 -0
  307. data/sorbet/rbi/gems/rexml@3.3.9.rbi +4858 -0
  308. data/sorbet/rbi/gems/rspec-core@3.13.2.rbi +11287 -0
  309. data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
  310. data/sorbet/rbi/gems/rspec-mocks@3.13.2.rbi +5341 -0
  311. data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +1630 -0
  312. data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
  313. data/sorbet/rbi/gems/rubocop-ast@1.36.1.rbi +7303 -0
  314. data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
  315. data/sorbet/rbi/gems/rubocop@1.65.1.rbi +58170 -0
  316. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  317. data/sorbet/rbi/gems/securerandom@0.3.2.rbi +395 -0
  318. data/sorbet/rbi/gems/simplecov-html@0.13.1.rbi +225 -0
  319. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  320. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  321. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  322. data/sorbet/rbi/gems/standard-custom@1.0.2.rbi +9 -0
  323. data/sorbet/rbi/gems/standard-performance@1.4.0.rbi +9 -0
  324. data/sorbet/rbi/gems/standard@1.40.0.rbi +929 -0
  325. data/sorbet/rbi/gems/stringio@3.1.2.rbi +9 -0
  326. data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3597 -0
  327. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  328. data/sorbet/rbi/gems/timeout@0.4.2.rbi +151 -0
  329. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  330. data/sorbet/rbi/gems/unicode-display_width@2.6.0.rbi +66 -0
  331. data/sorbet/rbi/gems/uri@1.0.2.rbi +2377 -0
  332. data/sorbet/rbi/gems/useragent@0.16.10.rbi +9 -0
  333. data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +9 -0
  334. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
  335. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  336. data/sorbet/rbi/gems/yard@0.9.37.rbi +18504 -0
  337. data/sorbet/rbi/gems/zeitwerk@2.7.1.rbi +9 -0
  338. data/sorbet/tapioca/config.yml +13 -0
  339. data/sorbet/tapioca/require.rb +12 -0
  340. metadata +543 -0
@@ -0,0 +1,929 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `standard` gem.
5
+ # Please instead update this file by running `bin/tapioca gem standard`.
6
+
7
+
8
+ # source://standard//lib/standard/rubocop/ext.rb#1
9
+ module RuboCop; end
10
+
11
+ # source://standard//lib/standard/rubocop/ext.rb#17
12
+ class RuboCop::CommentConfig
13
+ # @return [CommentConfig] a new instance of CommentConfig
14
+ #
15
+ # source://standard//lib/standard/rubocop/ext.rb#20
16
+ def initialize(processed_source); end
17
+
18
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#63
19
+ def comment_only_line?(line_number); end
20
+
21
+ # source://forwardable/1.3.3/forwardable.rb#231
22
+ def config(*args, **_arg1, &block); end
23
+
24
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#51
25
+ def cop_disabled_line_ranges; end
26
+
27
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#39
28
+ def cop_enabled_at_line?(cop, line_number); end
29
+
30
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#47
31
+ def cop_opted_in?(cop); end
32
+
33
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#55
34
+ def extra_enabled_comments; end
35
+
36
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#30
37
+ def processed_source; end
38
+
39
+ # source://forwardable/1.3.3/forwardable.rb#231
40
+ def registry(*args, **_arg1, &block); end
41
+
42
+ private
43
+
44
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#96
45
+ def analyze; end
46
+
47
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#124
48
+ def analyze_cop(analysis, directive); end
49
+
50
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#144
51
+ def analyze_disabled(analysis, directive); end
52
+
53
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#155
54
+ def analyze_rest(analysis, directive); end
55
+
56
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#135
57
+ def analyze_single_line(analysis, directive); end
58
+
59
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#164
60
+ def cop_line_ranges(analysis); end
61
+
62
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#170
63
+ def each_directive; end
64
+
65
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#69
66
+ def extra_enabled_comments_with_names(extras:, names:); end
67
+
68
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#190
69
+ def handle_enable_all(directive, names, extras); end
70
+
71
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#204
72
+ def handle_switch(directive, names, extras); end
73
+
74
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#115
75
+ def inject_disabled_cops_directives(analyses); end
76
+
77
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#183
78
+ def non_comment_token_line_numbers; end
79
+
80
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#34
81
+ def old_initialize(processed_source); end
82
+
83
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#83
84
+ def opt_in_cops; end
85
+
86
+ # source://rubocop/1.65.1/lib/rubocop/comment_config.rb#179
87
+ def qualified_cop_name(cop_name); end
88
+ end
89
+
90
+ module RuboCop::Cop; end
91
+ module RuboCop::Cop::Lint; end
92
+
93
+ # source://standard//lib/standard/rubocop/ext.rb#2
94
+ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
95
+ # source://standard//lib/standard/rubocop/ext.rb#4
96
+ def message(_); end
97
+
98
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
99
+ def on_if(node); end
100
+
101
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
102
+ def on_until(node); end
103
+
104
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
105
+ def on_while(node); end
106
+
107
+ private
108
+
109
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#82
110
+ def allowed_construct?(asgn_node); end
111
+
112
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#86
113
+ def conditional_assignment?(asgn_node); end
114
+
115
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#90
116
+ def skip_children?(asgn_node); end
117
+
118
+ # source://rubocop/1.65.1/lib/rubocop/cop/lint/assignment_in_condition.rb#96
119
+ def traverse_node(node, &block); end
120
+ end
121
+
122
+ # source://standard//lib/standard/rubocop/ext.rb#9
123
+ class RuboCop::DirectiveComment
124
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#32
125
+ def initialize(comment, cop_registry = T.unsafe(nil)); end
126
+
127
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#82
128
+ def all_cops?; end
129
+
130
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30
131
+ def comment; end
132
+
133
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#87
134
+ def cop_names; end
135
+
136
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30
137
+ def cop_registry; end
138
+
139
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30
140
+ def cops; end
141
+
142
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#93
143
+ def department_names; end
144
+
145
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#107
146
+ def directive_count; end
147
+
148
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#62
149
+ def disabled?; end
150
+
151
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#77
152
+ def disabled_all?; end
153
+
154
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#67
155
+ def enabled?; end
156
+
157
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#72
158
+ def enabled_all?; end
159
+
160
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#98
161
+ def in_directive_department?(cop); end
162
+
163
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#112
164
+ def line_number; end
165
+
166
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#44
167
+ def match?(cop_names); end
168
+
169
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#57
170
+ def match_captures; end
171
+
172
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#30
173
+ def mode; end
174
+
175
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#103
176
+ def overridden_by_department?(cop); end
177
+
178
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#48
179
+ def range; end
180
+
181
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#39
182
+ def single_line?; end
183
+
184
+ private
185
+
186
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#133
187
+ def all_cop_names; end
188
+
189
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#137
190
+ def cop_names_for_department(department); end
191
+
192
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#129
193
+ def department?(name); end
194
+
195
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#142
196
+ def exclude_lint_department_cops(cops); end
197
+
198
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#122
199
+ def parsed_cop_names; end
200
+
201
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#118
202
+ def splitted_cops_string; end
203
+
204
+ class << self
205
+ # source://rubocop/1.65.1/lib/rubocop/directive_comment.rb#26
206
+ def before_comment(line); end
207
+ end
208
+ end
209
+
210
+ # source://standard//lib/standard/rubocop/ext.rb#11
211
+ RuboCop::DirectiveComment::DIRECTIVE_COMMENT_REGEXP = T.let(T.unsafe(nil), Regexp)
212
+
213
+ # source://standard//lib/standard.rb#4
214
+ module Standard; end
215
+
216
+ # source://standard//lib/standard/builds_config.rb#8
217
+ class Standard::BuildsConfig
218
+ # @return [BuildsConfig] a new instance of BuildsConfig
219
+ #
220
+ # source://standard//lib/standard/builds_config.rb#9
221
+ def initialize; end
222
+
223
+ # source://standard//lib/standard/builds_config.rb#16
224
+ def call(argv, search_path = T.unsafe(nil)); end
225
+ end
226
+
227
+ # source://standard//lib/standard/cli.rb#5
228
+ class Standard::Cli
229
+ # @return [Cli] a new instance of Cli
230
+ #
231
+ # source://standard//lib/standard/cli.rb#6
232
+ def initialize(argv); end
233
+
234
+ # source://standard//lib/standard/cli.rb#12
235
+ def run; end
236
+ end
237
+
238
+ # source://standard//lib/standard/builds_config.rb#6
239
+ class Standard::Config < ::Struct
240
+ # Returns the value of attribute paths
241
+ #
242
+ # @return [Object] the current value of paths
243
+ def paths; end
244
+
245
+ # Sets the attribute paths
246
+ #
247
+ # @param value [Object] the value to set the attribute paths to.
248
+ # @return [Object] the newly set value
249
+ def paths=(_); end
250
+
251
+ # Returns the value of attribute rubocop_config_store
252
+ #
253
+ # @return [Object] the current value of rubocop_config_store
254
+ def rubocop_config_store; end
255
+
256
+ # Sets the attribute rubocop_config_store
257
+ #
258
+ # @param value [Object] the value to set the attribute rubocop_config_store to.
259
+ # @return [Object] the newly set value
260
+ def rubocop_config_store=(_); end
261
+
262
+ # Returns the value of attribute rubocop_options
263
+ #
264
+ # @return [Object] the current value of rubocop_options
265
+ def rubocop_options; end
266
+
267
+ # Sets the attribute rubocop_options
268
+ #
269
+ # @param value [Object] the value to set the attribute rubocop_options to.
270
+ # @return [Object] the newly set value
271
+ def rubocop_options=(_); end
272
+
273
+ # Returns the value of attribute runner
274
+ #
275
+ # @return [Object] the current value of runner
276
+ def runner; end
277
+
278
+ # Sets the attribute runner
279
+ #
280
+ # @param value [Object] the value to set the attribute runner to.
281
+ # @return [Object] the newly set value
282
+ def runner=(_); end
283
+
284
+ class << self
285
+ def [](*_arg0); end
286
+ def inspect; end
287
+ def keyword_init?; end
288
+ def members; end
289
+ def new(*_arg0); end
290
+ end
291
+ end
292
+
293
+ # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#3
294
+ class Standard::CreatesConfigStore
295
+ # @return [CreatesConfigStore] a new instance of CreatesConfigStore
296
+ #
297
+ # source://standard//lib/standard/creates_config_store.rb#10
298
+ def initialize; end
299
+
300
+ # source://standard//lib/standard/creates_config_store.rb#18
301
+ def call(standard_config); end
302
+ end
303
+
304
+ # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#4
305
+ class Standard::CreatesConfigStore::AssignsRubocopYaml
306
+ # source://standard//lib/standard/creates_config_store/assigns_rubocop_yaml.rb#5
307
+ def call(config_store, standard_config); end
308
+ end
309
+
310
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#2
311
+ class Standard::CreatesConfigStore::ConfiguresIgnoredPaths
312
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#14
313
+ def call(options_config, standard_config); end
314
+
315
+ private
316
+
317
+ # @return [Boolean]
318
+ #
319
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#41
320
+ def absolute?(path); end
321
+
322
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#33
323
+ def absolutify(config_root, path); end
324
+
325
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#28
326
+ def ignored_patterns(standard_config); end
327
+ end
328
+
329
+ # source://standard//lib/standard/creates_config_store/configures_ignored_paths.rb#3
330
+ Standard::CreatesConfigStore::ConfiguresIgnoredPaths::DEFAULT_IGNORES = T.let(T.unsafe(nil), Array)
331
+
332
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#5
333
+ class Standard::CreatesConfigStore::MergesUserConfigExtensions
334
+ # @return [MergesUserConfigExtensions] a new instance of MergesUserConfigExtensions
335
+ #
336
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#24
337
+ def initialize; end
338
+
339
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#28
340
+ def call(options_config, standard_config); end
341
+ end
342
+
343
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#6
344
+ class Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin < ::LintRoller::Plugin
345
+ # @return [ExtendConfigPlugin] a new instance of ExtendConfigPlugin
346
+ #
347
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#7
348
+ def initialize(path); end
349
+
350
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#11
351
+ def about; end
352
+
353
+ # source://standard//lib/standard/creates_config_store/merges_user_config_extensions.rb#15
354
+ def rules(context); end
355
+ end
356
+
357
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#2
358
+ class Standard::CreatesConfigStore::SetsTargetRubyVersion
359
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#12
360
+ def call(options_config, standard_config); end
361
+
362
+ private
363
+
364
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#20
365
+ def min_target_ruby_version_supported(desired_target_ruby_version); end
366
+
367
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#31
368
+ def normalize_version(version); end
369
+ end
370
+
371
+ # This is minimum version that Rubocop can parse, not the minimum
372
+ # version it can run on (e.g. TargetRubyVersion). See the following
373
+ # for more details:
374
+ #
375
+ # https://docs.rubocop.org/rubocop/configuration.html#setting-the-target-ruby-version
376
+ #
377
+ # https://github.com/rubocop/rubocop/blob/master/lib/rubocop/target_ruby.rb
378
+ #
379
+ # source://standard//lib/standard/creates_config_store/sets_target_ruby_version.rb#10
380
+ Standard::CreatesConfigStore::SetsTargetRubyVersion::MIN_TARGET_RUBY_VERSION = T.let(T.unsafe(nil), String)
381
+
382
+ # source://standard//lib/standard/file_finder.rb#4
383
+ class Standard::FileFinder
384
+ # source://standard//lib/standard/file_finder.rb#5
385
+ def call(name, search_path); end
386
+ end
387
+
388
+ # source://standard//lib/standard/formatter.rb#5
389
+ class Standard::Formatter < ::RuboCop::Formatter::BaseFormatter
390
+ # source://standard//lib/standard/formatter.rb#18
391
+ def file_finished(file, offenses); end
392
+
393
+ # source://standard//lib/standard/formatter.rb#37
394
+ def finished(_inspected_files); end
395
+
396
+ # source://standard//lib/standard/formatter.rb#10
397
+ def started(_target_files); end
398
+
399
+ # source://standard//lib/standard/formatter.rb#30
400
+ def track_stats(offenses); end
401
+
402
+ private
403
+
404
+ # source://standard//lib/standard/formatter.rb#106
405
+ def determine_run_mode; end
406
+
407
+ # source://standard//lib/standard/formatter.rb#114
408
+ def fixable_error_message(command); end
409
+
410
+ # source://standard//lib/standard/formatter.rb#92
411
+ def path_to(file); end
412
+
413
+ # source://standard//lib/standard/formatter.rb#96
414
+ def potential_fix_mode; end
415
+
416
+ # source://standard//lib/standard/formatter.rb#52
417
+ def print_fix_suggestion; end
418
+
419
+ # source://standard//lib/standard/formatter.rb#44
420
+ def print_header_once; end
421
+
422
+ # source://standard//lib/standard/formatter.rb#82
423
+ def print_todo_congratulations; end
424
+
425
+ # source://standard//lib/standard/formatter.rb#66
426
+ def print_todo_warning; end
427
+ end
428
+
429
+ # source://standard//lib/standard/formatter.rb#6
430
+ Standard::Formatter::STANDARD_GREETING = T.let(T.unsafe(nil), String)
431
+
432
+ # source://standard//lib/standard/loads_runner.rb#9
433
+ class Standard::LoadsRunner
434
+ # source://standard//lib/standard/loads_runner.rb#19
435
+ def call(command); end
436
+ end
437
+
438
+ # source://standard//lib/standard/loads_runner.rb#10
439
+ Standard::LoadsRunner::RUNNERS = T.let(T.unsafe(nil), Hash)
440
+
441
+ # source://standard//lib/standard/loads_yaml_config.rb#7
442
+ class Standard::LoadsYamlConfig
443
+ # source://standard//lib/standard/loads_yaml_config.rb#8
444
+ def call(standard_yaml_path, todo_yaml_path); end
445
+
446
+ private
447
+
448
+ # source://standard//lib/standard/loads_yaml_config.rb#57
449
+ def arrayify(object); end
450
+
451
+ # source://standard//lib/standard/loads_yaml_config.rb#25
452
+ def construct_config(yaml_path, standard_yaml, todo_path, todo_yaml); end
453
+
454
+ # source://standard//lib/standard/loads_yaml_config.rb#47
455
+ def expand_ignore_config(ignore_config); end
456
+
457
+ # source://standard//lib/standard/loads_yaml_config.rb#17
458
+ def load_standard_yaml(yaml_path); end
459
+
460
+ # source://standard//lib/standard/loads_yaml_config.rb#41
461
+ def normalized_ruby_version(version); end
462
+ end
463
+
464
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#2
465
+ module Standard::Lsp; end
466
+
467
+ # source://standard//lib/standard/lsp/diagnostic.rb#3
468
+ class Standard::Lsp::Diagnostic
469
+ # @return [Diagnostic] a new instance of Diagnostic
470
+ #
471
+ # source://standard//lib/standard/lsp/diagnostic.rb#16
472
+ def initialize(document_encoding, offense, uri, cop_class); end
473
+
474
+ # source://standard//lib/standard/lsp/diagnostic.rb#23
475
+ def to_lsp_code_actions; end
476
+
477
+ # source://standard//lib/standard/lsp/diagnostic.rb#32
478
+ def to_lsp_diagnostic(config); end
479
+
480
+ private
481
+
482
+ # source://standard//lib/standard/lsp/diagnostic.rb#77
483
+ def autocorrect_action; end
484
+
485
+ # source://standard//lib/standard/lsp/diagnostic.rb#69
486
+ def code_description(config); end
487
+
488
+ # @return [Boolean]
489
+ #
490
+ # source://standard//lib/standard/lsp/diagnostic.rb#163
491
+ def correctable?; end
492
+
493
+ # source://standard//lib/standard/lsp/diagnostic.rb#108
494
+ def disable_line_action; end
495
+
496
+ # source://standard//lib/standard/lsp/diagnostic.rb#167
497
+ def ensure_uri_scheme(uri); end
498
+
499
+ # source://standard//lib/standard/lsp/diagnostic.rb#148
500
+ def length_of_line(line); end
501
+
502
+ # source://standard//lib/standard/lsp/diagnostic.rb#126
503
+ def line_disable_comment; end
504
+
505
+ # source://standard//lib/standard/lsp/diagnostic.rb#59
506
+ def message; end
507
+
508
+ # source://standard//lib/standard/lsp/diagnostic.rb#96
509
+ def offense_replacements; end
510
+
511
+ # source://standard//lib/standard/lsp/diagnostic.rb#65
512
+ def severity; end
513
+ end
514
+
515
+ # source://standard//lib/standard/lsp/diagnostic.rb#4
516
+ Standard::Lsp::Diagnostic::Constant = LanguageServer::Protocol::Constant
517
+
518
+ # source://standard//lib/standard/lsp/diagnostic.rb#5
519
+ Standard::Lsp::Diagnostic::Interface = LanguageServer::Protocol::Interface
520
+
521
+ # source://standard//lib/standard/lsp/diagnostic.rb#7
522
+ Standard::Lsp::Diagnostic::RUBOCOP_TO_LSP_SEVERITY = T.let(T.unsafe(nil), Hash)
523
+
524
+ # source://standard//lib/standard/lsp/kills_server.rb#3
525
+ class Standard::Lsp::KillsServer
526
+ # source://standard//lib/standard/lsp/kills_server.rb#4
527
+ def call(&blk); end
528
+ end
529
+
530
+ # source://standard//lib/standard/lsp/logger.rb#3
531
+ class Standard::Lsp::Logger
532
+ # @return [Logger] a new instance of Logger
533
+ #
534
+ # source://standard//lib/standard/lsp/logger.rb#4
535
+ def initialize(prefix: T.unsafe(nil)); end
536
+
537
+ # source://standard//lib/standard/lsp/logger.rb#9
538
+ def puts(message); end
539
+
540
+ # source://standard//lib/standard/lsp/logger.rb#13
541
+ def puts_once(message); end
542
+ end
543
+
544
+ # source://standard//lib/standard/lsp/server.rb#8
545
+ Standard::Lsp::Proto = LanguageServer::Protocol
546
+
547
+ # source://standard//lib/standard/lsp/routes.rb#5
548
+ class Standard::Lsp::Routes
549
+ # @return [Routes] a new instance of Routes
550
+ #
551
+ # source://standard//lib/standard/lsp/routes.rb#6
552
+ def initialize(writer, logger, standardizer); end
553
+
554
+ # source://standard//lib/standard/lsp/routes.rb#19
555
+ def for(name); end
556
+
557
+ # source://standard//lib/standard/lsp/routes.rb#26
558
+ def handle_initialize(request); end
559
+
560
+ # source://standard//lib/standard/lsp/routes.rb#38
561
+ def handle_initialized(request); end
562
+
563
+ # source://standard//lib/standard/lsp/routes.rb#129
564
+ def handle_method_missing(request); end
565
+
566
+ # source://standard//lib/standard/lsp/routes.rb#42
567
+ def handle_shutdown(request); end
568
+
569
+ # source://standard//lib/standard/lsp/routes.rb#121
570
+ def handle_unsupported_method(request, method = T.unsafe(nil)); end
571
+
572
+ private
573
+
574
+ # source://standard//lib/standard/lsp/routes.rb#162
575
+ def diagnostic(file_uri, text); end
576
+
577
+ # source://standard//lib/standard/lsp/routes.rb#141
578
+ def format_file(file_uri); end
579
+
580
+ # source://standard//lib/standard/lsp/routes.rb#137
581
+ def uri_to_path(uri); end
582
+
583
+ class << self
584
+ # source://standard//lib/standard/lsp/routes.rb#15
585
+ def handle(name, &block); end
586
+ end
587
+ end
588
+
589
+ # source://standard//lib/standard/lsp/routes.rb#75
590
+ Standard::Lsp::Routes::CONFIGURATION_FILE_PATTERNS = T.let(T.unsafe(nil), Array)
591
+
592
+ # source://standard//lib/standard/lsp/server.rb#9
593
+ Standard::Lsp::SEV = LanguageServer::Protocol::Constant::DiagnosticSeverity
594
+
595
+ # source://standard//lib/standard/lsp/server.rb#11
596
+ class Standard::Lsp::Server
597
+ # @return [Server] a new instance of Server
598
+ #
599
+ # source://standard//lib/standard/lsp/server.rb#12
600
+ def initialize(config); end
601
+
602
+ # source://standard//lib/standard/lsp/server.rb#20
603
+ def start; end
604
+ end
605
+
606
+ # source://standard//lib/standard/lsp/standardizer.rb#6
607
+ class Standard::Lsp::Standardizer
608
+ # @return [Standardizer] a new instance of Standardizer
609
+ #
610
+ # source://standard//lib/standard/lsp/standardizer.rb#7
611
+ def initialize(config); end
612
+
613
+ # source://standard//lib/standard/lsp/standardizer.rb#15
614
+ def format(path, text); end
615
+
616
+ # source://standard//lib/standard/lsp/standardizer.rb#20
617
+ def offenses(path, text, document_encoding = T.unsafe(nil)); end
618
+ end
619
+
620
+ # Originally lifted from:
621
+ # https://github.com/Shopify/ruby-lsp/blob/8d4c17efce4e8ecc8e7c557ab2981db6b22c0b6d/lib/ruby_lsp/requests/support/rubocop_runner.rb#L20
622
+ #
623
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#5
624
+ class Standard::Lsp::StdinRubocopRunner < ::RuboCop::Runner
625
+ # @return [StdinRubocopRunner] a new instance of StdinRubocopRunner
626
+ #
627
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#21
628
+ def initialize(config); end
629
+
630
+ # Returns the value of attribute config_for_working_directory.
631
+ #
632
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#10
633
+ def config_for_working_directory; end
634
+
635
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#52
636
+ def formatted_source; end
637
+
638
+ # Returns the value of attribute offenses.
639
+ #
640
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#8
641
+ def offenses; end
642
+
643
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#35
644
+ def run(path, contents); end
645
+
646
+ private
647
+
648
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#58
649
+ def file_finished(_file, offenses); end
650
+ end
651
+
652
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#6
653
+ class Standard::Lsp::StdinRubocopRunner::ConfigurationError < ::StandardError; end
654
+
655
+ # source://standard//lib/standard/lsp/stdin_rubocop_runner.rb#12
656
+ Standard::Lsp::StdinRubocopRunner::DEFAULT_RUBOCOP_OPTIONS = T.let(T.unsafe(nil), Hash)
657
+
658
+ # source://standard//lib/standard/merges_settings.rb#4
659
+ class Standard::MergesSettings
660
+ # source://standard//lib/standard/merges_settings.rb#7
661
+ def call(argv, standard_yaml); end
662
+
663
+ private
664
+
665
+ # source://standard//lib/standard/merges_settings.rb#42
666
+ def determine_command(argv); end
667
+
668
+ # source://standard//lib/standard/merges_settings.rb#58
669
+ def merge(standard_yaml, standard_cli_flags, rubocop_cli_flags); end
670
+
671
+ # source://standard//lib/standard/merges_settings.rb#27
672
+ def parse_standard_argv(argv); end
673
+
674
+ # source://standard//lib/standard/merges_settings.rb#21
675
+ def separate_argv(argv); end
676
+
677
+ # source://standard//lib/standard/merges_settings.rb#69
678
+ def without_banned(rubocop_cli_flags); end
679
+ end
680
+
681
+ # source://standard//lib/standard/merges_settings.rb#5
682
+ class Standard::MergesSettings::Settings < ::Struct
683
+ # Returns the value of attribute options
684
+ #
685
+ # @return [Object] the current value of options
686
+ def options; end
687
+
688
+ # Sets the attribute options
689
+ #
690
+ # @param value [Object] the value to set the attribute options to.
691
+ # @return [Object] the newly set value
692
+ def options=(_); end
693
+
694
+ # Returns the value of attribute paths
695
+ #
696
+ # @return [Object] the current value of paths
697
+ def paths; end
698
+
699
+ # Sets the attribute paths
700
+ #
701
+ # @param value [Object] the value to set the attribute paths to.
702
+ # @return [Object] the newly set value
703
+ def paths=(_); end
704
+
705
+ # Returns the value of attribute runner
706
+ #
707
+ # @return [Object] the current value of runner
708
+ def runner; end
709
+
710
+ # Sets the attribute runner
711
+ #
712
+ # @param value [Object] the value to set the attribute runner to.
713
+ # @return [Object] the newly set value
714
+ def runner=(_); end
715
+
716
+ class << self
717
+ def [](*_arg0); end
718
+ def inspect; end
719
+ def keyword_init?; end
720
+ def members; end
721
+ def new(*_arg0); end
722
+ end
723
+ end
724
+
725
+ # source://standard//lib/standard/plugin.rb#2
726
+ module Standard::Plugin; end
727
+
728
+ # source://standard//lib/standard/plugin/combines_plugin_configs.rb#3
729
+ class Standard::Plugin::CombinesPluginConfigs
730
+ # @return [CombinesPluginConfigs] a new instance of CombinesPluginConfigs
731
+ #
732
+ # source://standard//lib/standard/plugin/combines_plugin_configs.rb#4
733
+ def initialize; end
734
+
735
+ # source://standard//lib/standard/plugin/combines_plugin_configs.rb#9
736
+ def call(options_config, standard_config); end
737
+ end
738
+
739
+ # source://standard//lib/standard/plugin/creates_runner_context.rb#3
740
+ class Standard::Plugin::CreatesRunnerContext
741
+ # source://standard//lib/standard/plugin/creates_runner_context.rb#4
742
+ def call(standard_config); end
743
+ end
744
+
745
+ # source://standard//lib/standard/plugin/determines_class_constant.rb#3
746
+ class Standard::Plugin::DeterminesClassConstant
747
+ # source://standard//lib/standard/plugin/determines_class_constant.rb#4
748
+ def call(plugin_name, user_config); end
749
+
750
+ private
751
+
752
+ # source://standard//lib/standard/plugin/determines_class_constant.rb#41
753
+ def require_plugin(require_path); end
754
+ end
755
+
756
+ # source://standard//lib/standard/plugin/initializes_plugins.rb#3
757
+ class Standard::Plugin::InitializesPlugins
758
+ # @return [InitializesPlugins] a new instance of InitializesPlugins
759
+ #
760
+ # source://standard//lib/standard/plugin/initializes_plugins.rb#4
761
+ def initialize; end
762
+
763
+ # source://standard//lib/standard/plugin/initializes_plugins.rb#9
764
+ def call(plugins); end
765
+ end
766
+
767
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#3
768
+ class Standard::Plugin::MergesPluginsIntoRubocopConfig
769
+ # @return [MergesPluginsIntoRubocopConfig] a new instance of MergesPluginsIntoRubocopConfig
770
+ #
771
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#24
772
+ def initialize; end
773
+
774
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#28
775
+ def call(options_config, standard_config, plugins, permit_merging:); end
776
+
777
+ private
778
+
779
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#126
780
+ def all_cop_keys_previously_configured_by_plugins(options_config, permit_merging:); end
781
+
782
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#152
783
+ def blank_rubocop_config(example_config); end
784
+
785
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#37
786
+ def combine_rubocop_configs(options_config, runner_context, plugins, permit_merging:); end
787
+
788
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#56
789
+ def config_for_plugin(plugin, runner_context); end
790
+
791
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#96
792
+ def delete_already_configured_keys!(configured_keys, next_config, dont_delete_keys: T.unsafe(nil)); end
793
+
794
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#156
795
+ def except(hash_or_config, keys); end
796
+
797
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#134
798
+ def fake_out_rubocop_default_configuration(options_config); end
799
+
800
+ # Always deletes nil entries, always overwrites arrays
801
+ # This is a simplified version of rubocop's ConfigLoader#merge:
802
+ # https://github.com/rubocop/rubocop/blob/v1.48.1/lib/rubocop/config_loader_resolver.rb#L98
803
+ #
804
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#163
805
+ def merge(old_hash, new_hash); end
806
+
807
+ # This is how we ensure "first-in wins": plugins can override AllCops settings that are
808
+ # set by RuboCop's default configuration, but once a plugin sets an AllCop setting, they
809
+ # have exclusive first-in-wins rights to that setting.
810
+ #
811
+ # The one exception to this are array fields, because we don't want to
812
+ # overwrite the AllCops defaults but rather munge the arrays (`existing |
813
+ # new`) to allow plugins to add to the array, for example Include and
814
+ # Exclude paths and patterns.
815
+ #
816
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#77
817
+ def merge_all_cop_settings(existing_all_cops, new_all_cops, already_configured_keys); end
818
+
819
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#104
820
+ def merge_config_into_all_cops!(options_config, plugin_config); end
821
+
822
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#110
823
+ def merge_config_into_standard!(options_config, plugin_config, permit_merging:); end
824
+
825
+ # Avoid a warning that would otherwise be emitted by any plugin that set TargetRailsVersion
826
+ # because it's not a default AllCops key specified in RuboCop's embedded default config.
827
+ #
828
+ # See: https://github.com/rubocop/rubocop/pull/11833
829
+ #
830
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#146
831
+ def set_target_rails_version_on_all_cops_because_its_technically_not_allowed!(options_config); end
832
+ end
833
+
834
+ # AllCops keys that standard does not allow to be set by plugins
835
+ #
836
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#10
837
+ Standard::Plugin::MergesPluginsIntoRubocopConfig::DISALLOWED_ALLCOPS_KEYS = T.let(T.unsafe(nil), Array)
838
+
839
+ # Blank configuration object to merge plugins into, with only the following spared:
840
+ # - AllCops keys set to avoid warnings about unknown properties
841
+ # - Lint/Syntax must be set to avoid a nil error when verifying inherited configs
842
+ #
843
+ # source://standard//lib/standard/plugin/merges_plugins_into_rubocop_config.rb#7
844
+ Standard::Plugin::MergesPluginsIntoRubocopConfig::MANDATORY_RUBOCOP_CONFIG_KEYS = T.let(T.unsafe(nil), Array)
845
+
846
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#3
847
+ class Standard::Plugin::StandardizesConfiguredPlugins
848
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#19
849
+ def call(plugins); end
850
+
851
+ private
852
+
853
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#25
854
+ def normalize_config_shape(plugins); end
855
+ end
856
+
857
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#10
858
+ Standard::Plugin::StandardizesConfiguredPlugins::BUILT_INS = T.let(T.unsafe(nil), Array)
859
+
860
+ # source://standard//lib/standard/plugin/standardizes_configured_plugins.rb#4
861
+ Standard::Plugin::StandardizesConfiguredPlugins::DEFAULT_PLUGIN_CONFIG = T.let(T.unsafe(nil), Hash)
862
+
863
+ # source://standard//lib/standard/railtie.rb#4
864
+ class Standard::Railtie < ::Rails::Railtie; end
865
+
866
+ # source://standard//lib/standard/resolves_yaml_option.rb#4
867
+ class Standard::ResolvesYamlOption
868
+ # source://standard//lib/standard/resolves_yaml_option.rb#5
869
+ def call(argv, search_path, option_name, default_file); end
870
+
871
+ private
872
+
873
+ # source://standard//lib/standard/resolves_yaml_option.rb#22
874
+ def argv_value_for(argv, option_name); end
875
+
876
+ # source://standard//lib/standard/resolves_yaml_option.rb#11
877
+ def search_argv(argv, option_name); end
878
+ end
879
+
880
+ # source://standard//lib/standard/runners/rubocop.rb#4
881
+ module Standard::Runners; end
882
+
883
+ # source://standard//lib/standard/runners/genignore.rb#7
884
+ class Standard::Runners::Genignore
885
+ # source://standard//lib/standard/runners/genignore.rb#8
886
+ def call(config); end
887
+ end
888
+
889
+ # source://standard//lib/standard/runners/help.rb#5
890
+ class Standard::Runners::Help
891
+ # source://standard//lib/standard/runners/help.rb#6
892
+ def call(config); end
893
+ end
894
+
895
+ # source://standard//lib/standard/runners/lsp.rb#5
896
+ class Standard::Runners::Lsp
897
+ # source://standard//lib/standard/runners/lsp.rb#6
898
+ def call(config); end
899
+ end
900
+
901
+ # source://standard//lib/standard/runners/rubocop.rb#5
902
+ class Standard::Runners::Rubocop
903
+ # source://standard//lib/standard/runners/rubocop.rb#6
904
+ def call(config); end
905
+
906
+ private
907
+
908
+ # This is a workaround for an issue with how `parallel` and `stdin`
909
+ # interact when invoked in this way. See:
910
+ # https://github.com/standardrb/standard/issues/536
911
+ #
912
+ # source://standard//lib/standard/runners/rubocop.rb#23
913
+ def without_parallelizing_in_stdin_mode(options); end
914
+ end
915
+
916
+ # source://standard//lib/standard/runners/verbose_version.rb#5
917
+ class Standard::Runners::VerboseVersion
918
+ # source://standard//lib/standard/runners/verbose_version.rb#6
919
+ def call(config); end
920
+ end
921
+
922
+ # source://standard//lib/standard/runners/version.rb#3
923
+ class Standard::Runners::Version
924
+ # source://standard//lib/standard/runners/version.rb#4
925
+ def call(config); end
926
+ end
927
+
928
+ # source://standard//lib/standard/version.rb#2
929
+ Standard::VERSION = T.let(T.unsafe(nil), Gem::Version)