http_status_codes 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.rubocop.yml +8 -0
  3. data/.ruby-version +1 -0
  4. data/CHANGELOG.md +5 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +48 -0
  7. data/Rakefile +12 -0
  8. data/lib/http_status_codes/version.rb +5 -0
  9. data/lib/http_status_codes.rb +77 -0
  10. data/sorbet/config +4 -0
  11. data/sorbet/rbi/annotations/.gitattributes +1 -0
  12. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  13. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  14. data/sorbet/rbi/gems/.gitattributes +1 -0
  15. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  16. data/sorbet/rbi/gems/erubi@1.13.1.rbi +157 -0
  17. data/sorbet/rbi/gems/json@2.9.1.rbi +1944 -0
  18. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +9 -0
  19. data/sorbet/rbi/gems/minitest@5.25.4.rbi +1547 -0
  20. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  21. data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
  22. data/sorbet/rbi/gems/parser@3.3.6.0.rbi +5519 -0
  23. data/sorbet/rbi/gems/prism@1.3.0.rbi +41403 -0
  24. data/sorbet/rbi/gems/racc@1.8.1.rbi +162 -0
  25. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  26. data/sorbet/rbi/gems/rake@13.2.1.rbi +3022 -0
  27. data/sorbet/rbi/gems/rbi@0.2.2.rbi +4527 -0
  28. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +3795 -0
  29. data/sorbet/rbi/gems/rubocop-ast@1.37.0.rbi +7608 -0
  30. data/sorbet/rbi/gems/rubocop@1.69.2.rbi +59462 -0
  31. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  32. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  33. data/sorbet/rbi/gems/tapioca@0.16.5.rbi +3617 -0
  34. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  35. data/sorbet/rbi/gems/unicode-display_width@3.1.3.rbi +130 -0
  36. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +251 -0
  37. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  38. data/sorbet/rbi/gems/yard@0.9.37.rbi +18379 -0
  39. data/sorbet/rbi/shims/gems/minitest.rbi +3 -0
  40. data/sorbet/tapioca/config.yml +13 -0
  41. data/sorbet/tapioca/require.rb +4 -0
  42. metadata +100 -0
@@ -0,0 +1,157 @@
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
+ private
11
+
12
+ # source://erubi//lib/erubi.rb#32
13
+ def h(value); end
14
+
15
+ class << self
16
+ # source://erubi//lib/erubi.rb#32
17
+ def h(value); end
18
+ end
19
+ end
20
+
21
+ # source://erubi//lib/erubi.rb#51
22
+ class Erubi::Engine
23
+ # Initialize a new Erubi::Engine. Options:
24
+ # +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
25
+ # +:bufvar+ :: The variable name to use for the buffer variable, as a string.
26
+ # +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
27
+ # performance, but can cause issues when the buffer variable is reassigned during
28
+ # template rendering (default +false+).
29
+ # +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
30
+ # +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
31
+ # +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
32
+ # +:escape_html+ :: Same as +:escape+, with lower priority.
33
+ # +:filename+ :: The filename for the template.
34
+ # the resulting source code. Note this may cause problems if you are wrapping the resulting
35
+ # source code in other code, because the magic comment only has an effect at the beginning of
36
+ # the file, and having the magic comment later in the file can trigger warnings.
37
+ # +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
38
+ # (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
39
+ # Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
40
+ # in order to improve performance.
41
+ # +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
42
+ # +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
43
+ # +:outvar+ :: Same as +:bufvar+, with lower priority.
44
+ # +:postamble+ :: The postamble for the template, by default returns the resulting source code.
45
+ # +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
46
+ # +:regexp+ :: The regexp to use for scanning.
47
+ # +:src+ :: The initial value to use for the source code, an empty string by default.
48
+ # +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
49
+ #
50
+ # @return [Engine] a new instance of Engine
51
+ #
52
+ # source://erubi//lib/erubi.rb#91
53
+ def initialize(input, properties = T.unsafe(nil)); end
54
+
55
+ # The variable name used for the buffer variable.
56
+ #
57
+ # source://erubi//lib/erubi.rb#62
58
+ def bufvar; end
59
+
60
+ # The filename of the template, if one was given.
61
+ #
62
+ # source://erubi//lib/erubi.rb#59
63
+ def filename; end
64
+
65
+ # The frozen ruby source code generated from the template, which can be evaled.
66
+ #
67
+ # source://erubi//lib/erubi.rb#56
68
+ def src; end
69
+
70
+ private
71
+
72
+ # :nocov:
73
+ #
74
+ # source://erubi//lib/erubi.rb#209
75
+ def _dup_string_if_frozen(string); end
76
+
77
+ # Add ruby code to the template
78
+ #
79
+ # source://erubi//lib/erubi.rb#232
80
+ def add_code(code); end
81
+
82
+ # Add the given ruby expression result to the template,
83
+ # escaping it based on the indicator given and escape flag.
84
+ #
85
+ # source://erubi//lib/erubi.rb#241
86
+ def add_expression(indicator, code); end
87
+
88
+ # Add the result of Ruby expression to the template
89
+ #
90
+ # source://erubi//lib/erubi.rb#250
91
+ def add_expression_result(code); end
92
+
93
+ # Add the escaped result of Ruby expression to the template
94
+ #
95
+ # source://erubi//lib/erubi.rb#255
96
+ def add_expression_result_escaped(code); end
97
+
98
+ # Add the given postamble to the src. Can be overridden in subclasses
99
+ # to make additional changes to src that depend on the current state.
100
+ #
101
+ # source://erubi//lib/erubi.rb#261
102
+ def add_postamble(postamble); end
103
+
104
+ # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
105
+ # Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
106
+ #
107
+ # source://erubi//lib/erubi.rb#222
108
+ def add_text(text); end
109
+
110
+ # Raise an exception, as the base engine class does not support handling other indicators.
111
+ #
112
+ # @raise [ArgumentError]
113
+ #
114
+ # source://erubi//lib/erubi.rb#267
115
+ def handle(indicator, code, tailch, rspace, lspace); end
116
+
117
+ # Make sure that any current expression has been terminated.
118
+ # The default is to terminate all expressions, but when
119
+ # the chain_appends option is used, expressions may not be
120
+ # terminated.
121
+ #
122
+ # source://erubi//lib/erubi.rb#295
123
+ def terminate_expression; end
124
+
125
+ # Make sure the buffer variable is the target of the next append
126
+ # before yielding to the block. Mark that the buffer is the target
127
+ # of the next append after the block executes.
128
+ #
129
+ # This method should only be called if the block will result in
130
+ # code where << will append to the bufvar.
131
+ #
132
+ # source://erubi//lib/erubi.rb#277
133
+ def with_buffer; end
134
+ end
135
+
136
+ # The default regular expression used for scanning.
137
+ #
138
+ # source://erubi//lib/erubi.rb#53
139
+ Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
140
+
141
+ # source://erubi//lib/erubi.rb#17
142
+ Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
143
+
144
+ # source://erubi//lib/erubi.rb#15
145
+ Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
146
+
147
+ # source://erubi//lib/erubi.rb#8
148
+ Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
149
+
150
+ # source://erubi//lib/erubi.rb#9
151
+ Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
152
+
153
+ # source://erubi//lib/erubi.rb#16
154
+ Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
155
+
156
+ # source://erubi//lib/erubi.rb#4
157
+ Erubi::VERSION = T.let(T.unsafe(nil), String)