konstruo 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +22 -0
- data/.tool-versions +1 -0
- data/CHANGELOG.md +21 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +10 -0
- data/lib/konstruo/mapper.rb +120 -0
- data/lib/konstruo/version.rb +6 -0
- data/lib/konstruo.rb +18 -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 +430 -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 +454 -0
- data/sorbet/rbi/annotations/globalid.rbi +30 -0
- data/sorbet/rbi/annotations/minitest.rbi +119 -0
- data/sorbet/rbi/annotations/railties.rbi +61 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/dsl/.gitattributes +1 -0
- data/sorbet/rbi/dsl/active_support/callbacks.rbi +23 -0
- data/sorbet/rbi/gems/.gitattributes +1 -0
- data/sorbet/rbi/gems/actioncable@7.2.1.rbi +3096 -0
- data/sorbet/rbi/gems/actionmailbox@7.2.1.rbi +1832 -0
- data/sorbet/rbi/gems/actionmailer@7.2.1.rbi +2664 -0
- data/sorbet/rbi/gems/actionpack@7.2.1.rbi +20536 -0
- data/sorbet/rbi/gems/actiontext@7.2.1.rbi +1697 -0
- data/sorbet/rbi/gems/actionview@7.2.1.rbi +15752 -0
- data/sorbet/rbi/gems/activejob@7.2.1.rbi +2828 -0
- data/sorbet/rbi/gems/activemodel@7.2.1.rbi +6762 -0
- data/sorbet/rbi/gems/activerecord@7.2.1.rbi +41433 -0
- data/sorbet/rbi/gems/activestorage@7.2.1.rbi +3247 -0
- data/sorbet/rbi/gems/activesupport@7.2.1.rbi +21142 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +585 -0
- data/sorbet/rbi/gems/base64@0.2.0.rbi +509 -0
- data/sorbet/rbi/gems/bigdecimal@3.1.8.rbi +78 -0
- data/sorbet/rbi/gems/builder@3.3.0.rbi +9 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.3.4.rbi +11645 -0
- data/sorbet/rbi/gems/connection_pool@2.4.1.rbi +9 -0
- data/sorbet/rbi/gems/crass@1.0.6.rbi +623 -0
- data/sorbet/rbi/gems/dashbrains-rubocop-config@1.0.4.rbi +9 -0
- data/sorbet/rbi/gems/date@3.3.4.rbi +75 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.1.rbi +1131 -0
- data/sorbet/rbi/gems/drb@2.2.1.rbi +1347 -0
- data/sorbet/rbi/gems/erubi@1.13.0.rbi +150 -0
- data/sorbet/rbi/gems/globalid@1.2.1.rbi +749 -0
- data/sorbet/rbi/gems/i18n@1.14.5.rbi +2359 -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/logger@1.6.1.rbi +920 -0
- data/sorbet/rbi/gems/loofah@2.22.0.rbi +1081 -0
- data/sorbet/rbi/gems/mail@2.8.1.rbi +8658 -0
- data/sorbet/rbi/gems/marcel@1.0.4.rbi +239 -0
- data/sorbet/rbi/gems/mini_mime@1.1.5.rbi +173 -0
- data/sorbet/rbi/gems/minitest@5.25.1.rbi +1546 -0
- data/sorbet/rbi/gems/net-imap@0.4.16.rbi +10845 -0
- data/sorbet/rbi/gems/net-pop@0.1.2.rbi +927 -0
- data/sorbet/rbi/gems/net-protocol@0.2.2.rbi +292 -0
- data/sorbet/rbi/gems/net-smtp@0.5.0.rbi +1228 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
- data/sorbet/rbi/gems/nio4r@2.7.3.rbi +293 -0
- data/sorbet/rbi/gems/nokogiri@1.16.7.rbi +7311 -0
- data/sorbet/rbi/gems/parallel@1.26.3.rbi +291 -0
- data/sorbet/rbi/gems/parser@3.3.5.0.rbi +5519 -0
- data/sorbet/rbi/gems/prism@1.0.0.rbi +35493 -0
- data/sorbet/rbi/gems/psych@5.1.2.rbi +1769 -0
- data/sorbet/rbi/gems/racc@1.8.1.rbi +162 -0
- data/sorbet/rbi/gems/rack-session@2.0.0.rbi +727 -0
- data/sorbet/rbi/gems/rack-test@2.1.0.rbi +747 -0
- data/sorbet/rbi/gems/rack@3.1.7.rbi +4902 -0
- data/sorbet/rbi/gems/rackup@2.1.0.rbi +390 -0
- data/sorbet/rbi/gems/rails-dom-testing@2.2.0.rbi +758 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.6.0.rbi +785 -0
- data/sorbet/rbi/gems/rails@7.2.1.rbi +9 -0
- data/sorbet/rbi/gems/railties@7.2.1.rbi +3824 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +403 -0
- data/sorbet/rbi/gems/rake@13.2.1.rbi +3046 -0
- data/sorbet/rbi/gems/rbi@0.2.0.rbi +4105 -0
- data/sorbet/rbi/gems/rdoc@6.7.0.rbi +12721 -0
- data/sorbet/rbi/gems/regexp_parser@2.9.2.rbi +3772 -0
- data/sorbet/rbi/gems/reline@0.5.10.rbi +9 -0
- data/sorbet/rbi/gems/rspec-core@3.13.1.rbi +11012 -0
- data/sorbet/rbi/gems/rspec-expectations@3.13.3.rbi +8183 -0
- data/sorbet/rbi/gems/rspec-mocks@3.13.1.rbi +5341 -0
- data/sorbet/rbi/gems/rspec-support@3.13.1.rbi +1630 -0
- data/sorbet/rbi/gems/rspec@3.13.0.rbi +83 -0
- data/sorbet/rbi/gems/rubocop-ast@1.32.3.rbi +7446 -0
- data/sorbet/rbi/gems/rubocop-capybara@2.21.0.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.26.1.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-graphql@1.5.4.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-minitest@0.36.0.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-performance@1.21.1.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-rails@2.26.1.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +329 -0
- data/sorbet/rbi/gems/rubocop-rspec@3.0.5.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-rspec_rails@2.30.0.rbi +9 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.8.5.rbi +9 -0
- data/sorbet/rbi/gems/rubocop@1.66.1.rbi +58268 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1318 -0
- data/sorbet/rbi/gems/securerandom@0.3.1.rbi +396 -0
- data/sorbet/rbi/gems/spoom@1.4.2.rbi +4932 -0
- data/sorbet/rbi/gems/stringio@3.1.1.rbi +9 -0
- data/sorbet/rbi/gems/tapioca@0.16.2.rbi +3581 -0
- data/sorbet/rbi/gems/thor@1.3.2.rbi +4378 -0
- data/sorbet/rbi/gems/timeout@0.4.1.rbi +149 -0
- data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
- data/sorbet/rbi/gems/unicode-display_width@2.5.0.rbi +66 -0
- data/sorbet/rbi/gems/useragent@0.16.10.rbi +9 -0
- data/sorbet/rbi/gems/webrick@1.8.1.rbi +2607 -0
- data/sorbet/rbi/gems/websocket-driver@0.7.6.rbi +993 -0
- data/sorbet/rbi/gems/websocket-extensions@0.1.5.rbi +121 -0
- data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
- data/sorbet/rbi/gems/yard@0.9.37.rbi +18570 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.18.rbi +1051 -0
- data/sorbet/rbi/todo.rbi +6 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +9 -0
- data/tasks/bundle_update.rake +14 -0
- data/tasks/sorbet.rake +26 -0
- metadata +216 -0
@@ -0,0 +1,239 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `marcel` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem marcel`.
|
6
|
+
|
7
|
+
|
8
|
+
# This file is auto-generated. Instead of editing this file, please
|
9
|
+
# add MIMEs to data/custom.xml or lib/marcel/mime_type/definitions.rb.
|
10
|
+
#
|
11
|
+
# source://marcel//lib/marcel.rb#3
|
12
|
+
module Marcel; end
|
13
|
+
|
14
|
+
# @private
|
15
|
+
#
|
16
|
+
# source://marcel//lib/marcel/tables.rb#9
|
17
|
+
Marcel::EXTENSIONS = T.let(T.unsafe(nil), Hash)
|
18
|
+
|
19
|
+
# @private
|
20
|
+
#
|
21
|
+
# source://marcel//lib/marcel/tables.rb#2394
|
22
|
+
Marcel::MAGIC = T.let(T.unsafe(nil), Array)
|
23
|
+
|
24
|
+
# Mime type detection
|
25
|
+
#
|
26
|
+
# source://marcel//lib/marcel/magic.rb#12
|
27
|
+
class Marcel::Magic
|
28
|
+
# Mime type by type string
|
29
|
+
#
|
30
|
+
# @return [Magic] a new instance of Magic
|
31
|
+
#
|
32
|
+
# source://marcel//lib/marcel/magic.rb#16
|
33
|
+
def initialize(type); end
|
34
|
+
|
35
|
+
# Allow comparison with string
|
36
|
+
#
|
37
|
+
# @return [Boolean]
|
38
|
+
#
|
39
|
+
# source://marcel//lib/marcel/magic.rb#103
|
40
|
+
def ==(other); end
|
41
|
+
|
42
|
+
# @return [Boolean]
|
43
|
+
#
|
44
|
+
# source://marcel//lib/marcel/magic.rb#54
|
45
|
+
def audio?; end
|
46
|
+
|
47
|
+
# Returns true if type is child of parent type
|
48
|
+
#
|
49
|
+
# @return [Boolean]
|
50
|
+
#
|
51
|
+
# source://marcel//lib/marcel/magic.rb#58
|
52
|
+
def child_of?(parent); end
|
53
|
+
|
54
|
+
# Get mime comment
|
55
|
+
#
|
56
|
+
# source://marcel//lib/marcel/magic.rb#68
|
57
|
+
def comment; end
|
58
|
+
|
59
|
+
# Allow comparison with string
|
60
|
+
#
|
61
|
+
# @return [Boolean]
|
62
|
+
#
|
63
|
+
# source://marcel//lib/marcel/magic.rb#103
|
64
|
+
def eql?(other); end
|
65
|
+
|
66
|
+
# Get string list of file extensions
|
67
|
+
#
|
68
|
+
# source://marcel//lib/marcel/magic.rb#63
|
69
|
+
def extensions; end
|
70
|
+
|
71
|
+
# source://marcel//lib/marcel/magic.rb#107
|
72
|
+
def hash; end
|
73
|
+
|
74
|
+
# Mediatype shortcuts
|
75
|
+
#
|
76
|
+
# @return [Boolean]
|
77
|
+
#
|
78
|
+
# source://marcel//lib/marcel/magic.rb#53
|
79
|
+
def image?; end
|
80
|
+
|
81
|
+
# Returns the value of attribute mediatype.
|
82
|
+
#
|
83
|
+
# source://marcel//lib/marcel/magic.rb#13
|
84
|
+
def mediatype; end
|
85
|
+
|
86
|
+
# Returns the value of attribute subtype.
|
87
|
+
#
|
88
|
+
# source://marcel//lib/marcel/magic.rb#13
|
89
|
+
def subtype; end
|
90
|
+
|
91
|
+
# Returns true if type is a text format
|
92
|
+
#
|
93
|
+
# @return [Boolean]
|
94
|
+
#
|
95
|
+
# source://marcel//lib/marcel/magic.rb#50
|
96
|
+
def text?; end
|
97
|
+
|
98
|
+
# Return type as string
|
99
|
+
#
|
100
|
+
# source://marcel//lib/marcel/magic.rb#98
|
101
|
+
def to_s; end
|
102
|
+
|
103
|
+
# Returns the value of attribute type.
|
104
|
+
#
|
105
|
+
# source://marcel//lib/marcel/magic.rb#13
|
106
|
+
def type; end
|
107
|
+
|
108
|
+
# @return [Boolean]
|
109
|
+
#
|
110
|
+
# source://marcel//lib/marcel/magic.rb#55
|
111
|
+
def video?; end
|
112
|
+
|
113
|
+
class << self
|
114
|
+
# Add custom mime type. Arguments:
|
115
|
+
# * <i>type</i>: Mime type
|
116
|
+
# * <i>options</i>: Options hash
|
117
|
+
#
|
118
|
+
# Option keys:
|
119
|
+
# * <i>:extensions</i>: String list or single string of file extensions
|
120
|
+
# * <i>:parents</i>: String list or single string of parent mime types
|
121
|
+
# * <i>:magic</i>: Mime magic specification
|
122
|
+
# * <i>:comment</i>: Comment string
|
123
|
+
#
|
124
|
+
# source://marcel//lib/marcel/magic.rb#30
|
125
|
+
def add(type, options); end
|
126
|
+
|
127
|
+
# Lookup all mime types by magic content analysis.
|
128
|
+
# This is a slower operation.
|
129
|
+
#
|
130
|
+
# source://marcel//lib/marcel/magic.rb#93
|
131
|
+
def all_by_magic(io); end
|
132
|
+
|
133
|
+
# Lookup mime type by file extension
|
134
|
+
#
|
135
|
+
# source://marcel//lib/marcel/magic.rb#73
|
136
|
+
def by_extension(ext); end
|
137
|
+
|
138
|
+
# Lookup mime type by magic content analysis.
|
139
|
+
# This is a slow operation.
|
140
|
+
#
|
141
|
+
# source://marcel//lib/marcel/magic.rb#86
|
142
|
+
def by_magic(io); end
|
143
|
+
|
144
|
+
# Lookup mime type by filename
|
145
|
+
#
|
146
|
+
# source://marcel//lib/marcel/magic.rb#80
|
147
|
+
def by_path(path); end
|
148
|
+
|
149
|
+
# @return [Boolean]
|
150
|
+
#
|
151
|
+
# source://marcel//lib/marcel/magic.rb#113
|
152
|
+
def child?(child, parent); end
|
153
|
+
|
154
|
+
# Removes a mime type from the dictionary. You might want to do this if
|
155
|
+
# you're seeing impossible conflicts (for instance, application/x-gmc-link).
|
156
|
+
# * <i>type</i>: The mime type to remove. All associated extensions and magic are removed too.
|
157
|
+
#
|
158
|
+
# source://marcel//lib/marcel/magic.rb#42
|
159
|
+
def remove(type); end
|
160
|
+
|
161
|
+
private
|
162
|
+
|
163
|
+
# source://marcel//lib/marcel/magic.rb#117
|
164
|
+
def magic_match(io, method); end
|
165
|
+
|
166
|
+
# source://marcel//lib/marcel/magic.rb#127
|
167
|
+
def magic_match_io(io, matches, buffer); end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# source://marcel//lib/marcel/mime_type.rb#4
|
172
|
+
class Marcel::MimeType
|
173
|
+
class << self
|
174
|
+
# source://marcel//lib/marcel/mime_type.rb#8
|
175
|
+
def extend(type, extensions: T.unsafe(nil), parents: T.unsafe(nil), magic: T.unsafe(nil)); end
|
176
|
+
|
177
|
+
# Returns the most appropriate content type for the given file.
|
178
|
+
#
|
179
|
+
# The first argument should be a +Pathname+ or an +IO+. If it is a +Pathname+, the specified
|
180
|
+
# file will be opened first.
|
181
|
+
#
|
182
|
+
# Optional parameters:
|
183
|
+
# * +name+: file name, if known
|
184
|
+
# * +extension+: file extension, if known
|
185
|
+
# * +declared_type+: MIME type, if known
|
186
|
+
#
|
187
|
+
# The most appropriate type is determined by the following:
|
188
|
+
# * type declared by binary magic number data
|
189
|
+
# * type declared by the first of file name, file extension, or declared MIME type
|
190
|
+
#
|
191
|
+
# If no type can be determined, then +application/octet-stream+ is returned.
|
192
|
+
#
|
193
|
+
# source://marcel//lib/marcel/mime_type.rb#29
|
194
|
+
def for(pathname_or_io = T.unsafe(nil), name: T.unsafe(nil), extension: T.unsafe(nil), declared_type: T.unsafe(nil)); end
|
195
|
+
|
196
|
+
private
|
197
|
+
|
198
|
+
# source://marcel//lib/marcel/mime_type.rb#36
|
199
|
+
def for_data(pathname_or_io); end
|
200
|
+
|
201
|
+
# source://marcel//lib/marcel/mime_type.rb#62
|
202
|
+
def for_declared_type(declared_type); end
|
203
|
+
|
204
|
+
# source://marcel//lib/marcel/mime_type.rb#54
|
205
|
+
def for_extension(extension); end
|
206
|
+
|
207
|
+
# source://marcel//lib/marcel/mime_type.rb#46
|
208
|
+
def for_name(name); end
|
209
|
+
|
210
|
+
# For some document types (notably Microsoft Office) we recognise the main content
|
211
|
+
# type with magic, but not the specific subclass. In this situation, if we can get a more
|
212
|
+
# specific class using either the name or declared_type, we should use that in preference
|
213
|
+
#
|
214
|
+
# source://marcel//lib/marcel/mime_type.rb#89
|
215
|
+
def most_specific_type(*candidates); end
|
216
|
+
|
217
|
+
# source://marcel//lib/marcel/mime_type.rb#79
|
218
|
+
def parse_media_type(content_type); end
|
219
|
+
|
220
|
+
# source://marcel//lib/marcel/mime_type.rb#71
|
221
|
+
def with_io(pathname_or_io, &block); end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
# source://marcel//lib/marcel/mime_type.rb#5
|
226
|
+
Marcel::MimeType::BINARY = T.let(T.unsafe(nil), String)
|
227
|
+
|
228
|
+
# @private
|
229
|
+
#
|
230
|
+
# source://marcel//lib/marcel/tables.rb#1260
|
231
|
+
Marcel::TYPE_EXTS = T.let(T.unsafe(nil), Hash)
|
232
|
+
|
233
|
+
# Cooltalk Audio
|
234
|
+
#
|
235
|
+
# source://marcel//lib/marcel/tables.rb#2151
|
236
|
+
Marcel::TYPE_PARENTS = T.let(T.unsafe(nil), Hash)
|
237
|
+
|
238
|
+
# source://marcel//lib/marcel/version.rb#4
|
239
|
+
Marcel::VERSION = T.let(T.unsafe(nil), String)
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `mini_mime` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem mini_mime`.
|
6
|
+
|
7
|
+
|
8
|
+
# source://mini_mime//lib/mini_mime/version.rb#2
|
9
|
+
module MiniMime
|
10
|
+
class << self
|
11
|
+
# source://mini_mime//lib/mini_mime.rb#14
|
12
|
+
def lookup_by_content_type(mime); end
|
13
|
+
|
14
|
+
# source://mini_mime//lib/mini_mime.rb#10
|
15
|
+
def lookup_by_extension(extension); end
|
16
|
+
|
17
|
+
# source://mini_mime//lib/mini_mime.rb#6
|
18
|
+
def lookup_by_filename(filename); end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
# source://mini_mime//lib/mini_mime.rb#18
|
23
|
+
module MiniMime::Configuration
|
24
|
+
class << self
|
25
|
+
# Returns the value of attribute content_type_db_path.
|
26
|
+
#
|
27
|
+
# source://mini_mime//lib/mini_mime.rb#21
|
28
|
+
def content_type_db_path; end
|
29
|
+
|
30
|
+
# Sets the attribute content_type_db_path
|
31
|
+
#
|
32
|
+
# @param value the value to set the attribute content_type_db_path to.
|
33
|
+
#
|
34
|
+
# source://mini_mime//lib/mini_mime.rb#21
|
35
|
+
def content_type_db_path=(_arg0); end
|
36
|
+
|
37
|
+
# Returns the value of attribute ext_db_path.
|
38
|
+
#
|
39
|
+
# source://mini_mime//lib/mini_mime.rb#20
|
40
|
+
def ext_db_path; end
|
41
|
+
|
42
|
+
# Sets the attribute ext_db_path
|
43
|
+
#
|
44
|
+
# @param value the value to set the attribute ext_db_path to.
|
45
|
+
#
|
46
|
+
# source://mini_mime//lib/mini_mime.rb#20
|
47
|
+
def ext_db_path=(_arg0); end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
# source://mini_mime//lib/mini_mime.rb#52
|
52
|
+
class MiniMime::Db
|
53
|
+
# @return [Db] a new instance of Db
|
54
|
+
#
|
55
|
+
# source://mini_mime//lib/mini_mime.rb#173
|
56
|
+
def initialize; end
|
57
|
+
|
58
|
+
# source://mini_mime//lib/mini_mime.rb#182
|
59
|
+
def lookup_by_content_type(content_type); end
|
60
|
+
|
61
|
+
# source://mini_mime//lib/mini_mime.rb#178
|
62
|
+
def lookup_by_extension(extension); end
|
63
|
+
|
64
|
+
class << self
|
65
|
+
# source://mini_mime//lib/mini_mime.rb#66
|
66
|
+
def lookup_by_content_type(content_type); end
|
67
|
+
|
68
|
+
# source://mini_mime//lib/mini_mime.rb#60
|
69
|
+
def lookup_by_extension(extension); end
|
70
|
+
|
71
|
+
# source://mini_mime//lib/mini_mime.rb#53
|
72
|
+
def lookup_by_filename(filename); end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# source://mini_mime//lib/mini_mime.rb#71
|
77
|
+
class MiniMime::Db::Cache
|
78
|
+
# @return [Cache] a new instance of Cache
|
79
|
+
#
|
80
|
+
# source://mini_mime//lib/mini_mime.rb#72
|
81
|
+
def initialize(size); end
|
82
|
+
|
83
|
+
# source://mini_mime//lib/mini_mime.rb#77
|
84
|
+
def []=(key, val); end
|
85
|
+
|
86
|
+
# source://mini_mime//lib/mini_mime.rb#83
|
87
|
+
def fetch(key, &blk); end
|
88
|
+
end
|
89
|
+
|
90
|
+
# For Windows support
|
91
|
+
#
|
92
|
+
# source://mini_mime//lib/mini_mime.rb#89
|
93
|
+
MiniMime::Db::PReadFile = File
|
94
|
+
|
95
|
+
# source://mini_mime//lib/mini_mime.rb#114
|
96
|
+
class MiniMime::Db::RandomAccessDb
|
97
|
+
# @return [RandomAccessDb] a new instance of RandomAccessDb
|
98
|
+
#
|
99
|
+
# source://mini_mime//lib/mini_mime.rb#117
|
100
|
+
def initialize(path, sort_order); end
|
101
|
+
|
102
|
+
# source://mini_mime//lib/mini_mime.rb#131
|
103
|
+
def lookup(val); end
|
104
|
+
|
105
|
+
# lifted from marcandre/backports
|
106
|
+
#
|
107
|
+
# source://mini_mime//lib/mini_mime.rb#147
|
108
|
+
def lookup_uncached(val); end
|
109
|
+
|
110
|
+
# source://mini_mime//lib/mini_mime.rb#168
|
111
|
+
def resolve(row); end
|
112
|
+
end
|
113
|
+
|
114
|
+
# source://mini_mime//lib/mini_mime.rb#115
|
115
|
+
MiniMime::Db::RandomAccessDb::MAX_CACHED = T.let(T.unsafe(nil), Integer)
|
116
|
+
|
117
|
+
# source://mini_mime//lib/mini_mime.rb#28
|
118
|
+
class MiniMime::Info
|
119
|
+
# @return [Info] a new instance of Info
|
120
|
+
#
|
121
|
+
# source://mini_mime//lib/mini_mime.rb#33
|
122
|
+
def initialize(buffer); end
|
123
|
+
|
124
|
+
# source://mini_mime//lib/mini_mime.rb#37
|
125
|
+
def [](idx); end
|
126
|
+
|
127
|
+
# @return [Boolean]
|
128
|
+
#
|
129
|
+
# source://mini_mime//lib/mini_mime.rb#47
|
130
|
+
def binary?; end
|
131
|
+
|
132
|
+
# Returns the value of attribute content_type.
|
133
|
+
#
|
134
|
+
# source://mini_mime//lib/mini_mime.rb#31
|
135
|
+
def content_type; end
|
136
|
+
|
137
|
+
# Sets the attribute content_type
|
138
|
+
#
|
139
|
+
# @param value the value to set the attribute content_type to.
|
140
|
+
#
|
141
|
+
# source://mini_mime//lib/mini_mime.rb#31
|
142
|
+
def content_type=(_arg0); end
|
143
|
+
|
144
|
+
# Returns the value of attribute encoding.
|
145
|
+
#
|
146
|
+
# source://mini_mime//lib/mini_mime.rb#31
|
147
|
+
def encoding; end
|
148
|
+
|
149
|
+
# Sets the attribute encoding
|
150
|
+
#
|
151
|
+
# @param value the value to set the attribute encoding to.
|
152
|
+
#
|
153
|
+
# source://mini_mime//lib/mini_mime.rb#31
|
154
|
+
def encoding=(_arg0); end
|
155
|
+
|
156
|
+
# Returns the value of attribute extension.
|
157
|
+
#
|
158
|
+
# source://mini_mime//lib/mini_mime.rb#31
|
159
|
+
def extension; end
|
160
|
+
|
161
|
+
# Sets the attribute extension
|
162
|
+
#
|
163
|
+
# @param value the value to set the attribute extension to.
|
164
|
+
#
|
165
|
+
# source://mini_mime//lib/mini_mime.rb#31
|
166
|
+
def extension=(_arg0); end
|
167
|
+
end
|
168
|
+
|
169
|
+
# source://mini_mime//lib/mini_mime.rb#29
|
170
|
+
MiniMime::Info::BINARY_ENCODINGS = T.let(T.unsafe(nil), Array)
|
171
|
+
|
172
|
+
# source://mini_mime//lib/mini_mime/version.rb#3
|
173
|
+
MiniMime::VERSION = T.let(T.unsafe(nil), String)
|