Hello community,

here is the log from the commit of package perl-MIME-Types for openSUSE:Factory 
checked in at 2015-06-17 16:16:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-MIME-Types (Old)
 and      /work/SRC/openSUSE:Factory/.perl-MIME-Types.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-MIME-Types"

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-MIME-Types/perl-MIME-Types.changes  
2015-04-15 16:25:52.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-MIME-Types.new/perl-MIME-Types.changes     
2015-06-17 16:16:20.000000000 +0200
@@ -1,0 +2,15 @@
+Tue Jun 16 08:40:20 UTC 2015 - [email protected]
+
+- updated to 2.10
+   see /usr/share/doc/packages/perl-MIME-Types/ChangeLog
+
+  version 2.10: Mon Jun 15 17:32:22 CEST 2015
+  
+       Fixes:
+       - accept field 'q' weights [Theo van Hoesel]
+  
+       Improvements:
+       - introduce PERL_MIME_TYPE_DB
+         rt.cpan.org#104945 [Philip Gwyn]
+
+-------------------------------------------------------------------

Old:
----
  MIME-Types-2.09.tar.gz

New:
----
  MIME-Types-2.10.tar.gz
  cpanspec.yml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-MIME-Types.spec ++++++
--- /var/tmp/diff_new_pack.oqiPHi/_old  2015-06-17 16:16:21.000000000 +0200
+++ /var/tmp/diff_new_pack.oqiPHi/_new  2015-06-17 16:16:21.000000000 +0200
@@ -17,14 +17,15 @@
 
 
 Name:           perl-MIME-Types
-Version:        2.09
+Version:        2.10
 Release:        0
 %define cpan_name MIME-Types
 Summary:        Definition of MIME types
 License:        Artistic-1.0 or GPL-1.0+
 Group:          Development/Libraries/Perl
 Url:            http://search.cpan.org/dist/MIME-Types/
-Source:         
http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/M/MA/MARKOV/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl

++++++ MIME-Types-2.09.tar.gz -> MIME-Types-2.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/ChangeLog 
new/MIME-Types-2.10/ChangeLog
--- old/MIME-Types-2.09/ChangeLog       2014-09-14 18:12:24.000000000 +0200
+++ new/MIME-Types-2.10/ChangeLog       2015-06-15 17:32:27.000000000 +0200
@@ -6,6 +6,15 @@
 TODO:
  . Add source http://www.ltsw.se/knbase/internet/mime.htp ?
 
+version 2.10: Mon Jun 15 17:32:22 CEST 2015
+
+       Fixes:
+       - accept field 'q' weights [Theo van Hoesel]
+
+       Improvements:
+       - introduce PERL_MIME_TYPE_DB
+         rt.cpan.org#104945 [Philip Gwyn]
+
 version 2.09: Sun Sep 14 18:12:08 CEST 2014
 
        Improvements:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/META.json 
new/MIME-Types-2.10/META.json
--- old/MIME-Types-2.09/META.json       2014-09-14 18:12:26.000000000 +0200
+++ new/MIME-Types-2.10/META.json       2015-06-15 17:32:29.000000000 +0200
@@ -40,5 +40,5 @@
       }
    },
    "release_status" : "stable",
-   "version" : "2.09"
+   "version" : "2.10"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/META.yml new/MIME-Types-2.10/META.yml
--- old/MIME-Types-2.09/META.yml        2014-09-14 18:12:26.000000000 +0200
+++ new/MIME-Types-2.10/META.yml        2015-06-15 17:32:28.000000000 +0200
@@ -22,4 +22,4 @@
   File::Spec: 0
   List::Util: 0
   Test::More: 0.47
-version: 2.09
+version: 2.10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/Makefile.PL 
new/MIME-Types-2.10/Makefile.PL
--- old/MIME-Types-2.09/Makefile.PL     2014-09-14 18:12:24.000000000 +0200
+++ new/MIME-Types-2.10/Makefile.PL     2015-06-15 17:32:27.000000000 +0200
@@ -2,7 +2,7 @@
 
 require 5.008_008;
 
-my $version  = '2.09';   # scanned by bin/collect_types !
+my $version  = '2.10';   # scanned by bin/collect_types !
 
 WriteMakefile
   ( NAME      => 'MIME::Types'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/lib/MIME/Type.pm 
new/MIME-Types-2.10/lib/MIME/Type.pm
--- old/MIME-Types-2.09/lib/MIME/Type.pm        2014-09-14 18:12:24.000000000 
+0200
+++ new/MIME-Types-2.10/lib/MIME/Type.pm        2015-06-15 17:32:27.000000000 
+0200
@@ -1,10 +1,10 @@
-# Copyrights 1999,2001-2014 by [Mark Overmeer].
+# Copyrights 1999,2001-2015 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 2.01.
 package MIME::Type;
 use vars '$VERSION';
-$VERSION = '2.09';
+$VERSION = '2.10';
 
 
 use strict;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/lib/MIME/Type.pod 
new/MIME-Types-2.10/lib/MIME/Type.pod
--- old/MIME-Types-2.09/lib/MIME/Type.pod       2014-09-14 18:12:24.000000000 
+0200
+++ new/MIME-Types-2.10/lib/MIME/Type.pod       2015-06-15 17:32:27.000000000 
+0200
@@ -225,12 +225,12 @@
 
 =head1 SEE ALSO
 
-This module is part of MIME-Types distribution version 2.09,
-built on September 14, 2014. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 2.10,
+built on June 15, 2015. Website: F<http://perl.overmeer.net/mimetypes/>
 
 =head1 LICENSE
 
-Copyrights 1999,2001-2014 by [Mark Overmeer]. For other contributors see 
ChangeLog.
+Copyrights 1999,2001-2015 by [Mark Overmeer]. For other contributors see 
ChangeLog.
 
 This program is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/lib/MIME/Types.pm 
new/MIME-Types-2.10/lib/MIME/Types.pm
--- old/MIME-Types-2.09/lib/MIME/Types.pm       2014-09-14 18:12:24.000000000 
+0200
+++ new/MIME-Types-2.10/lib/MIME/Types.pm       2015-06-15 17:32:27.000000000 
+0200
@@ -1,11 +1,11 @@
-# Copyrights 1999,2001-2014 by [Mark Overmeer].
+# Copyrights 1999,2001-2015 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 2.01.
 
 package MIME::Types;
 use vars '$VERSION';
-$VERSION = '2.09';
+$VERSION = '2.10';
 
 
 use strict;
@@ -31,7 +31,8 @@
     my $only_complete   = $args->{only_complete};
     my $only_iana       = $args->{only_iana};
 
-    my $db              = $args->{db_file}
+    my $db              = $ENV{PERL_MIME_TYPE_DB}
+      || $args->{db_file}
       || File::Spec->catfile(dirname(__FILE__), 'types.db');
 
     local *DB;
@@ -166,8 +167,15 @@
           $ !x or next;
 
         my $mime = "$1/$2$4";
-        my $q    = $3 || ($1 eq '*' ? -2 : $2 eq '*' ? -1 : 1);
-        push @listed, [ $mime, $q-@listed*0.001 ];
+        my $q    = $3 // 1;   # q, default=1
+
+        # most complex first
+        $q += $4 ? +0.01 : $1 eq '*' ? -0.02 : $2 eq '*' ? -0.01 : 0;
+
+        # keep order
+        $q -= @listed*0.0001;
+
+        push @listed, [ $mime => $q ];
     }
     map $_->[0], sort {$b->[1] <=> $a->[1]} @listed;
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/lib/MIME/Types.pod 
new/MIME-Types-2.10/lib/MIME/Types.pod
--- old/MIME-Types-2.09/lib/MIME/Types.pod      2014-09-14 18:12:24.000000000 
+0200
+++ new/MIME-Types-2.10/lib/MIME/Types.pod      2015-06-15 17:32:27.000000000 
+0200
@@ -67,6 +67,14 @@
 
 =item db_file => FILENAME
 
+The location of the database which contains the type information.  Only the
+first instantiation of this object will have this parameter obeyed.
+
+[2.10] This parameter can be globally overruled via the C<PERL_MIME_TYPE_DB>
+environment variable, which may be needed in case of PAR or other tricky
+installations.  For PAR, you probably set this environment variable to
+"inc/lib/MIME/types.db"
+
 =item only_complete => BOOLEAN
 
 Only include complete MIME type definitions: requires at least one known
@@ -166,7 +174,7 @@
 
 example: 
 
-  my @types = $types->httpAccept('text/html, application/json;q=9');
+  my @types = $types->httpAccept('text/html, application/json;q=0.9');
 
 =item $obj-E<gt>B<httpAcceptBest>($accept|\@types, @have)
 
@@ -246,12 +254,12 @@
 
 =head1 SEE ALSO
 
-This module is part of MIME-Types distribution version 2.09,
-built on September 14, 2014. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 2.10,
+built on June 15, 2015. Website: F<http://perl.overmeer.net/mimetypes/>
 
 =head1 LICENSE
 
-Copyrights 1999,2001-2014 by [Mark Overmeer]. For other contributors see 
ChangeLog.
+Copyrights 1999,2001-2015 by [Mark Overmeer]. For other contributors see 
ChangeLog.
 
 This program is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/lib/MojoX/MIME/Types.pm 
new/MIME-Types-2.10/lib/MojoX/MIME/Types.pm
--- old/MIME-Types-2.09/lib/MojoX/MIME/Types.pm 2014-09-14 18:12:24.000000000 
+0200
+++ new/MIME-Types-2.10/lib/MojoX/MIME/Types.pm 2015-06-15 17:32:27.000000000 
+0200
@@ -1,10 +1,10 @@
-# Copyrights 1999,2001-2014 by [Mark Overmeer].
+# Copyrights 1999,2001-2015 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 2.01.
 package MojoX::MIME::Types;
 use vars '$VERSION';
-$VERSION = '2.09';
+$VERSION = '2.10';
 
 use Mojo::Base -base;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/lib/MojoX/MIME/Types.pod 
new/MIME-Types-2.10/lib/MojoX/MIME/Types.pod
--- old/MIME-Types-2.09/lib/MojoX/MIME/Types.pod        2014-09-14 
18:12:25.000000000 +0200
+++ new/MIME-Types-2.10/lib/MojoX/MIME/Types.pod        2015-06-15 
17:32:27.000000000 +0200
@@ -202,12 +202,12 @@
 
 =head1 SEE ALSO
 
-This module is part of MIME-Types distribution version 2.09,
-built on September 14, 2014. Website: F<http://perl.overmeer.net/mimetypes/>
+This module is part of MIME-Types distribution version 2.10,
+built on June 15, 2015. Website: F<http://perl.overmeer.net/mimetypes/>
 
 =head1 LICENSE
 
-Copyrights 1999,2001-2014 by [Mark Overmeer]. For other contributors see 
ChangeLog.
+Copyrights 1999,2001-2015 by [Mark Overmeer]. For other contributors see 
ChangeLog.
 
 This program is free software; you can redistribute it and/or modify it
 under the same terms as Perl itself.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/MIME-Types-2.09/t/21accept.t 
new/MIME-Types-2.10/t/21accept.t
--- old/MIME-Types-2.09/t/21accept.t    2014-09-14 18:12:24.000000000 +0200
+++ new/MIME-Types-2.10/t/21accept.t    2015-06-15 17:32:27.000000000 +0200
@@ -31,6 +31,6 @@
 
 my @t3 = $a->httpAccept('*/*, text/*,text/aap, text/noot;q=3, 
text/mies;q=0.1');
 cmp_ok(scalar @t3, '==', 5, 'quality');
-is(join('#',@t3), 'text/noot#text/aap#text/mies#text/*#*/*');
+is(join('#',@t3), 'text/noot#text/aap#text/*#*/*#text/mies');
 
 

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

Reply via email to