checkoff 0.201.0 → 0.203.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +130 -28
  3. data/.git-hooks/pre_commit/solargraph_typecheck.rb +12 -11
  4. data/.overcommit.yml +27 -2
  5. data/.rubocop.yml +20 -2
  6. data/.rubocop_todo.yml +90 -0
  7. data/.solargraph.yml +10 -1
  8. data/DEVELOPMENT.md +1 -1
  9. data/Gemfile +11 -8
  10. data/Gemfile.lock +66 -42
  11. data/LICENSE +1 -1
  12. data/Makefile +14 -12
  13. data/bin/brakeman +27 -0
  14. data/bin/overcommit_branch +117 -0
  15. data/bin/spoom +27 -0
  16. data/bin/srb +27 -0
  17. data/bin/srb-rbi +27 -0
  18. data/bin/tapioca +27 -0
  19. data/config/annotations_misc.rb +35 -0
  20. data/docs/cookiecutter_input.json +1 -0
  21. data/fix.sh +14 -6
  22. data/lib/checkoff/internal/search_url/simple_param_converter.rb +11 -0
  23. data/lib/checkoff/version.rb +1 -1
  24. data/requirements_dev.txt +1 -1
  25. data/sorbet/config +4 -0
  26. data/sorbet/rbi/annotations/.gitattributes +1 -0
  27. data/sorbet/rbi/annotations/activesupport.rbi +453 -0
  28. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  29. data/sorbet/rbi/annotations/minitest.rbi +119 -0
  30. data/sorbet/rbi/annotations/mocha.rbi +34 -0
  31. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  32. data/sorbet/rbi/annotations/webmock.rbi +9 -0
  33. data/sorbet/rbi/dsl/.gitattributes +1 -0
  34. data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
  35. data/sorbet/rbi/gems/.gitattributes +1 -0
  36. data/sorbet/rbi/gems/activesupport@7.1.3.rbi +18749 -0
  37. data/sorbet/rbi/gems/addressable@2.8.6.rbi +1994 -0
  38. data/sorbet/rbi/gems/ansi@1.5.0.rbi +688 -0
  39. data/sorbet/rbi/gems/asana@0.10.6-ab9393136d9ca59b75e42a661fdddc1c65c8f7c3.rbi +6142 -0
  40. data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
  41. data/sorbet/rbi/gems/backport@1.2.0.rbi +523 -0
  42. data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
  43. data/sorbet/rbi/gems/benchmark@0.4.0.rbi +618 -0
  44. data/sorbet/rbi/gems/bigdecimal@3.1.5.rbi +78 -0
  45. data/sorbet/rbi/gems/builder@3.2.4.rbi +505 -0
  46. data/sorbet/rbi/gems/bump@0.10.0.rbi +169 -0
  47. data/sorbet/rbi/gems/cache@0.4.1.rbi +211 -0
  48. data/sorbet/rbi/gems/cache_method@0.2.7.rbi +293 -0
  49. data/sorbet/rbi/gems/chef-utils@18.3.0.rbi +9 -0
  50. data/sorbet/rbi/gems/childprocess@5.1.0.rbi +383 -0
  51. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3427 -0
  52. data/sorbet/rbi/gems/concurrent-ruby@1.2.3.rbi +11591 -0
  53. data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
  54. data/sorbet/rbi/gems/crack@0.4.5.rbi +145 -0
  55. data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +969 -0
  56. data/sorbet/rbi/gems/docile@1.4.0.rbi +377 -0
  57. data/sorbet/rbi/gems/drb@2.2.0.rbi +1347 -0
  58. data/sorbet/rbi/gems/e2mmap@0.1.0.rbi +9 -0
  59. data/sorbet/rbi/gems/erubi@1.13.0.rbi +152 -0
  60. data/sorbet/rbi/gems/faraday-em_http@1.0.0.rbi +222 -0
  61. data/sorbet/rbi/gems/faraday-em_synchrony@1.0.0.rbi +126 -0
  62. data/sorbet/rbi/gems/faraday-excon@1.1.0.rbi +136 -0
  63. data/sorbet/rbi/gems/faraday-httpclient@1.0.1.rbi +145 -0
  64. data/sorbet/rbi/gems/faraday-multipart@1.0.4.rbi +259 -0
  65. data/sorbet/rbi/gems/faraday-net_http@1.0.1.rbi +142 -0
  66. data/sorbet/rbi/gems/faraday-net_http_persistent@1.2.0.rbi +118 -0
  67. data/sorbet/rbi/gems/faraday-patron@1.0.0.rbi +125 -0
  68. data/sorbet/rbi/gems/faraday-rack@1.0.0.rbi +133 -0
  69. data/sorbet/rbi/gems/faraday-retry@1.0.3.rbi +198 -0
  70. data/sorbet/rbi/gems/faraday@1.10.3.rbi +2729 -0
  71. data/sorbet/rbi/gems/faraday_middleware-multi_json@0.0.6.rbi +29 -0
  72. data/sorbet/rbi/gems/faraday_middleware@1.2.0.rbi +1004 -0
  73. data/sorbet/rbi/gems/gli@2.21.1.rbi +9 -0
  74. data/sorbet/rbi/gems/hashdiff@1.0.1.rbi +351 -0
  75. data/sorbet/rbi/gems/i18n@1.14.1.rbi +2326 -0
  76. data/sorbet/rbi/gems/imagen@0.1.8.rbi +340 -0
  77. data/sorbet/rbi/gems/iniparse@1.5.0.rbi +899 -0
  78. data/sorbet/rbi/gems/jaro_winkler@1.6.0.rbi +22 -0
  79. data/sorbet/rbi/gems/json@2.7.1.rbi +1562 -0
  80. data/sorbet/rbi/gems/jwt@2.7.1.rbi +1405 -0
  81. data/sorbet/rbi/gems/kramdown-parser-gfm@1.1.0.rbi +128 -0
  82. data/sorbet/rbi/gems/kramdown@2.4.0.rbi +3272 -0
  83. data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14238 -0
  84. data/sorbet/rbi/gems/logger@1.6.1.rbi +920 -0
  85. data/sorbet/rbi/gems/mdl@0.13.0.rbi +445 -0
  86. data/sorbet/rbi/gems/method_source@1.0.0.rbi +273 -0
  87. data/sorbet/rbi/gems/mime-types-data@3.2023.1205.rbi +127 -0
  88. data/sorbet/rbi/gems/mime-types@3.5.1.rbi +1252 -0
  89. data/sorbet/rbi/gems/minitest-profile@0.0.2.rbi +136 -0
  90. data/sorbet/rbi/gems/minitest-reporters@1.6.1.rbi +1014 -0
  91. data/sorbet/rbi/gems/minitest@5.21.1.rbi +1539 -0
  92. data/sorbet/rbi/gems/mixlib-cli@2.1.8.rbi +314 -0
  93. data/sorbet/rbi/gems/mixlib-config@3.0.27.rbi +581 -0
  94. data/sorbet/rbi/gems/mixlib-shellout@3.2.7.rbi +629 -0
  95. data/sorbet/rbi/gems/mocha@2.1.0.rbi +12 -0
  96. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +268 -0
  97. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +102 -0
  98. data/sorbet/rbi/gems/multipart-post@2.3.0.rbi +234 -0
  99. data/sorbet/rbi/gems/mutex_m@0.2.0.rbi +94 -0
  100. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  101. data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
  102. data/sorbet/rbi/gems/oauth2@1.4.11.rbi +833 -0
  103. data/sorbet/rbi/gems/ostruct@0.6.1.rbi +354 -0
  104. data/sorbet/rbi/gems/overcommit@0.64.0.rbi +2400 -0
  105. data/sorbet/rbi/gems/parallel@1.23.0.rbi +274 -0
  106. data/sorbet/rbi/gems/parser@3.2.2.4.rbi +7253 -0
  107. data/sorbet/rbi/gems/prism@1.2.0.rbi +39085 -0
  108. data/sorbet/rbi/gems/pry@0.14.2.rbi +10070 -0
  109. data/sorbet/rbi/gems/public_suffix@5.0.4.rbi +936 -0
  110. data/sorbet/rbi/gems/punchlist@1.3.2.rbi +173 -0
  111. data/sorbet/rbi/gems/racc@1.7.3.rbi +162 -0
  112. data/sorbet/rbi/gems/rack@3.0.8.rbi +5184 -0
  113. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
  114. data/sorbet/rbi/gems/rake@13.1.0.rbi +3022 -0
  115. data/sorbet/rbi/gems/rbi@0.2.1.rbi +4535 -0
  116. data/sorbet/rbi/gems/rbs@2.8.4.rbi +5613 -0
  117. data/sorbet/rbi/gems/regexp_parser@2.8.3.rbi +3750 -0
  118. data/sorbet/rbi/gems/reverse_markdown@2.1.1.rbi +390 -0
  119. data/sorbet/rbi/gems/rexml@3.2.6.rbi +4888 -0
  120. data/sorbet/rbi/gems/rubocop-ast@1.30.0.rbi +7061 -0
  121. data/sorbet/rbi/gems/rubocop-minitest@0.34.5.rbi +2577 -0
  122. data/sorbet/rbi/gems/rubocop-performance@1.20.2.rbi +3262 -0
  123. data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
  124. data/sorbet/rbi/gems/rubocop@1.59.0.rbi +57238 -0
  125. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
  126. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  127. data/sorbet/rbi/gems/rugged@1.6.3.rbi +1577 -0
  128. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +217 -0
  129. data/sorbet/rbi/gems/simplecov-lcov@0.8.0.rbi +256 -0
  130. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +2149 -0
  131. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +9 -0
  132. data/sorbet/rbi/gems/solargraph@0.50.1-904b9304770a59fac393c5cc3cad481e5bdf0fd8.rbi +9396 -0
  133. data/sorbet/rbi/gems/source_finder@3.2.1.rbi +317 -0
  134. data/sorbet/rbi/gems/spoom@1.5.0.rbi +4932 -0
  135. data/sorbet/rbi/gems/tapioca@0.16.4.rbi +3604 -0
  136. data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
  137. data/sorbet/rbi/gems/tilt@2.4.0.rbi +933 -0
  138. data/sorbet/rbi/gems/tomlrb@2.0.3.rbi +9 -0
  139. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  140. data/sorbet/rbi/gems/undercover@0.5.0.rbi +433 -0
  141. data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
  142. data/sorbet/rbi/gems/webmock@3.19.1.rbi +1769 -0
  143. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  144. data/sorbet/rbi/gems/yard@0.9.34.rbi +18247 -0
  145. data/sorbet/rbi/todo.rbi +11 -0
  146. data/sorbet/tapioca/config.yml +13 -0
  147. data/sorbet/tapioca/require.rb +4 -0
  148. metadata +134 -3
@@ -0,0 +1,268 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `multi_json` gem.
5
+ # Please instead update this file by running `bin/tapioca gem multi_json`.
6
+
7
+
8
+ # source://multi_json//lib/multi_json/options.rb#1
9
+ module MultiJson
10
+ include ::MultiJson::Options
11
+ extend ::MultiJson::Options
12
+ extend ::MultiJson
13
+
14
+ # Get the current adapter class.
15
+ #
16
+ # source://multi_json//lib/multi_json.rb#70
17
+ def adapter; end
18
+
19
+ # Set the JSON parser utilizing a symbol, string, or class.
20
+ # Supported by default are:
21
+ #
22
+ # * <tt>:oj</tt>
23
+ # * <tt>:json_gem</tt>
24
+ # * <tt>:json_pure</tt>
25
+ # * <tt>:ok_json</tt>
26
+ # * <tt>:yajl</tt>
27
+ # * <tt>:nsjsonserialization</tt> (MacRuby only)
28
+ # * <tt>:gson</tt> (JRuby only)
29
+ # * <tt>:jr_jackson</tt> (JRuby only)
30
+ #
31
+ # source://multi_json//lib/multi_json.rb#90
32
+ def adapter=(new_adapter); end
33
+
34
+ # source://multi_json//lib/multi_json.rb#26
35
+ def cached_options(*_arg0); end
36
+
37
+ # source://multi_json//lib/multi_json.rb#129
38
+ def current_adapter(options = T.unsafe(nil)); end
39
+
40
+ # Decode a JSON string into Ruby.
41
+ #
42
+ # <b>Options</b>
43
+ #
44
+ # <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
45
+ # <tt>:adapter</tt> :: If set, the selected adapter will be used for this call.
46
+ #
47
+ # source://multi_json//lib/multi_json.rb#119
48
+ def decode(string, options = T.unsafe(nil)); end
49
+
50
+ # The default adapter based on what you currently
51
+ # have loaded and installed. First checks to see
52
+ # if any adapters are already loaded, then checks
53
+ # to see which are installed if none are loaded.
54
+ #
55
+ # source://multi_json//lib/multi_json.rb#46
56
+ def default_adapter; end
57
+
58
+ # The default adapter based on what you currently
59
+ # have loaded and installed. First checks to see
60
+ # if any adapters are already loaded, then checks
61
+ # to see which are installed if none are loaded.
62
+ #
63
+ # source://multi_json//lib/multi_json.rb#46
64
+ def default_engine; end
65
+
66
+ # source://multi_json//lib/multi_json.rb#18
67
+ def default_options; end
68
+
69
+ # source://multi_json//lib/multi_json.rb#11
70
+ def default_options=(value); end
71
+
72
+ # Encodes a Ruby object as JSON.
73
+ #
74
+ # source://multi_json//lib/multi_json.rb#138
75
+ def dump(object, options = T.unsafe(nil)); end
76
+
77
+ # Encodes a Ruby object as JSON.
78
+ #
79
+ # source://multi_json//lib/multi_json.rb#138
80
+ def encode(object, options = T.unsafe(nil)); end
81
+
82
+ # Get the current adapter class.
83
+ #
84
+ # source://multi_json//lib/multi_json.rb#70
85
+ def engine; end
86
+
87
+ # Set the JSON parser utilizing a symbol, string, or class.
88
+ # Supported by default are:
89
+ #
90
+ # * <tt>:oj</tt>
91
+ # * <tt>:json_gem</tt>
92
+ # * <tt>:json_pure</tt>
93
+ # * <tt>:ok_json</tt>
94
+ # * <tt>:yajl</tt>
95
+ # * <tt>:nsjsonserialization</tt> (MacRuby only)
96
+ # * <tt>:gson</tt> (JRuby only)
97
+ # * <tt>:jr_jackson</tt> (JRuby only)
98
+ #
99
+ # source://multi_json//lib/multi_json.rb#90
100
+ def engine=(new_adapter); end
101
+
102
+ # Decode a JSON string into Ruby.
103
+ #
104
+ # <b>Options</b>
105
+ #
106
+ # <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
107
+ # <tt>:adapter</tt> :: If set, the selected adapter will be used for this call.
108
+ #
109
+ # source://multi_json//lib/multi_json.rb#119
110
+ def load(string, options = T.unsafe(nil)); end
111
+
112
+ # source://multi_json//lib/multi_json.rb#98
113
+ def load_adapter(new_adapter); end
114
+
115
+ # source://multi_json//lib/multi_json.rb#26
116
+ def reset_cached_options!(*_arg0); end
117
+
118
+ # Set the JSON parser utilizing a symbol, string, or class.
119
+ # Supported by default are:
120
+ #
121
+ # * <tt>:oj</tt>
122
+ # * <tt>:json_gem</tt>
123
+ # * <tt>:json_pure</tt>
124
+ # * <tt>:ok_json</tt>
125
+ # * <tt>:yajl</tt>
126
+ # * <tt>:nsjsonserialization</tt> (MacRuby only)
127
+ # * <tt>:gson</tt> (JRuby only)
128
+ # * <tt>:jr_jackson</tt> (JRuby only)
129
+ #
130
+ # source://multi_json//lib/multi_json.rb#90
131
+ def use(new_adapter); end
132
+
133
+ # Executes passed block using specified adapter.
134
+ #
135
+ # source://multi_json//lib/multi_json.rb#144
136
+ def with_adapter(new_adapter); end
137
+
138
+ # Executes passed block using specified adapter.
139
+ #
140
+ # source://multi_json//lib/multi_json.rb#144
141
+ def with_engine(new_adapter); end
142
+
143
+ private
144
+
145
+ # source://multi_json//lib/multi_json.rb#155
146
+ def load_adapter_from_string_name(name); end
147
+ end
148
+
149
+ # source://multi_json//lib/multi_json.rb#31
150
+ MultiJson::ALIASES = T.let(T.unsafe(nil), Hash)
151
+
152
+ # source://multi_json//lib/multi_json/adapter_error.rb#2
153
+ class MultiJson::AdapterError < ::ArgumentError
154
+ # Returns the value of attribute cause.
155
+ #
156
+ # source://multi_json//lib/multi_json/adapter_error.rb#3
157
+ def cause; end
158
+
159
+ class << self
160
+ # source://multi_json//lib/multi_json/adapter_error.rb#5
161
+ def build(original_exception); end
162
+ end
163
+ end
164
+
165
+ # Legacy support
166
+ #
167
+ # source://multi_json//lib/multi_json/parse_error.rb#16
168
+ MultiJson::DecodeError = MultiJson::ParseError
169
+
170
+ # source://multi_json//lib/multi_json/parse_error.rb#16
171
+ MultiJson::LoadError = MultiJson::ParseError
172
+
173
+ # source://multi_json//lib/multi_json/options.rb#2
174
+ module MultiJson::Options
175
+ # source://multi_json//lib/multi_json/options.rb#25
176
+ def default_dump_options; end
177
+
178
+ # source://multi_json//lib/multi_json/options.rb#21
179
+ def default_load_options; end
180
+
181
+ # source://multi_json//lib/multi_json/options.rb#17
182
+ def dump_options(*args); end
183
+
184
+ # source://multi_json//lib/multi_json/options.rb#8
185
+ def dump_options=(options); end
186
+
187
+ # source://multi_json//lib/multi_json/options.rb#13
188
+ def load_options(*args); end
189
+
190
+ # source://multi_json//lib/multi_json/options.rb#3
191
+ def load_options=(options); end
192
+
193
+ private
194
+
195
+ # source://multi_json//lib/multi_json/options.rb#31
196
+ def get_options(options, *args); end
197
+ end
198
+
199
+ # source://multi_json//lib/multi_json/options_cache.rb#2
200
+ module MultiJson::OptionsCache
201
+ extend ::MultiJson::OptionsCache
202
+
203
+ # source://multi_json//lib/multi_json/options_cache.rb#10
204
+ def fetch(type, key, &block); end
205
+
206
+ # source://multi_json//lib/multi_json/options_cache.rb#5
207
+ def reset; end
208
+
209
+ private
210
+
211
+ # source://multi_json//lib/multi_json/options_cache.rb#24
212
+ def write(cache, key); end
213
+ end
214
+
215
+ # Normally MultiJson is used with a few option sets for both dump/load
216
+ # methods. When options are generated dynamically though, every call would
217
+ # cause a cache miss and the cache would grow indefinitely. To prevent
218
+ # this, we just reset the cache every time the number of keys outgrows
219
+ # 1000.
220
+ #
221
+ # source://multi_json//lib/multi_json/options_cache.rb#22
222
+ MultiJson::OptionsCache::MAX_CACHE_SIZE = T.let(T.unsafe(nil), Integer)
223
+
224
+ # source://multi_json//lib/multi_json/parse_error.rb#2
225
+ class MultiJson::ParseError < ::StandardError
226
+ # Returns the value of attribute cause.
227
+ #
228
+ # source://multi_json//lib/multi_json/parse_error.rb#3
229
+ def cause; end
230
+
231
+ # Returns the value of attribute data.
232
+ #
233
+ # source://multi_json//lib/multi_json/parse_error.rb#3
234
+ def data; end
235
+
236
+ class << self
237
+ # source://multi_json//lib/multi_json/parse_error.rb#5
238
+ def build(original_exception, data); end
239
+ end
240
+ end
241
+
242
+ # source://multi_json//lib/multi_json.rb#33
243
+ MultiJson::REQUIREMENT_MAP = T.let(T.unsafe(nil), Array)
244
+
245
+ # source://multi_json//lib/multi_json/version.rb#16
246
+ MultiJson::VERSION = T.let(T.unsafe(nil), String)
247
+
248
+ # source://multi_json//lib/multi_json/version.rb#2
249
+ class MultiJson::Version
250
+ class << self
251
+ # @return [String]
252
+ #
253
+ # source://multi_json//lib/multi_json/version.rb#10
254
+ def to_s; end
255
+ end
256
+ end
257
+
258
+ # source://multi_json//lib/multi_json/version.rb#3
259
+ MultiJson::Version::MAJOR = T.let(T.unsafe(nil), Integer)
260
+
261
+ # source://multi_json//lib/multi_json/version.rb#4
262
+ MultiJson::Version::MINOR = T.let(T.unsafe(nil), Integer)
263
+
264
+ # source://multi_json//lib/multi_json/version.rb#5
265
+ MultiJson::Version::PATCH = T.let(T.unsafe(nil), Integer)
266
+
267
+ # source://multi_json//lib/multi_json/version.rb#6
268
+ MultiJson::Version::PRE = T.let(T.unsafe(nil), T.untyped)
@@ -0,0 +1,102 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `multi_xml` gem.
5
+ # Please instead update this file by running `bin/tapioca gem multi_xml`.
6
+
7
+
8
+ # source://multi_xml//lib/multi_xml.rb#8
9
+ module MultiXml
10
+ class << self
11
+ # The default parser based on what you currently
12
+ # have loaded and installed. First checks to see
13
+ # if any parsers are already loaded, then checks
14
+ # to see which are installed if none are loaded.
15
+ #
16
+ # @raise [NoParserError]
17
+ #
18
+ # source://multi_xml//lib/multi_xml.rb#87
19
+ def default_parser; end
20
+
21
+ # Parse an XML string or IO into Ruby.
22
+ #
23
+ # <b>Options</b>
24
+ #
25
+ # <tt>:symbolize_keys</tt> :: If true, will use symbols instead of strings for the keys.
26
+ #
27
+ # <tt>:disallowed_types</tt> :: Types to disallow from being typecasted. Defaults to `['yaml', 'symbol']`. Use `[]` to allow all types.
28
+ #
29
+ # <tt>:typecast_xml_value</tt> :: If true, won't typecast values for parsed document
30
+ #
31
+ # source://multi_xml//lib/multi_xml.rb#133
32
+ def parse(xml, options = T.unsafe(nil)); end
33
+
34
+ # Get the current parser class.
35
+ #
36
+ # source://multi_xml//lib/multi_xml.rb#77
37
+ def parser; end
38
+
39
+ # Set the XML parser utilizing a symbol, string, or class.
40
+ # Supported by default are:
41
+ #
42
+ # * <tt>:libxml</tt>
43
+ # * <tt>:nokogiri</tt>
44
+ # * <tt>:ox</tt>
45
+ # * <tt>:rexml</tt>
46
+ # * <tt>:oga</tt>
47
+ #
48
+ # source://multi_xml//lib/multi_xml.rb#112
49
+ def parser=(new_parser); end
50
+
51
+ private
52
+
53
+ # TODO: Add support for other encodings
54
+ #
55
+ # source://multi_xml//lib/multi_xml.rb#174
56
+ def parse_binary(binary, entity); end
57
+
58
+ # source://multi_xml//lib/multi_xml.rb#183
59
+ def parse_file(file, entity); end
60
+
61
+ # source://multi_xml//lib/multi_xml.rb#191
62
+ def symbolize_keys(params); end
63
+
64
+ # source://multi_xml//lib/multi_xml.rb#218
65
+ def typecast_xml_value(value, disallowed_types = T.unsafe(nil)); end
66
+
67
+ # source://multi_xml//lib/multi_xml.rb#204
68
+ def undasherize_keys(params); end
69
+ end
70
+ end
71
+
72
+ # source://multi_xml//lib/multi_xml.rb#27
73
+ MultiXml::CONTENT_ROOT = T.let(T.unsafe(nil), String)
74
+
75
+ # source://multi_xml//lib/multi_xml.rb#69
76
+ MultiXml::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
77
+
78
+ # source://multi_xml//lib/multi_xml.rb#67
79
+ MultiXml::DISALLOWED_XML_TYPES = T.let(T.unsafe(nil), Array)
80
+
81
+ # source://multi_xml//lib/multi_xml.rb#11
82
+ class MultiXml::DisallowedTypeError < ::StandardError
83
+ # @return [DisallowedTypeError] a new instance of DisallowedTypeError
84
+ #
85
+ # source://multi_xml//lib/multi_xml.rb#12
86
+ def initialize(type); end
87
+ end
88
+
89
+ # source://multi_xml//lib/multi_xml.rb#10
90
+ class MultiXml::NoParserError < ::StandardError; end
91
+
92
+ # source://multi_xml//lib/multi_xml.rb#33
93
+ MultiXml::PARSING = T.let(T.unsafe(nil), Hash)
94
+
95
+ # source://multi_xml//lib/multi_xml.rb#9
96
+ class MultiXml::ParseError < ::StandardError; end
97
+
98
+ # source://multi_xml//lib/multi_xml.rb#18
99
+ MultiXml::REQUIREMENT_MAP = T.let(T.unsafe(nil), Array)
100
+
101
+ # source://multi_xml//lib/multi_xml.rb#52
102
+ MultiXml::TYPE_NAMES = T.let(T.unsafe(nil), Hash)
@@ -0,0 +1,234 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `multipart-post` gem.
5
+ # Please instead update this file by running `bin/tapioca gem multipart-post`.
6
+
7
+
8
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#72
9
+ CompositeIO = Multipart::Post::CompositeReadIO
10
+
11
+ # source://multipart-post//lib/multipart/post/version.rb#7
12
+ module Multipart; end
13
+
14
+ # source://multipart-post//lib/multipart/post/version.rb#8
15
+ module Multipart::Post; end
16
+
17
+ # Concatenate together multiple IO objects into a single, composite IO object
18
+ # for purposes of reading as a single stream.
19
+ #
20
+ # @example
21
+ # crio = CompositeReadIO.new(StringIO.new('one'),
22
+ # StringIO.new('two'),
23
+ # StringIO.new('three'))
24
+ # puts crio.read # => "onetwothree"
25
+ #
26
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#28
27
+ class Multipart::Post::CompositeReadIO
28
+ # Create a new composite-read IO from the arguments, all of which should
29
+ # respond to #read in a manner consistent with IO.
30
+ #
31
+ # @return [CompositeReadIO] a new instance of CompositeReadIO
32
+ #
33
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#31
34
+ def initialize(*ios); end
35
+
36
+ # Read from IOs in order until `length` bytes have been received.
37
+ #
38
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#37
39
+ def read(length = T.unsafe(nil), outbuf = T.unsafe(nil)); end
40
+
41
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#54
42
+ def rewind; end
43
+
44
+ private
45
+
46
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#65
47
+ def advance_io; end
48
+
49
+ # source://multipart-post//lib/multipart/post/composite_read_io.rb#61
50
+ def current_io; end
51
+ end
52
+
53
+ # source://multipart-post//lib/multipart/post/multipartable.rb#23
54
+ module Multipart::Post::Multipartable
55
+ # source://multipart-post//lib/multipart/post/multipartable.rb#38
56
+ def initialize(path, params, headers = T.unsafe(nil), boundary = T.unsafe(nil)); end
57
+
58
+ # Returns the value of attribute boundary.
59
+ #
60
+ # source://multipart-post//lib/multipart/post/multipartable.rb#61
61
+ def boundary; end
62
+
63
+ private
64
+
65
+ # source://multipart-post//lib/multipart/post/multipartable.rb#66
66
+ def symbolize_keys(hash); end
67
+
68
+ class << self
69
+ # source://multipart-post//lib/multipart/post/multipartable.rb#24
70
+ def secure_boundary; end
71
+ end
72
+ end
73
+
74
+ # source://multipart-post//lib/multipart/post/parts.rb#26
75
+ module Multipart::Post::Parts; end
76
+
77
+ # Represents the epilogue or closing boundary.
78
+ #
79
+ # source://multipart-post//lib/multipart/post/parts.rb#138
80
+ class Multipart::Post::Parts::EpiloguePart
81
+ include ::Multipart::Post::Parts::Part
82
+
83
+ # @return [EpiloguePart] a new instance of EpiloguePart
84
+ #
85
+ # source://multipart-post//lib/multipart/post/parts.rb#141
86
+ def initialize(boundary); end
87
+ end
88
+
89
+ # Represents a part to be filled from file IO.
90
+ #
91
+ # source://multipart-post//lib/multipart/post/parts.rb#83
92
+ class Multipart::Post::Parts::FilePart
93
+ include ::Multipart::Post::Parts::Part
94
+
95
+ # @param boundary [String]
96
+ # @param name [#to_s]
97
+ # @param io [IO]
98
+ # @param headers [Hash]
99
+ # @return [FilePart] a new instance of FilePart
100
+ #
101
+ # source://multipart-post//lib/multipart/post/parts.rb#92
102
+ def initialize(boundary, name, io, headers = T.unsafe(nil)); end
103
+
104
+ # @param boundary [String]
105
+ # @param name [#to_s]
106
+ # @param filename [String]
107
+ # @param type [String]
108
+ # @param content_len [Integer]
109
+ # @param opts [Hash]
110
+ #
111
+ # source://multipart-post//lib/multipart/post/parts.rb#107
112
+ def build_head(boundary, name, filename, type, content_len, opts = T.unsafe(nil)); end
113
+
114
+ # Returns the value of attribute length.
115
+ #
116
+ # source://multipart-post//lib/multipart/post/parts.rb#86
117
+ def length; end
118
+ end
119
+
120
+ # Represents a parametric part to be filled with given value.
121
+ #
122
+ # source://multipart-post//lib/multipart/post/parts.rb#51
123
+ class Multipart::Post::Parts::ParamPart
124
+ include ::Multipart::Post::Parts::Part
125
+
126
+ # @param boundary [String]
127
+ # @param name [#to_s]
128
+ # @param value [String]
129
+ # @param headers [Hash] Content-Type and Content-ID are used, if present.
130
+ # @return [ParamPart] a new instance of ParamPart
131
+ #
132
+ # source://multipart-post//lib/multipart/post/parts.rb#58
133
+ def initialize(boundary, name, value, headers = T.unsafe(nil)); end
134
+
135
+ # @param boundary [String]
136
+ # @param name [#to_s]
137
+ # @param value [String]
138
+ # @param headers [Hash] Content-Type is used, if present.
139
+ #
140
+ # source://multipart-post//lib/multipart/post/parts.rb#71
141
+ def build_part(boundary, name, value, headers = T.unsafe(nil)); end
142
+
143
+ # source://multipart-post//lib/multipart/post/parts.rb#63
144
+ def length; end
145
+ end
146
+
147
+ # source://multipart-post//lib/multipart/post/parts.rb#27
148
+ module Multipart::Post::Parts::Part
149
+ # source://multipart-post//lib/multipart/post/parts.rb#41
150
+ def length; end
151
+
152
+ # source://multipart-post//lib/multipart/post/parts.rb#45
153
+ def to_io; end
154
+
155
+ class << self
156
+ # @return [Boolean]
157
+ #
158
+ # source://multipart-post//lib/multipart/post/parts.rb#37
159
+ def file?(value); end
160
+
161
+ # source://multipart-post//lib/multipart/post/parts.rb#28
162
+ def new(boundary, name, value, headers = T.unsafe(nil)); end
163
+ end
164
+ end
165
+
166
+ # Convenience methods for dealing with files and IO that are to be uploaded.
167
+ #
168
+ # source://multipart-post//lib/multipart/post/upload_io.rb#9
169
+ class Multipart::Post::UploadIO
170
+ # Create an upload IO suitable for including in the params hash of a
171
+ # Net::HTTP::Post::Multipart.
172
+ #
173
+ # Can take two forms. The first accepts a filename and content type, and
174
+ # opens the file for reading (to be closed by finalizer).
175
+ #
176
+ # The second accepts an already-open IO, but also requires a third argument,
177
+ # the filename from which it was opened (particularly useful/recommended if
178
+ # uploading directly from a form in a framework, which often save the file to
179
+ # an arbitrarily named RackMultipart file in /tmp).
180
+ #
181
+ # @example
182
+ # UploadIO.new("file.txt", "text/plain")
183
+ # UploadIO.new(file_io, "text/plain", "file.txt")
184
+ # @return [UploadIO] a new instance of UploadIO
185
+ #
186
+ # source://multipart-post//lib/multipart/post/upload_io.rb#26
187
+ def initialize(filename_or_io, content_type, filename = T.unsafe(nil), opts = T.unsafe(nil)); end
188
+
189
+ # Returns the value of attribute content_type.
190
+ #
191
+ # source://multipart-post//lib/multipart/post/upload_io.rb#10
192
+ def content_type; end
193
+
194
+ # Returns the value of attribute io.
195
+ #
196
+ # source://multipart-post//lib/multipart/post/upload_io.rb#10
197
+ def io; end
198
+
199
+ # Returns the value of attribute local_path.
200
+ #
201
+ # source://multipart-post//lib/multipart/post/upload_io.rb#10
202
+ def local_path; end
203
+
204
+ # source://multipart-post//lib/multipart/post/upload_io.rb#52
205
+ def method_missing(*args); end
206
+
207
+ # Returns the value of attribute opts.
208
+ #
209
+ # source://multipart-post//lib/multipart/post/upload_io.rb#10
210
+ def opts; end
211
+
212
+ # Returns the value of attribute original_filename.
213
+ #
214
+ # source://multipart-post//lib/multipart/post/upload_io.rb#10
215
+ def original_filename; end
216
+
217
+ # @return [Boolean]
218
+ #
219
+ # source://multipart-post//lib/multipart/post/upload_io.rb#56
220
+ def respond_to?(meth, include_all = T.unsafe(nil)); end
221
+
222
+ class << self
223
+ # @raise [ArgumentError]
224
+ #
225
+ # source://multipart-post//lib/multipart/post/upload_io.rb#46
226
+ def convert!(io, content_type, original_filename, local_path); end
227
+ end
228
+ end
229
+
230
+ # source://multipart-post//lib/multipart/post/version.rb#9
231
+ Multipart::Post::VERSION = T.let(T.unsafe(nil), String)
232
+
233
+ # source://multipart-post//lib/multipart/post/upload_io.rb#63
234
+ UploadIO = Multipart::Post::UploadIO
@@ -0,0 +1,94 @@
1
+ # typed: false
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `mutex_m` gem.
5
+ # Please instead update this file by running `bin/tapioca gem mutex_m`.
6
+
7
+
8
+ # = mutex_m.rb
9
+ #
10
+ # When 'mutex_m' is required, any object that extends or includes Mutex_m will
11
+ # be treated like a Mutex.
12
+ #
13
+ # Start by requiring the standard library Mutex_m:
14
+ #
15
+ # require "mutex_m.rb"
16
+ #
17
+ # From here you can extend an object with Mutex instance methods:
18
+ #
19
+ # obj = Object.new
20
+ # obj.extend Mutex_m
21
+ #
22
+ # Or mixin Mutex_m into your module to your class inherit Mutex instance
23
+ # methods --- remember to call super() in your class initialize method.
24
+ #
25
+ # class Foo
26
+ # include Mutex_m
27
+ # def initialize
28
+ # # ...
29
+ # super()
30
+ # end
31
+ # # ...
32
+ # end
33
+ # obj = Foo.new
34
+ # # this obj can be handled like Mutex
35
+ #
36
+ # source://mutex_m//lib/mutex_m.rb#41
37
+ module Mutex_m
38
+ # source://mutex_m//lib/mutex_m.rb#111
39
+ def initialize(*args, **_arg1); end
40
+
41
+ # source://mutex_m//lib/mutex_m.rb#64
42
+ def mu_extended; end
43
+
44
+ # See Thread::Mutex#lock
45
+ #
46
+ # source://mutex_m//lib/mutex_m.rb#91
47
+ def mu_lock; end
48
+
49
+ # See Thread::Mutex#locked?
50
+ #
51
+ # @return [Boolean]
52
+ #
53
+ # source://mutex_m//lib/mutex_m.rb#81
54
+ def mu_locked?; end
55
+
56
+ # See Thread::Mutex#synchronize
57
+ #
58
+ # source://mutex_m//lib/mutex_m.rb#76
59
+ def mu_synchronize(&block); end
60
+
61
+ # See Thread::Mutex#try_lock
62
+ #
63
+ # source://mutex_m//lib/mutex_m.rb#86
64
+ def mu_try_lock; end
65
+
66
+ # See Thread::Mutex#unlock
67
+ #
68
+ # source://mutex_m//lib/mutex_m.rb#96
69
+ def mu_unlock; end
70
+
71
+ # See Thread::Mutex#sleep
72
+ #
73
+ # source://mutex_m//lib/mutex_m.rb#101
74
+ def sleep(timeout = T.unsafe(nil)); end
75
+
76
+ private
77
+
78
+ # source://mutex_m//lib/mutex_m.rb#107
79
+ def mu_initialize; end
80
+
81
+ class << self
82
+ # source://mutex_m//lib/mutex_m.rb#54
83
+ def append_features(cl); end
84
+
85
+ # source://mutex_m//lib/mutex_m.rb#46
86
+ def define_aliases(cl); end
87
+
88
+ # source://mutex_m//lib/mutex_m.rb#59
89
+ def extend_object(obj); end
90
+ end
91
+ end
92
+
93
+ # source://mutex_m//lib/mutex_m.rb#43
94
+ Mutex_m::VERSION = T.let(T.unsafe(nil), String)