Update ruby-mime-types to 3.0.

== 3.0 / 2015-11-21

* 2 governance changes

  * This project and the related mime-types-data project are now exclusively
    MIT licensed. Resolves
    {#95}[https://github.com/mime-types/ruby-mime-types/issues/95].

  * All projects under the mime-types organization now have a standard code of
    conduct adapted from the {Contributor
    Covenant}[http://contributor-covenant.org]. This text can be found in the
    {Code-of-Conduct.rdoc}[Code-of-Conduct_rdoc.html] file.

* 3 major changes

  * All methods deprecated in mime-types 2.x have been removed.
  * mime-types now requires Ruby 2.0 compatibility or later. Resolves
    {#97}[https://github.com/mime-types/ruby-mime-types/issues/97].
  * The registry data has been removed from mime-types and put into
    mime-types-data, maintained and released separately. It can be found at
    {mime-types-data}[https://github.com/mime-types/mime-types-data].

* 17 minor changes:

  * MIME::Type changes:

    * Changed the way that simplified types representations are creatd to
      reflect the fact that +x-+ prefixes are no longer considered special
      according to IANA. A simplified MIME type is case-folded to lowercase. A
      new keyword parameter, +remove_x_prefix+, can be provided to remove +x-+
      prefixes.
    * Improved initialization with an Array works so that extensions do not
      need to be wrapped in another array. This means that <tt>%w(text/yaml
      yaml yml)</tt> works in the same way that <tt>['text/yaml', %w(yaml
      yml)]</tt> did (and still does).
    * Changed +priority_compare+ to conform with attributes that no longer
      exist.
    * Changed the internal implementation of extensions to use a frozen Set.
    * When extensions are set or modified with +add_extensions+, the primary
      registry will be informed of a need to reindex extensions. Resolves
      {#84}[https://github.com/mime-types/ruby-mime-types/issues/84].
    * The preferred extension can be set explicitly. If not set, it will be the
      first extension. If the preferred extension is not in the extension list,
      it will be added.
    * Improved how xref URLs are generated.
    * Converted +obsolete+, +registered+ and +signature+ to attr_accessors.

  * MIME::Types changes:

    * Modified MIME::Types.new to track instances of MIME::Types so that they
      can be told to reindex the extensions as necessary.
    * Removed +data_version+ attribute.
    * Changed #[] so that the +complete+ and +registered+ flags are keywords
      instead of a generic options parameter.
    * Extracted the class methods to a separate file.
    * Changed the container implementation to use a Set instead of an Array to
      prevent data duplication. Resolves
      {#79}[https://github.com/mime-types/ruby-mime-types/issues/79].

  * MIME::Types::Cache changes:

    * Caching is now based on the data gem version instead of the mime-types
      version.
    * Caching is compatible with columnar registry stores.

  * MIME::Types::Loader changes:

    * MIME::Types::Loader::PATH has been removed and replaced with
      MIME::Types::Data::PATH from the mime-types-data gem. The environment
      variable RUBY_MIME_TYPES_DATA is still used.
    * Support for the long-deprecated mime-types v1 format has been removed.
    * The registry is default loaded from the columnar store by default. The
      internal format of the columnar store has changed; many of the boolean
      flags are now loaded from a single file. Resolves
      {#85}[https://github.com/mime-types/ruby-mime-types/85].
This commit is contained in:
taca 2015-12-13 16:44:57 +00:00
parent 07b696f161
commit 3c0e62a054
3 changed files with 15 additions and 28 deletions

View file

@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.12 2015/10/04 12:38:21 taca Exp $
# $NetBSD: Makefile,v 1.13 2015/12/13 16:44:57 taca Exp $
DISTNAME= mime-types-2.6.2
DISTNAME= mime-types-3.0
CATEGORIES= www
MAINTAINER= pkgsrc-users@NetBSD.org

View file

@ -1,47 +1,34 @@
@comment $NetBSD: PLIST,v 1.11 2015/06/07 15:49:54 taca Exp $
@comment $NetBSD: PLIST,v 1.12 2015/12/13 16:44:57 taca Exp $
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/.autotest
${GEM_LIBDIR}/.gemtest
${GEM_LIBDIR}/.gitignore
${GEM_LIBDIR}/.hoerc
${GEM_LIBDIR}/Code-of-Conduct.rdoc
${GEM_LIBDIR}/Contributing.rdoc
${GEM_LIBDIR}/History-Types.rdoc
${GEM_LIBDIR}/History.rdoc
${GEM_LIBDIR}/Licence.rdoc
${GEM_LIBDIR}/Manifest.txt
${GEM_LIBDIR}/README.rdoc
${GEM_LIBDIR}/Rakefile
${GEM_LIBDIR}/data/mime-types.json
${GEM_LIBDIR}/data/mime.content_type.column
${GEM_LIBDIR}/data/mime.docs.column
${GEM_LIBDIR}/data/mime.encoding.column
${GEM_LIBDIR}/data/mime.friendly.column
${GEM_LIBDIR}/data/mime.obsolete.column
${GEM_LIBDIR}/data/mime.references.column
${GEM_LIBDIR}/data/mime.registered.column
${GEM_LIBDIR}/data/mime.signature.column
${GEM_LIBDIR}/data/mime.system.column
${GEM_LIBDIR}/data/mime.use_instead.column
${GEM_LIBDIR}/data/mime.xrefs.column
${GEM_LIBDIR}/docs/COPYING.txt
${GEM_LIBDIR}/docs/artistic.txt
${GEM_LIBDIR}/lib/mime-types.rb
${GEM_LIBDIR}/lib/mime/type.rb
${GEM_LIBDIR}/lib/mime/type/columnar.rb
${GEM_LIBDIR}/lib/mime/types.rb
${GEM_LIBDIR}/lib/mime/types/cache.rb
${GEM_LIBDIR}/lib/mime/types/columnar.rb
${GEM_LIBDIR}/lib/mime/types/container.rb
${GEM_LIBDIR}/lib/mime/types/deprecations.rb
${GEM_LIBDIR}/lib/mime/types/full.rb
${GEM_LIBDIR}/lib/mime/types/loader.rb
${GEM_LIBDIR}/lib/mime/types/loader_path.rb
${GEM_LIBDIR}/lib/mime/types/logger.rb
${GEM_LIBDIR}/support/apache_mime_types.rb
${GEM_LIBDIR}/lib/mime/types/registry.rb
${GEM_LIBDIR}/support/benchmarks/load.rb
${GEM_LIBDIR}/support/benchmarks/load_allocations.rb
${GEM_LIBDIR}/support/benchmarks/object_counts.rb
${GEM_LIBDIR}/support/convert.rb
${GEM_LIBDIR}/support/convert/columnar.rb
${GEM_LIBDIR}/support/iana_registry.rb
${GEM_LIBDIR}/support/profile/columnar.rb
${GEM_LIBDIR}/support/profile/columnar_full.rb
${GEM_LIBDIR}/support/profile/full.rb
${GEM_LIBDIR}/test/bad-fixtures/malformed
${GEM_LIBDIR}/test/fixture/json.json
${GEM_LIBDIR}/test/fixture/old-data

View file

@ -1,6 +1,6 @@
$NetBSD: distinfo,v 1.12 2015/11/03 23:27:19 agc Exp $
$NetBSD: distinfo,v 1.13 2015/12/13 16:44:57 taca Exp $
SHA1 (mime-types-2.6.2.gem) = 1421cbf3a78fc5c9a779f49c1b3b417af0f21889
RMD160 (mime-types-2.6.2.gem) = 5db1923f293ec25e61295444c9432ea24c0ebc84
SHA512 (mime-types-2.6.2.gem) = a083d865ba39e1b0e468c26823e82472d6bcb501e7dda047f1206b538e2f018d51d8bb31fd6734ba706a8352ade42bb40c52df1837402c3cb4fa01778772485c
Size (mime-types-2.6.2.gem) = 190976 bytes
SHA1 (mime-types-3.0.gem) = 08d930fefe3ef87df50326f5928d7824f467accb
RMD160 (mime-types-3.0.gem) = 22459a5c2df4f67b2c5f948a79b12c262c9fa76c
SHA512 (mime-types-3.0.gem) = 762ad862714f31cf68c9f872f23efc9c85ab0ab4f451553dd4a7ec30ac5bfce804037a413ae05bad253f4a4f82ba6578e3f3e87aa11b5e525d3f237fdf547850
Size (mime-types-3.0.gem) = 44032 bytes