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,73 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `date` gem.
5
+ # Please instead update this file by running `bin/tapioca gem date`.
6
+
7
+
8
+ class Date
9
+ include ::Comparable
10
+
11
+ # call-seq:
12
+ # infinite? -> false
13
+ #
14
+ # Returns +false+
15
+ #
16
+ # @return [Boolean]
17
+ #
18
+ # source://date//date.rb#13
19
+ def infinite?; end
20
+ end
21
+
22
+ class Date::Infinity < ::Numeric
23
+ # @return [Infinity] a new instance of Infinity
24
+ #
25
+ # source://date//date.rb#19
26
+ def initialize(d = T.unsafe(nil)); end
27
+
28
+ # source://date//date.rb#33
29
+ def +@; end
30
+
31
+ # source://date//date.rb#32
32
+ def -@; end
33
+
34
+ # source://date//date.rb#35
35
+ def <=>(other); end
36
+
37
+ # source://date//date.rb#30
38
+ def abs; end
39
+
40
+ # source://date//date.rb#51
41
+ def coerce(other); end
42
+
43
+ # @return [Boolean]
44
+ #
45
+ # source://date//date.rb#26
46
+ def finite?; end
47
+
48
+ # @return [Boolean]
49
+ #
50
+ # source://date//date.rb#27
51
+ def infinite?; end
52
+
53
+ # @return [Boolean]
54
+ #
55
+ # source://date//date.rb#28
56
+ def nan?; end
57
+
58
+ # source://date//date.rb#59
59
+ def to_f; end
60
+
61
+ # @return [Boolean]
62
+ #
63
+ # source://date//date.rb#25
64
+ def zero?; end
65
+
66
+ protected
67
+
68
+ # source://date//date.rb#21
69
+ def d; end
70
+ end
71
+
72
+ # source://date//date.rb#7
73
+ Date::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 `drb` gem.
5
+ # Please instead update this file by running `bin/tapioca gem drb`.
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,146 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `erubi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem erubi`.
6
+
7
+
8
+ # source://erubi//lib/erubi.rb#3
9
+ module Erubi
10
+ class << self
11
+ def h(_arg0); end
12
+ end
13
+ end
14
+
15
+ # source://erubi//lib/erubi.rb#54
16
+ class Erubi::Engine
17
+ # Initialize a new Erubi::Engine. Options:
18
+ # +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
19
+ # +:bufvar+ :: The variable name to use for the buffer variable, as a string.
20
+ # +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
21
+ # performance, but can cause issues when the buffer variable is reassigned during
22
+ # template rendering (default +false+).
23
+ # +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
24
+ # +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
25
+ # +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
26
+ # +:escape_html+ :: Same as +:escape+, with lower priority.
27
+ # +:filename+ :: The filename for the template.
28
+ # the resulting source code. Note this may cause problems if you are wrapping the resulting
29
+ # source code in other code, because the magic comment only has an effect at the beginning of
30
+ # the file, and having the magic comment later in the file can trigger warnings.
31
+ # +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
32
+ # (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
33
+ # Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
34
+ # in order to improve performance.
35
+ # +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
36
+ # +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
37
+ # +:outvar+ :: Same as +:bufvar+, with lower priority.
38
+ # +:postamble+ :: The postamble for the template, by default returns the resulting source code.
39
+ # +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
40
+ # +:regexp+ :: The regexp to use for scanning.
41
+ # +:src+ :: The initial value to use for the source code, an empty string by default.
42
+ # +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
43
+ #
44
+ # @return [Engine] a new instance of Engine
45
+ #
46
+ # source://erubi//lib/erubi.rb#94
47
+ def initialize(input, properties = T.unsafe(nil)); end
48
+
49
+ # The variable name used for the buffer variable.
50
+ #
51
+ # source://erubi//lib/erubi.rb#65
52
+ def bufvar; end
53
+
54
+ # The filename of the template, if one was given.
55
+ #
56
+ # source://erubi//lib/erubi.rb#62
57
+ def filename; end
58
+
59
+ # The frozen ruby source code generated from the template, which can be evaled.
60
+ #
61
+ # source://erubi//lib/erubi.rb#59
62
+ def src; end
63
+
64
+ private
65
+
66
+ # Add ruby code to the template
67
+ #
68
+ # source://erubi//lib/erubi.rb#226
69
+ def add_code(code); end
70
+
71
+ # Add the given ruby expression result to the template,
72
+ # escaping it based on the indicator given and escape flag.
73
+ #
74
+ # source://erubi//lib/erubi.rb#235
75
+ def add_expression(indicator, code); end
76
+
77
+ # Add the result of Ruby expression to the template
78
+ #
79
+ # source://erubi//lib/erubi.rb#244
80
+ def add_expression_result(code); end
81
+
82
+ # Add the escaped result of Ruby expression to the template
83
+ #
84
+ # source://erubi//lib/erubi.rb#249
85
+ def add_expression_result_escaped(code); end
86
+
87
+ # Add the given postamble to the src. Can be overridden in subclasses
88
+ # to make additional changes to src that depend on the current state.
89
+ #
90
+ # source://erubi//lib/erubi.rb#255
91
+ def add_postamble(postamble); end
92
+
93
+ # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
94
+ # Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
95
+ #
96
+ # source://erubi//lib/erubi.rb#213
97
+ def add_text(text); end
98
+
99
+ # Raise an exception, as the base engine class does not support handling other indicators.
100
+ #
101
+ # @raise [ArgumentError]
102
+ #
103
+ # source://erubi//lib/erubi.rb#261
104
+ def handle(indicator, code, tailch, rspace, lspace); end
105
+
106
+ # Make sure that any current expression has been terminated.
107
+ # The default is to terminate all expressions, but when
108
+ # the chain_appends option is used, expressions may not be
109
+ # terminated.
110
+ #
111
+ # source://erubi//lib/erubi.rb#289
112
+ def terminate_expression; end
113
+
114
+ # Make sure the buffer variable is the target of the next append
115
+ # before yielding to the block. Mark that the buffer is the target
116
+ # of the next append after the block executes.
117
+ #
118
+ # This method should only be called if the block will result in
119
+ # code where << will append to the bufvar.
120
+ #
121
+ # source://erubi//lib/erubi.rb#271
122
+ def with_buffer; end
123
+ end
124
+
125
+ # The default regular expression used for scanning.
126
+ #
127
+ # source://erubi//lib/erubi.rb#56
128
+ Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
129
+
130
+ # source://erubi//lib/erubi.rb#17
131
+ Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
132
+
133
+ # source://erubi//lib/erubi.rb#15
134
+ Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
135
+
136
+ # source://erubi//lib/erubi.rb#8
137
+ Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
138
+
139
+ # source://erubi//lib/erubi.rb#9
140
+ Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
141
+
142
+ # source://erubi//lib/erubi.rb#16
143
+ Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
144
+
145
+ # source://erubi//lib/erubi.rb#4
146
+ Erubi::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 `globalid` gem.
5
+ # Please instead update this file by running `bin/tapioca gem globalid`.
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,9 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `i18n` gem.
5
+ # Please instead update this file by running `bin/tapioca gem i18n`.
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,9 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `io-console` gem.
5
+ # Please instead update this file by running `bin/tapioca gem io-console`.
6
+
7
+
8
+ # THIS IS AN EMPTY RBI FILE.
9
+ # see https://github.com/Shopify/tapioca#manually-requiring-parts-of-a-gem