categoria 0.1.0.pre.beta0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +34 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +21 -0
- data/README.md +33 -0
- data/Rakefile +12 -0
- data/categoria.gemspec +48 -0
- data/lib/categoria/version.rb +6 -0
- data/lib/categoria.rb +9 -0
- data/lib/generators/categoria/command_generator.rb +8 -0
- data/lib/generators/categoria/domain_generator.rb +35 -0
- data/lib/generators/categoria/model_generator.rb +8 -0
- data/lib/generators/categoria/templates/domain_module.rb.erb +6 -0
- data/sig/categoria.rbs +4 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/.gitattributes +1 -0
- data/sorbet/rbi/annotations/actionmailer.rbi +10 -0
- data/sorbet/rbi/annotations/actionpack.rbi +429 -0
- data/sorbet/rbi/annotations/actionview.rbi +75 -0
- data/sorbet/rbi/annotations/activejob.rbi +44 -0
- data/sorbet/rbi/annotations/activemodel.rbi +89 -0
- data/sorbet/rbi/annotations/activerecord.rbi +92 -0
- data/sorbet/rbi/annotations/activesupport.rbi +421 -0
- data/sorbet/rbi/annotations/globalid.rbi +30 -0
- data/sorbet/rbi/annotations/railties.rbi +61 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/actioncable@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/actionmailbox@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/actionmailer@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/actionpack@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/actiontext@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/actionview@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/activejob@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/activemodel@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/activerecord@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/activestorage@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/activesupport@7.1.3.3.rbi +11 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +9 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +9 -0
- data/sorbet/rbi/gems/builder@3.2.4.rbi +9 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.3.1.rbi +9 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +9 -0
- data/sorbet/rbi/gems/date@3.3.4.rbi +73 -0
- data/sorbet/rbi/gems/drb@2.2.1.rbi +9 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +9 -0
- data/sorbet/rbi/gems/i18n@1.14.5.rbi +9 -0
- data/sorbet/rbi/gems/io-console@0.7.2.rbi +9 -0
- data/sorbet/rbi/gems/json@2.7.2.rbi +1562 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
- data/sorbet/rbi/gems/loofah@2.22.0.rbi +9 -0
- data/sorbet/rbi/gems/mail@2.8.1.rbi +9 -0
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +9 -0
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +9 -0
- data/sorbet/rbi/gems/minitest@5.23.1.rbi +1555 -0
- data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +9 -0
- data/sorbet/rbi/gems/net-imap@0.4.11.rbi +9 -0
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +9 -0
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +282 -0
- data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +9 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nio4r@2.7.3.rbi +9 -0
- data/sorbet/rbi/gems/nokogiri@1.16.5.rbi +9 -0
- data/sorbet/rbi/gems/parallel@1.24.0.rbi +281 -0
- data/sorbet/rbi/gems/parser@3.3.2.0.rbi +5519 -0
- data/sorbet/rbi/gems/prism@0.29.0.rbi +37987 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1732 -0
- data/sorbet/rbi/gems/racc@1.8.0.rbi +162 -0
- data/sorbet/rbi/gems/rack-session@2.0.0.rbi +9 -0
- data/sorbet/rbi/gems/rack-test@2.1.0.rbi +9 -0
- data/sorbet/rbi/gems/rack@3.0.11.rbi +2910 -0
- data/sorbet/rbi/gems/rackup@2.1.0.rbi +390 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +9 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +9 -0
- data/sorbet/rbi/gems/rails@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/railties@7.1.3.3.rbi +9 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3028 -0
- data/sorbet/rbi/gems/rbi@0.1.13.rbi +3078 -0
- data/sorbet/rbi/gems/rdoc@6.7.0.rbi +12719 -0
- data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
- data/sorbet/rbi/gems/reline@0.5.8.rbi +9 -0
- data/sorbet/rbi/gems/rexml@3.2.8.rbi +4794 -0
- data/sorbet/rbi/gems/rubocop-ast@1.31.3.rbi +7045 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.35.0.rbi +2611 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.8.3.rbi +1607 -0
- data/sorbet/rbi/gems/rubocop@1.64.1.rbi +58104 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/spoom@1.3.2.rbi +4421 -0
- data/sorbet/rbi/gems/stringio@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/strscan@3.1.0.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.14.3.rbi +3534 -0
- data/sorbet/rbi/gems/thor@1.3.1.rbi +4352 -0
- data/sorbet/rbi/gems/timeout@0.4.1.rbi +143 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +9 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/webrick@1.8.1.rbi +2607 -0
- data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +9 -0
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +9 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +429 -0
- data/sorbet/rbi/gems/yard@0.9.36.rbi +18412 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.15.rbi +9 -0
- data/sorbet/rbi/todo.rbi +46 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- 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
|