PaulHowarth/Blog/2015-11-08

Sunday 8th November 2015

Fedora Project

  • Updated perl-DateTime-Format-Strptime to 1.60 in Rawhide:

  • Backwards Incompatibilities
    • The error messages for various types of failures have changed
    • The never-documented diagnostic parameter for the constructor has been removed
    • The never-documented feature to allow you to use arbitrary DateTime.pm methods in the parsing pattern has been removed; this never made much sense anyway, since most DateTime.pm methods are not constructor params, but they were used that way

    • Using the pattern, locale, and time_zone to set the respective attribute is now deprecated; make a new object instead of changing one of these values

  • Bug Fixes
    • Fixed a warning from the tests with newer Perl versions (CPAN RT#107620)

    • Clarified docs to note that %Y and %G require 4-digit years (CPAN RT#103147)

    • Using the 24-hour token (%H) with an AM/PM specifier (%p) now leads to an error if you try to parse something like "23:01 AM" (CPAN RT#92445)

  • Updated perl-Moose to 2.1604 in Rawhide:

    • Minimum perl requirement is now set in configure-requires, as well as runtime-requires, to ensure that smokers bail out early enough to declare the installation N/A rather than FAIL

Local Packages

  • Updated perl-DateTime-Format-Strptime to 1.60 as per the Fedora version

  • Updated perl-DateTime-Locale to 1.01:

  • Enhancements
    • This release uses the locale data from CLDR version 28; the last major update of the locale data used CLDR 1.7.1, released in 2009, so this is a big change - many things have changed in terms of locale data
    • Some locales are no longer available because they are not in the CLDR data
    • The CLDR data no longer includes default date and time format lengths; this is now "medium" for every locale, simply to provide some level of backwards compatibility
    • Loading DateTime::Locale itself is now quite a bit faster; the whole locale registration system has been removed entirely, except for custom locales (CPAN RT#78794)

    • A long-standing issue with the Austrian locale not using the Austrian name for January has been fixed (CPAN RT#52337)

  • Backwards Incompatibilities
    • This is a big new release, and includes a number of backwards-incompatible changes, though most users should be unaffected by this change; if you only use this module via DateTime.pm, you are unlikely to notice any changes other than changes to the locale data

    • The old API deprecated since 0.40 has been removed (almost) entirely
    • We now refer to things as "code" in the docs and method names where we used to call them "ids"; this includes locale, language, script, territory, and variant codes - this is more in line with the various ISO standards and the CLDR packages
    • All the $locale->*_id methods (including $locale->id) are deprecated; use the relevant $locale->*_code method instead

    • The canonical form of the locale codes now uses dashes (-) instead of underscores (_); loading a locale with an underscore in the name (e.g. en_US) still works

    • The way that locale data is packaged has changed quite a bit; we no longer package each locale in its own class: instead, all locale data is in a single module (mostly in a __DATA__ section) and loaded into memory as needed, so if you have any code that checks $locale->isa, that code may break

    • Locales are no longer subclasses of DateTime::Locale::Base; this module is still included in the distribution in case someone has a custom locale that inherits from this module, but this module will go away in a future release

    • The "ii-*" aliases for the "he-*" locales have been removed

    • The "no-*" aliases for the "nn-*" locales have been removed

    • The value of $locale->code no longer reflects the value passed to DateTime::Locale->load; this only affects aliases and non-canonical forms of the code, e.g. if you load "en_US" then $locale->code will return "en-US" and if you load "C" or "POSIX" the returned code will be "en-US-POSIX"

    • All of the documentation related to creating aliases and registering custom locales has been removed; all of these methods still work, but I don't think this system got much use, so I don't want to emphasize it in the docs (but let me know if you are using this and want to see these docs restored)
  • Updated perl-Moose to 2.1604 as per the Fedora version

  • Updated perl-Net-DNS to 1.03:


Recent