multi_mime 1.0.1 → 1.1.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 +4 -4
- data/.travis.yml +5 -1
- data/CHANGELOG.md +12 -0
- data/Gemfile +1 -0
- data/README.md +5 -2
- data/Rakefile +1 -1
- data/lib/multi_mime.rb +3 -1
- data/lib/multi_mime/version.rb +1 -1
- data/spec/support/codeclimate.rb +2 -0
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ec0a5ecd4328f4de0d1e40a814f7e6c689db537
|
|
4
|
+
data.tar.gz: b2db5aaeb94cd0bd807401ae5d9dfcde7618d91c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 156c300fe64d39a89705efce2bcefa4b7d9d475d86018dd9460107c0249838c2c81806833d837c027d52e16c36b8dfa0b2cada721afbc4bd733ea08ea56288fa
|
|
7
|
+
data.tar.gz: 6c542553a68a03a6d76381d68f20dd0ec4f0df27041baf4f90c4777fc4c39f938d98fc2e054c95f8946e459dff4b296cb7c64c1b05376722c970f46077a57fbc
|
data/.travis.yml
CHANGED
|
@@ -6,6 +6,8 @@ rvm:
|
|
|
6
6
|
- ruby
|
|
7
7
|
- jruby-head
|
|
8
8
|
- jruby
|
|
9
|
+
- 2.3.0
|
|
10
|
+
- 2.2.0
|
|
9
11
|
- 2.1.0
|
|
10
12
|
- 2.0.0
|
|
11
13
|
- 1.9.3
|
|
@@ -19,4 +21,6 @@ matrix:
|
|
|
19
21
|
- rvm: jruby
|
|
20
22
|
- rvm: rbx-2
|
|
21
23
|
notifications:
|
|
22
|
-
email: false
|
|
24
|
+
email: false
|
|
25
|
+
env:
|
|
26
|
+
- CODECLIMATE_REPO_TOKEN=2e219060d1f426aa912dc1de5f8573c45575edd9320befc7e7cad43f63c3a4ec
|
data/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Next Release
|
|
2
|
+
============
|
|
3
|
+
* Your contribution here.
|
|
4
|
+
|
|
5
|
+
1.0.1 (31/03/2014)
|
|
6
|
+
==================
|
|
7
|
+
* [Ensure loading an adaptor is Thread.exclusive](https://github.com/karlfreeman/multi_mime/commit/4c39deeb98f8b6fa86d49c50c6c3eec0c626d22a) - [@karlfreeman](https://github.com/karlfreeman).
|
|
8
|
+
* [Add MultiMime::AdapterError for failing adapter errors](https://github.com/karlfreeman/multi_mime/commit/d72ae4fac711364c5042991aba7f0001b969a528) - [@karlfreeman](https://github.com/karlfreeman).
|
|
9
|
+
|
|
10
|
+
1.0.0 (03/03/2014)
|
|
11
|
+
==================
|
|
12
|
+
* Initial public release - [@karlfreeman](https://github.com/karlfreeman).
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ eg [MultiJson](https://github.com/intridea/multi_json) for MIME types.
|
|
|
9
9
|
## Installation
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
gem 'multi_mime', '~> 1.
|
|
12
|
+
gem 'multi_mime', '~> 1.1'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
```ruby
|
|
@@ -61,6 +61,7 @@ When MultiMime fails to load the specified adapter, it'll throw `MultiMime::Adap
|
|
|
61
61
|
[][gem]
|
|
62
62
|
[][travis]
|
|
63
63
|
[][codeclimate]
|
|
64
|
+
[][codeclimate]
|
|
64
65
|
[][gittip]
|
|
65
66
|
|
|
66
67
|
## Supported MIME Engines
|
|
@@ -75,6 +76,8 @@ When MultiMime fails to load the specified adapter, it'll throw `MultiMime::Adap
|
|
|
75
76
|
This library aims to support and is [tested against][travis] the following Ruby
|
|
76
77
|
implementations:
|
|
77
78
|
|
|
79
|
+
- Ruby 2.3.0
|
|
80
|
+
- Ruby 2.2.0
|
|
78
81
|
- Ruby 2.1.0
|
|
79
82
|
- Ruby 2.0.0
|
|
80
83
|
- Ruby 1.9.3
|
|
@@ -96,6 +99,6 @@ Cribbed:
|
|
|
96
99
|
[gem]: https://rubygems.org/gems/multi_mime
|
|
97
100
|
[travis]: http://travis-ci.org/karlfreeman/multi_mime
|
|
98
101
|
[codeclimate]: https://codeclimate.com/github/karlfreeman/multi_mime
|
|
99
|
-
[gittip]: https://www.gittip.com/karlfreeman
|
|
102
|
+
[gittip]: https://www.gittip.com/karlfreeman
|
|
100
103
|
[jruby]: http://www.jruby.org
|
|
101
104
|
[rubinius]: http://rubini.us
|
data/Rakefile
CHANGED
data/lib/multi_mime.rb
CHANGED
|
@@ -10,6 +10,8 @@ module MultiMime
|
|
|
10
10
|
[:rack_mime, 'rack/mime', :Rack].freeze
|
|
11
11
|
]
|
|
12
12
|
|
|
13
|
+
SEMAPHORE = Mutex.new
|
|
14
|
+
|
|
13
15
|
# The default adapter based on what you currently
|
|
14
16
|
# have loaded and installed. First checks to see
|
|
15
17
|
# if any adapters are already loaded, then checks
|
|
@@ -46,7 +48,7 @@ module MultiMime
|
|
|
46
48
|
# * mime_type
|
|
47
49
|
# * rack_mime
|
|
48
50
|
def use(new_adapter)
|
|
49
|
-
|
|
51
|
+
SEMAPHORE.synchronize do
|
|
50
52
|
@adapter = load_adapter(new_adapter)
|
|
51
53
|
end
|
|
52
54
|
end
|
data/lib/multi_mime/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multi_mime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Karl Freeman
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -124,6 +124,7 @@ files:
|
|
|
124
124
|
- multi_mime.gemspec
|
|
125
125
|
- spec/shared/adapter.rb
|
|
126
126
|
- spec/spec_helper.rb
|
|
127
|
+
- spec/support/codeclimate.rb
|
|
127
128
|
- spec/support/fakefs.rb
|
|
128
129
|
- spec/support/pry.rb
|
|
129
130
|
- spec/support/timecop.rb
|
|
@@ -148,13 +149,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
148
149
|
version: '0'
|
|
149
150
|
requirements: []
|
|
150
151
|
rubyforge_project:
|
|
151
|
-
rubygems_version: 2.
|
|
152
|
+
rubygems_version: 2.5.1
|
|
152
153
|
signing_key:
|
|
153
154
|
specification_version: 4
|
|
154
155
|
summary: A generic swappable back-end for MIME type detection
|
|
155
156
|
test_files:
|
|
156
157
|
- spec/shared/adapter.rb
|
|
157
158
|
- spec/spec_helper.rb
|
|
159
|
+
- spec/support/codeclimate.rb
|
|
158
160
|
- spec/support/fakefs.rb
|
|
159
161
|
- spec/support/pry.rb
|
|
160
162
|
- spec/support/timecop.rb
|