r7346 - in /branches/upstream/libmime-types-perl/current: ChangeLog MANIFEST META.yml Makefile.PL lib/MIME/Type.pm lib/MIME/Type.pod lib/MIME/Types.pm lib/MIME/Types.pod t/20types.t
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Tue Sep 11 06:06:09 UTC 2007
Author: dmn
Date: Tue Sep 11 06:06:08 2007
New Revision: 7346
URL: http://svn.debian.org/wsvn/?sc=1&rev=7346
Log:
[svn-upgrade] Integrating new upstream version, libmime-types-perl (1.21)
Modified:
branches/upstream/libmime-types-perl/current/ChangeLog
branches/upstream/libmime-types-perl/current/MANIFEST
branches/upstream/libmime-types-perl/current/META.yml
branches/upstream/libmime-types-perl/current/Makefile.PL
branches/upstream/libmime-types-perl/current/lib/MIME/Type.pm
branches/upstream/libmime-types-perl/current/lib/MIME/Type.pod
branches/upstream/libmime-types-perl/current/lib/MIME/Types.pm
branches/upstream/libmime-types-perl/current/lib/MIME/Types.pod
branches/upstream/libmime-types-perl/current/t/20types.t
Modified: branches/upstream/libmime-types-perl/current/ChangeLog
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/ChangeLog?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/ChangeLog (original)
+++ branches/upstream/libmime-types-perl/current/ChangeLog Tue Sep 11 06:06:08 2007
@@ -5,6 +5,12 @@
**** Inform Austin Ziegler < mime-types at halostatue.ca> at each release, to
**** update his Ruby port of the module.
+
+version 1.21: Mon Sep 10 21:18:08 CEST 2007
+
+ - patch tests to work on VMS [Peter (Stig) Edwards]
+
+ - patch for image/pjpeg bug IE6 [Nicolas Mendosa]
version 1.20: Fri Jun 8 16:21:33 CEST 2007
Modified: branches/upstream/libmime-types-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/MANIFEST?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/MANIFEST (original)
+++ branches/upstream/libmime-types-perl/current/MANIFEST Tue Sep 11 06:06:08 2007
@@ -1,6 +1,5 @@
ChangeLog
MANIFEST
-META.yml Module meta-data (added by MakeMaker)
Makefile.PL
README
lib/MIME/Type.pm
@@ -12,3 +11,4 @@
t/20types.t
t/30export.t
t/pod.t
+META.yml Module meta-data (added by MakeMaker)
Modified: branches/upstream/libmime-types-perl/current/META.yml
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/META.yml?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/META.yml (original)
+++ branches/upstream/libmime-types-perl/current/META.yml Tue Sep 11 06:06:08 2007
@@ -1,12 +1,15 @@
-# http://module-build.sourceforge.net/META-spec.html
-#XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX#
-name: MIME-Types
-version: 1.20
-version_from:
-installdirs: site
-requires:
+--- #YAML:1.0
+name: MIME-Types
+version: 1.21
+abstract: Definition of MIME types
+license: perl
+generated_by: ExtUtils::MakeMaker version 6.32
+distribution_type: module
+requires:
Test::More: 0.47
Test::Pod: 1
-
-distribution_type: module
-generated_by: ExtUtils::MakeMaker version 6.17
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.2.html
+ version: 1.2
+author:
+ - Mark Overmeer
Modified: branches/upstream/libmime-types-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/Makefile.PL?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/Makefile.PL (original)
+++ branches/upstream/libmime-types-perl/current/Makefile.PL Tue Sep 11 06:06:08 2007
@@ -4,13 +4,14 @@
WriteMakefile
( NAME => 'MIME::Types'
- , VERSION => '1.20'
+ , VERSION => '1.21'
, PREREQ_PM =>
{ Test::More => 0.47
, Test::Pod => 1.00
}
, AUTHOR => 'Mark Overmeer'
, ABSTRACT => 'Definition of MIME types'
+ , LICENSE => 'perl'
);
### used by oodist during production of distribution
Modified: branches/upstream/libmime-types-perl/current/lib/MIME/Type.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/lib/MIME/Type.pm?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/lib/MIME/Type.pm (original)
+++ branches/upstream/libmime-types-perl/current/lib/MIME/Type.pm Tue Sep 11 06:06:08 2007
@@ -1,10 +1,10 @@
# Copyrights 1999,2001-2007 by Mark Overmeer.
# For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
-# Pod stripped from pm file by OODoc 1.00.
+# Pod stripped from pm file by OODoc 1.02.
package MIME::Type;
use vars '$VERSION';
-$VERSION = '1.20';
+$VERSION = '1.21';
use strict;
Modified: branches/upstream/libmime-types-perl/current/lib/MIME/Type.pod
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/lib/MIME/Type.pod?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/lib/MIME/Type.pod (original)
+++ branches/upstream/libmime-types-perl/current/lib/MIME/Type.pod Tue Sep 11 06:06:08 2007
@@ -1,6 +1,8 @@
=head1 NAME
MIME::Type - Definition of one MIME type
+
+=head1 INHERITANCE
=head1 SYNOPSIS
@@ -53,7 +55,7 @@
is required) will result in the type name, the same as L<type()|MIME::Type/"Attributes">
returns.
-I<Example:> use of stringification
+example: use of stringification
my $mime = MIME::Type->new('text/html');
print "$mime\n"; # explicit stringification
@@ -161,7 +163,7 @@
the C<x-> can disappear. In many cases, we prefer the simplified version
of the type.
-I<Example:> results of simplified()
+example: results of simplified()
my $mime = MIME::Type->new(type => 'x-appl/x-zip');
print $mime->simplified; # 'appl/zip'
@@ -257,15 +259,19 @@
=head1 DIAGNOSTICS
-I<Error:> Type parameter is obligatory.
+Error: Type parameter is obligatory.
+
+=over 4
When a L<MIME::Type|MIME::Type> object is created, the type itself must be
specified with the C<type> option flag.
+=back
+
=head1 SEE ALSO
-This module is part of MIME-Types distribution version 1.20,
-built on June 08, 2007. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 1.21,
+built on September 10, 2007. Website: F<http://perl.overmeer.net/mimetypes/>
=head1 LICENSE
Modified: branches/upstream/libmime-types-perl/current/lib/MIME/Types.pm
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/lib/MIME/Types.pm?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/lib/MIME/Types.pm (original)
+++ branches/upstream/libmime-types-perl/current/lib/MIME/Types.pm Tue Sep 11 06:06:08 2007
@@ -1,11 +1,11 @@
# Copyrights 1999,2001-2007 by Mark Overmeer.
# For other contributors see ChangeLog.
# See the manual pages for details on the licensing terms.
-# Pod stripped from pm file by OODoc 1.00.
+# Pod stripped from pm file by OODoc 1.02.
package MIME::Types;
use vars '$VERSION';
-$VERSION = '1.20';
+$VERSION = '1.21';
use strict;
@@ -754,7 +754,7 @@
image/g3fax
image/gif gif base64
image/ief ief base64
-image/jp2 jp2,jpg2
+image/jp2 jp2,jpg2 base64
image/jpeg jpeg,jpg,jpe base64
image/jpm jpm,jpgm
image/jpx jpf,jpx
@@ -936,6 +936,9 @@
vms:text/plain doc 8bit
mac:application/x-macbase64 bin
+# IE6 bug
+image/pjpeg base64
+
__MIMETYPES__
1;
Modified: branches/upstream/libmime-types-perl/current/lib/MIME/Types.pod
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/lib/MIME/Types.pod?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/lib/MIME/Types.pod (original)
+++ branches/upstream/libmime-types-perl/current/lib/MIME/Types.pod Tue Sep 11 06:06:08 2007
@@ -5,7 +5,7 @@
=head1 INHERITANCE
MIME::Types
- is an Exporter
+ is a Exporter
=head1 SYNOPSIS
@@ -93,7 +93,7 @@
In some cases, more than one type is known for a certain filename extension.
In that case, one of the alternatives is chosen at random.
-I<Example:> use of mimeTypeOf()
+example: use of mimeTypeOf()
my MIME::Types $types = MIME::Types->new;
my MIME::Type $mime = $types->mimeTypeOf('gif');
@@ -150,7 +150,7 @@
Like C<mimeTypeOf>, but does not return an C<MIME::Type> object. If the file
+type is unknown, both the returned media type and encoding are empty strings.
-I<Example:> use of function by_suffix()
+example: use of function by_suffix()
use MIME::Types 'by_suffix';
my ($mediatype, $encoding) = by_suffix 'image.gif';
@@ -174,8 +174,8 @@
=head1 SEE ALSO
-This module is part of MIME-Types distribution version 1.20,
-built on June 08, 2007. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 1.21,
+built on September 10, 2007. Website: F<http://perl.overmeer.net/mimetypes/>
=head1 LICENSE
Modified: branches/upstream/libmime-types-perl/current/t/20types.t
URL: http://svn.debian.org/wsvn/branches/upstream/libmime-types-perl/current/t/20types.t?rev=7346&op=diff
==============================================================================
--- branches/upstream/libmime-types-perl/current/t/20types.t (original)
+++ branches/upstream/libmime-types-perl/current/t/20types.t Tue Sep 11 06:06:08 2007
@@ -47,7 +47,13 @@
is($p->type, 'image/gif');
my $q = $a->mimeTypeOf('windows.doc');
-is($q->type, 'application/x-msword');
+if($^O eq 'VMS')
+{ # See MIME::Types, OS Exceptions
+ is($q->type, 'text/plain');
+}
+else
+{ is($q->type, 'application/x-msword');
+}
is($a->mimeTypeOf('my.lzh')->type, 'application/octet-stream');
my $warn;
More information about the Pkg-perl-cvs-commits
mailing list