marcel 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marcel/mime_type/definitions.rb +2 -0
- data/lib/marcel/tables.rb +30 -24
- data/lib/marcel/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc7fbdfb0773a80f6826742b37b9cda29b8052b0bfd150db03b6ba032bac9c1c
|
4
|
+
data.tar.gz: c69cee83d060a359318b4302703d276e1ad24aaa73f9c42b4e5af5870a96420e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67ba30b3d8d1f0955397411e478b03844fb53219ceb557411a3059523f21c72fcb5379ae7d9095de1f3053e9c12c3751052db74b27d47a102a78080bb9083776
|
7
|
+
data.tar.gz: 7a3178742ed80dcc0f04781baba63dc8758b979d46c11a4ad9f0a365f334cd5ebd9a54ddd39da40f0f9583221bb50e157deee766a67a86fb2525cd19235a8194
|
@@ -38,5 +38,7 @@ Marcel::MimeType.extend "image/heic", magic: [[4, "ftypheic"]], extensions: %w(
|
|
38
38
|
Marcel::MimeType.extend "video/mp4", magic: [[4, "ftypisom"], [4, "ftypM4V "]], extensions: %w( mp4 m4v )
|
39
39
|
|
40
40
|
Marcel::MimeType.extend "font/ttf", magic: [[0, "\x00\x01\x00\x00"]], extensions: %w( ttf ttc )
|
41
|
+
Marcel::MimeType.extend "font/otf", magic: [[0, "OTTO"]], extensions: %w( otf ), parents: "font/ttf"
|
41
42
|
Marcel::MimeType.extend "application/vnd.adobe.flash.movie", magic: [[0, "FWS"], [0, "CWS"]], extensions: %w( swf )
|
42
43
|
Marcel::MimeType.extend "application/sql", extensions: %w( sql )
|
44
|
+
Marcel::MimeType.extend "text/vcard", magic: [[0, "BEGIN:VCARD"]], extensions: %w( vcf ), parents: "text/plain"
|
data/lib/marcel/tables.rb
CHANGED
@@ -1139,6 +1139,8 @@ module Marcel
|
|
1139
1139
|
'wmv' => 'video/x-ms-wmv',
|
1140
1140
|
'wmx' => 'video/x-ms-wmx',
|
1141
1141
|
'wmz' => 'application/x-ms-wmz',
|
1142
|
+
'woff' => 'font/woff',
|
1143
|
+
'woff2' => 'font/woff2',
|
1142
1144
|
'wp' => 'application/vnd.wordperfect',
|
1143
1145
|
'wp5' => 'application/vnd.wordperfect',
|
1144
1146
|
'wp6' => 'application/vnd.wordperfect',
|
@@ -1908,6 +1910,8 @@ module Marcel
|
|
1908
1910
|
'chemical/x-csml' => [%w(csml), %w(), nil],
|
1909
1911
|
'chemical/x-pdb' => [%w(pdb), %w(), 'Brookhaven Protein Databank File'],
|
1910
1912
|
'chemical/x-xyz' => [%w(xyz), %w(), nil],
|
1913
|
+
'font/woff' => [%w(woff), %w(), nil],
|
1914
|
+
'font/woff2' => [%w(woff2), %w(), nil],
|
1911
1915
|
'image/aces' => [%w(exr), %w(), 'ACES Image Container File'],
|
1912
1916
|
'image/avif' => [%w(avif), %w(), 'AV1 Image File'],
|
1913
1917
|
'image/bmp' => [%w(bmp dib), %w(), 'Windows bitmap'],
|
@@ -2160,11 +2164,11 @@ module Marcel
|
|
2160
2164
|
['audio/mpeg', [[0, "\377\362"], [0, "\377\363"], [0, "\377\364"], [0, "\377\365"], [0, "\377\366"], [0, "\377\367"], [0, "\377\372"], [0, "\377\373"], [0, "\377\374"], [0, "\377\375"], [0, "\377\377"], [0, 'ID3']]],
|
2161
2165
|
['application/pdf', [[0, '%PDF-'], [0, "\357\273\277%PDF-"]]],
|
2162
2166
|
['application/msword', [[0..8, "\320\317\021\340\241\261\032\341", [[546, 'jbjb'], [546, 'bjbj']]]]],
|
2163
|
-
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, "PK\003\004", [[30, '[Content_Types].xml', [[0..4096, 'word/']]], [30, '_rels/.rels', [[0..4096, 'word/']]]]]]],
|
2167
|
+
['application/vnd.openxmlformats-officedocument.wordprocessingml.document', [[0, "PK\003\004", [[30..65536, '[Content_Types].xml', [[0..4096, 'word/']]], [30, '_rels/.rels', [[0..4096, 'word/']]]]]]],
|
2164
2168
|
['application/vnd.ms-powerpoint', [[0..8, "\320\317\021\340\241\261\032\341", [[1152..4096, "P\000o\000w\000e\000r\000P\000o\000i\000n\000t\000 D\000o\000c\000u\000m\000e\000n\000t"]]]]],
|
2165
|
-
['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, "PK\003\004", [[30, '[Content_Types].xml', [[0..4096, 'ppt/']]], [30, '_rels/.rels', [[0..4096, 'ppt/']]]]]]],
|
2169
|
+
['application/vnd.openxmlformats-officedocument.presentationml.presentation', [[0, "PK\003\004", [[30..65536, '[Content_Types].xml', [[0..4096, 'ppt/']]], [30, '_rels/.rels', [[0..4096, 'ppt/']]]]]]],
|
2166
2170
|
['application/vnd.ms-excel', [[2080, 'Microsoft Excel 5.0 Worksheet'], [2080, 'Foglio di lavoro Microsoft Exce'], [2114, 'Biff5'], [2121, 'Biff5'], [0..8, "\320\317\021\340\241\261\032\341", [[1152..4096, "W\000o\000r\000k\000b\000o\000o\000k"]]]]],
|
2167
|
-
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, "PK\003\004", [[30, '[Content_Types].xml', [[0..4096, 'xl/']]], [30, '_rels/.rels', [[0..4096, 'xl/']]]]]]],
|
2171
|
+
['application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', [[0, "PK\003\004", [[30..65536, '[Content_Types].xml', [[0..4096, 'xl/']]], [30, '_rels/.rels', [[0..4096, 'xl/']]]]]]],
|
2168
2172
|
['application/x-dbf', [[0, "(?s)^[\\\\002\\\\003\\\\060\\\\061\\\\062\\\\103\\\\143\\\\203\\\\213\\\\313\\\\365\\\\345\\\\373].[\\\\001-\\\\014][\\\\001-\\\\037].{4}(?:.[^\\\\000]|[\\\\101-\\\\377].)(?:[^\\\\000\\\\001].|.[^\\\\000]).{31}(?<=[\\\\000][^\\\\000]{0,10})[A-Z@+]"]]],
|
2169
2173
|
['image/x-tga', [[1, "\001\001\000\000", [[8, ".*[\\\\124\\\\122\\\\125\\\\105\\\\126\\\\111\\\\123\\\\111\\\\117\\\\116\\\\055\\\\130\\\\106\\\\111\\\\114\\\\105\\\\056\\\\000]"]]], [1, "\000\002\000\000", [[8, ".*[\\\\124\\\\122\\\\125\\\\105\\\\126\\\\111\\\\123\\\\111\\\\117\\\\116\\\\055\\\\130\\\\106\\\\111\\\\114\\\\105\\\\056\\\\000]"]]], [1, "\000\003\000\000", [[8, ".*[\\\\124\\\\122\\\\125\\\\105\\\\126\\\\111\\\\123\\\\111\\\\117\\\\116\\\\055\\\\130\\\\106\\\\111\\\\114\\\\105\\\\056\\\\000]"]]]]],
|
2170
2174
|
['application/x-endnote-refer', [[0..50, '%A ', [[0..1000, "\n%D ", [[0..1000, "\n%T "]]]]]]],
|
@@ -2240,6 +2244,7 @@ module Marcel
|
|
2240
2244
|
['video/x-ogm', [[0, 'OggS', [[29, 'ideo']]]]],
|
2241
2245
|
['application/x-msdownload;format=pe', [[0, 'MZ', [[128, "PE\000\000"], [176, "PE\000\000"], [208, "PE\000\000"], [240, "PE\000\000"]]]]],
|
2242
2246
|
['application/applefile', [[0, "\000\005\026\000"]]],
|
2247
|
+
['application/dash+xml', [[0, '<MPD']]],
|
2243
2248
|
['application/dicom', [[128, 'DICM']]],
|
2244
2249
|
['application/epub+zip', [[0, "PK\003\004", [[30, 'mimetypeapplication/epub+zip']]]]],
|
2245
2250
|
['application/fits', [[0, 'SIMPLE = T'], [0, 'SIMPLE = T']]],
|
@@ -2260,6 +2265,7 @@ module Marcel
|
|
2260
2265
|
['application/sereal;version=2', [[0, '=srl']]],
|
2261
2266
|
['application/sereal;version=3', [[0, "=\363rl"]]],
|
2262
2267
|
['application/timestamped-data', [[0, "0\200\006\v*\206H\206\367"]]],
|
2268
|
+
['application/vnd.apple.mpegurl', [[0, '#EXTM3U']]],
|
2263
2269
|
['application/vnd.digilite.prolights', [[0, "\177\fD+"]]],
|
2264
2270
|
['application/vnd.fdf', [[0, '%FDF-']]],
|
2265
2271
|
['application/vnd.java.hprof ', [[0, "JAVA PROFILE \\\\d\\\\.\\\\d\\\\.\\\\d\\\\u0000"]]],
|
@@ -2277,11 +2283,28 @@ module Marcel
|
|
2277
2283
|
['application/vnd.ms-outlook-pst', [[0, '!BDN', [[8, 'SM']]]]],
|
2278
2284
|
['application/vnd.ms-tnef', [[0, "x\237>\""]]],
|
2279
2285
|
['application/vnd.ms-works', [[0..8, "\320\317\021\340\241\261\032\341", [[1152..4096, "M\000a\000t\000O\000S\000T"]]]]],
|
2286
|
+
['application/vnd.oasis.opendocument.chart', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.chart']]]]],
|
2287
|
+
['application/vnd.oasis.opendocument.chart-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.chart-template']]]]],
|
2288
|
+
['application/vnd.oasis.opendocument.formula', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.formula']]]]],
|
2289
|
+
['application/vnd.oasis.opendocument.formula-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.formula-template']]]]],
|
2290
|
+
['application/vnd.oasis.opendocument.graphics', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.graphics']]]]],
|
2291
|
+
['application/vnd.oasis.opendocument.graphics-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.graphics-template']]]]],
|
2292
|
+
['application/vnd.oasis.opendocument.image', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.image']]]]],
|
2293
|
+
['application/vnd.oasis.opendocument.image-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.image-template']]]]],
|
2294
|
+
['application/vnd.oasis.opendocument.presentation', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.presentation']]]]],
|
2295
|
+
['application/vnd.oasis.opendocument.presentation-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.presentation-template']]]]],
|
2296
|
+
['application/vnd.oasis.opendocument.spreadsheet', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.spreadsheet']]]]],
|
2297
|
+
['application/vnd.oasis.opendocument.spreadsheet-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.spreadsheet-template']]]]],
|
2298
|
+
['application/vnd.oasis.opendocument.text', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text']]]]],
|
2299
|
+
['application/vnd.oasis.opendocument.text-master', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text-master']]]]],
|
2300
|
+
['application/vnd.oasis.opendocument.text-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text-template']]]]],
|
2301
|
+
['application/vnd.oasis.opendocument.text-web', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text-web']]]]],
|
2280
2302
|
['application/vnd.rn-realmedia', [[0, '.RMF']]],
|
2281
2303
|
['application/vnd.stardivision.calc', [[0..8, "\320\317\021\340\241\261\032\341", [[2048..2207, 'StarCalc']]]]],
|
2282
2304
|
['application/vnd.stardivision.draw', [[0..8, "\320\317\021\340\241\261\032\341", [[2048..2207, 'StarDraw']]]]],
|
2283
2305
|
['application/vnd.stardivision.impress', [[0..8, "\320\317\021\340\241\261\032\341", [[2048..2207, 'StarImpress']]]]],
|
2284
2306
|
['application/vnd.stardivision.writer', [[0..8, "\320\317\021\340\241\261\032\341", [[2048..2207, 'StarWriter']]]]],
|
2307
|
+
['application/vnd.sun.xml.writer', [[0, 'PK', [[30, 'mimetypeapplication/vnd.sun.xml.writer']]]]],
|
2285
2308
|
['application/vnd.symbian.install', [[8, "\031\004\000\020"]]],
|
2286
2309
|
['application/vnd.tcpdump.pcap', [[0, "\241\262\303\324"], [0, "\324\303\262\241"]]],
|
2287
2310
|
['application/vnd.wolfram.wl', [[0, '#!/usr/bin/env wolframscript']]],
|
@@ -2316,6 +2339,7 @@ module Marcel
|
|
2316
2339
|
['application/x-erdas-hfa', [[0, 'EHFA_HEADER_TAG']]],
|
2317
2340
|
['application/x-executable', [[0, "\177ELF", [[16, "\002\000"], [16, "\000\002"]]]]],
|
2318
2341
|
['application/x-filemaker', [[14, "\300HBAM7", [[525, "HBAM2101OCT99\301\002H\aPro 7.0\300\300"]]]]],
|
2342
|
+
['application/x-foxmail', [[0, "\020\020\020\020\020\020\020\021\021\021\021\021\021S"]]],
|
2319
2343
|
['application/x-gnumeric', [[39, '=<gmr:Workbook']]],
|
2320
2344
|
['application/x-grib', [[0, 'GRIB']]],
|
2321
2345
|
['application/x-gtar', [[257, "ustar \000"]]],
|
@@ -2379,6 +2403,8 @@ module Marcel
|
|
2379
2403
|
['audio/x-ms-wma', [[0..8192, 'Windows Media Audio']]],
|
2380
2404
|
['audio/x-pn-realaudio', [[0, ".ra\375"]]],
|
2381
2405
|
['chemical/x-cdx', [[0, 'VjCD0100']]],
|
2406
|
+
['font/woff', [[0, 'wOFF']]],
|
2407
|
+
['font/woff2', [[0, 'wOF2']]],
|
2382
2408
|
['image/aces', [[0, "v/1\001\002\000\000\000"], [0, "v/1\001\002\004\000\000"]]],
|
2383
2409
|
['image/cgm', [[0, 'BEGMF']]],
|
2384
2410
|
['image/emf', [[0, "\001\000\000\000", [[40, ' EMF']]]]],
|
@@ -2435,6 +2461,7 @@ module Marcel
|
|
2435
2461
|
['video/mj2', [[0, "\000\000\000\fjP \r\n\207\n", [[20, 'mjp2']]]]],
|
2436
2462
|
['video/x-jng', [[0, "\213JNG"]]],
|
2437
2463
|
['video/x-mng', [[0, "\212MNG"]]],
|
2464
|
+
['video/x-ms-asf', [[0, "0&\262u"]]],
|
2438
2465
|
['video/x-sgi-movie', [[0, "MOVI\000"], [0, "MOVI\001"], [0, "MOVI\002"], [0, "MOVI\376"], [0, "MOVI\377"]]],
|
2439
2466
|
['application/gzip', [[0, "\037\213"], [0, "\037\213"]]],
|
2440
2467
|
['application/zlib', [[0, "x\001"], [0, 'x^'], [0, "x\234"], [0, "x\332"]]],
|
@@ -2484,26 +2511,5 @@ module Marcel
|
|
2484
2511
|
['text/html', [[128..8192, '<html']]],
|
2485
2512
|
['text/plain', [[0, 'This is TeX,'], [0, 'This is METAFONT,'], [0, '/*'], [0, '//'], [0, ';;'], [0, "\376\377"], [0, "\377\376"], [0, "\357\273\277"]]],
|
2486
2513
|
['text/x-makefile', [[0, '# Makefile.in generated by'], [0, '#!make'], [0, '#!/usr/bin/make'], [0, '#!/usr/local/bin/make'], [0, '#!/usr/bin/env make']]],
|
2487
|
-
['application/dash+xml', [[0, '<MPD']]],
|
2488
|
-
['application/vnd.apple.mpegurl', [[0, '#EXTM3U']]],
|
2489
|
-
['application/vnd.oasis.opendocument.chart', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.chart']]]]],
|
2490
|
-
['application/vnd.oasis.opendocument.chart-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.chart-template']]]]],
|
2491
|
-
['application/vnd.oasis.opendocument.formula', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.formula']]]]],
|
2492
|
-
['application/vnd.oasis.opendocument.formula-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.formula-template']]]]],
|
2493
|
-
['application/vnd.oasis.opendocument.graphics', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.graphics']]]]],
|
2494
|
-
['application/vnd.oasis.opendocument.graphics-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.graphics-template']]]]],
|
2495
|
-
['application/vnd.oasis.opendocument.image', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.image']]]]],
|
2496
|
-
['application/vnd.oasis.opendocument.image-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.image-template']]]]],
|
2497
|
-
['application/vnd.oasis.opendocument.presentation', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.presentation']]]]],
|
2498
|
-
['application/vnd.oasis.opendocument.presentation-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.presentation-template']]]]],
|
2499
|
-
['application/vnd.oasis.opendocument.spreadsheet', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.spreadsheet']]]]],
|
2500
|
-
['application/vnd.oasis.opendocument.spreadsheet-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.spreadsheet-template']]]]],
|
2501
|
-
['application/vnd.oasis.opendocument.text', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text']]]]],
|
2502
|
-
['application/vnd.oasis.opendocument.text-master', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text-master']]]]],
|
2503
|
-
['application/vnd.oasis.opendocument.text-template', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text-template']]]]],
|
2504
|
-
['application/vnd.oasis.opendocument.text-web', [[0, 'PK', [[30, 'mimetypeapplication/vnd.oasis.opendocument.text-web']]]]],
|
2505
|
-
['application/vnd.sun.xml.writer', [[0, 'PK', [[30, 'mimetypeapplication/vnd.sun.xml.writer']]]]],
|
2506
|
-
['application/x-foxmail', [[0, "\020\020\020\020\020\020\020\021\021\021\021\021\021S"]]],
|
2507
|
-
['video/x-ms-asf', [[0, "0&\262u"]]],
|
2508
2514
|
]
|
2509
2515
|
end
|
data/lib/marcel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: marcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Ward
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -70,14 +70,14 @@ dependencies:
|
|
70
70
|
name: nokogiri
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.9.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 1.9.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
@@ -108,7 +108,7 @@ files:
|
|
108
108
|
- lib/marcel/mime_type/definitions.rb
|
109
109
|
- lib/marcel/tables.rb
|
110
110
|
- lib/marcel/version.rb
|
111
|
-
homepage: https://github.com/
|
111
|
+
homepage: https://github.com/rails/marcel
|
112
112
|
licenses:
|
113
113
|
- MIT
|
114
114
|
- Apache-2.0
|