multi_mime 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ca98ae851bcf551a7b48af37da35d64b7b96442
4
- data.tar.gz: 61f05c26320dff71a61eeeca7cd37da0e2481842
3
+ metadata.gz: 5e01154ce64a34ce74eaaba1d3179c398644a4af
4
+ data.tar.gz: 2141a42a372b020e43b7fb124b0763032bccf209
5
5
  SHA512:
6
- metadata.gz: c2b2780e6c326826415799b681c7b0d7987eb83c02cc7de0f10efca6d5f39bd100544139c09052bad6d9643f0cffd820581267047cc6bb79bbdf62ff33851ea4
7
- data.tar.gz: 095d2022c8fda77d7d29d1d42718b0b0dec45725f953ac2db81cc9e412d975badc0f8108baff67346bec7c79a7adb235556e924b3316473eecb8e0bb48a3bb7d
6
+ metadata.gz: 2fe28b810ec0f71734f3669af238bad606a636da8eaee92863103925ab1de1ddcd4cf1e7cc1d89f8bf8a418ee7f340c43b985119d256570f89c075d3f65ea7b9
7
+ data.tar.gz: 7c8a93b0b261ea77212297f035ced8237fec19cbba7f57201b1928198c93b17c43723afe19181e252693ceafdf2db0af06b615d3dfffe84f27feabbd915cbeeb
data/Gemfile CHANGED
@@ -1,7 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- group :test do
4
- gem 'fakefs', github: 'defunkt/fakefs', require: 'fakefs/safe'
5
- end
6
-
7
3
  gemspec
data/README.md CHANGED
@@ -32,10 +32,10 @@ MultiMime.type_for_file( File.open('foo.html', 'w') ) # 'text/html'
32
32
 
33
33
  ## Badges
34
34
 
35
- [![Gem Version](https://badge.fury.io/rb/multi_mime.png)][gem]
36
- [![Build Status](https://travis-ci.org/karlfreeman/multi_mime.png)][travis]
37
- [![Code Quality](https://codeclimate.com/github/karlfreeman/multi_mime.png)][codeclimate]
38
- [![Gittip](http://img.shields.io/gittip/karlfreeman.png)][gittip]
35
+ [![Gem Version](http://img.shields.io/gem/v/multi_mime.svg)][gem]
36
+ [![Build Status](http://img.shields.io/travis/karlfreeman/multi_mime.svg)][travis]
37
+ [![Code Quality](http://img.shields.io/codeclimate/github/karlfreeman/multi_mime.svg)][codeclimate]
38
+ [![Gittip](http://img.shields.io/gittip/karlfreeman.svg)][gittip]
39
39
 
40
40
  ## Supported Mime Engines
41
41
 
@@ -1,8 +1,6 @@
1
1
  module MultiMime
2
2
  extend self
3
3
 
4
- ADAPTERS = %i(mime_types rack_mime mimemagic mime_type)
5
-
6
4
  REQUIREMENT_MAP = [
7
5
  [:mime_types, 'mime/types', :MIME].freeze,
8
6
  [:mimemagic, 'mimemagic', :MimeMagic].freeze,
@@ -1,3 +1,3 @@
1
1
  module MultiMime
2
- VERSION = '0.0.3' unless defined?(MultiMime::VERSION)
2
+ VERSION = '0.0.4' unless defined?(MultiMime::VERSION)
3
3
  end
@@ -29,10 +29,10 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'bundler', '~> 1.5'
30
30
  spec.add_development_dependency 'rake', '~> 10.0'
31
31
  spec.add_development_dependency 'kramdown', '>= 0.14'
32
+ spec.add_development_dependency 'fakefs', '~> 0.5'
32
33
  spec.add_development_dependency 'rspec'
33
34
  spec.add_development_dependency 'rubocop'
34
35
  spec.add_development_dependency 'timecop'
35
36
  spec.add_development_dependency 'pry'
36
37
  spec.add_development_dependency 'yard'
37
-
38
38
  end
@@ -1,3 +1,4 @@
1
+ require 'fakefs/safe'
1
2
  require 'fakefs/spec_helpers'
2
3
  require 'pathname'
3
4
  require 'fileutils'
metadata CHANGED
@@ -1,195 +1,209 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_mime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Freeman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-02 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.12'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mime-types
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.5'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.5'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: actionpack
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.2'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rack
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: mimemagic
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
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: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '1.5'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '1.5'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rake
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '10.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ~>
108
+ - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: kramdown
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0.14'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.14'
125
+ - !ruby/object:Gem::Dependency
126
+ name: fakefs
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.5'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.5'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rspec
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - '>='
143
+ - - ">="
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - '>='
150
+ - - ">="
137
151
  - !ruby/object:Gem::Version
138
152
  version: '0'
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: rubocop
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
- - - '>='
157
+ - - ">="
144
158
  - !ruby/object:Gem::Version
145
159
  version: '0'
146
160
  type: :development
147
161
  prerelease: false
148
162
  version_requirements: !ruby/object:Gem::Requirement
149
163
  requirements:
150
- - - '>='
164
+ - - ">="
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: timecop
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
- - - '>='
171
+ - - ">="
158
172
  - !ruby/object:Gem::Version
159
173
  version: '0'
160
174
  type: :development
161
175
  prerelease: false
162
176
  version_requirements: !ruby/object:Gem::Requirement
163
177
  requirements:
164
- - - '>='
178
+ - - ">="
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: pry
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
- - - '>='
185
+ - - ">="
172
186
  - !ruby/object:Gem::Version
173
187
  version: '0'
174
188
  type: :development
175
189
  prerelease: false
176
190
  version_requirements: !ruby/object:Gem::Requirement
177
191
  requirements:
178
- - - '>='
192
+ - - ">="
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: yard
183
197
  requirement: !ruby/object:Gem::Requirement
184
198
  requirements:
185
- - - '>='
199
+ - - ">="
186
200
  - !ruby/object:Gem::Version
187
201
  version: '0'
188
202
  type: :development
189
203
  prerelease: false
190
204
  version_requirements: !ruby/object:Gem::Requirement
191
205
  requirements:
192
- - - '>='
206
+ - - ">="
193
207
  - !ruby/object:Gem::Version
194
208
  version: '0'
195
209
  description: A generic swappable back-end for Mime::Type detection
@@ -199,11 +213,11 @@ executables: []
199
213
  extensions: []
200
214
  extra_rdoc_files: []
201
215
  files:
202
- - .document
203
- - .gitignore
204
- - .rubocop.yml
205
- - .travis.yml
206
- - .yardopts
216
+ - ".document"
217
+ - ".gitignore"
218
+ - ".rubocop.yml"
219
+ - ".travis.yml"
220
+ - ".yardopts"
207
221
  - CHANGELOG.md
208
222
  - CONTRIBUTING.md
209
223
  - Gemfile
@@ -235,17 +249,17 @@ require_paths:
235
249
  - lib
236
250
  required_ruby_version: !ruby/object:Gem::Requirement
237
251
  requirements:
238
- - - '>='
252
+ - - ">="
239
253
  - !ruby/object:Gem::Version
240
254
  version: 1.9.3
241
255
  required_rubygems_version: !ruby/object:Gem::Requirement
242
256
  requirements:
243
- - - '>='
257
+ - - ">="
244
258
  - !ruby/object:Gem::Version
245
259
  version: '0'
246
260
  requirements: []
247
261
  rubyforge_project:
248
- rubygems_version: 2.0.14
262
+ rubygems_version: 2.2.0
249
263
  signing_key:
250
264
  specification_version: 4
251
265
  summary: A generic swappable back-end for Mime::Type detection