mini_mime 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +27 -3
- data/CHANGELOG +5 -0
- data/Gemfile +2 -0
- data/README.md +2 -2
- data/lib/mini_mime.rb +1 -1
- data/lib/mini_mime/version.rb +1 -1
- data/mini_mime.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a46bf265494380ebc5d3bc4918b999e8e1b635a
|
4
|
+
data.tar.gz: ead5c22a9b72e8cc4f8afdb22563427d5211ed80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 603449f958807de86bc2097ab82afe78a0e67f237e0fac9fd73fec9abee13550c0f3a4dcd18518ddce48bc228a0030a57e07f537196949bbe9d2681a63d5eb23
|
7
|
+
data.tar.gz: d617bc1422d36bde0dab45e44eb5823d2ba003260e3c1bb8f1e606bde22d533ad25b6ee7b778f9c2fd14945dc7a9092a0bec79c172bfe070a2a18c486763ee99
|
data/.travis.yml
CHANGED
@@ -1,5 +1,29 @@
|
|
1
|
-
sudo: false
|
2
1
|
language: ruby
|
3
|
-
|
4
|
-
|
2
|
+
sudo: false
|
3
|
+
cache: bundler
|
4
|
+
|
5
5
|
before_install: gem install bundler -v 1.13.6
|
6
|
+
|
7
|
+
rvm:
|
8
|
+
- 1.8.7
|
9
|
+
- 1.9.2
|
10
|
+
- 1.9.3
|
11
|
+
- 2.0.0
|
12
|
+
- 2.1.10
|
13
|
+
- 2.2.6
|
14
|
+
- 2.3.3
|
15
|
+
- ruby-head
|
16
|
+
- jruby
|
17
|
+
- jruby-9.0.5.0
|
18
|
+
- jruby-9.1.6.0
|
19
|
+
- jruby-head
|
20
|
+
- rbx-2
|
21
|
+
|
22
|
+
matrix:
|
23
|
+
allow_failures:
|
24
|
+
- rvm: ruby-head
|
25
|
+
- rvm: jruby-9.0.5.0
|
26
|
+
- rvm: jruby-9.1.6.0
|
27
|
+
- rvm: jruby-head
|
28
|
+
- rvm: rbx-2
|
29
|
+
fast_finish: true
|
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -36,7 +36,7 @@ MiniMime.lookup_by_content_type("text/plain").binary?
|
|
36
36
|
|
37
37
|
## Performance
|
38
38
|
|
39
|
-
MiniMime is optimised to minimize memory usage. It keeps a cache of 100 mime type lookups (and 100 misses). There are benchmarks in the
|
39
|
+
MiniMime is optimised to minimize memory usage. It keeps a cache of 100 mime type lookups (and 100 misses). There are benchmarks in the [bench directory](https://github.com/discourse/mini_mime/bench/bench.rb)
|
40
40
|
|
41
41
|
```
|
42
42
|
Memory stats for requiring mime/types/columnar
|
@@ -73,7 +73,7 @@ As a general guideline, cached lookups are 2x faster than MIME::Types equivelent
|
|
73
73
|
|
74
74
|
## Development
|
75
75
|
|
76
|
-
MiniMime uses the officially maintained list of mime types at
|
76
|
+
MiniMime uses the officially maintained list of mime types at [mime-types-data](https://github.com/mime-types/mime-types-data)repo to build the internal database.
|
77
77
|
|
78
78
|
To update the database run:
|
79
79
|
|
data/lib/mini_mime.rb
CHANGED
data/lib/mini_mime/version.rb
CHANGED
data/mini_mime.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mini_mime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Saffron
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '5.0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: mime-types
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '3'
|
69
55
|
description: A lightweight mime type lookup toy
|
70
56
|
email:
|
71
57
|
- sam.saffron@gmail.com
|