pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/ruby-mime-types



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat May 17 07:48:56 UTC 2025

Modified Files:
        pkgsrc/mail/ruby-mime-types: Makefile distinfo

Log Message:
mail/ruby-mime-types: update to 3.7.0

3.7.0 (2025-05-07)

* Deprecated MIME::Type#priority_compare.  In a future release, this will be
  will be renamed to MIME::Type#<=>.  This method is used in tight loops, so
  there is no warning message for either MIME::Type#priority_compare or
  MIME::Type#<=>.

* Improved the performance of sorting by eliminating the complex comparison
  flow from MIME::Type#priority_compare.  The old version shows under 600
  i/s, and the new version shows over 900 i/s.  In sorting the full set of
  MIME data, there are three differences between the old and new versions;
  after comparison, these differences are considered acceptable.

* Simplified the default compare implementation (MIME::Type#<=>) to use the
  new MIME::Type#priority_compare operation and simplify the fallback to
  String comparison.  This may result in exceptions where there had been
  none, as explicit support for several special values (which should have
  caused errors in any case) have been removed.

* When sorting the result of MIME::Types#type_for, provided a priority boost
  if one of the target extensions is the type's preferred extension.  This
  means that for the case in #148, when getting the type for foo.webm, the
  type video/webm will be returned before the type audio/webm, because .webm
  is the preferred extension for video/webm but not audio/webm (which has a
  preferred extension of .weba). Added tests to ensure MIME types are
  retrieved in a stable order (which is alphabetical).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/mail/ruby-mime-types/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/mail/ruby-mime-types/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/ruby-mime-types/Makefile
diff -u pkgsrc/mail/ruby-mime-types/Makefile:1.23 pkgsrc/mail/ruby-mime-types/Makefile:1.24
--- pkgsrc/mail/ruby-mime-types/Makefile:1.23   Mon Apr 14 14:28:26 2025
+++ pkgsrc/mail/ruby-mime-types/Makefile        Sat May 17 07:48:56 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.23 2025/04/14 14:28:26 taca Exp $
+# $NetBSD: Makefile,v 1.24 2025/05/17 07:48:56 taca Exp $
 
-DISTNAME=      mime-types-3.6.2
+DISTNAME=      mime-types-3.7.0
 CATEGORIES=    mail
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost

Index: pkgsrc/mail/ruby-mime-types/distinfo
diff -u pkgsrc/mail/ruby-mime-types/distinfo:1.25 pkgsrc/mail/ruby-mime-types/distinfo:1.26
--- pkgsrc/mail/ruby-mime-types/distinfo:1.25   Mon Apr 14 14:28:26 2025
+++ pkgsrc/mail/ruby-mime-types/distinfo        Sat May 17 07:48:56 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.25 2025/04/14 14:28:26 taca Exp $
+$NetBSD: distinfo,v 1.26 2025/05/17 07:48:56 taca Exp $
 
-BLAKE2s (mime-types-3.6.2.gem) = 76822db13ca244ded0db374b8b04aea8c6da04cc8eece1f27fd06828ba262652
-SHA512 (mime-types-3.6.2.gem) = 224f091d0f9f8909ddae359b773cead75a11e23d630ebf1d3253f7c746aca55bcb8462485d8afe4751973572e1ddb015a90ed06f9b04cc01a450b1e859c4b76c
-Size (mime-types-3.6.2.gem) = 40448 bytes
+BLAKE2s (mime-types-3.7.0.gem) = 7dc756adda28540c5b91a77e02a27445d47f45bc82f982febbfb0e1fb0652bee
+SHA512 (mime-types-3.7.0.gem) = ea00d78a3176c96c28b45df68d4b32a1e6b7ce604311178a3a114e544ff7fa56e8abb7c7aff1a29f8b7f4797759739c284c73638777fb9599ae3483d5046de08
+Size (mime-types-3.7.0.gem) = 41984 bytes



Home | Main Index | Thread Index | Old Index