konstruo 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/.rubocop.yml +22 -0
  4. data/.tool-versions +1 -0
  5. data/CHANGELOG.md +21 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +35 -0
  8. data/Rakefile +10 -0
  9. data/lib/konstruo/mapper.rb +120 -0
  10. data/lib/konstruo/version.rb +6 -0
  11. data/lib/konstruo.rb +18 -0
  12. data/sorbet/config +4 -0
  13. data/sorbet/rbi/annotations/.gitattributes +1 -0
  14. data/sorbet/rbi/annotations/actionmailer.rbi +10 -0
  15. data/sorbet/rbi/annotations/actionpack.rbi +430 -0
  16. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  17. data/sorbet/rbi/annotations/activejob.rbi +44 -0
  18. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  19. data/sorbet/rbi/annotations/activerecord.rbi +92 -0
  20. data/sorbet/rbi/annotations/activesupport.rbi +454 -0
  21. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  22. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  23. data/sorbet/rbi/annotations/railties.rbi +61 -0
  24. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  25. data/sorbet/rbi/dsl/.gitattributes +1 -0
  26. data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
  27. data/sorbet/rbi/gems/.gitattributes +1 -0
  28. data/sorbet/rbi/gems/actioncable@7.2.1.rbi +3096 -0
  29. data/sorbet/rbi/gems/actionmailbox@7.2.1.rbi +1832 -0
  30. data/sorbet/rbi/gems/actionmailer@7.2.1.rbi +2664 -0
  31. data/sorbet/rbi/gems/actionpack@7.2.1.rbi +20536 -0
  32. data/sorbet/rbi/gems/actiontext@7.2.1.rbi +1697 -0
  33. data/sorbet/rbi/gems/actionview@7.2.1.rbi +15752 -0
  34. data/sorbet/rbi/gems/activejob@7.2.1.rbi +2828 -0
  35. data/sorbet/rbi/gems/activemodel@7.2.1.rbi +6762 -0
  36. data/sorbet/rbi/gems/activerecord@7.2.1.rbi +41433 -0
  37. data/sorbet/rbi/gems/activestorage@7.2.1.rbi +3247 -0
  38. data/sorbet/rbi/gems/activesupport@7.2.1.rbi +21142 -0
  39. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  40. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  41. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +78 -0
  42. data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
  43. data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +11645 -0
  44. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  45. data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
  46. data/sorbet/rbi/gems/dashbrains-rubocop-config@1.0.4.rbi +9 -0
  47. data/sorbet/rbi/gems/date@3.3.4.rbi +75 -0
  48. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1131 -0
  49. data/sorbet/rbi/gems/drb@2.2.1.rbi +1347 -0
  50. data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
  51. data/sorbet/rbi/gems/globalid@1.2.1.rbi +749 -0
  52. data/sorbet/rbi/gems/i18n@1.14.5.rbi +2359 -0
  53. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  54. data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
  55. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  56. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  57. data/sorbet/rbi/gems/loofah@2.22.0.rbi +1081 -0
  58. data/sorbet/rbi/gems/mail@2.8.1.rbi +8658 -0
  59. data/sorbet/rbi/gems/marcel@1.0.4.rbi +239 -0
  60. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +173 -0
  61. data/sorbet/rbi/gems/minitest@5.25.1.rbi +1546 -0
  62. data/sorbet/rbi/gems/net-imap@0.4.16.rbi +10845 -0
  63. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +927 -0
  64. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
  65. data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +1228 -0
  66. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  67. data/sorbet/rbi/gems/nio4r@2.7.3.rbi +293 -0
  68. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  69. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  70. data/sorbet/rbi/gems/parser@3.3.5.0.rbi +5519 -0
  71. data/sorbet/rbi/gems/prism@1.0.0.rbi +35493 -0
  72. data/sorbet/rbi/gems/psych@5.1.2.rbi +1769 -0
  73. data/sorbet/rbi/gems/racc@1.8.1.rbi +162 -0
  74. data/sorbet/rbi/gems/rack-session@2.0.0.rbi +727 -0
  75. data/sorbet/rbi/gems/rack-test@2.1.0.rbi +747 -0
  76. data/sorbet/rbi/gems/rack@3.1.7.rbi +4902 -0
  77. data/sorbet/rbi/gems/rackup@2.1.0.rbi +390 -0
  78. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +758 -0
  79. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +785 -0
  80. data/sorbet/rbi/gems/rails@7.2.1.rbi +9 -0
  81. data/sorbet/rbi/gems/railties@7.2.1.rbi +3824 -0
  82. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  83. data/sorbet/rbi/gems/rake@13.2.1.rbi +3046 -0
  84. data/sorbet/rbi/gems/rbi@0.2.0.rbi +4105 -0
  85. data/sorbet/rbi/gems/rdoc@6.7.0.rbi +12721 -0
  86. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  87. data/sorbet/rbi/gems/reline@0.5.10.rbi +9 -0
  88. data/sorbet/rbi/gems/rspec-core@3.13.1.rbi +11012 -0
  89. data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
  90. data/sorbet/rbi/gems/rspec-mocks@3.13.1.rbi +5341 -0
  91. data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +1630 -0
  92. data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
  93. data/sorbet/rbi/gems/rubocop-ast@1.32.3.rbi +7446 -0
  94. data/sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi +9 -0
  95. data/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi +9 -0
  96. data/sorbet/rbi/gems/rubocop-graphql@1.5.4.rbi +9 -0
  97. data/sorbet/rbi/gems/rubocop-minitest@0.36.0.rbi +9 -0
  98. data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
  99. data/sorbet/rbi/gems/rubocop-rails@2.26.1.rbi +9 -0
  100. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  101. data/sorbet/rbi/gems/rubocop-rspec@3.0.5.rbi +9 -0
  102. data/sorbet/rbi/gems/rubocop-rspec_rails@2.30.0.rbi +9 -0
  103. data/sorbet/rbi/gems/rubocop-sorbet@0.8.5.rbi +9 -0
  104. data/sorbet/rbi/gems/rubocop@1.66.1.rbi +58268 -0
  105. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  106. data/sorbet/rbi/gems/securerandom@0.3.1.rbi +396 -0
  107. data/sorbet/rbi/gems/spoom@1.4.2.rbi +4932 -0
  108. data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
  109. data/sorbet/rbi/gems/tapioca@0.16.2.rbi +3581 -0
  110. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  111. data/sorbet/rbi/gems/timeout@0.4.1.rbi +149 -0
  112. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  113. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  114. data/sorbet/rbi/gems/useragent@0.16.10.rbi +9 -0
  115. data/sorbet/rbi/gems/webrick@1.8.1.rbi +2607 -0
  116. data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +993 -0
  117. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +121 -0
  118. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  119. data/sorbet/rbi/gems/yard@0.9.37.rbi +18570 -0
  120. data/sorbet/rbi/gems/zeitwerk@2.6.18.rbi +1051 -0
  121. data/sorbet/rbi/todo.rbi +6 -0
  122. data/sorbet/tapioca/config.yml +13 -0
  123. data/sorbet/tapioca/require.rb +9 -0
  124. data/tasks/bundle_update.rake +14 -0
  125. data/tasks/sorbet.rake +26 -0
  126. metadata +216 -0
@@ -0,0 +1,149 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `timeout` gem.
5
+ # Please instead update this file by running `bin/tapioca gem timeout`.
6
+
7
+
8
+ # source://timeout//lib/timeout.rb#25
9
+ module Timeout
10
+ private
11
+
12
+ # Perform an operation in a block, raising an error if it takes longer than
13
+ # +sec+ seconds to complete.
14
+ #
15
+ # +sec+:: Number of seconds to wait for the block to terminate. Any number
16
+ # may be used, including Floats to specify fractional seconds. A
17
+ # value of 0 or +nil+ will execute the block without any timeout.
18
+ # +klass+:: Exception Class to raise if the block fails to terminate
19
+ # in +sec+ seconds. Omitting will use the default, Timeout::Error
20
+ # +message+:: Error message to raise with Exception Class.
21
+ # Omitting will use the default, "execution expired"
22
+ #
23
+ # Returns the result of the block *if* the block completed before
24
+ # +sec+ seconds, otherwise throws an exception, based on the value of +klass+.
25
+ #
26
+ # The exception thrown to terminate the given block cannot be rescued inside
27
+ # the block unless +klass+ is given explicitly. However, the block can use
28
+ # ensure to prevent the handling of the exception. For that reason, this
29
+ # method cannot be relied on to enforce timeouts for untrusted blocks.
30
+ #
31
+ # If a scheduler is defined, it will be used to handle the timeout by invoking
32
+ # Scheduler#timeout_after.
33
+ #
34
+ # Note that this is both a method of module Timeout, so you can <tt>include
35
+ # Timeout</tt> into your classes so they have a #timeout method, as well as
36
+ # a module method, so you can call it directly as Timeout.timeout().
37
+ #
38
+ # source://timeout//lib/timeout.rb#169
39
+ def timeout(sec, klass = T.unsafe(nil), message = T.unsafe(nil), &block); end
40
+
41
+ class << self
42
+ # source://timeout//lib/timeout.rb#127
43
+ def ensure_timeout_thread_created; end
44
+
45
+ # Perform an operation in a block, raising an error if it takes longer than
46
+ # +sec+ seconds to complete.
47
+ #
48
+ # +sec+:: Number of seconds to wait for the block to terminate. Any number
49
+ # may be used, including Floats to specify fractional seconds. A
50
+ # value of 0 or +nil+ will execute the block without any timeout.
51
+ # +klass+:: Exception Class to raise if the block fails to terminate
52
+ # in +sec+ seconds. Omitting will use the default, Timeout::Error
53
+ # +message+:: Error message to raise with Exception Class.
54
+ # Omitting will use the default, "execution expired"
55
+ #
56
+ # Returns the result of the block *if* the block completed before
57
+ # +sec+ seconds, otherwise throws an exception, based on the value of +klass+.
58
+ #
59
+ # The exception thrown to terminate the given block cannot be rescued inside
60
+ # the block unless +klass+ is given explicitly. However, the block can use
61
+ # ensure to prevent the handling of the exception. For that reason, this
62
+ # method cannot be relied on to enforce timeouts for untrusted blocks.
63
+ #
64
+ # If a scheduler is defined, it will be used to handle the timeout by invoking
65
+ # Scheduler#timeout_after.
66
+ #
67
+ # Note that this is both a method of module Timeout, so you can <tt>include
68
+ # Timeout</tt> into your classes so they have a #timeout method, as well as
69
+ # a module method, so you can call it directly as Timeout.timeout().
70
+ #
71
+ # source://timeout//lib/timeout.rb#169
72
+ def timeout(sec, klass = T.unsafe(nil), message = T.unsafe(nil), &block); end
73
+
74
+ private
75
+
76
+ # source://timeout//lib/timeout.rb#97
77
+ def create_timeout_thread; end
78
+ end
79
+ end
80
+
81
+ # :stopdoc:
82
+ #
83
+ # source://timeout//lib/timeout.rb#50
84
+ Timeout::CONDVAR = T.let(T.unsafe(nil), Thread::ConditionVariable)
85
+
86
+ # Raised by Timeout.timeout when the block times out.
87
+ #
88
+ # source://timeout//lib/timeout.rb#36
89
+ class Timeout::Error < ::RuntimeError
90
+ class << self
91
+ # source://timeout//lib/timeout.rb#37
92
+ def handle_timeout(message); end
93
+ end
94
+ end
95
+
96
+ # Internal error raised to when a timeout is triggered.
97
+ #
98
+ # source://timeout//lib/timeout.rb#29
99
+ class Timeout::ExitException < ::Exception
100
+ # source://timeout//lib/timeout.rb#30
101
+ def exception(*_arg0); end
102
+ end
103
+
104
+ # We keep a private reference so that time mocking libraries won't break
105
+ # Timeout.
106
+ #
107
+ # source://timeout//lib/timeout.rb#139
108
+ Timeout::GET_TIME = T.let(T.unsafe(nil), Method)
109
+
110
+ # source://timeout//lib/timeout.rb#51
111
+ Timeout::QUEUE = T.let(T.unsafe(nil), Thread::Queue)
112
+
113
+ # source://timeout//lib/timeout.rb#52
114
+ Timeout::QUEUE_MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
115
+
116
+ # source://timeout//lib/timeout.rb#57
117
+ class Timeout::Request
118
+ # @return [Request] a new instance of Request
119
+ #
120
+ # source://timeout//lib/timeout.rb#60
121
+ def initialize(thread, timeout, exception_class, message); end
122
+
123
+ # Returns the value of attribute deadline.
124
+ #
125
+ # source://timeout//lib/timeout.rb#58
126
+ def deadline; end
127
+
128
+ # @return [Boolean]
129
+ #
130
+ # source://timeout//lib/timeout.rb#70
131
+ def done?; end
132
+
133
+ # @return [Boolean]
134
+ #
135
+ # source://timeout//lib/timeout.rb#76
136
+ def expired?(now); end
137
+
138
+ # source://timeout//lib/timeout.rb#89
139
+ def finished; end
140
+
141
+ # source://timeout//lib/timeout.rb#80
142
+ def interrupt; end
143
+ end
144
+
145
+ # source://timeout//lib/timeout.rb#53
146
+ Timeout::TIMEOUT_THREAD_MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
147
+
148
+ # source://timeout//lib/timeout.rb#26
149
+ Timeout::VERSION = T.let(T.unsafe(nil), String)