Add LICENSE, META.json and README.md
Olaf Alders
5 years ago
0 | This software is copyright (c) 1995 by Gisle Aas. | |
1 | ||
2 | This is free software; you can redistribute it and/or modify it under | |
3 | the same terms as the Perl 5 programming language system itself. | |
4 | ||
5 | Terms of the Perl programming language system itself | |
6 | ||
7 | a) the GNU General Public License as published by the Free | |
8 | Software Foundation; either version 1, or (at your option) any | |
9 | later version, or | |
10 | b) the "Artistic License" | |
11 | ||
12 | --- The GNU General Public License, Version 1, February 1989 --- | |
13 | ||
14 | This software is Copyright (c) 1995 by Gisle Aas. | |
15 | ||
16 | This is free software, licensed under: | |
17 | ||
18 | The GNU General Public License, Version 1, February 1989 | |
19 | ||
20 | GNU GENERAL PUBLIC LICENSE | |
21 | Version 1, February 1989 | |
22 | ||
23 | Copyright (C) 1989 Free Software Foundation, Inc. | |
24 | 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
25 | ||
26 | Everyone is permitted to copy and distribute verbatim copies | |
27 | of this license document, but changing it is not allowed. | |
28 | ||
29 | Preamble | |
30 | ||
31 | The license agreements of most software companies try to keep users | |
32 | at the mercy of those companies. By contrast, our General Public | |
33 | License is intended to guarantee your freedom to share and change free | |
34 | software--to make sure the software is free for all its users. The | |
35 | General Public License applies to the Free Software Foundation's | |
36 | software and to any other program whose authors commit to using it. | |
37 | You can use it for your programs, too. | |
38 | ||
39 | When we speak of free software, we are referring to freedom, not | |
40 | price. Specifically, the General Public License is designed to make | |
41 | sure that you have the freedom to give away or sell copies of free | |
42 | software, that you receive source code or can get it if you want it, | |
43 | that you can change the software or use pieces of it in new free | |
44 | programs; and that you know you can do these things. | |
45 | ||
46 | To protect your rights, we need to make restrictions that forbid | |
47 | anyone to deny you these rights or to ask you to surrender the rights. | |
48 | These restrictions translate to certain responsibilities for you if you | |
49 | distribute copies of the software, or if you modify it. | |
50 | ||
51 | For example, if you distribute copies of a such a program, whether | |
52 | gratis or for a fee, you must give the recipients all the rights that | |
53 | you have. You must make sure that they, too, receive or can get the | |
54 | source code. And you must tell them their rights. | |
55 | ||
56 | We protect your rights with two steps: (1) copyright the software, and | |
57 | (2) offer you this license which gives you legal permission to copy, | |
58 | distribute and/or modify the software. | |
59 | ||
60 | Also, for each author's protection and ours, we want to make certain | |
61 | that everyone understands that there is no warranty for this free | |
62 | software. If the software is modified by someone else and passed on, we | |
63 | want its recipients to know that what they have is not the original, so | |
64 | that any problems introduced by others will not reflect on the original | |
65 | authors' reputations. | |
66 | ||
67 | The precise terms and conditions for copying, distribution and | |
68 | modification follow. | |
69 | ||
70 | GNU GENERAL PUBLIC LICENSE | |
71 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
72 | ||
73 | 0. This License Agreement applies to any program or other work which | |
74 | contains a notice placed by the copyright holder saying it may be | |
75 | distributed under the terms of this General Public License. The | |
76 | "Program", below, refers to any such program or work, and a "work based | |
77 | on the Program" means either the Program or any work containing the | |
78 | Program or a portion of it, either verbatim or with modifications. Each | |
79 | licensee is addressed as "you". | |
80 | ||
81 | 1. You may copy and distribute verbatim copies of the Program's source | |
82 | code as you receive it, in any medium, provided that you conspicuously and | |
83 | appropriately publish on each copy an appropriate copyright notice and | |
84 | disclaimer of warranty; keep intact all the notices that refer to this | |
85 | General Public License and to the absence of any warranty; and give any | |
86 | other recipients of the Program a copy of this General Public License | |
87 | along with the Program. You may charge a fee for the physical act of | |
88 | transferring a copy. | |
89 | ||
90 | 2. You may modify your copy or copies of the Program or any portion of | |
91 | it, and copy and distribute such modifications under the terms of Paragraph | |
92 | 1 above, provided that you also do the following: | |
93 | ||
94 | a) cause the modified files to carry prominent notices stating that | |
95 | you changed the files and the date of any change; and | |
96 | ||
97 | b) cause the whole of any work that you distribute or publish, that | |
98 | in whole or in part contains the Program or any part thereof, either | |
99 | with or without modifications, to be licensed at no charge to all | |
100 | third parties under the terms of this General Public License (except | |
101 | that you may choose to grant warranty protection to some or all | |
102 | third parties, at your option). | |
103 | ||
104 | c) If the modified program normally reads commands interactively when | |
105 | run, you must cause it, when started running for such interactive use | |
106 | in the simplest and most usual way, to print or display an | |
107 | announcement including an appropriate copyright notice and a notice | |
108 | that there is no warranty (or else, saying that you provide a | |
109 | warranty) and that users may redistribute the program under these | |
110 | conditions, and telling the user how to view a copy of this General | |
111 | Public License. | |
112 | ||
113 | d) You may charge a fee for the physical act of transferring a | |
114 | copy, and you may at your option offer warranty protection in | |
115 | exchange for a fee. | |
116 | ||
117 | Mere aggregation of another independent work with the Program (or its | |
118 | derivative) on a volume of a storage or distribution medium does not bring | |
119 | the other work under the scope of these terms. | |
120 | ||
121 | 3. You may copy and distribute the Program (or a portion or derivative of | |
122 | it, under Paragraph 2) in object code or executable form under the terms of | |
123 | Paragraphs 1 and 2 above provided that you also do one of the following: | |
124 | ||
125 | a) accompany it with the complete corresponding machine-readable | |
126 | source code, which must be distributed under the terms of | |
127 | Paragraphs 1 and 2 above; or, | |
128 | ||
129 | b) accompany it with a written offer, valid for at least three | |
130 | years, to give any third party free (except for a nominal charge | |
131 | for the cost of distribution) a complete machine-readable copy of the | |
132 | corresponding source code, to be distributed under the terms of | |
133 | Paragraphs 1 and 2 above; or, | |
134 | ||
135 | c) accompany it with the information you received as to where the | |
136 | corresponding source code may be obtained. (This alternative is | |
137 | allowed only for noncommercial distribution and only if you | |
138 | received the program in object code or executable form alone.) | |
139 | ||
140 | Source code for a work means the preferred form of the work for making | |
141 | modifications to it. For an executable file, complete source code means | |
142 | all the source code for all modules it contains; but, as a special | |
143 | exception, it need not include source code for modules which are standard | |
144 | libraries that accompany the operating system on which the executable | |
145 | file runs, or for standard header files or definitions files that | |
146 | accompany that operating system. | |
147 | ||
148 | 4. You may not copy, modify, sublicense, distribute or transfer the | |
149 | Program except as expressly provided under this General Public License. | |
150 | Any attempt otherwise to copy, modify, sublicense, distribute or transfer | |
151 | the Program is void, and will automatically terminate your rights to use | |
152 | the Program under this License. However, parties who have received | |
153 | copies, or rights to use copies, from you under this General Public | |
154 | License will not have their licenses terminated so long as such parties | |
155 | remain in full compliance. | |
156 | ||
157 | 5. By copying, distributing or modifying the Program (or any work based | |
158 | on the Program) you indicate your acceptance of this license to do so, | |
159 | and all its terms and conditions. | |
160 | ||
161 | 6. Each time you redistribute the Program (or any work based on the | |
162 | Program), the recipient automatically receives a license from the original | |
163 | licensor to copy, distribute or modify the Program subject to these | |
164 | terms and conditions. You may not impose any further restrictions on the | |
165 | recipients' exercise of the rights granted herein. | |
166 | ||
167 | 7. The Free Software Foundation may publish revised and/or new versions | |
168 | of the General Public License from time to time. Such new versions will | |
169 | be similar in spirit to the present version, but may differ in detail to | |
170 | address new problems or concerns. | |
171 | ||
172 | Each version is given a distinguishing version number. If the Program | |
173 | specifies a version number of the license which applies to it and "any | |
174 | later version", you have the option of following the terms and conditions | |
175 | either of that version or of any later version published by the Free | |
176 | Software Foundation. If the Program does not specify a version number of | |
177 | the license, you may choose any version ever published by the Free Software | |
178 | Foundation. | |
179 | ||
180 | 8. If you wish to incorporate parts of the Program into other free | |
181 | programs whose distribution conditions are different, write to the author | |
182 | to ask for permission. For software which is copyrighted by the Free | |
183 | Software Foundation, write to the Free Software Foundation; we sometimes | |
184 | make exceptions for this. Our decision will be guided by the two goals | |
185 | of preserving the free status of all derivatives of our free software and | |
186 | of promoting the sharing and reuse of software generally. | |
187 | ||
188 | NO WARRANTY | |
189 | ||
190 | 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | |
191 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | |
192 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | |
193 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | |
194 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | |
195 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | |
196 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | |
197 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | |
198 | REPAIR OR CORRECTION. | |
199 | ||
200 | 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | |
201 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | |
202 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | |
203 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | |
204 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | |
205 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | |
206 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | |
207 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | |
208 | POSSIBILITY OF SUCH DAMAGES. | |
209 | ||
210 | END OF TERMS AND CONDITIONS | |
211 | ||
212 | Appendix: How to Apply These Terms to Your New Programs | |
213 | ||
214 | If you develop a new program, and you want it to be of the greatest | |
215 | possible use to humanity, the best way to achieve this is to make it | |
216 | free software which everyone can redistribute and change under these | |
217 | terms. | |
218 | ||
219 | To do so, attach the following notices to the program. It is safest to | |
220 | attach them to the start of each source file to most effectively convey | |
221 | the exclusion of warranty; and each file should have at least the | |
222 | "copyright" line and a pointer to where the full notice is found. | |
223 | ||
224 | <one line to give the program's name and a brief idea of what it does.> | |
225 | Copyright (C) 19yy <name of author> | |
226 | ||
227 | This program is free software; you can redistribute it and/or modify | |
228 | it under the terms of the GNU General Public License as published by | |
229 | the Free Software Foundation; either version 1, or (at your option) | |
230 | any later version. | |
231 | ||
232 | This program is distributed in the hope that it will be useful, | |
233 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
234 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
235 | GNU General Public License for more details. | |
236 | ||
237 | You should have received a copy of the GNU General Public License | |
238 | along with this program; if not, write to the Free Software | |
239 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA | |
240 | ||
241 | ||
242 | Also add information on how to contact you by electronic and paper mail. | |
243 | ||
244 | If the program is interactive, make it output a short notice like this | |
245 | when it starts in an interactive mode: | |
246 | ||
247 | Gnomovision version 69, Copyright (C) 19xx name of author | |
248 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. | |
249 | This is free software, and you are welcome to redistribute it | |
250 | under certain conditions; type `show c' for details. | |
251 | ||
252 | The hypothetical commands `show w' and `show c' should show the | |
253 | appropriate parts of the General Public License. Of course, the | |
254 | commands you use may be called something other than `show w' and `show | |
255 | c'; they could even be mouse-clicks or menu items--whatever suits your | |
256 | program. | |
257 | ||
258 | You should also get your employer (if you work as a programmer) or your | |
259 | school, if any, to sign a "copyright disclaimer" for the program, if | |
260 | necessary. Here a sample; alter the names: | |
261 | ||
262 | Yoyodyne, Inc., hereby disclaims all copyright interest in the | |
263 | program `Gnomovision' (a program to direct compilers to make passes | |
264 | at assemblers) written by James Hacker. | |
265 | ||
266 | <signature of Ty Coon>, 1 April 1989 | |
267 | Ty Coon, President of Vice | |
268 | ||
269 | That's all there is to it! | |
270 | ||
271 | ||
272 | --- The Artistic License 1.0 --- | |
273 | ||
274 | This software is Copyright (c) 1995 by Gisle Aas. | |
275 | ||
276 | This is free software, licensed under: | |
277 | ||
278 | The Artistic License 1.0 | |
279 | ||
280 | The Artistic License | |
281 | ||
282 | Preamble | |
283 | ||
284 | The intent of this document is to state the conditions under which a Package | |
285 | may be copied, such that the Copyright Holder maintains some semblance of | |
286 | artistic control over the development of the package, while giving the users of | |
287 | the package the right to use and distribute the Package in a more-or-less | |
288 | customary fashion, plus the right to make reasonable modifications. | |
289 | ||
290 | Definitions: | |
291 | ||
292 | - "Package" refers to the collection of files distributed by the Copyright | |
293 | Holder, and derivatives of that collection of files created through | |
294 | textual modification. | |
295 | - "Standard Version" refers to such a Package if it has not been modified, | |
296 | or has been modified in accordance with the wishes of the Copyright | |
297 | Holder. | |
298 | - "Copyright Holder" is whoever is named in the copyright or copyrights for | |
299 | the package. | |
300 | - "You" is you, if you're thinking about copying or distributing this Package. | |
301 | - "Reasonable copying fee" is whatever you can justify on the basis of media | |
302 | cost, duplication charges, time of people involved, and so on. (You will | |
303 | not be required to justify it to the Copyright Holder, but only to the | |
304 | computing community at large as a market that must bear the fee.) | |
305 | - "Freely Available" means that no fee is charged for the item itself, though | |
306 | there may be fees involved in handling the item. It also means that | |
307 | recipients of the item may redistribute it under the same conditions they | |
308 | received it. | |
309 | ||
310 | 1. You may make and give away verbatim copies of the source form of the | |
311 | Standard Version of this Package without restriction, provided that you | |
312 | duplicate all of the original copyright notices and associated disclaimers. | |
313 | ||
314 | 2. You may apply bug fixes, portability fixes and other modifications derived | |
315 | from the Public Domain or from the Copyright Holder. A Package modified in such | |
316 | a way shall still be considered the Standard Version. | |
317 | ||
318 | 3. You may otherwise modify your copy of this Package in any way, provided that | |
319 | you insert a prominent notice in each changed file stating how and when you | |
320 | changed that file, and provided that you do at least ONE of the following: | |
321 | ||
322 | a) place your modifications in the Public Domain or otherwise make them | |
323 | Freely Available, such as by posting said modifications to Usenet or an | |
324 | equivalent medium, or placing the modifications on a major archive site | |
325 | such as ftp.uu.net, or by allowing the Copyright Holder to include your | |
326 | modifications in the Standard Version of the Package. | |
327 | ||
328 | b) use the modified Package only within your corporation or organization. | |
329 | ||
330 | c) rename any non-standard executables so the names do not conflict with | |
331 | standard executables, which must also be provided, and provide a separate | |
332 | manual page for each non-standard executable that clearly documents how it | |
333 | differs from the Standard Version. | |
334 | ||
335 | d) make other distribution arrangements with the Copyright Holder. | |
336 | ||
337 | 4. You may distribute the programs of this Package in object code or executable | |
338 | form, provided that you do at least ONE of the following: | |
339 | ||
340 | a) distribute a Standard Version of the executables and library files, | |
341 | together with instructions (in the manual page or equivalent) on where to | |
342 | get the Standard Version. | |
343 | ||
344 | b) accompany the distribution with the machine-readable source of the Package | |
345 | with your modifications. | |
346 | ||
347 | c) accompany any non-standard executables with their corresponding Standard | |
348 | Version executables, giving the non-standard executables non-standard | |
349 | names, and clearly documenting the differences in manual pages (or | |
350 | equivalent), together with instructions on where to get the Standard | |
351 | Version. | |
352 | ||
353 | d) make other distribution arrangements with the Copyright Holder. | |
354 | ||
355 | 5. You may charge a reasonable copying fee for any distribution of this | |
356 | Package. You may charge any fee you choose for support of this Package. You | |
357 | may not charge a fee for this Package itself. However, you may distribute this | |
358 | Package in aggregate with other (possibly commercial) programs as part of a | |
359 | larger (possibly commercial) software distribution provided that you do not | |
360 | advertise this Package as a product of your own. | |
361 | ||
362 | 6. The scripts and library files supplied as input to or produced as output | |
363 | from the programs of this Package do not automatically fall under the copyright | |
364 | of this Package, but belong to whomever generated them, and may be sold | |
365 | commercially, and may be aggregated with this Package. | |
366 | ||
367 | 7. C or perl subroutines supplied by you and linked into this Package shall not | |
368 | be considered part of this Package. | |
369 | ||
370 | 8. The name of the Copyright Holder may not be used to endorse or promote | |
371 | products derived from this software without specific prior written permission. | |
372 | ||
373 | 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED | |
374 | WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | |
375 | MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
376 | ||
377 | The End | |
378 |
0 | { | |
1 | "abstract" : "guess media type for a file or a URL", | |
2 | "author" : [ | |
3 | "Gisle Aas <gisle@activestate.com>" | |
4 | ], | |
5 | "dynamic_config" : 0, | |
6 | "generated_by" : "Dist::Zilla version 6.012, CPAN::Meta::Converter version 2.150010", | |
7 | "license" : [ | |
8 | "perl_5" | |
9 | ], | |
10 | "meta-spec" : { | |
11 | "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", | |
12 | "version" : 2 | |
13 | }, | |
14 | "name" : "LWP-MediaTypes", | |
15 | "no_index" : { | |
16 | "directory" : [ | |
17 | "t", | |
18 | "xt" | |
19 | ] | |
20 | }, | |
21 | "prereqs" : { | |
22 | "configure" : { | |
23 | "requires" : { | |
24 | "ExtUtils::MakeMaker" : "0" | |
25 | } | |
26 | }, | |
27 | "develop" : { | |
28 | "recommends" : { | |
29 | "Dist::Zilla::PluginBundle::Git::VersionManager" : "0.007" | |
30 | }, | |
31 | "requires" : { | |
32 | "Encode" : "0", | |
33 | "File::Spec" : "0", | |
34 | "IO::Handle" : "0", | |
35 | "IPC::Open3" : "0", | |
36 | "Pod::Coverage::TrustPod" : "0", | |
37 | "Pod::Wordlist" : "0", | |
38 | "Test::EOL" : "0", | |
39 | "Test::MinimumVersion" : "0", | |
40 | "Test::Mojibake" : "0", | |
41 | "Test::More" : "0.94", | |
42 | "Test::Pod" : "1.41", | |
43 | "Test::Pod::Coverage" : "1.08", | |
44 | "Test::Portability::Files" : "0", | |
45 | "Test::Spelling" : "0.12", | |
46 | "Test::Version" : "1", | |
47 | "perl" : "5.006", | |
48 | "warnings" : "0" | |
49 | } | |
50 | }, | |
51 | "runtime" : { | |
52 | "requires" : { | |
53 | "Carp" : "0", | |
54 | "Exporter" : "0", | |
55 | "File::Basename" : "0", | |
56 | "Scalar::Util" : "0", | |
57 | "perl" : "5.006002", | |
58 | "strict" : "0" | |
59 | } | |
60 | }, | |
61 | "test" : { | |
62 | "recommends" : { | |
63 | "CPAN::Meta" : "2.120900" | |
64 | }, | |
65 | "requires" : { | |
66 | "ExtUtils::MakeMaker" : "0", | |
67 | "File::Spec" : "0", | |
68 | "Test::Fatal" : "0", | |
69 | "Test::More" : "0", | |
70 | "overload" : "0", | |
71 | "warnings" : "0" | |
72 | } | |
73 | } | |
74 | }, | |
75 | "provides" : { | |
76 | "LWP::MediaTypes" : { | |
77 | "file" : "lib/LWP/MediaTypes.pm", | |
78 | "version" : "6.03" | |
79 | } | |
80 | }, | |
81 | "release_status" : "testing", | |
82 | "resources" : { | |
83 | "bugtracker" : { | |
84 | "web" : "https://github.com/libwww-perl/lwp-mediatypes/issues" | |
85 | }, | |
86 | "homepage" : "https://github.com/libwww-perl/lwp-mediatypes", | |
87 | "repository" : { | |
88 | "type" : "git", | |
89 | "url" : "https://github.com/libwww-perl/lwp-mediatypes.git", | |
90 | "web" : "https://github.com/libwww-perl/lwp-mediatypes" | |
91 | }, | |
92 | "x_IRC" : "irc://irc.perl.org/#lwp", | |
93 | "x_MailingList" : "mailto:libwww@perl.org" | |
94 | }, | |
95 | "version" : "6.03", | |
96 | "x_Dist_Zilla" : { | |
97 | "perl" : { | |
98 | "version" : "5.026001" | |
99 | }, | |
100 | "plugins" : [ | |
101 | { | |
102 | "class" : "Dist::Zilla::Plugin::Git::GatherDir", | |
103 | "config" : { | |
104 | "Dist::Zilla::Plugin::GatherDir" : { | |
105 | "exclude_filename" : [ | |
106 | "LICENSE", | |
107 | "META.json", | |
108 | "README.md", | |
109 | "cpanfile" | |
110 | ], | |
111 | "exclude_match" : [], | |
112 | "follow_symlinks" : 0, | |
113 | "include_dotfiles" : 0, | |
114 | "prefix" : "", | |
115 | "prune_directory" : [], | |
116 | "root" : "." | |
117 | }, | |
118 | "Dist::Zilla::Plugin::Git::GatherDir" : { | |
119 | "include_untracked" : 0 | |
120 | } | |
121 | }, | |
122 | "name" : "Git::GatherDir", | |
123 | "version" : "2.045" | |
124 | }, | |
125 | { | |
126 | "class" : "Dist::Zilla::Plugin::MetaConfig", | |
127 | "name" : "MetaConfig", | |
128 | "version" : "6.012" | |
129 | }, | |
130 | { | |
131 | "class" : "Dist::Zilla::Plugin::MetaProvides::Package", | |
132 | "config" : { | |
133 | "Dist::Zilla::Plugin::MetaProvides::Package" : { | |
134 | "finder_objects" : [ | |
135 | { | |
136 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
137 | "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", | |
138 | "version" : "6.012" | |
139 | } | |
140 | ], | |
141 | "include_underscores" : 0 | |
142 | }, | |
143 | "Dist::Zilla::Role::MetaProvider::Provider" : { | |
144 | "$Dist::Zilla::Role::MetaProvider::Provider::VERSION" : "2.002004", | |
145 | "inherit_missing" : 1, | |
146 | "inherit_version" : 1, | |
147 | "meta_noindex" : 1 | |
148 | }, | |
149 | "Dist::Zilla::Role::ModuleMetadata" : { | |
150 | "Module::Metadata" : "1.000033", | |
151 | "version" : "0.004" | |
152 | } | |
153 | }, | |
154 | "name" : "MetaProvides::Package", | |
155 | "version" : "2.004003" | |
156 | }, | |
157 | { | |
158 | "class" : "Dist::Zilla::Plugin::MetaNoIndex", | |
159 | "name" : "MetaNoIndex", | |
160 | "version" : "6.012" | |
161 | }, | |
162 | { | |
163 | "class" : "Dist::Zilla::Plugin::MetaYAML", | |
164 | "name" : "MetaYAML", | |
165 | "version" : "6.012" | |
166 | }, | |
167 | { | |
168 | "class" : "Dist::Zilla::Plugin::MetaJSON", | |
169 | "name" : "MetaJSON", | |
170 | "version" : "6.012" | |
171 | }, | |
172 | { | |
173 | "class" : "Dist::Zilla::Plugin::MetaResources", | |
174 | "name" : "MetaResources", | |
175 | "version" : "6.012" | |
176 | }, | |
177 | { | |
178 | "class" : "Dist::Zilla::Plugin::Git::Contributors", | |
179 | "config" : { | |
180 | "Dist::Zilla::Plugin::Git::Contributors" : { | |
181 | "git_version" : "2.20.1", | |
182 | "include_authors" : 0, | |
183 | "include_releaser" : 1, | |
184 | "order_by" : "name", | |
185 | "paths" : [] | |
186 | } | |
187 | }, | |
188 | "name" : "Git::Contributors", | |
189 | "version" : "0.035" | |
190 | }, | |
191 | { | |
192 | "class" : "Dist::Zilla::Plugin::GithubMeta", | |
193 | "name" : "GithubMeta", | |
194 | "version" : "0.58" | |
195 | }, | |
196 | { | |
197 | "class" : "Dist::Zilla::Plugin::Authority", | |
198 | "name" : "Authority", | |
199 | "version" : "1.009" | |
200 | }, | |
201 | { | |
202 | "class" : "Dist::Zilla::Plugin::Manifest", | |
203 | "name" : "Manifest", | |
204 | "version" : "6.012" | |
205 | }, | |
206 | { | |
207 | "class" : "Dist::Zilla::Plugin::License", | |
208 | "name" : "License", | |
209 | "version" : "6.012" | |
210 | }, | |
211 | { | |
212 | "class" : "Dist::Zilla::Plugin::InstallGuide", | |
213 | "name" : "InstallGuide", | |
214 | "version" : "1.200012" | |
215 | }, | |
216 | { | |
217 | "class" : "Dist::Zilla::Plugin::ExecDir", | |
218 | "name" : "ExecDir", | |
219 | "version" : "6.012" | |
220 | }, | |
221 | { | |
222 | "class" : "Dist::Zilla::Plugin::Prereqs", | |
223 | "config" : { | |
224 | "Dist::Zilla::Plugin::Prereqs" : { | |
225 | "phase" : "runtime", | |
226 | "type" : "requires" | |
227 | } | |
228 | }, | |
229 | "name" : "Prereqs", | |
230 | "version" : "6.012" | |
231 | }, | |
232 | { | |
233 | "class" : "Dist::Zilla::Plugin::AutoPrereqs", | |
234 | "name" : "AutoPrereqs", | |
235 | "version" : "6.012" | |
236 | }, | |
237 | { | |
238 | "class" : "Dist::Zilla::Plugin::CPANFile", | |
239 | "name" : "CPANFile", | |
240 | "version" : "6.012" | |
241 | }, | |
242 | { | |
243 | "class" : "Dist::Zilla::Plugin::MakeMaker", | |
244 | "config" : { | |
245 | "Dist::Zilla::Role::TestRunner" : { | |
246 | "default_jobs" : 1 | |
247 | } | |
248 | }, | |
249 | "name" : "MakeMaker", | |
250 | "version" : "6.012" | |
251 | }, | |
252 | { | |
253 | "class" : "Dist::Zilla::Plugin::MojibakeTests", | |
254 | "name" : "MojibakeTests", | |
255 | "version" : "0.8" | |
256 | }, | |
257 | { | |
258 | "class" : "Dist::Zilla::Plugin::Test::Version", | |
259 | "name" : "Test::Version", | |
260 | "version" : "1.09" | |
261 | }, | |
262 | { | |
263 | "class" : "Dist::Zilla::Plugin::Test::ReportPrereqs", | |
264 | "name" : "Test::ReportPrereqs", | |
265 | "version" : "0.027" | |
266 | }, | |
267 | { | |
268 | "class" : "Dist::Zilla::Plugin::Test::Compile", | |
269 | "config" : { | |
270 | "Dist::Zilla::Plugin::Test::Compile" : { | |
271 | "bail_out_on_fail" : "1", | |
272 | "fail_on_warning" : "author", | |
273 | "fake_home" : 0, | |
274 | "filename" : "xt/author/00-compile.t", | |
275 | "module_finder" : [ | |
276 | ":InstallModules" | |
277 | ], | |
278 | "needs_display" : 0, | |
279 | "phase" : "develop", | |
280 | "script_finder" : [ | |
281 | ":PerlExecFiles" | |
282 | ], | |
283 | "skips" : [], | |
284 | "switch" : [] | |
285 | } | |
286 | }, | |
287 | "name" : "Test::Compile", | |
288 | "version" : "2.058" | |
289 | }, | |
290 | { | |
291 | "class" : "Dist::Zilla::Plugin::Substitute", | |
292 | "name" : "00-compile.t", | |
293 | "version" : "0.006" | |
294 | }, | |
295 | { | |
296 | "class" : "Dist::Zilla::Plugin::Test::Portability", | |
297 | "config" : { | |
298 | "Dist::Zilla::Plugin::Test::Portability" : { | |
299 | "options" : "" | |
300 | } | |
301 | }, | |
302 | "name" : "Test::Portability", | |
303 | "version" : "2.001000" | |
304 | }, | |
305 | { | |
306 | "class" : "Dist::Zilla::Plugin::Test::EOL", | |
307 | "config" : { | |
308 | "Dist::Zilla::Plugin::Test::EOL" : { | |
309 | "filename" : "xt/author/eol.t", | |
310 | "finder" : [ | |
311 | ":ExecFiles", | |
312 | ":InstallModules", | |
313 | ":TestFiles" | |
314 | ], | |
315 | "trailing_whitespace" : 1 | |
316 | } | |
317 | }, | |
318 | "name" : "Test::EOL", | |
319 | "version" : "0.19" | |
320 | }, | |
321 | { | |
322 | "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent", | |
323 | "name" : "Test::ChangesHasContent", | |
324 | "version" : "0.011" | |
325 | }, | |
326 | { | |
327 | "class" : "Dist::Zilla::Plugin::Substitute", | |
328 | "name" : "changes_has_content.t", | |
329 | "version" : "0.006" | |
330 | }, | |
331 | { | |
332 | "class" : "Dist::Zilla::Plugin::Test::MinimumVersion", | |
333 | "name" : "Test::MinimumVersion", | |
334 | "version" : "2.000008" | |
335 | }, | |
336 | { | |
337 | "class" : "Dist::Zilla::Plugin::PodSyntaxTests", | |
338 | "name" : "PodSyntaxTests", | |
339 | "version" : "6.012" | |
340 | }, | |
341 | { | |
342 | "class" : "Dist::Zilla::Plugin::Test::Pod::Coverage::Configurable", | |
343 | "name" : "Test::Pod::Coverage::Configurable", | |
344 | "version" : "0.07" | |
345 | }, | |
346 | { | |
347 | "class" : "Dist::Zilla::Plugin::Test::PodSpelling", | |
348 | "config" : { | |
349 | "Dist::Zilla::Plugin::Test::PodSpelling" : { | |
350 | "directories" : [ | |
351 | "bin", | |
352 | "lib" | |
353 | ], | |
354 | "spell_cmd" : "aspell list", | |
355 | "stopwords" : [ | |
356 | "eg" | |
357 | ], | |
358 | "wordlist" : "Pod::Wordlist" | |
359 | } | |
360 | }, | |
361 | "name" : "Test::PodSpelling", | |
362 | "version" : "2.007005" | |
363 | }, | |
364 | { | |
365 | "class" : "Dist::Zilla::Plugin::Git::Check", | |
366 | "config" : { | |
367 | "Dist::Zilla::Plugin::Git::Check" : { | |
368 | "untracked_files" : "die" | |
369 | }, | |
370 | "Dist::Zilla::Role::Git::DirtyFiles" : { | |
371 | "allow_dirty" : [], | |
372 | "allow_dirty_match" : [], | |
373 | "changelog" : "Changes" | |
374 | }, | |
375 | "Dist::Zilla::Role::Git::Repo" : { | |
376 | "git_version" : "2.20.1", | |
377 | "repo_root" : "." | |
378 | } | |
379 | }, | |
380 | "name" : "Git::Check", | |
381 | "version" : "2.045" | |
382 | }, | |
383 | { | |
384 | "class" : "Dist::Zilla::Plugin::CheckStrictVersion", | |
385 | "name" : "CheckStrictVersion", | |
386 | "version" : "0.001" | |
387 | }, | |
388 | { | |
389 | "class" : "Dist::Zilla::Plugin::RunExtraTests", | |
390 | "config" : { | |
391 | "Dist::Zilla::Role::TestRunner" : { | |
392 | "default_jobs" : 1 | |
393 | } | |
394 | }, | |
395 | "name" : "RunExtraTests", | |
396 | "version" : "0.029" | |
397 | }, | |
398 | { | |
399 | "class" : "Dist::Zilla::Plugin::CheckChangeLog", | |
400 | "name" : "CheckChangeLog", | |
401 | "version" : "0.05" | |
402 | }, | |
403 | { | |
404 | "class" : "Dist::Zilla::Plugin::CheckChangesHasContent", | |
405 | "name" : "CheckChangesHasContent", | |
406 | "version" : "0.011" | |
407 | }, | |
408 | { | |
409 | "class" : "Dist::Zilla::Plugin::TestRelease", | |
410 | "name" : "TestRelease", | |
411 | "version" : "6.012" | |
412 | }, | |
413 | { | |
414 | "class" : "Dist::Zilla::Plugin::UploadToCPAN", | |
415 | "name" : "UploadToCPAN", | |
416 | "version" : "6.012" | |
417 | }, | |
418 | { | |
419 | "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod", | |
420 | "config" : { | |
421 | "Dist::Zilla::Role::FileWatcher" : { | |
422 | "version" : "0.006" | |
423 | } | |
424 | }, | |
425 | "name" : "Markdown_Readme", | |
426 | "version" : "0.163250" | |
427 | }, | |
428 | { | |
429 | "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", | |
430 | "config" : { | |
431 | "Dist::Zilla::Plugin::CopyFilesFromRelease" : { | |
432 | "filename" : [ | |
433 | "LICENSE", | |
434 | "META.json", | |
435 | "cpanfile" | |
436 | ], | |
437 | "match" : [] | |
438 | } | |
439 | }, | |
440 | "name" : "CopyFilesFromRelease", | |
441 | "version" : "0.006" | |
442 | }, | |
443 | { | |
444 | "class" : "Dist::Zilla::Plugin::Prereqs", | |
445 | "config" : { | |
446 | "Dist::Zilla::Plugin::Prereqs" : { | |
447 | "phase" : "develop", | |
448 | "type" : "recommends" | |
449 | } | |
450 | }, | |
451 | "name" : "@Git::VersionManager/pluginbundle version", | |
452 | "version" : "6.012" | |
453 | }, | |
454 | { | |
455 | "class" : "Dist::Zilla::Plugin::RewriteVersion::Transitional", | |
456 | "config" : { | |
457 | "Dist::Zilla::Plugin::RewriteVersion" : { | |
458 | "add_tarball_name" : 0, | |
459 | "finders" : [ | |
460 | ":ExecFiles", | |
461 | ":InstallModules" | |
462 | ], | |
463 | "global" : 0, | |
464 | "skip_version_provider" : 0 | |
465 | }, | |
466 | "Dist::Zilla::Plugin::RewriteVersion::Transitional" : {} | |
467 | }, | |
468 | "name" : "@Git::VersionManager/RewriteVersion::Transitional", | |
469 | "version" : "0.009" | |
470 | }, | |
471 | { | |
472 | "class" : "Dist::Zilla::Plugin::MetaProvides::Update", | |
473 | "name" : "@Git::VersionManager/MetaProvides::Update", | |
474 | "version" : "0.007" | |
475 | }, | |
476 | { | |
477 | "class" : "Dist::Zilla::Plugin::CopyFilesFromRelease", | |
478 | "config" : { | |
479 | "Dist::Zilla::Plugin::CopyFilesFromRelease" : { | |
480 | "filename" : [ | |
481 | "Changes" | |
482 | ], | |
483 | "match" : [] | |
484 | } | |
485 | }, | |
486 | "name" : "@Git::VersionManager/CopyFilesFromRelease", | |
487 | "version" : "0.006" | |
488 | }, | |
489 | { | |
490 | "class" : "Dist::Zilla::Plugin::Git::Commit", | |
491 | "config" : { | |
492 | "Dist::Zilla::Plugin::Git::Commit" : { | |
493 | "add_files_in" : [], | |
494 | "commit_msg" : "v%v%n%n%c" | |
495 | }, | |
496 | "Dist::Zilla::Role::Git::DirtyFiles" : { | |
497 | "allow_dirty" : [ | |
498 | "Changes", | |
499 | "LICENSE", | |
500 | "META.json", | |
501 | "README.md", | |
502 | "cpanfile" | |
503 | ], | |
504 | "allow_dirty_match" : [], | |
505 | "changelog" : "Changes" | |
506 | }, | |
507 | "Dist::Zilla::Role::Git::Repo" : { | |
508 | "git_version" : "2.20.1", | |
509 | "repo_root" : "." | |
510 | }, | |
511 | "Dist::Zilla::Role::Git::StringFormatter" : { | |
512 | "time_zone" : "local" | |
513 | } | |
514 | }, | |
515 | "name" : "@Git::VersionManager/release snapshot", | |
516 | "version" : "2.045" | |
517 | }, | |
518 | { | |
519 | "class" : "Dist::Zilla::Plugin::Git::Tag", | |
520 | "config" : { | |
521 | "Dist::Zilla::Plugin::Git::Tag" : { | |
522 | "branch" : null, | |
523 | "changelog" : "Changes", | |
524 | "signed" : 0, | |
525 | "tag" : "v6.03", | |
526 | "tag_format" : "v%v", | |
527 | "tag_message" : "v%v" | |
528 | }, | |
529 | "Dist::Zilla::Role::Git::Repo" : { | |
530 | "git_version" : "2.20.1", | |
531 | "repo_root" : "." | |
532 | }, | |
533 | "Dist::Zilla::Role::Git::StringFormatter" : { | |
534 | "time_zone" : "local" | |
535 | } | |
536 | }, | |
537 | "name" : "@Git::VersionManager/Git::Tag", | |
538 | "version" : "2.045" | |
539 | }, | |
540 | { | |
541 | "class" : "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional", | |
542 | "config" : { | |
543 | "Dist::Zilla::Plugin::BumpVersionAfterRelease" : { | |
544 | "finders" : [ | |
545 | ":ExecFiles", | |
546 | ":InstallModules" | |
547 | ], | |
548 | "global" : 0, | |
549 | "munge_makefile_pl" : 1 | |
550 | }, | |
551 | "Dist::Zilla::Plugin::BumpVersionAfterRelease::Transitional" : {} | |
552 | }, | |
553 | "name" : "@Git::VersionManager/BumpVersionAfterRelease::Transitional", | |
554 | "version" : "0.009" | |
555 | }, | |
556 | { | |
557 | "class" : "Dist::Zilla::Plugin::NextRelease", | |
558 | "name" : "@Git::VersionManager/NextRelease", | |
559 | "version" : "6.012" | |
560 | }, | |
561 | { | |
562 | "class" : "Dist::Zilla::Plugin::Git::Commit", | |
563 | "config" : { | |
564 | "Dist::Zilla::Plugin::Git::Commit" : { | |
565 | "add_files_in" : [], | |
566 | "commit_msg" : "increment $VERSION after %v release" | |
567 | }, | |
568 | "Dist::Zilla::Role::Git::DirtyFiles" : { | |
569 | "allow_dirty" : [ | |
570 | "Build.PL", | |
571 | "Changes", | |
572 | "Makefile.PL" | |
573 | ], | |
574 | "allow_dirty_match" : [ | |
575 | "(?^:^lib/.*\\.pm$)" | |
576 | ], | |
577 | "changelog" : "Changes" | |
578 | }, | |
579 | "Dist::Zilla::Role::Git::Repo" : { | |
580 | "git_version" : "2.20.1", | |
581 | "repo_root" : "." | |
582 | }, | |
583 | "Dist::Zilla::Role::Git::StringFormatter" : { | |
584 | "time_zone" : "local" | |
585 | } | |
586 | }, | |
587 | "name" : "@Git::VersionManager/post-release commit", | |
588 | "version" : "2.045" | |
589 | }, | |
590 | { | |
591 | "class" : "Dist::Zilla::Plugin::Git::Push", | |
592 | "config" : { | |
593 | "Dist::Zilla::Plugin::Git::Push" : { | |
594 | "push_to" : [ | |
595 | "origin" | |
596 | ], | |
597 | "remotes_must_exist" : 1 | |
598 | }, | |
599 | "Dist::Zilla::Role::Git::Repo" : { | |
600 | "git_version" : "2.20.1", | |
601 | "repo_root" : "." | |
602 | } | |
603 | }, | |
604 | "name" : "Git::Push", | |
605 | "version" : "2.045" | |
606 | }, | |
607 | { | |
608 | "class" : "Dist::Zilla::Plugin::ConfirmRelease", | |
609 | "name" : "ConfirmRelease", | |
610 | "version" : "6.012" | |
611 | }, | |
612 | { | |
613 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
614 | "name" : ":InstallModules", | |
615 | "version" : "6.012" | |
616 | }, | |
617 | { | |
618 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
619 | "name" : ":IncModules", | |
620 | "version" : "6.012" | |
621 | }, | |
622 | { | |
623 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
624 | "name" : ":TestFiles", | |
625 | "version" : "6.012" | |
626 | }, | |
627 | { | |
628 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
629 | "name" : ":ExtraTestFiles", | |
630 | "version" : "6.012" | |
631 | }, | |
632 | { | |
633 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
634 | "name" : ":ExecFiles", | |
635 | "version" : "6.012" | |
636 | }, | |
637 | { | |
638 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
639 | "name" : ":PerlExecFiles", | |
640 | "version" : "6.012" | |
641 | }, | |
642 | { | |
643 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
644 | "name" : ":ShareFiles", | |
645 | "version" : "6.012" | |
646 | }, | |
647 | { | |
648 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
649 | "name" : ":MainModule", | |
650 | "version" : "6.012" | |
651 | }, | |
652 | { | |
653 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
654 | "name" : ":AllFiles", | |
655 | "version" : "6.012" | |
656 | }, | |
657 | { | |
658 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
659 | "name" : ":NoFiles", | |
660 | "version" : "6.012" | |
661 | }, | |
662 | { | |
663 | "class" : "Dist::Zilla::Plugin::FinderCode", | |
664 | "name" : "MetaProvides::Package/AUTOVIV/:InstallModulesPM", | |
665 | "version" : "6.012" | |
666 | } | |
667 | ], | |
668 | "zilla" : { | |
669 | "class" : "Dist::Zilla::Dist::Builder", | |
670 | "config" : { | |
671 | "is_trial" : 1 | |
672 | }, | |
673 | "version" : "6.012" | |
674 | } | |
675 | }, | |
676 | "x_authority" : "cpan:LWWWP", | |
677 | "x_contributors" : [ | |
678 | "Adam Kennedy <adamk@cpan.org>", | |
679 | "Adam Sjogren <asjo@koldfront.dk>", | |
680 | "Alexey Tourbin <at@altlinux.ru>", | |
681 | "Alex Kapranoff <ka@nadoby.ru>", | |
682 | "amire80 <amir.aharoni@gmail.com>", | |
683 | "Andreas J. Koenig <andreas.koenig@anima.de>", | |
684 | "Bill Mann <wfmann@alum.mit.edu>", | |
685 | "Bron Gondwana <brong@fastmail.fm>", | |
686 | "Daniel Hedlund <Daniel.Hedlund@eprize.com>", | |
687 | "David E. Wheeler <david@justatheory.com>", | |
688 | "DAVIDRW <davidrw@cpan.org>", | |
689 | "Father Chrysostomos <sprout@cpan.org>", | |
690 | "FWILES <FWILES@cpan.org>", | |
691 | "Gavin Peters <gpeters@deepsky.com>", | |
692 | "Gisle Aas <aas@oslonett.no>", | |
693 | "Gisle Aas <gisle.aas@it.uib.no>", | |
694 | "Gisle Aas <gisle@aas.no>", | |
695 | "Gisle Aas <gisle@baux-2.lan>", | |
696 | "Graeme Thompson <Graeme.Thompson@mobilecohesion.com>", | |
697 | "Hans-H. Froehlich <hfroehlich@co-de-co.de>", | |
698 | "Ian Kilgore <iank@cpan.org>", | |
699 | "Jacob J <waif@chaos2.org>", | |
700 | "jefflee <shaohua@gmail.com>", | |
701 | "john9art <john9art@yahoo.com>", | |
702 | "Karen Etheridge <ether@cpan.org>", | |
703 | "Mark Stosberg <mark@stosberg.com>", | |
704 | "Mark Stosberg <MARKSTOS@cpan.org>", | |
705 | "Mark Stosberg <mark@summersault.com>", | |
706 | "Mike Schilli <mschilli@yahoo-inc.com>", | |
707 | "mschilli <github@perlmeister.com>", | |
708 | "murphy <murphy@genome.chop.edu>", | |
709 | "Olaf Alders <olaf@wundersolutions.com>", | |
710 | "Ondrej Hanak <ondrej.hanak@ubs.com>", | |
711 | "Peter Rabbitson <ribasushi@cpan.org>", | |
712 | "phrstbrn <phrstbrn@gmail.com>", | |
713 | "Robert Stone <talby@trap.mtview.ca.us>", | |
714 | "Rolf Grossmann <rg@progtech.net>", | |
715 | "ruff <ruff@ukrpost.net>", | |
716 | "sasao <sasao@yugen.org>", | |
717 | "Sean M. Burke <sburke@cpan.org>", | |
718 | "Slaven Rezic <slaven@rezic.de>", | |
719 | "Slaven Rezic <srezic@iconmobile.com>", | |
720 | "Spiros Denaxas <s.denaxas@gmail.com>", | |
721 | "Steve Hay <SteveHay@planit.com>", | |
722 | "Todd Lipcon <todd@amiestreet.com>", | |
723 | "Tom Hukins <tom@eborcom.com>", | |
724 | "Tony Finch <dot@dotat.at>", | |
725 | "Toru Yamaguchi <zigorou@cpan.org>", | |
726 | "uid39246 <uid39246>", | |
727 | "Ville Skytta <ville.skytta@iki.fi>", | |
728 | "Wesley Schwengle <wesley@schwengle.net>", | |
729 | "Yuri Karaban <tech@askold.net>", | |
730 | "Zefram <zefram@fysh.org>" | |
731 | ], | |
732 | "x_generated_by_perl" : "v5.26.1", | |
733 | "x_serialization_backend" : "Cpanel::JSON::XS version 4.04" | |
734 | } | |
735 |
0 | # NAME | |
1 | ||
2 | LWP::MediaTypes - guess media type for a file or a URL | |
3 | ||
4 | # SYNOPSIS | |
5 | ||
6 | use LWP::MediaTypes qw(guess_media_type); | |
7 | $type = guess_media_type("/tmp/foo.gif"); | |
8 | ||
9 | # DESCRIPTION | |
10 | ||
11 | This module provides functions for handling media (also known as | |
12 | MIME) types and encodings. The mapping from file extensions to media | |
13 | types is defined by the `media.types` file. If the `~/.media.types` | |
14 | file exists it is used instead. | |
15 | For backwards compatibility we will also look for `~/.mime.types`. | |
16 | ||
17 | The following functions are exported by default: | |
18 | ||
19 | - guess\_media\_type( $filename ) | |
20 | - guess\_media\_type( $uri ) | |
21 | - guess\_media\_type( $filename\_or\_object, $header\_to\_modify ) | |
22 | ||
23 | This function tries to guess media type and encoding for a file or objects that | |
24 | support the a `path` or `filename` method, eg, [URI](https://metacpan.org/pod/URI) or [File::Temp](https://metacpan.org/pod/File::Temp) objects. | |
25 | When an object does not support either method, it will be stringified to | |
26 | determine the filename. | |
27 | It returns the content type, which is a string like `"text/html"`. | |
28 | In array context it also returns any content encodings applied (in the | |
29 | order used to encode the file). You can pass a URI object | |
30 | reference, instead of the file name. | |
31 | ||
32 | If the type can not be deduced from looking at the file name, | |
33 | then guess\_media\_type() will let the `-T` Perl operator take a look. | |
34 | If this works (and `-T` returns a TRUE value) then we return | |
35 | _text/plain_ as the type, otherwise we return | |
36 | _application/octet-stream_ as the type. | |
37 | ||
38 | The optional second argument should be a reference to a HTTP::Headers | |
39 | object or any object that implements the $obj->header method in a | |
40 | similar way. When it is present the values of the | |
41 | 'Content-Type' and 'Content-Encoding' will be set for this header. | |
42 | ||
43 | - media\_suffix( $type, ... ) | |
44 | ||
45 | This function will return all suffixes that can be used to denote the | |
46 | specified media type(s). Wildcard types can be used. In a scalar | |
47 | context it will return the first suffix found. Examples: | |
48 | ||
49 | @suffixes = media_suffix('image/*', 'audio/basic'); | |
50 | $suffix = media_suffix('text/html'); | |
51 | ||
52 | The following functions are only exported by explicit request: | |
53 | ||
54 | - add\_type( $type, @exts ) | |
55 | ||
56 | Associate a list of file extensions with the given media type. | |
57 | Example: | |
58 | ||
59 | add_type("x-world/x-vrml" => qw(wrl vrml)); | |
60 | ||
61 | - add\_encoding( $type, @ext ) | |
62 | ||
63 | Associate a list of file extensions with an encoding type. | |
64 | Example: | |
65 | ||
66 | add_encoding("x-gzip" => "gz"); | |
67 | ||
68 | - read\_media\_types( @files ) | |
69 | ||
70 | Parse media types files and add the type mappings found there. | |
71 | Example: | |
72 | ||
73 | read_media_types("conf/mime.types"); | |
74 | ||
75 | # COPYRIGHT | |
76 | ||
77 | Copyright 1995-1999 Gisle Aas. | |
78 | ||
79 | This library is free software; you can redistribute it and/or | |
80 | modify it under the same terms as Perl itself. |