acts-as-messageable 0.5.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/.github/dependabot.yml +8 -0
  3. data/.github/workflows/test.yml +152 -0
  4. data/.rubocop.yml +14 -1
  5. data/.rubocop_todo.yml +49 -7
  6. data/.ruby-version +1 -0
  7. data/Appraisals +11 -0
  8. data/Dockerfile +2 -1
  9. data/Gemfile +19 -13
  10. data/Gemfile.lock +186 -97
  11. data/README.md +2 -3
  12. data/Rakefile +6 -1
  13. data/VERSION +1 -1
  14. data/acts-as-messageable.gemspec +200 -40
  15. data/bin/tapioca +29 -0
  16. data/docker-compose.yml +82 -71
  17. data/gemfiles/rails_3.2.gemfile +14 -9
  18. data/gemfiles/rails_4.2.gemfile +14 -9
  19. data/gemfiles/rails_5.2.gemfile +14 -9
  20. data/gemfiles/rails_6.0.gemfile +14 -9
  21. data/gemfiles/rails_7.0.gemfile +29 -0
  22. data/gemfiles/rails_master.gemfile +15 -9
  23. data/lib/acts-as-messageable.rb +1 -0
  24. data/lib/acts_as_messageable/message.rb +62 -5
  25. data/lib/acts_as_messageable/model.rb +71 -20
  26. data/lib/acts_as_messageable/rails3.rb +27 -2
  27. data/lib/acts_as_messageable/rails4.rb +31 -4
  28. data/lib/acts_as_messageable/rails6.rb +34 -2
  29. data/lib/acts_as_messageable/railtie.rb +1 -0
  30. data/lib/acts_as_messageable/relation.rb +18 -2
  31. data/lib/acts_as_messageable/scopes.rb +11 -0
  32. data/lib/acts_as_messageable.rb +18 -0
  33. data/lib/generators/acts_as_messageable/migration/migration_generator.rb +4 -0
  34. data/lib/generators/acts_as_messageable/migration/templates/migration.rb +1 -0
  35. data/lib/generators/acts_as_messageable/migration/templates/migration_indexes.rb +1 -0
  36. data/lib/generators/acts_as_messageable/migration/templates/migration_opened_as_datetime.rb +1 -0
  37. data/lib/generators/acts_as_messageable/migration/templates/migration_permanent.rb +1 -0
  38. data/sorbet/config +4 -0
  39. data/sorbet/rbi/annotations/actionpack.rbi +428 -0
  40. data/sorbet/rbi/annotations/actionview.rbi +77 -0
  41. data/sorbet/rbi/annotations/activerecord.rbi +18 -0
  42. data/sorbet/rbi/annotations/activesupport.rbi +52 -0
  43. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  44. data/sorbet/rbi/annotations/railties.rbi +58 -0
  45. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  46. data/sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi +23 -0
  47. data/sorbet/rbi/dsl/abstract_controller/caching.rbi +30 -0
  48. data/sorbet/rbi/dsl/abstract_controller/callbacks.rbi +23 -0
  49. data/sorbet/rbi/dsl/abstract_controller/helpers.rbi +23 -0
  50. data/sorbet/rbi/dsl/abstract_controller/rendering.rbi +9 -0
  51. data/sorbet/rbi/dsl/abstract_controller/url_for.rbi +23 -0
  52. data/sorbet/rbi/dsl/action_controller/caching.rbi +29 -0
  53. data/sorbet/rbi/dsl/action_controller/conditional_get.rbi +23 -0
  54. data/sorbet/rbi/dsl/action_controller/content_security_policy.rbi +31 -0
  55. data/sorbet/rbi/dsl/action_controller/data_streaming.rbi +9 -0
  56. data/sorbet/rbi/dsl/action_controller/etag_with_flash.rbi +24 -0
  57. data/sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi +30 -0
  58. data/sorbet/rbi/dsl/action_controller/flash.rbi +19 -0
  59. data/sorbet/rbi/dsl/action_controller/form_builder.rbi +19 -0
  60. data/sorbet/rbi/dsl/action_controller/helpers.rbi +36 -0
  61. data/sorbet/rbi/dsl/action_controller/params_wrapper.rbi +23 -0
  62. data/sorbet/rbi/dsl/action_controller/redirecting.rbi +24 -0
  63. data/sorbet/rbi/dsl/action_controller/renderers/all.rbi +24 -0
  64. data/sorbet/rbi/dsl/action_controller/renderers.rbi +23 -0
  65. data/sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi +31 -0
  66. data/sorbet/rbi/dsl/action_controller/rescue.rbi +24 -0
  67. data/sorbet/rbi/dsl/action_controller/test_case/behavior.rbi +24 -0
  68. data/sorbet/rbi/dsl/action_controller/url_for.rbi +24 -0
  69. data/sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi +23 -0
  70. data/sorbet/rbi/dsl/action_view/helpers/form_helper.rbi +10 -0
  71. data/sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi +10 -0
  72. data/sorbet/rbi/dsl/action_view/helpers/text_helper.rbi +9 -0
  73. data/sorbet/rbi/dsl/action_view/helpers.rbi +10 -0
  74. data/sorbet/rbi/dsl/action_view/layouts.rbi +24 -0
  75. data/sorbet/rbi/dsl/action_view/rendering.rbi +9 -0
  76. data/sorbet/rbi/dsl/active_model/attribute_methods.rbi +27 -0
  77. data/sorbet/rbi/dsl/active_model/attributes.rbi +34 -0
  78. data/sorbet/rbi/dsl/active_model/dirty.rbi +28 -0
  79. data/sorbet/rbi/dsl/active_model/serializers/json.rbi +22 -0
  80. data/sorbet/rbi/dsl/active_model/validations/callbacks.rbi +22 -0
  81. data/sorbet/rbi/dsl/active_model/validations.rbi +27 -0
  82. data/sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi +38 -0
  83. data/sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi +32 -0
  84. data/sorbet/rbi/dsl/active_record/attribute_methods.rbi +53 -0
  85. data/sorbet/rbi/dsl/active_record/attributes.rbi +19 -0
  86. data/sorbet/rbi/dsl/active_record/callbacks.rbi +22 -0
  87. data/sorbet/rbi/dsl/active_record/core.rbi +55 -0
  88. data/sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi +23 -0
  89. data/sorbet/rbi/dsl/active_record/inheritance.rbi +27 -0
  90. data/sorbet/rbi/dsl/active_record/integration.rbi +32 -0
  91. data/sorbet/rbi/dsl/active_record/locking/optimistic.rbi +22 -0
  92. data/sorbet/rbi/dsl/active_record/model_schema.rbi +52 -0
  93. data/sorbet/rbi/dsl/active_record/nested_attributes.rbi +22 -0
  94. data/sorbet/rbi/dsl/active_record/readonly_attributes.rbi +19 -0
  95. data/sorbet/rbi/dsl/active_record/reflection.rbi +32 -0
  96. data/sorbet/rbi/dsl/active_record/scoping/default.rbi +23 -0
  97. data/sorbet/rbi/dsl/active_record/scoping.rbi +23 -0
  98. data/sorbet/rbi/dsl/active_record/serialization.rbi +22 -0
  99. data/sorbet/rbi/dsl/active_record/signed_id.rbi +22 -0
  100. data/sorbet/rbi/dsl/active_record/test_fixtures.rbi +58 -0
  101. data/sorbet/rbi/dsl/active_record/timestamp.rbi +23 -0
  102. data/sorbet/rbi/dsl/active_record/validations.rbi +28 -0
  103. data/sorbet/rbi/dsl/active_support/actionable_error.rbi +23 -0
  104. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  105. data/sorbet/rbi/dsl/active_support/rescuable.rbi +23 -0
  106. data/sorbet/rbi/dsl/active_support/testing/file_fixtures.rbi +22 -0
  107. data/sorbet/rbi/gems/actionpack@7.0.4.3.rbi +19265 -0
  108. data/sorbet/rbi/gems/actionview@7.0.4.3.rbi +15482 -0
  109. data/sorbet/rbi/gems/activemodel@7.0.4.3.rbi +6025 -0
  110. data/sorbet/rbi/gems/activerecord@7.0.4.3.rbi +37852 -0
  111. data/sorbet/rbi/gems/activesupport@7.0.4.3.rbi +18788 -0
  112. data/sorbet/rbi/gems/addressable@2.4.0.rbi +8 -0
  113. data/sorbet/rbi/gems/ancestry@4.3.2.rbi +631 -0
  114. data/sorbet/rbi/gems/appraisal@2.4.1.rbi +584 -0
  115. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  116. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  117. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  118. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  119. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  120. data/sorbet/rbi/gems/coveralls_reborn@0.27.0.rbi +8 -0
  121. data/sorbet/rbi/gems/crass@1.0.6.rbi +622 -0
  122. data/sorbet/rbi/gems/descendants_tracker@0.0.4.rbi +8 -0
  123. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  124. data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
  125. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  126. data/sorbet/rbi/gems/faraday@0.9.2.rbi +964 -0
  127. data/sorbet/rbi/gems/git@1.11.0.rbi +2700 -0
  128. data/sorbet/rbi/gems/github_api@0.16.0.rbi +8 -0
  129. data/sorbet/rbi/gems/hashie@5.0.0.rbi +8 -0
  130. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  131. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  132. data/sorbet/rbi/gems/jeweler@2.3.9.rbi +1591 -0
  133. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  134. data/sorbet/rbi/gems/jwt@2.5.0.rbi +8 -0
  135. data/sorbet/rbi/gems/loofah@2.19.1.rbi +904 -0
  136. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  137. data/sorbet/rbi/gems/mime-types@2.99.3.rbi +8 -0
  138. data/sorbet/rbi/gems/minitest@5.18.0.rbi +1491 -0
  139. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  140. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +8 -0
  141. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +8 -0
  142. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  143. data/sorbet/rbi/gems/nokogiri@1.14.2.rbi +7244 -0
  144. data/sorbet/rbi/gems/oauth2@1.4.8.rbi +8 -0
  145. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  146. data/sorbet/rbi/gems/parser@3.2.2.0.rbi +7253 -0
  147. data/sorbet/rbi/gems/pg@1.4.6.rbi +2574 -0
  148. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +8 -0
  149. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  150. data/sorbet/rbi/gems/psych@4.0.6.rbi +1819 -0
  151. data/sorbet/rbi/gems/racc@1.6.2.rbi +155 -0
  152. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +943 -0
  153. data/sorbet/rbi/gems/rack@2.2.6.4.rbi +5659 -0
  154. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +455 -0
  155. data/sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi +685 -0
  156. data/sorbet/rbi/gems/railties@7.0.4.3.rbi +4553 -0
  157. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
  158. data/sorbet/rbi/gems/rake@13.0.6.rbi +2959 -0
  159. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  160. data/sorbet/rbi/gems/rbs@2.8.0.rbi +8 -0
  161. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +1078 -0
  162. data/sorbet/rbi/gems/rdoc@6.5.0.rbi +12441 -0
  163. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +8 -0
  164. data/sorbet/rbi/gems/rexml@3.2.5.rbi +8 -0
  165. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10798 -0
  166. data/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi +8090 -0
  167. data/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi +5296 -0
  168. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
  169. data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
  170. data/sorbet/rbi/gems/rubocop-ast@1.28.0.rbi +8 -0
  171. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +8 -0
  172. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +8 -0
  173. data/sorbet/rbi/gems/semver2@3.4.2.rbi +8 -0
  174. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
  175. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +8 -0
  176. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  177. data/sorbet/rbi/gems/sorbet-coerce@0.7.0.rbi +8 -0
  178. data/sorbet/rbi/gems/spoom@1.2.1.rbi +2503 -0
  179. data/sorbet/rbi/gems/sqlite3@1.6.2.rbi +1673 -0
  180. data/sorbet/rbi/gems/stringio@3.0.2.rbi +8 -0
  181. data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
  182. data/sorbet/rbi/gems/tapioca@0.11.4-a4319794491b54d9db1c06df7f3bdffcdf7bf684.rbi +3260 -0
  183. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
  184. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  185. data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +8 -0
  186. data/sorbet/rbi/gems/timecop@0.9.6.rbi +361 -0
  187. data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
  188. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  189. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +8 -0
  190. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
  191. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2553 -0
  192. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +428 -0
  193. data/sorbet/rbi/gems/yard@0.9.28.rbi +17954 -0
  194. data/sorbet/rbi/gems/zeitwerk@2.6.7.rbi +966 -0
  195. data/sorbet/rbi/models/acts-as-messageable/message.rbi +668 -0
  196. data/sorbet/rbi/models/acts-as-messageable/user.rbi +343 -0
  197. data/sorbet/rbi/rails-rbi/active_record_base.rbi +119 -0
  198. data/sorbet/rbi/rails-rbi/active_record_relation.rbi +180 -0
  199. data/sorbet/rbi/shims/activerecord.rbi +4 -0
  200. data/sorbet/rbi/shims/model.rbi +9 -0
  201. data/sorbet/tapioca/config.yml +10 -0
  202. data/sorbet/tapioca/pre_require.rb +5 -0
  203. data/sorbet/tapioca/require.rb +10 -0
  204. data/spec/acts_as_messageable_spec.rb +7 -4
  205. data/spec/custom_class_spec.rb +1 -0
  206. data/spec/custom_required_spec.rb +8 -4
  207. data/spec/group_messages_spec.rb +1 -0
  208. data/spec/migrations_spec.rb +2 -1
  209. data/spec/spec_helper.rb +19 -9
  210. data/spec/support/admin.rb +3 -0
  211. data/spec/support/custom_message.rb +3 -0
  212. data/spec/support/custom_message_uuid.rb +1 -0
  213. data/spec/support/custom_search_user.rb +3 -0
  214. data/spec/support/men.rb +1 -0
  215. data/spec/support/send_message.rb +8 -1
  216. data/spec/support/table_schema.rb +7 -6
  217. data/spec/support/user.rb +3 -0
  218. data/spec/support/uuid_user.rb +3 -0
  219. data/tasks/types.rake +46 -0
  220. metadata +268 -11
  221. data/.travis.yml +0 -55
@@ -0,0 +1,428 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `yard-sorbet` gem.
5
+ # Please instead update this file by running `bin/tapioca gem yard-sorbet`.
6
+
7
+ class YARD::Handlers::Ruby::ClassHandler < ::YARD::Handlers::Ruby::Base
8
+ include ::YARDSorbet::Handlers::StructClassHandler
9
+ end
10
+
11
+ # Types are documentation
12
+ #
13
+ # source://yard-sorbet//lib/yard-sorbet/version.rb#5
14
+ module YARDSorbet; end
15
+
16
+ # Extract & re-add directives to a docstring
17
+ #
18
+ # source://yard-sorbet//lib/yard-sorbet/directives.rb#6
19
+ module YARDSorbet::Directives
20
+ class << self
21
+ # source://yard-sorbet//lib/yard-sorbet/directives.rb#21
22
+ sig { params(docstring: ::String, directives: T::Array[::String]).void }
23
+ def add_directives(docstring, directives); end
24
+
25
+ # source://yard-sorbet//lib/yard-sorbet/directives.rb#10
26
+ sig { params(docstring: T.nilable(::String)).returns([::YARD::Docstring, T::Array[::String]]) }
27
+ def extract_directives(docstring); end
28
+ end
29
+ end
30
+
31
+ # Custom YARD Handlers
32
+ #
33
+ # @see https://rubydoc.info/gems/yard/YARD/Handlers/Base YARD Base Handler documentation
34
+ #
35
+ # source://yard-sorbet//lib/yard-sorbet/handlers.rb#7
36
+ module YARDSorbet::Handlers; end
37
+
38
+ # Apllies an `@abstract` tag to `abstract!`/`interface!` modules (if not alerady present).
39
+ #
40
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#7
41
+ class YARDSorbet::Handlers::AbstractDSLHandler < ::YARD::Handlers::Ruby::Base
42
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#21
43
+ sig { void }
44
+ def process; end
45
+ end
46
+
47
+ # Extra text for class namespaces
48
+ #
49
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#18
50
+ YARDSorbet::Handlers::AbstractDSLHandler::CLASS_TAG_TEXT = T.let(T.unsafe(nil), String)
51
+
52
+ # The text accompanying the `@abstract` tag.
53
+ #
54
+ # @see https://github.com/lsegal/yard/blob/main/templates/default/docstring/html/abstract.erb The `@abstract` tag template
55
+ #
56
+ # source://yard-sorbet//lib/yard-sorbet/handlers/abstract_dsl_handler.rb#16
57
+ YARDSorbet::Handlers::AbstractDSLHandler::TAG_TEXT = T.let(T.unsafe(nil), String)
58
+
59
+ # Handle `enums` calls, registering enum values as constants
60
+ #
61
+ # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#7
62
+ class YARDSorbet::Handlers::EnumsHandler < ::YARD::Handlers::Ruby::Base
63
+ # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#14
64
+ sig { void }
65
+ def process; end
66
+
67
+ private
68
+
69
+ # source://yard-sorbet//lib/yard-sorbet/handlers/enums_handler.rb#29
70
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
71
+ def const_assign_node?(node); end
72
+ end
73
+
74
+ # Extends any modules included via `mixes_in_class_methods`
75
+ #
76
+ # @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
77
+ #
78
+ # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#9
79
+ class YARDSorbet::Handlers::IncludeHandler < ::YARD::Handlers::Ruby::Base
80
+ # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#16
81
+ sig { void }
82
+ def process; end
83
+
84
+ private
85
+
86
+ # source://yard-sorbet//lib/yard-sorbet/handlers/include_handler.rb#28
87
+ sig { returns(::YARD::CodeObjects::NamespaceObject) }
88
+ def included_in; end
89
+ end
90
+
91
+ # Tracks modules that invoke `mixes_in_class_methods` for use in {IncludeHandler}
92
+ #
93
+ # @see https://sorbet.org/docs/abstract#interfaces-and-the-included-hook Sorbet `mixes_in_class_methods` documentation
94
+ #
95
+ # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#9
96
+ class YARDSorbet::Handlers::MixesInClassMethodsHandler < ::YARD::Handlers::Ruby::Base
97
+ # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#23
98
+ sig { void }
99
+ def process; end
100
+
101
+ class << self
102
+ # source://yard-sorbet//lib/yard-sorbet/handlers/mixes_in_class_methods_handler.rb#18
103
+ sig { params(code_obj: ::String).returns(T.nilable(T::Array[::String])) }
104
+ def mixed_in_class_methods(code_obj); end
105
+ end
106
+ end
107
+
108
+ # A YARD Handler for Sorbet type declarations
109
+ #
110
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#7
111
+ class YARDSorbet::Handlers::SigHandler < ::YARD::Handlers::Ruby::Base
112
+ # Swap the method definition docstring and the sig docstring.
113
+ # Parse relevant parts of the `sig` and include them as well.
114
+ #
115
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#24
116
+ sig { void }
117
+ def process; end
118
+
119
+ private
120
+
121
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#73
122
+ sig { params(method_objects: T::Array[::YARD::CodeObjects::MethodObject]).void }
123
+ def document_attr_methods(method_objects); end
124
+
125
+ # An attr* sig can be merged into a previous attr* docstring if it is the only parameter passed to the attr*
126
+ # declaration. This is to avoid needing to rewrite the source code to separate merged and unmerged attr*
127
+ # declarations.
128
+ #
129
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#60
130
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Boolean) }
131
+ def merged_into_attr?(attr_node); end
132
+
133
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#78
134
+ sig do
135
+ params(
136
+ attach_to: T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode),
137
+ docstring: T.nilable(::String),
138
+ include_params: T::Boolean
139
+ ).void
140
+ end
141
+ def parse_node(attach_to, docstring, include_params: T.unsafe(nil)); end
142
+
143
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#99
144
+ sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
145
+ def parse_params(node, docstring); end
146
+
147
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#109
148
+ sig { params(node: ::YARD::Parser::Ruby::AstNode, docstring: ::YARD::Docstring).void }
149
+ def parse_return(node, docstring); end
150
+
151
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#87
152
+ sig { params(docstring: ::YARD::Docstring, include_params: T::Boolean).void }
153
+ def parse_sig(docstring, include_params: T.unsafe(nil)); end
154
+
155
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#50
156
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).void }
157
+ def process_attr(attr_node); end
158
+
159
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#36
160
+ sig { params(def_node: ::YARD::Parser::Ruby::MethodDefinitionNode).void }
161
+ def process_def(def_node); end
162
+ end
163
+
164
+ # YARD types that can have docstrings attached to them
165
+ #
166
+ # source://yard-sorbet//lib/yard-sorbet/handlers/sig_handler.rb#14
167
+ YARDSorbet::Handlers::SigHandler::Documentable = T.type_alias { T.any(::YARD::CodeObjects::MethodObject, ::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
168
+
169
+ # Class-level handler that folds all `const` and `prop` declarations into the constructor documentation
170
+ # this needs to be injected as a module otherwise the default Class handler will overwrite documentation
171
+ #
172
+ # @note this module is included in `YARD::Handlers::Ruby::ClassHandler`
173
+ #
174
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#10
175
+ module YARDSorbet::Handlers::StructClassHandler
176
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#14
177
+ sig { void }
178
+ def process; end
179
+
180
+ private
181
+
182
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#50
183
+ sig do
184
+ params(
185
+ object: ::YARD::CodeObjects::MethodObject,
186
+ props: T::Array[::YARDSorbet::TStructProp],
187
+ docstring: ::YARD::Docstring,
188
+ directives: T::Array[::String]
189
+ ).void
190
+ end
191
+ def decorate_t_struct_init(object, props, docstring, directives); end
192
+
193
+ # Create a virtual `initialize` method with all the `prop`/`const` arguments
194
+ #
195
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#30
196
+ sig { params(props: T::Array[::YARDSorbet::TStructProp], class_ns: ::YARD::CodeObjects::ClassObject).void }
197
+ def process_t_struct_props(props, class_ns); end
198
+
199
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_class_handler.rb#60
200
+ sig { params(props: T::Array[::YARDSorbet::TStructProp]).returns(T::Array[[::String, T.nilable(::String)]]) }
201
+ def to_object_parameters(props); end
202
+ end
203
+
204
+ # Handles all `const`/`prop` calls, creating accessor methods, and compiles them for later usage at the class level
205
+ # in creating a constructor
206
+ #
207
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#8
208
+ class YARDSorbet::Handlers::StructPropHandler < ::YARD::Handlers::Ruby::Base
209
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#15
210
+ sig { void }
211
+ def process; end
212
+
213
+ private
214
+
215
+ # Add the source and docstring to the method object
216
+ #
217
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#28
218
+ sig { params(object: ::YARD::CodeObjects::MethodObject, prop: ::YARDSorbet::TStructProp).void }
219
+ def decorate_object(object, prop); end
220
+
221
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#38
222
+ sig { returns(T::Boolean) }
223
+ def immutable?; end
224
+
225
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#44
226
+ sig { params(kwd: ::String).returns(T.nilable(::String)) }
227
+ def kw_arg(kwd); end
228
+
229
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#49
230
+ sig { params(name: ::String).returns(::YARDSorbet::TStructProp) }
231
+ def make_prop(name); end
232
+
233
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#60
234
+ sig { returns(T::Array[::YARD::Parser::Ruby::AstNode]) }
235
+ def params; end
236
+
237
+ # Register the field explicitly as an attribute.
238
+ #
239
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#66
240
+ sig { params(object: ::YARD::CodeObjects::MethodObject, name: ::String).void }
241
+ def register_attrs(object, name); end
242
+
243
+ # Store the prop for use in the constructor definition
244
+ #
245
+ # source://yard-sorbet//lib/yard-sorbet/handlers/struct_prop_handler.rb#74
246
+ sig { params(prop: ::YARDSorbet::TStructProp).void }
247
+ def update_state(prop); end
248
+ end
249
+
250
+ # Helper methods for working with `YARD` AST Nodes
251
+ #
252
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#6
253
+ module YARDSorbet::NodeUtils
254
+ class << self
255
+ # Traverse AST nodes in breadth-first order
256
+ #
257
+ # @note This will skip over some node types.
258
+ # @yield [YARD::Parser::Ruby::AstNode]
259
+ #
260
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#21
261
+ sig do
262
+ params(
263
+ node: ::YARD::Parser::Ruby::AstNode,
264
+ _blk: T.proc.params(n: ::YARD::Parser::Ruby::AstNode).void
265
+ ).void
266
+ end
267
+ def bfs_traverse(node, &_blk); end
268
+
269
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#32
270
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).void }
271
+ def delete_node(node); end
272
+
273
+ # Gets the node that a sorbet `sig` can be attached do, bypassing visisbility modifiers and the like
274
+ #
275
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#38
276
+ sig do
277
+ params(
278
+ node: ::YARD::Parser::Ruby::AstNode
279
+ ).returns(T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode))
280
+ end
281
+ def get_method_node(node); end
282
+
283
+ # Find and return the adjacent node (ascending)
284
+ #
285
+ # @raise [IndexError] if the node does not have an adjacent sibling (ascending)
286
+ #
287
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#45
288
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::YARD::Parser::Ruby::AstNode) }
289
+ def sibling_node(node); end
290
+
291
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#52
292
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Boolean) }
293
+ def sigable_node?(node); end
294
+
295
+ # @see https://github.com/lsegal/yard/blob/main/lib/yard/handlers/ruby/attribute_handler.rb YARD::Handlers::Ruby::AttributeHandler.validated_attribute_names
296
+ #
297
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#63
298
+ sig { params(attr_node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
299
+ def validated_attribute_names(attr_node); end
300
+ end
301
+ end
302
+
303
+ # Command node types that can have type signatures
304
+ #
305
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#10
306
+ YARDSorbet::NodeUtils::ATTRIBUTE_METHODS = T.let(T.unsafe(nil), Array)
307
+
308
+ # Skip these method contents during BFS node traversal, they can have their own nested types via `T.Proc`
309
+ #
310
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#12
311
+ YARDSorbet::NodeUtils::SKIP_METHOD_CONTENTS = T.let(T.unsafe(nil), Array)
312
+
313
+ # Node types that can have type signatures
314
+ #
315
+ # source://yard-sorbet//lib/yard-sorbet/node_utils.rb#14
316
+ YARDSorbet::NodeUtils::SigableNode = T.type_alias { T.any(::YARD::Parser::Ruby::MethodCallNode, ::YARD::Parser::Ruby::MethodDefinitionNode) }
317
+
318
+ # Translate `sig` type syntax to `YARD` type syntax.
319
+ #
320
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#6
321
+ module YARDSorbet::SigToYARD
322
+ class << self
323
+ # @see https://yardoc.org/types.html
324
+ #
325
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#23
326
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
327
+ def convert(node); end
328
+
329
+ private
330
+
331
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#61
332
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(::String) }
333
+ def build_generic_type(node); end
334
+
335
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#70
336
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
337
+ def convert_aref(node); end
338
+
339
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#82
340
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
341
+ def convert_array(node); end
342
+
343
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#90
344
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
345
+ def convert_collection(node); end
346
+
347
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#97
348
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
349
+ def convert_hash(node); end
350
+
351
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#105
352
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
353
+ def convert_list(node); end
354
+
355
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#31
356
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
357
+ def convert_node(node); end
358
+
359
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#43
360
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns(T::Array[::String]) }
361
+ def convert_node_type(node); end
362
+
363
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#110
364
+ sig { params(node: ::YARD::Parser::Ruby::MethodCallNode).returns(T::Array[::String]) }
365
+ def convert_t_method(node); end
366
+
367
+ # source://yard-sorbet//lib/yard-sorbet/sig_to_yard.rb#121
368
+ sig { params(node: ::YARD::Parser::Ruby::AstNode).returns([::String]) }
369
+ def convert_unknown(node); end
370
+ end
371
+ end
372
+
373
+ # Used to store the details of a `T::Struct` `prop` definition
374
+ #
375
+ # source://yard-sorbet//lib/yard-sorbet/t_struct_prop.rb#6
376
+ class YARDSorbet::TStructProp < ::T::Struct
377
+ const :default, T.nilable(::String)
378
+ const :doc, ::String
379
+ const :prop_name, ::String
380
+ const :source, ::String
381
+ const :types, T::Array[::String]
382
+
383
+ class << self
384
+ # source://sorbet-runtime/0.5.10751/lib/types/struct.rb#13
385
+ def inherited(s); end
386
+ end
387
+ end
388
+
389
+ # Helper methods for working with `YARD` tags
390
+ #
391
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#6
392
+ module YARDSorbet::TagUtils
393
+ class << self
394
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#16
395
+ sig do
396
+ params(
397
+ docstring: ::YARD::Docstring,
398
+ tag_name: ::String,
399
+ name: T.nilable(::String)
400
+ ).returns(T.nilable(::YARD::Tags::Tag))
401
+ end
402
+ def find_tag(docstring, tag_name, name); end
403
+
404
+ # Create or update a `YARD` tag with type information
405
+ #
406
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#30
407
+ sig do
408
+ params(
409
+ docstring: ::YARD::Docstring,
410
+ tag_name: ::String,
411
+ types: T.nilable(T::Array[::String]),
412
+ name: T.nilable(::String),
413
+ text: ::String
414
+ ).void
415
+ end
416
+ def upsert_tag(docstring, tag_name, types = T.unsafe(nil), name = T.unsafe(nil), text = T.unsafe(nil)); end
417
+ end
418
+ end
419
+
420
+ # The `void` return type, as a constant to reduce array allocations
421
+ #
422
+ # source://yard-sorbet//lib/yard-sorbet/tag_utils.rb#10
423
+ YARDSorbet::TagUtils::VOID_RETURN_TYPE = T.let(T.unsafe(nil), Array)
424
+
425
+ # {https://rubygems.org/gems/yard-sorbet Version history}
426
+ #
427
+ # source://yard-sorbet//lib/yard-sorbet/version.rb#7
428
+ YARDSorbet::VERSION = T.let(T.unsafe(nil), String)