commit rubygem-mini_mime for openSUSE:Factory
Hello community, here is the log from the commit of package rubygem-mini_mime for openSUSE:Factory checked in at 2018-08-18 00:03:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-mini_mime (Old) and /work/SRC/openSUSE:Factory/.rubygem-mini_mime.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-mini_mime" Sat Aug 18 00:03:56 2018 rev:2 rq:629490 version:1.0.1 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-mini_mime/rubygem-mini_mime.changes 2018-01-10 23:30:54.616011551 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-mini_mime.new/rubygem-mini_mime.changes 2018-08-18 00:03:57.471049395 +0200 @@ -1,0 +2,8 @@ +Tue Aug 14 06:50:58 UTC 2018 - mschnitzer@suse.com + +- updated to version 1.0.1 + + * Update mime types from upstream + * Add lookup_by_extension to the public API + +------------------------------------------------------------------- Old: ---- mini_mime-1.0.0.gem New: ---- mini_mime-1.0.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-mini_mime.spec ++++++ --- /var/tmp/diff_new_pack.6YqcQ4/_old 2018-08-18 00:03:58.307051894 +0200 +++ /var/tmp/diff_new_pack.6YqcQ4/_new 2018-08-18 00:03:58.311051906 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-mini_mime # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,14 +24,14 @@ # Name: rubygem-mini_mime -Version: 1.0.0 +Version: 1.0.1 Release: 0 %define mod_name mini_mime %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 -BuildRequires: %{ruby} BuildRequires: %{rubygem gem2rpm} +BuildRequires: %{ruby} +BuildRequires: ruby-macros >= 5 Url: https://github.com/discourse/mini_mime Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: gem2rpm.yml ++++++ mini_mime-1.0.0.gem -> mini_mime-1.0.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG new/CHANGELOG --- old/CHANGELOG 2017-11-08 02:41:07.000000000 +0100 +++ new/CHANGELOG 2018-08-14 07:42:02.000000000 +0200 @@ -1,3 +1,8 @@ +14-08-2018 + - Version 1.0.1 + - Update mime types from upstream + - Add lookup_by_extension to the public API + 08-11-2017 - Version 1.0.0 - Other than the version number, no difference from 0.1.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/LICENSE.txt new/LICENSE.txt --- old/LICENSE.txt 2017-11-08 02:41:07.000000000 +0100 +++ new/LICENSE.txt 2018-08-14 07:42:02.000000000 +0200 @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 TODO: Write your name +Copyright (c) 2016 Discourse Construction Kit, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2017-11-08 02:41:07.000000000 +0100 +++ new/README.md 2018-08-14 07:42:02.000000000 +0200 @@ -49,22 +49,22 @@ Warming up -------------------------------------- cached content_type lookup MiniMime 52.136k i/100ms -content_type lookup Mime::Types +content_type lookup MIME::Types 32.701k i/100ms Calculating ------------------------------------- cached content_type lookup MiniMime 641.305k (± 3.2%) i/s - 3.232M in 5.045630s -content_type lookup Mime::Types +content_type lookup MIME::Types 361.041k (± 1.5%) i/s - 1.831M in 5.073290s Warming up -------------------------------------- uncached content_type lookup MiniMime 3.333k i/100ms -content_type lookup Mime::Types +content_type lookup MIME::Types 33.177k i/100ms Calculating ------------------------------------- uncached content_type lookup MiniMime 33.660k (± 1.7%) i/s - 169.983k in 5.051415s -content_type lookup Mime::Types +content_type lookup MIME::Types 364.931k (± 2.8%) i/s - 1.825M in 5.004112s ``` @@ -93,4 +93,3 @@ ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bench/bench.rb new/bench/bench.rb --- old/bench/bench.rb 2017-11-08 02:41:07.000000000 +0100 +++ new/bench/bench.rb 2018-08-14 07:42:02.000000000 +0200 @@ -28,7 +28,7 @@ MiniMime.lookup_by_filename("a.txt").content_type end - bm.report 'content_type lookup Mime::Types' do + bm.report 'content_type lookup MIME::Types' do MIME::Types.type_for("a.txt")[0].content_type end end @@ -46,7 +46,7 @@ MiniMime.lookup_by_filename("a.txt").content_type end - bm.report 'content_type lookup Mime::Types' do + bm.report 'content_type lookup MIME::Types' do MIME::Types.type_for("a.txt")[0].content_type end end Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/db/content_type_mime.db new/lib/db/content_type_mime.db --- old/lib/db/content_type_mime.db 2017-11-08 02:41:07.000000000 +0100 +++ new/lib/db/content_type_mime.db 2018-08-14 07:42:02.000000000 +0200 @@ -19,9 +19,7 @@ emma application/emma+xml base64 epub application/epub+zip base64 exi application/exi base64 -otf application/font-sfnt base64 pfr application/font-tdpfr base64 -woff application/font-woff base64 gml application/gml+xml base64 gpx application/gpx+xml base64 gxf application/gxf base64 @@ -31,7 +29,6 @@ ipfix application/ipfix base64 jar application/java-archive base64 ser application/java-serialized-object base64 -class application/java-vm base64 js application/javascript 8bit json application/json 8bit jsonml application/jsonml+json base64 @@ -75,7 +72,6 @@ pki application/pkixcmp base64 pls application/pls+xml base64 ai application/postscript 8bit -ppt application/powerpoint base64 cw application/prs.cww base64 rnd application/prs.nprend base64 pskcxml application/pskc+xml base64 @@ -325,6 +321,7 @@ msg application/vnd.ms-outlook base64 cat application/vnd.ms-pki.seccat base64 stl application/vnd.ms-pki.stl base64 +ppt application/vnd.ms-powerpoint base64 ppam application/vnd.ms-powerpoint.addin.macroEnabled.12 base64 pptm application/vnd.ms-powerpoint.presentation.macroEnabled.12 base64 sldm application/vnd.ms-powerpoint.slide.macroEnabled.12 base64 @@ -492,8 +489,7 @@ vxml application/voicexml+xml base64 wif application/watcherinfo+xml base64 wgt application/widget base64 -hlp application/winhlp base64 -wp application/wordperfect5.1 base64 +wp5 application/wordperfect5.1 base64 wsdl application/wsdl+xml base64 wspolicy application/wspolicy+xml base64 wk application/x-123 base64 @@ -538,7 +534,6 @@ psf application/x-font-linux-psf base64 pcf application/x-font-pcf base64 snf application/x-font-snf base64 -ttc application/x-font-ttf base64 afm application/x-font-type1 base64 arc application/x-freearc base64 spl application/x-futuresplash base64 @@ -569,7 +564,7 @@ wmd application/x-ms-wmd base64 wmz application/x-ms-wmz base64 xbap application/x-ms-xbap base64 -mdf application/x-msaccess base64 +mda application/x-msaccess base64 obd application/x-msbinder base64 crd application/x-mscardfile base64 clp application/x-msclip base64 @@ -615,9 +610,6 @@ texinfo application/x-texinfo 8bit obj application/x-tgif base64 tbk application/x-toolbook base64 -man application/x-troff-man 8bit -me application/x-troff-me base64 -ms application/x-troff-ms base64 ustar application/x-ustar base64 src application/x-wais-source base64 webapp application/x-web-app-manifest+json base64 @@ -690,6 +682,11 @@ cmdf chemical/x-cmdf base64 cml chemical/x-cml base64 csml chemical/x-csml base64 +ttc font/collection base64 +otf font/otf base64 +ttf font/ttf base64 +woff font/woff base64 +woff2 font/woff2 base64 cgm image/cgm base64 g3 image/g3fax base64 gif image/gif base64 @@ -765,6 +762,7 @@ css text/css 8bit csv text/csv 8bit html text/html 8bit +markdown text/markdown quoted-printable n3 text/n3 quoted-printable txt text/plain quoted-printable dsc text/prs.lines.tag quoted-printable @@ -804,6 +802,7 @@ vcs text/x-vcalendar 8bit vcf text/x-vcard 8bit yaml text/x-yaml 8bit +xml text/xml 8bit 3gp video/3gpp base64 3g2 video/3gpp2 base64 dv video/DV base64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/db/ext_mime.db new/lib/db/ext_mime.db --- old/lib/db/ext_mime.db 2017-11-08 02:41:07.000000000 +0100 +++ new/lib/db/ext_mime.db 2018-08-14 07:42:02.000000000 +0200 @@ -120,13 +120,14 @@ cii application/vnd.anser-web-certificate-issue-initiation base64 cil application/vnd.ms-artgalry base64 cla application/vnd.claymore base64 -class application/java-vm base64 +class application/octet-stream base64 clkk application/vnd.crick.clicker.keyboard base64 clkp application/vnd.crick.clicker.palette base64 clkt application/vnd.crick.clicker.template base64 clkw application/vnd.crick.clicker.wordbank base64 clkx application/vnd.crick.clicker base64 clp application/x-msclip base64 +clpi video/MP2T base64 cmc application/vnd.cosmocaller base64 cmd application/x-msdos-program base64 cmdf chemical/x-cmdf base64 @@ -137,6 +138,7 @@ coffee text/x-coffescript 8bit com application/x-msdos-program base64 conf text/plain quoted-printable +cpi video/MP2T base64 cpio application/x-cpio base64 cpp text/plain quoted-printable cpt application/x-mac-compactpro base64 @@ -339,7 +341,7 @@ hdf application/x-hdf base64 hep application/x-hep base64 hh text/plain quoted-printable -hlp application/winhlp base64 +hlp text/plain quoted-printable hpgl application/vnd.hp-HPGL base64 hpid application/vnd.hp-hpid base64 hpp text/plain quoted-printable @@ -380,6 +382,7 @@ inkml application/inkml+xml base64 install application/x-install-instructions base64 iota application/vnd.astraea-software.iota base64 +ipa application/octet-stream base64 ipfix application/ipfix base64 ipk application/vnd.shana.informed.package base64 irm application/vnd.ibm.rights-management base64 @@ -407,7 +410,7 @@ jpgv video/JPEG base64 jpm image/jpm base64 jpx image/jpx base64 -js application/javascript 8bit +js application/ecmascript base64 json application/json 8bit jsonml application/jsonml+json base64 kar audio/midi base64 @@ -457,6 +460,7 @@ m1v video/mpeg base64 m21 application/mp21 base64 m2a audio/mpeg base64 +m2ts video/MP2T base64 m2v video/mpeg base64 m3a audio/mpeg base64 m3u audio/x-mpegurl base64 @@ -468,10 +472,10 @@ mads application/mads+xml base64 mag application/vnd.ecowin.chart base64 maker application/vnd.framemaker base64 -man application/x-troff-man 8bit +man text/troff 8bit manifest text/cache-manifest quoted-printable mar application/octet-stream base64 -markdown text/plain quoted-printable +markdown text/markdown quoted-printable mathml application/mathml+xml base64 mb application/mathematica base64 mbk application/vnd.Mobius.MBK base64 @@ -479,13 +483,13 @@ mc1 application/vnd.medcalcdata base64 mcd application/vnd.mcd base64 mcurl text/vnd.curl.mcurl quoted-printable -md text/plain quoted-printable +md text/markdown quoted-printable mda application/x-msaccess base64 mdb application/x-msaccess base64 mde application/x-msaccess base64 mdf application/x-msaccess base64 mdi image/vnd.ms-modi base64 -me application/x-troff-me base64 +me text/troff 8bit mesh model/mesh base64 meta4 application/metalink4+xml base64 metalink application/metalink+xml base64 @@ -503,8 +507,10 @@ mjp2 video/MJ2 base64 mjpeg video/x-motion-jpeg base64 mjpg video/x-motion-jpeg base64 +mjs application/ecmascript base64 mk3d video/x-matroska base64 mka audio/x-matroska base64 +mkd text/markdown quoted-printable mks video/x-matroska base64 mkv video/x-matroska base64 mlp application/vnd.dolby.mlp base64 @@ -533,6 +539,8 @@ mpg4 application/mp4 base64 mpga audio/mpeg base64 mpkg application/vnd.apple.installer+xml base64 +mpl video/MP2T base64 +mpls video/MP2T base64 mpm application/vnd.blueice.multipass base64 mpn application/vnd.mophun.application base64 mpp application/vnd.ms-project base64 @@ -541,7 +549,7 @@ mqy application/vnd.Mobius.MQY base64 mrc application/marc base64 mrcx application/marcxml+xml base64 -ms application/x-troff-ms base64 +ms text/troff 8bit mscml application/mediaservercontrol+xml base64 mseed application/vnd.fdsn.mseed base64 mseq application/vnd.mseq base64 @@ -616,7 +624,7 @@ osf application/vnd.yamaha.openscoreformat base64 osfpvg application/vnd.yamaha.openscoreformat.osfpvg+xml base64 otc application/vnd.oasis.opendocument.chart-template base64 -otf application/font-sfnt base64 +otf font/otf base64 otg application/vnd.oasis.opendocument.graphics-template base64 oth application/vnd.oasis.opendocument.text-web base64 oti application/vnd.oasis.opendocument.image-template base64 @@ -680,16 +688,16 @@ png image/png base64 pnm image/x-portable-anymap base64 portpkg application/vnd.macports.portpkg base64 -pot application/powerpoint base64 +pot application/vnd.ms-powerpoint base64 potm application/vnd.ms-powerpoint.template.macroEnabled.12 base64 potx application/vnd.openxmlformats-officedocument.presentationml.template base64 ppam application/vnd.ms-powerpoint.addin.macroEnabled.12 base64 ppd application/vnd.cups-ppd base64 ppm image/x-portable-pixmap base64 -pps application/powerpoint base64 +pps application/vnd.ms-powerpoint base64 ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12 base64 ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow base64 -ppt application/powerpoint base64 +ppt application/vnd.ms-powerpoint base64 pptm application/vnd.ms-powerpoint.presentation.macroEnabled.12 base64 pptx application/vnd.openxmlformats-officedocument.presentationml.presentation base64 pqa application/vnd.palm base64 @@ -951,8 +959,8 @@ ts video/MP2T base64 tsd application/timestamped-data base64 tsv text/tab-separated-values quoted-printable -ttc application/x-font-ttf base64 -ttf application/font-sfnt base64 +ttc font/collection base64 +ttf font/ttf base64 ttl text/turtle quoted-printable twd application/vnd.SimTech-MindMapper base64 twds application/vnd.SimTech-MindMapper base64 @@ -1056,8 +1064,8 @@ wmv audio/x-ms-wmv base64 wmx video/x-ms-wmx base64 wmz application/x-ms-wmz base64 -woff application/font-woff base64 -woff2 application/font-woff base64 +woff font/woff base64 +woff2 font/woff2 base64 wp application/wordperfect5.1 base64 wp5 application/wordperfect5.1 base64 wp6 application/x-wordperfect6.1 base64 @@ -1131,6 +1139,7 @@ xps application/vnd.ms-xpsdocument 8bit xpw application/vnd.intercon.formnet base64 xpx application/vnd.intercon.formnet base64 +xsd text/xml 8bit xsl application/xml 8bit xslt application/xslt+xml base64 xsm application/vnd.syncml+xml base64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mini_mime/version.rb new/lib/mini_mime/version.rb --- old/lib/mini_mime/version.rb 2017-11-08 02:41:07.000000000 +0100 +++ new/lib/mini_mime/version.rb 2018-08-14 07:42:02.000000000 +0200 @@ -1,3 +1,3 @@ module MiniMime - VERSION = "1.0.0" + VERSION = "1.0.1" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/mini_mime.rb new/lib/mini_mime.rb --- old/lib/mini_mime.rb 2017-11-08 02:41:07.000000000 +0100 +++ new/lib/mini_mime.rb 2018-08-14 07:42:02.000000000 +0200 @@ -6,6 +6,10 @@ Db.lookup_by_filename(filename) end + def self.lookup_by_extension(extension) + Db.lookup_by_extension(extension) + end + def self.lookup_by_content_type(mime) Db.lookup_by_content_type(mime) end @@ -39,17 +43,16 @@ def self.lookup_by_filename(filename) extension = File.extname(filename) - if extension - extension.sub!(".", "") - extension.downcase! - if extension.length > 0 - LOCK.synchronize do - @db ||= new - @db.lookup_by_extension(extension) - end - else - nil - end + return if extension.empty? + extension = extension[1..-1] + extension.downcase! + lookup_by_extension(extension) + end + + def self.lookup_by_extension(extension) + LOCK.synchronize do + @db ||= new + @db.lookup_by_extension(extension) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-11-08 02:41:07.000000000 +0100 +++ new/metadata 2018-08-14 07:42:02.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: mini_mime version: !ruby/object:Gem::Version - version: 1.0.0 + version: 1.0.1 platform: ruby authors: - Sam Saffron autorequire: bindir: exe cert_chain: [] -date: 2017-11-08 00:00:00.000000000 Z +date: 2018-08-14 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler @@ -95,7 +95,7 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.6.13 +rubygems_version: 2.7.6 signing_key: specification_version: 4 summary: A lightweight mime type lookup toy
participants (1)
-
root