mime-types 2.6.1 → 2.6.2

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.
@@ -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.6.1'
56
+ VERSION = '2.6.2'
57
57
 
58
58
  include Comparable
59
59
 
@@ -118,7 +118,7 @@ module MIME::Types::Columnar
118
118
 
119
119
  def load_use_instead
120
120
  each_file_line('use_instead') do |type, line|
121
- type.use_instad = (line unless line == '-'.freeze)
121
+ type.use_instead = (line unless line == '-'.freeze)
122
122
  end
123
123
  end
124
124
 
@@ -126,7 +126,7 @@ module MIME::Types::Columnar
126
126
  if line == '-'.freeze
127
127
  {}
128
128
  else
129
- line.split('|'.freeze).each_with_object({}) { |h, l|
129
+ line.split('|'.freeze).each_with_object({}) { |l, h|
130
130
  k, v = l.split('^'.freeze)
131
131
  v = [ nil ] if v.empty?
132
132
  h[k] = v
@@ -127,6 +127,8 @@ class IANARegistry
127
127
  type = xref['type']
128
128
  data = xref['data']
129
129
 
130
+ next if data.nil? || data.empty?
131
+
130
132
  r << ref_from_type(type, data)
131
133
 
132
134
  xr[type] << data
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.6.1
4
+ version: 2.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-25 00:00:00.000000000 Z
11
+ date: 2015-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.6'
19
+ version: '5.8'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '5.6'
26
+ version: '5.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rdoc
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -184,14 +184,14 @@ dependencies:
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: '3.13'
187
+ version: '3.14'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
192
  - - "~>"
193
193
  - !ruby/object:Gem::Version
194
- version: '3.13'
194
+ version: '3.14'
195
195
  description: |-
196
196
  The mime-types library provides a library and registry for information about
197
197
  MIME content type definitions. It can be used to determine defined filename
@@ -214,11 +214,10 @@ description: |-
214
214
  memory use of the mime-types library. This feature is enabled by requiring
215
215
  +mime/types/columnar+ instead of +mime/types+ with a small performance cost and
216
216
  no change in *total* memory use if certain methods are called (see {Columnar
217
- Store}[#columnar-store] for more details). The second new feature is a logger
218
- interface that conforms to the expectations of an ActiveSupport::Logger so that
219
- warnings can be written to an application's log rather than the default
220
- location for +warn+. This interface may be used for other logging purposes in
221
- the future.
217
+ Store}[#label-Columnar+Store]). The second new feature is a logger interface
218
+ that conforms to the expectations of an ActiveSupport::Logger so that warnings
219
+ can be written to an application's log rather than the default location for
220
+ +warn+. This interface may be used for other logging purposes in the future.
222
221
 
223
222
  mime-types 2.6 is the last planned version of mime-types 2.x, so deprecation
224
223
  warnings are no longer cached but provided every time the method is called.
@@ -314,7 +313,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
313
  version: '0'
315
314
  requirements: []
316
315
  rubyforge_project:
317
- rubygems_version: 2.4.5
316
+ rubygems_version: 2.4.8
318
317
  signing_key:
319
318
  specification_version: 4
320
319
  summary: The mime-types library provides a library and registry for information about