mime-types 2.4.3 → 2.5

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.
@@ -75,4 +75,16 @@ class TestMIMETypesCache < Minitest::Test
75
75
  MIME::Types['text/html']
76
76
  end
77
77
  end
78
+
79
+ def test_container_marshalling
80
+ container = MIME::Types::Container.new
81
+ # default proc should return []
82
+ assert_equal([], container['abc'])
83
+
84
+ marshalled = Marshal.dump(container)
85
+ loaded_container = Marshal.load(marshalled)
86
+
87
+ # default proc should still return []
88
+ assert_equal([], loaded_container['abcd'])
89
+ end
78
90
  end
metadata CHANGED
@@ -1,229 +1,203 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mime-types
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: '2.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Ziegler
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - !binary |-
12
- LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUROakNDQWg2Z0F3SUJB
13
- Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJCTVE4d0RRWURWUVFEREFaaGRY
14
- TjAKYVc0eEdUQVhCZ29Ka2lhSmsvSXNaQUVaRmdseWRXSjVabTl5WjJVeEV6
15
- QVJCZ29Ka2lhSmsvSXNaQUVaRmdOdgpjbWN3SGhjTk1UUXdNakl5TURNME1U
16
- UXpXaGNOTVRVd01qSXlNRE0wTVRReldqQkJNUTh3RFFZRFZRUUREQVpoCmRY
17
- TjBhVzR4R1RBWEJnb0praWFKay9Jc1pBRVpGZ2x5ZFdKNVptOXlaMlV4RXpB
18
- UkJnb0praWFKay9Jc1pBRVoKRmdOdmNtY3dnZ0VpTUEwR0NTcUdTSWIzRFFF
19
- QkFRVUFBNElCRHdBd2dnRUtBb0lCQVFDMm1QTmY0TDM3R2hLSQpTUENZc3ZZ
20
- V1hBMi9SOXU1K3B5VW5i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KdzNib1ZqM0NtdnloY3dt
37
- cG9NMEs5bApBT21yVWlFbFVxTE9aQT09Ci0tLS0tRU5EIENFUlRJRklDQVRF
38
- LS0tLS0K
39
- date: 2014-10-21 00:00:00.000000000 Z
10
+ cert_chain: []
11
+ date: 2015-04-25 00:00:00.000000000 Z
40
12
  dependencies:
41
13
  - !ruby/object:Gem::Dependency
42
14
  name: minitest
43
15
  requirement: !ruby/object:Gem::Requirement
44
16
  requirements:
45
- - - ~>
17
+ - - "~>"
46
18
  - !ruby/object:Gem::Version
47
- version: '5.3'
19
+ version: '5.6'
48
20
  type: :development
49
21
  prerelease: false
50
22
  version_requirements: !ruby/object:Gem::Requirement
51
23
  requirements:
52
- - - ~>
24
+ - - "~>"
53
25
  - !ruby/object:Gem::Version
54
- version: '5.3'
26
+ version: '5.6'
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: rdoc
57
29
  requirement: !ruby/object:Gem::Requirement
58
30
  requirements:
59
- - - ~>
31
+ - - "~>"
60
32
  - !ruby/object:Gem::Version
61
33
  version: '4.0'
62
34
  type: :development
63
35
  prerelease: false
64
36
  version_requirements: !ruby/object:Gem::Requirement
65
37
  requirements:
66
- - - ~>
38
+ - - "~>"
67
39
  - !ruby/object:Gem::Version
68
40
  version: '4.0'
69
41
  - !ruby/object:Gem::Dependency
70
42
  name: hoe-doofus
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
- - - ~>
45
+ - - "~>"
74
46
  - !ruby/object:Gem::Version
75
47
  version: '1.0'
76
48
  type: :development
77
49
  prerelease: false
78
50
  version_requirements: !ruby/object:Gem::Requirement
79
51
  requirements:
80
- - - ~>
52
+ - - "~>"
81
53
  - !ruby/object:Gem::Version
82
54
  version: '1.0'
83
55
  - !ruby/object:Gem::Dependency
84
56
  name: hoe-gemspec2
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
- - - ~>
59
+ - - "~>"
88
60
  - !ruby/object:Gem::Version
89
61
  version: '1.1'
90
62
  type: :development
91
63
  prerelease: false
92
64
  version_requirements: !ruby/object:Gem::Requirement
93
65
  requirements:
94
- - - ~>
66
+ - - "~>"
95
67
  - !ruby/object:Gem::Version
96
68
  version: '1.1'
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: hoe-git
99
71
  requirement: !ruby/object:Gem::Requirement
100
72
  requirements:
101
- - - ~>
73
+ - - "~>"
102
74
  - !ruby/object:Gem::Version
103
75
  version: '1.6'
104
76
  type: :development
105
77
  prerelease: false
106
78
  version_requirements: !ruby/object:Gem::Requirement
107
79
  requirements:
108
- - - ~>
80
+ - - "~>"
109
81
  - !ruby/object:Gem::Version
110
82
  version: '1.6'
111
83
  - !ruby/object:Gem::Dependency
112
84
  name: hoe-rubygems
113
85
  requirement: !ruby/object:Gem::Requirement
114
86
  requirements:
115
- - - ~>
87
+ - - "~>"
116
88
  - !ruby/object:Gem::Version
117
89
  version: '1.0'
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
93
  requirements:
122
- - - ~>
94
+ - - "~>"
123
95
  - !ruby/object:Gem::Version
124
96
  version: '1.0'
125
97
  - !ruby/object:Gem::Dependency
126
98
  name: hoe-travis
127
99
  requirement: !ruby/object:Gem::Requirement
128
100
  requirements:
129
- - - ~>
101
+ - - "~>"
130
102
  - !ruby/object:Gem::Version
131
103
  version: '1.2'
132
104
  type: :development
133
105
  prerelease: false
134
106
  version_requirements: !ruby/object:Gem::Requirement
135
107
  requirements:
136
- - - ~>
108
+ - - "~>"
137
109
  - !ruby/object:Gem::Version
138
110
  version: '1.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest-autotest
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
139
125
  - !ruby/object:Gem::Dependency
140
126
  name: rake
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - ~>
129
+ - - "~>"
144
130
  - !ruby/object:Gem::Version
145
131
  version: '10.0'
146
132
  type: :development
147
133
  prerelease: false
148
134
  version_requirements: !ruby/object:Gem::Requirement
149
135
  requirements:
150
- - - ~>
136
+ - - "~>"
151
137
  - !ruby/object:Gem::Version
152
138
  version: '10.0'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: simplecov
155
141
  requirement: !ruby/object:Gem::Requirement
156
142
  requirements:
157
- - - ~>
143
+ - - "~>"
158
144
  - !ruby/object:Gem::Version
159
145
  version: '0.7'
160
146
  type: :development
161
147
  prerelease: false
162
148
  version_requirements: !ruby/object:Gem::Requirement
163
149
  requirements:
164
- - - ~>
150
+ - - "~>"
165
151
  - !ruby/object:Gem::Version
166
152
  version: '0.7'
167
153
  - !ruby/object:Gem::Dependency
168
154
  name: coveralls
169
155
  requirement: !ruby/object:Gem::Requirement
170
156
  requirements:
171
- - - ~>
157
+ - - "~>"
172
158
  - !ruby/object:Gem::Version
173
- version: '0.7'
159
+ version: '0.8'
174
160
  type: :development
175
161
  prerelease: false
176
162
  version_requirements: !ruby/object:Gem::Requirement
177
163
  requirements:
178
- - - ~>
164
+ - - "~>"
179
165
  - !ruby/object:Gem::Version
180
- version: '0.7'
166
+ version: '0.8'
181
167
  - !ruby/object:Gem::Dependency
182
168
  name: hoe
183
169
  requirement: !ruby/object:Gem::Requirement
184
170
  requirements:
185
- - - ~>
171
+ - - "~>"
186
172
  - !ruby/object:Gem::Version
187
- version: '3.12'
173
+ version: '3.13'
188
174
  type: :development
189
175
  prerelease: false
190
176
  version_requirements: !ruby/object:Gem::Requirement
191
177
  requirements:
192
- - - ~>
178
+ - - "~>"
193
179
  - !ruby/object:Gem::Version
194
- version: '3.12'
195
- description: ! "The mime-types library provides a library and registry for information
196
- about\nMIME content type definitions. It can be used to determine defined filename\nextensions
197
- for MIME types, or to use filename extensions to look up the likely\nMIME type definitions.\n\nMIME
198
- content types are used in MIME-compliant communications, as in e-mail or\nHTTP traffic,
199
- to indicate the type of content which is transmitted. The\nmime-types library provides
200
- the ability for detailed information about MIME\nentities (provided as an enumerable
201
- collection of MIME::Type objects) to be\ndetermined and used programmatically. There
202
- are many types defined by RFCs and\nvendors, so the list is long but by definition
203
- incomplete; don't hesitate to to\nadd additional type definitions (see Contributing.rdoc).
204
- The primary sources\nfor MIME type definitions found in mime-types is the IANA collection
205
- of\nregistrations (see below for the link), RFCs, and W3C recommendations.\n\nThis
206
- is release 2.4.3, restoring full compatibility with Ruby 1.9.2 (which will\nbe dropped
207
- in mime-types 3.0). It also includes the performance improvements\nfrom mime-types
208
- 2.4.2 (since yanked because of the broken Ruby 1.9.2 support)\nand the 2.4.1 fix
209
- of a bug in observed use of the mime-types library where\nextensions were not previously
210
- sorted, such that\n\n MIME::Types.of('image.jpg').first.extensions.first\n\nreturned
211
- a value of +jpeg+ in mime-types 1, but +jpe+ in mime-types 2. This was\nintroduced
212
- because extensions were sorted during assignment\n(MIME::Type#extensions=). This
213
- behaviour has been reverted to protect clients\nthat work as noted above. The preferred
214
- way to express this is the new method:\n\n MIME::Type.of('image.jpg').first.preferred_extension\n\nŁukasz
215
- Śliwa created the\n{friendly_mime}[https://github.com/lukaszsliwa/friendly_mime]
216
- gem, which offers\nfriendly descriptive names for MIME types. This functionality
217
- and\nEnglish-language data has been added to mime-types as MIME::Type#friendly.
218
- To\nmake it easy for internationalization, MIME::Type#i18n_key has been added,\nwhich
219
- will return a key suitable for use with the\n{I18n}[https://github.com/svenfuchs/i18n]
220
- library.\n\nAs a reminder, mime-types 2.x is no longer compatible with Ruby 1.8
221
- and\nmime-types 1.x is only being maintained for security issues. No new MIME types\nor
222
- features will be added.\n\nmime-types (previously called MIME::Types for Ruby) was
223
- originally based on\nMIME::Types for Perl by Mark Overmeer, copyright 2001 - 2009.
224
- It is built to\nconform to the MIME types of RFCs 2045 and 2231. It tracks the {IANA
225
- Media\nTypes registry}[https://www.iana.org/assignments/media-types/media-types.xhtml]\nwith
226
- some types added by the users of mime-types."
180
+ version: '3.13'
181
+ description: |-
182
+ The mime-types library provides a library and registry for information about
183
+ MIME content type definitions. It can be used to determine defined filename
184
+ extensions for MIME types, or to use filename extensions to look up the likely
185
+ MIME type definitions.
186
+
187
+ MIME content types are used in MIME-compliant communications, as in e-mail or
188
+ HTTP traffic, to indicate the type of content which is transmitted. The
189
+ mime-types library provides the ability for detailed information about MIME
190
+ entities (provided as an enumerable collection of MIME::Type objects) to be
191
+ determined and used programmatically. There are many types defined by RFCs and
192
+ vendors, so the list is long but by definition incomplete; don't hesitate to
193
+ add additional type definitions (see Contributing.rdoc). The primary sources
194
+ for MIME type definitions found in mime-types is the
195
+ {IANA Media Types registry}[https://www.iana.org/assignments/media-types/media-types.xhtml],
196
+ RFCs, and W3C recommendations. It conforms to RFCs 2045 and 2231.
197
+
198
+ This is release 2.5 with a couple of bug fixes, updating to the latest IANA
199
+ type registry, and adding a user-contributed type. mime-types 2.x supports Ruby
200
+ 1.9.2 or later.
227
201
  email:
228
202
  - halostatue@gmail.com
229
203
  executables: []
@@ -238,14 +212,11 @@ extra_rdoc_files:
238
212
  - docs/COPYING.txt
239
213
  - docs/artistic.txt
240
214
  files:
241
- - .autotest
242
- - .coveralls.yml
243
- - .gemtest
244
- - .hoerc
245
- - .minitest.rb
246
- - .travis.yml
215
+ - ".autotest"
216
+ - ".gemtest"
217
+ - ".gitignore"
218
+ - ".hoerc"
247
219
  - Contributing.rdoc
248
- - Gemfile
249
220
  - History-Types.rdoc
250
221
  - History.rdoc
251
222
  - Licence.rdoc
@@ -277,7 +248,7 @@ files:
277
248
  - test/test_mime_types_class.rb
278
249
  - test/test_mime_types_lazy.rb
279
250
  - test/test_mime_types_loader.rb
280
- homepage: https://github.com/halostatue/mime-types/
251
+ homepage: https://github.com/mime-types/ruby-mime-types/
281
252
  licenses:
282
253
  - MIT
283
254
  - Artistic 2.0
@@ -285,31 +256,25 @@ licenses:
285
256
  metadata: {}
286
257
  post_install_message:
287
258
  rdoc_options:
288
- - --main
259
+ - "--main"
289
260
  - README.rdoc
290
261
  require_paths:
291
262
  - lib
292
263
  required_ruby_version: !ruby/object:Gem::Requirement
293
264
  requirements:
294
- - - ! '>='
265
+ - - ">="
295
266
  - !ruby/object:Gem::Version
296
267
  version: 1.9.2
297
268
  required_rubygems_version: !ruby/object:Gem::Requirement
298
269
  requirements:
299
- - - ! '>='
270
+ - - ">="
300
271
  - !ruby/object:Gem::Version
301
272
  version: '0'
302
273
  requirements: []
303
274
  rubyforge_project:
304
- rubygems_version: 2.4.2
275
+ rubygems_version: 2.4.5
305
276
  signing_key:
306
277
  specification_version: 4
307
278
  summary: The mime-types library provides a library and registry for information about
308
279
  MIME content type definitions
309
- test_files:
310
- - test/test_mime_type.rb
311
- - test/test_mime_types.rb
312
- - test/test_mime_types_cache.rb
313
- - test/test_mime_types_class.rb
314
- - test/test_mime_types_lazy.rb
315
- - test/test_mime_types_loader.rb
280
+ test_files: []
Binary file
data.tar.gz.sig DELETED
@@ -1 +0,0 @@
1
-
@@ -1,2 +0,0 @@
1
- ---
2
- service_name: travis-ci
@@ -1,2 +0,0 @@
1
- gem "minitest"
2
- require "minitest/autorun"
@@ -1,34 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.1.0
5
- - 2.0.0
6
- - 1.9.3
7
- - ruby-head
8
- - jruby-19mode
9
- - jruby-head
10
- - rbx-2
11
- matrix:
12
- allow_failures:
13
- - rvm: rbx-2
14
- - rvm: jruby-head
15
- - rvm: ruby-head
16
- gemfile:
17
- - Gemfile
18
- before_script:
19
- - |
20
- case "${TRAVIS_RUBY_VERSION}" in
21
- rbx*)
22
- gem install psych
23
- ;;
24
- esac
25
- - rake travis:before -t
26
- script: rake travis
27
- after_script:
28
- - rake travis:after -t
29
- notifications:
30
- email:
31
- recipients:
32
- - austin@rubyforge.org
33
- on_success: change
34
- on_failure: always
data/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- # NOTE: This file is present to keep Travis CI happy. Edits to it will not
4
- # be accepted.
5
-
6
- source "https://rubygems.org/"
7
- gemspec
8
-
9
- # vim: syntax=ruby
metadata.gz.sig DELETED
Binary file