categoria 0.1.0.pre.beta0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +34 -0
  3. data/.ruby-version +1 -0
  4. data/CHANGELOG.md +5 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +33 -0
  7. data/Rakefile +12 -0
  8. data/categoria.gemspec +48 -0
  9. data/lib/categoria/version.rb +6 -0
  10. data/lib/categoria.rb +9 -0
  11. data/lib/generators/categoria/command_generator.rb +8 -0
  12. data/lib/generators/categoria/domain_generator.rb +35 -0
  13. data/lib/generators/categoria/model_generator.rb +8 -0
  14. data/lib/generators/categoria/templates/domain_module.rb.erb +6 -0
  15. data/sig/categoria.rbs +4 -0
  16. data/sorbet/config +4 -0
  17. data/sorbet/rbi/annotations/.gitattributes +1 -0
  18. data/sorbet/rbi/annotations/actionmailer.rbi +10 -0
  19. data/sorbet/rbi/annotations/actionpack.rbi +429 -0
  20. data/sorbet/rbi/annotations/actionview.rbi +75 -0
  21. data/sorbet/rbi/annotations/activejob.rbi +44 -0
  22. data/sorbet/rbi/annotations/activemodel.rbi +89 -0
  23. data/sorbet/rbi/annotations/activerecord.rbi +92 -0
  24. data/sorbet/rbi/annotations/activesupport.rbi +421 -0
  25. data/sorbet/rbi/annotations/globalid.rbi +30 -0
  26. data/sorbet/rbi/annotations/railties.rbi +61 -0
  27. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  28. data/sorbet/rbi/gems/.gitattributes +1 -0
  29. data/sorbet/rbi/gems/actioncable@7.1.3.3.rbi +9 -0
  30. data/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi +9 -0
  31. data/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi +9 -0
  32. data/sorbet/rbi/gems/actionpack@7.1.3.3.rbi +9 -0
  33. data/sorbet/rbi/gems/actiontext@7.1.3.3.rbi +9 -0
  34. data/sorbet/rbi/gems/actionview@7.1.3.3.rbi +9 -0
  35. data/sorbet/rbi/gems/activejob@7.1.3.3.rbi +9 -0
  36. data/sorbet/rbi/gems/activemodel@7.1.3.3.rbi +9 -0
  37. data/sorbet/rbi/gems/activerecord@7.1.3.3.rbi +9 -0
  38. data/sorbet/rbi/gems/activestorage@7.1.3.3.rbi +9 -0
  39. data/sorbet/rbi/gems/activesupport@7.1.3.3.rbi +11 -0
  40. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  41. data/sorbet/rbi/gems/base64@0.2.0.rbi +9 -0
  42. data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +9 -0
  43. data/sorbet/rbi/gems/builder@3.2.4.rbi +9 -0
  44. data/sorbet/rbi/gems/concurrent-ruby@1.3.1.rbi +9 -0
  45. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  46. data/sorbet/rbi/gems/crass@1.0.6.rbi +9 -0
  47. data/sorbet/rbi/gems/date@3.3.4.rbi +73 -0
  48. data/sorbet/rbi/gems/drb@2.2.1.rbi +9 -0
  49. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  50. data/sorbet/rbi/gems/globalid@1.2.1.rbi +9 -0
  51. data/sorbet/rbi/gems/i18n@1.14.5.rbi +9 -0
  52. data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
  53. data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
  54. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  55. data/sorbet/rbi/gems/loofah@2.22.0.rbi +9 -0
  56. data/sorbet/rbi/gems/mail@2.8.1.rbi +9 -0
  57. data/sorbet/rbi/gems/marcel@1.0.4.rbi +9 -0
  58. data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
  59. data/sorbet/rbi/gems/minitest@5.23.1.rbi +1555 -0
  60. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +9 -0
  61. data/sorbet/rbi/gems/net-imap@0.4.11.rbi +9 -0
  62. data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
  63. data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +282 -0
  64. data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +9 -0
  65. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  66. data/sorbet/rbi/gems/nio4r@2.7.3.rbi +9 -0
  67. data/sorbet/rbi/gems/nokogiri@1.16.5.rbi +9 -0
  68. data/sorbet/rbi/gems/parallel@1.24.0.rbi +281 -0
  69. data/sorbet/rbi/gems/parser@3.3.2.0.rbi +5519 -0
  70. data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
  71. data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
  72. data/sorbet/rbi/gems/racc@1.8.0.rbi +162 -0
  73. data/sorbet/rbi/gems/rack-session@2.0.0.rbi +9 -0
  74. data/sorbet/rbi/gems/rack-test@2.1.0.rbi +9 -0
  75. data/sorbet/rbi/gems/rack@3.0.11.rbi +2910 -0
  76. data/sorbet/rbi/gems/rackup@2.1.0.rbi +390 -0
  77. data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +9 -0
  78. data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +9 -0
  79. data/sorbet/rbi/gems/rails@7.1.3.3.rbi +9 -0
  80. data/sorbet/rbi/gems/railties@7.1.3.3.rbi +9 -0
  81. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  82. data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
  83. data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
  84. data/sorbet/rbi/gems/rdoc@6.7.0.rbi +12719 -0
  85. data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
  86. data/sorbet/rbi/gems/reline@0.5.8.rbi +9 -0
  87. data/sorbet/rbi/gems/rexml@3.2.8.rbi +4794 -0
  88. data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7045 -0
  89. data/sorbet/rbi/gems/rubocop-minitest@0.35.0.rbi +2611 -0
  90. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  91. data/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi +1607 -0
  92. data/sorbet/rbi/gems/rubocop@1.64.1.rbi +58104 -0
  93. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  94. data/sorbet/rbi/gems/spoom@1.3.2.rbi +4421 -0
  95. data/sorbet/rbi/gems/stringio@3.1.0.rbi +9 -0
  96. data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
  97. data/sorbet/rbi/gems/tapioca@0.14.3.rbi +3534 -0
  98. data/sorbet/rbi/gems/thor@1.3.1.rbi +4352 -0
  99. data/sorbet/rbi/gems/timeout@0.4.1.rbi +143 -0
  100. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +9 -0
  101. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  102. data/sorbet/rbi/gems/webrick@1.8.1.rbi +2607 -0
  103. data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +9 -0
  104. data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
  105. data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +429 -0
  106. data/sorbet/rbi/gems/yard@0.9.36.rbi +18412 -0
  107. data/sorbet/rbi/gems/zeitwerk@2.6.15.rbi +9 -0
  108. data/sorbet/rbi/todo.rbi +46 -0
  109. data/sorbet/tapioca/config.yml +13 -0
  110. data/sorbet/tapioca/require.rb +4 -0
  111. metadata +339 -0
@@ -0,0 +1,143 @@
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
+ module Timeout
9
+ private
10
+
11
+ # Perform an operation in a block, raising an error if it takes longer than
12
+ # +sec+ seconds to complete.
13
+ #
14
+ # +sec+:: Number of seconds to wait for the block to terminate. Any number
15
+ # may be used, including Floats to specify fractional seconds. A
16
+ # value of 0 or +nil+ will execute the block without any timeout.
17
+ # +klass+:: Exception Class to raise if the block fails to terminate
18
+ # in +sec+ seconds. Omitting will use the default, Timeout::Error
19
+ # +message+:: Error message to raise with Exception Class.
20
+ # Omitting will use the default, "execution expired"
21
+ #
22
+ # Returns the result of the block *if* the block completed before
23
+ # +sec+ seconds, otherwise throws an exception, based on the value of +klass+.
24
+ #
25
+ # The exception thrown to terminate the given block cannot be rescued inside
26
+ # the block unless +klass+ is given explicitly. However, the block can use
27
+ # ensure to prevent the handling of the exception. For that reason, this
28
+ # method cannot be relied on to enforce timeouts for untrusted blocks.
29
+ #
30
+ # If a scheduler is defined, it will be used to handle the timeout by invoking
31
+ # Scheduler#timeout_after.
32
+ #
33
+ # Note that this is both a method of module Timeout, so you can <tt>include
34
+ # Timeout</tt> into your classes so they have a #timeout method, as well as
35
+ # a module method, so you can call it directly as Timeout.timeout().
36
+ #
37
+ # source://timeout//timeout.rb#169
38
+ def timeout(sec, klass = T.unsafe(nil), message = T.unsafe(nil), &block); end
39
+
40
+ class << self
41
+ # source://timeout//timeout.rb#127
42
+ def ensure_timeout_thread_created; end
43
+
44
+ # Perform an operation in a block, raising an error if it takes longer than
45
+ # +sec+ seconds to complete.
46
+ #
47
+ # +sec+:: Number of seconds to wait for the block to terminate. Any number
48
+ # may be used, including Floats to specify fractional seconds. A
49
+ # value of 0 or +nil+ will execute the block without any timeout.
50
+ # +klass+:: Exception Class to raise if the block fails to terminate
51
+ # in +sec+ seconds. Omitting will use the default, Timeout::Error
52
+ # +message+:: Error message to raise with Exception Class.
53
+ # Omitting will use the default, "execution expired"
54
+ #
55
+ # Returns the result of the block *if* the block completed before
56
+ # +sec+ seconds, otherwise throws an exception, based on the value of +klass+.
57
+ #
58
+ # The exception thrown to terminate the given block cannot be rescued inside
59
+ # the block unless +klass+ is given explicitly. However, the block can use
60
+ # ensure to prevent the handling of the exception. For that reason, this
61
+ # method cannot be relied on to enforce timeouts for untrusted blocks.
62
+ #
63
+ # If a scheduler is defined, it will be used to handle the timeout by invoking
64
+ # Scheduler#timeout_after.
65
+ #
66
+ # Note that this is both a method of module Timeout, so you can <tt>include
67
+ # Timeout</tt> into your classes so they have a #timeout method, as well as
68
+ # a module method, so you can call it directly as Timeout.timeout().
69
+ #
70
+ # source://timeout//timeout.rb#169
71
+ def timeout(sec, klass = T.unsafe(nil), message = T.unsafe(nil), &block); end
72
+
73
+ private
74
+
75
+ # source://timeout//timeout.rb#97
76
+ def create_timeout_thread; end
77
+ end
78
+ end
79
+
80
+ # :stopdoc:
81
+ #
82
+ # source://timeout//timeout.rb#50
83
+ Timeout::CONDVAR = T.let(T.unsafe(nil), Thread::ConditionVariable)
84
+
85
+ # Raised by Timeout.timeout when the block times out.
86
+ class Timeout::Error < ::RuntimeError
87
+ class << self
88
+ # source://timeout//timeout.rb#37
89
+ def handle_timeout(message); end
90
+ end
91
+ end
92
+
93
+ # Internal error raised to when a timeout is triggered.
94
+ class Timeout::ExitException < ::Exception
95
+ # source://timeout//timeout.rb#30
96
+ def exception(*_arg0); end
97
+ end
98
+
99
+ # We keep a private reference so that time mocking libraries won't break
100
+ # Timeout.
101
+ #
102
+ # source://timeout//timeout.rb#139
103
+ Timeout::GET_TIME = T.let(T.unsafe(nil), Method)
104
+
105
+ # source://timeout//timeout.rb#51
106
+ Timeout::QUEUE = T.let(T.unsafe(nil), Thread::Queue)
107
+
108
+ # source://timeout//timeout.rb#52
109
+ Timeout::QUEUE_MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
110
+
111
+ class Timeout::Request
112
+ # @return [Request] a new instance of Request
113
+ #
114
+ # source://timeout//timeout.rb#60
115
+ def initialize(thread, timeout, exception_class, message); end
116
+
117
+ # Returns the value of attribute deadline.
118
+ #
119
+ # source://timeout//timeout.rb#58
120
+ def deadline; end
121
+
122
+ # @return [Boolean]
123
+ #
124
+ # source://timeout//timeout.rb#70
125
+ def done?; end
126
+
127
+ # @return [Boolean]
128
+ #
129
+ # source://timeout//timeout.rb#76
130
+ def expired?(now); end
131
+
132
+ # source://timeout//timeout.rb#89
133
+ def finished; end
134
+
135
+ # source://timeout//timeout.rb#80
136
+ def interrupt; end
137
+ end
138
+
139
+ # source://timeout//timeout.rb#53
140
+ Timeout::TIMEOUT_THREAD_MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
141
+
142
+ # source://timeout//timeout.rb#26
143
+ Timeout::VERSION = T.let(T.unsafe(nil), String)
@@ -0,0 +1,9 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `tzinfo` gem.
5
+ # Please instead update this file by running `bin/tapioca gem tzinfo`.
6
+
7
+
8
+ # THIS IS AN EMPTY RBI FILE.
9
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem
@@ -0,0 +1,66 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `unicode-display_width` gem.
5
+ # Please instead update this file by running `bin/tapioca gem unicode-display_width`.
6
+
7
+
8
+ # source://unicode-display_width//lib/unicode/display_width/constants.rb#3
9
+ module Unicode; end
10
+
11
+ # source://unicode-display_width//lib/unicode/display_width/constants.rb#4
12
+ class Unicode::DisplayWidth
13
+ # @return [DisplayWidth] a new instance of DisplayWidth
14
+ #
15
+ # source://unicode-display_width//lib/unicode/display_width.rb#104
16
+ def initialize(ambiguous: T.unsafe(nil), overwrite: T.unsafe(nil), emoji: T.unsafe(nil)); end
17
+
18
+ # source://unicode-display_width//lib/unicode/display_width.rb#110
19
+ def get_config(**kwargs); end
20
+
21
+ # source://unicode-display_width//lib/unicode/display_width.rb#118
22
+ def of(string, **kwargs); end
23
+
24
+ class << self
25
+ # source://unicode-display_width//lib/unicode/display_width/index.rb#14
26
+ def decompress_index(index, level); end
27
+
28
+ # source://unicode-display_width//lib/unicode/display_width.rb#86
29
+ def emoji_extra_width_of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), _ = T.unsafe(nil)); end
30
+
31
+ # source://unicode-display_width//lib/unicode/display_width.rb#12
32
+ def of(string, ambiguous = T.unsafe(nil), overwrite = T.unsafe(nil), options = T.unsafe(nil)); end
33
+
34
+ # Same as .width_no_overwrite - but with applying overwrites for each char
35
+ #
36
+ # source://unicode-display_width//lib/unicode/display_width.rb#57
37
+ def width_all_features(string, ambiguous, overwrite, options); end
38
+
39
+ # source://unicode-display_width//lib/unicode/display_width.rb#30
40
+ def width_no_overwrite(string, ambiguous, options = T.unsafe(nil)); end
41
+ end
42
+ end
43
+
44
+ # source://unicode-display_width//lib/unicode/display_width.rb#9
45
+ Unicode::DisplayWidth::ASCII_NON_ZERO_REGEX = T.let(T.unsafe(nil), Regexp)
46
+
47
+ # source://unicode-display_width//lib/unicode/display_width/constants.rb#7
48
+ Unicode::DisplayWidth::DATA_DIRECTORY = T.let(T.unsafe(nil), String)
49
+
50
+ # source://unicode-display_width//lib/unicode/display_width.rb#10
51
+ Unicode::DisplayWidth::FIRST_4096 = T.let(T.unsafe(nil), Array)
52
+
53
+ # source://unicode-display_width//lib/unicode/display_width/index.rb#11
54
+ Unicode::DisplayWidth::INDEX = T.let(T.unsafe(nil), Array)
55
+
56
+ # source://unicode-display_width//lib/unicode/display_width/constants.rb#8
57
+ Unicode::DisplayWidth::INDEX_FILENAME = T.let(T.unsafe(nil), String)
58
+
59
+ # source://unicode-display_width//lib/unicode/display_width.rb#8
60
+ Unicode::DisplayWidth::INITIAL_DEPTH = T.let(T.unsafe(nil), Integer)
61
+
62
+ # source://unicode-display_width//lib/unicode/display_width/constants.rb#6
63
+ Unicode::DisplayWidth::UNICODE_VERSION = T.let(T.unsafe(nil), String)
64
+
65
+ # source://unicode-display_width//lib/unicode/display_width/constants.rb#5
66
+ Unicode::DisplayWidth::VERSION = T.let(T.unsafe(nil), String)