mime-types 2.99.2 → 2.99.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -53,7 +53,7 @@ class MIME::Type
53
53
  end
54
54
 
55
55
  # The released version of the mime-types library.
56
- VERSION = '2.99.2'
56
+ VERSION = '2.99.3'
57
57
 
58
58
  include Comparable
59
59
 
@@ -17,6 +17,10 @@ class MIME::Types
17
17
  end
18
18
  end
19
19
 
20
+ class MIME::Type
21
+ public_constant :MEDIA_TYPE_RE if respond_to? :public_constant
22
+ end
23
+
20
24
  class IANARegistry
21
25
  DEFAULTS = {
22
26
  url: %q(https://www.iana.org/assignments/media-types/media-types.xml),
@@ -63,7 +67,7 @@ class IANARegistry
63
67
  use_instead = record.at_css('deprecated').text rescue nil
64
68
 
65
69
  if subtype =~ /OBSOLETE|DEPRECATE/i
66
- use_instead ||= $1 if subtype =~ /in favou?r of (.*)/
70
+ use_instead ||= $1 if subtype =~ /in favou?r of (#{MIME::Type::MEDIA_TYPE_RE})/
67
71
  obsolete = true
68
72
  end
69
73
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mime-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.99.2
4
+ version: 2.99.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-21 00:00:00.000000000 Z
11
+ date: 2016-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -178,34 +178,6 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '5.2'
181
- - !ruby/object:Gem::Dependency
182
- name: simplecov
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '0.7'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '0.7'
195
- - !ruby/object:Gem::Dependency
196
- name: coveralls
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '0.8'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '0.8'
209
181
  - !ruby/object:Gem::Dependency
210
182
  name: hoe
211
183
  requirement: !ruby/object:Gem::Requirement
@@ -326,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
298
  version: '0'
327
299
  requirements: []
328
300
  rubyforge_project:
329
- rubygems_version: 2.6.4
301
+ rubygems_version: 2.5.1
330
302
  signing_key:
331
303
  specification_version: 4
332
304
  summary: The mime-types library provides a library and registry for information about