Codebase list libfile-mimeinfo-perl / 850f575
Merge tag 'upstream/0.27' Upstream version 0.27 gregor herrmann 8 years ago
13 changed file(s) with 185 addition(s) and 145 deletion(s). Raw diff Collapse all Expand all
00 language: perl
11 perl:
2 - "5.19"
2 - "5.20"
33 - "5.18"
44 - "5.16"
55 - "5.14"
66 - "5.12"
77 - "5.10"
88 - "5.8"
9 before_install:
10 - sudo apt-get update -qq
11 - sudo apt-get install -qq desktop-file-utils
12 install:
13 - cpanm --quiet File::BaseDir File::DesktopEntry Path::Tiny Test::Pod Test::Pod::Coverage Test::CPAN::Changes
+121
-120
Changes less more
11 Versions up to 0.15 by Jaap Karssenberg <pardus@cpan.org>
22 Versions starting 0.16 by Michiel Beijen <michiel.beijen@gmail.com>
33
4 0.27 2015-02-23
5 - Allow to use mimeinfo on a Path::Tiny object. Reported by Smylers.
6 - Misspelled NoDisplay attribute in .desktop file.
7 Fix by Bernhard Rosenkraenzer (berolinux)
8 - Fix typos in README by Sean Smith (ncstang) as part of CPAN Pull Request
9 Challenge February 2015.
10
411 0.26 2014-05-11
5 - Fix mimeinfo not adhering to the priorization of globs -
6 kudos Stefan Seifert.
7 - Fixed URL in POD. Only run POD 404 tests with extended testing.
12 - Fix mimeinfo not adhering to the priorization of globs -
13 kudos Stefan Seifert.
14 - Fixed URL in POD. Only run POD 404 tests with extended testing.
815
916 0.25 2014-04-03
10 - Included new test file in MANIFEST.
17 - Included new test file in MANIFEST.
1118
1219 0.24 2014-04-02
13 - Fixed freedesktop.org desktop-file-utils URL - David Steinbrunner.
20 - Fixed freedesktop.org desktop-file-utils URL - David Steinbrunner.
1421
1522 0.23 2014-04-02
16 - Fixed opening of files with '+' in mime type using
17 File::MimeInfo::Applications.
18 Debian bug 690334, brian m. carlson.
23 - Fixed opening of files with '+' in mime type using
24 File::MimeInfo::Applications.
25 Debian bug 690334, brian m. carlson.
1926
2027 0.22 2014-02-27
21 - Fixed Double-close on a filehandle issue
22 (RT 93221) - Christian Ludwig.
23 - Fixed cpantesters issue with old version of CPAN::Changes
28 - Fixed Double-close on a filehandle issue (RT 93221) - Christian Ludwig.
29 - Fixed cpantesters issue with old version of CPAN::Changes
2430
2531 0.21 2013-11-03
26 - fixed typo in mimeopen manpage
27 (RT 90005) - Jonathan Dowland, Debian.
32 - fixed typo in mimeopen manpage
33 (RT 90005) - Jonathan Dowland, Debian.
2834
2935 0.20 2013-10-09
30 - mimetype, mimeopen should be set as executable files
31 (RT 89328) - Jitka Plesnikova, Red Hat.
36 - mimetype, mimeopen should be set as executable files
37 (RT 89328) - Jitka Plesnikova, Red Hat.
3238
3339 0.19 2013-10-05
34 - Changed to EU::MM.
35 - Typo fixes - David Steinbrunner.
40 - Changed to EU::MM.
41 - Typo fixes - David Steinbrunner.
3642
3743 0.18 2013-09-02
38 - Fixed RT#87631 - rights on File::MimeInfo::Magic not correct.
44 - Fixed RT#87631 - rights on File::MimeInfo::Magic not correct.
3945
4046 0.17 2013-06-06
41 - Fixed tests on perl 5.18 (RT 85383) - Gregor Herrman
42 - Fixed typos (RT 85634) - Gregor Herrman
47 - Fixed tests on perl 5.18 (RT 85383) - Gregor Herrman
48 - Fixed typos (RT 85634) - Gregor Herrman
4349
4450 0.16 2012-01-03
45 - Fixed test suite for perl 5.13 and newer (RT 66841) - Kent Fredric
46 - Fixed typos in documentation (RT 70171, 39974) - Gregor Herrman
47 - Fixed bug for files named "0" (RT 41031)
48 - Cleaned up mimetype script (RT 64421)
49 - Removed unessecary error code (RT 66527)
50 - Removed illogical behavior for derefereencing symlinks (RT 58575)
51 - Fixed test suite for perl 5.13 and newer (RT 66841) - Kent Fredric
52 - Fixed typos in documentation (RT 70171, 39974) - Gregor Herrman
53 - Fixed bug for files named "0" (RT 41031)
54 - Cleaned up mimetype script (RT 64421)
55 - Removed unessecary error code (RT 66527)
56 - Removed illogical behavior for derefereencing symlinks (RT 58575)
5157
5258 0.15 2008-02-13
53 A special thanks to Chapman Flack for bug reports and patches.
54 - Added some empty pod declarations to satisfy Pod::Coverage (RT 33099)
55 - Fixed typo \xF7 => \x7F in ascii control char check (RT 30959)
56 - Adapted new File::BaseDir API
57 - Added DesktopEntry as a mandatory dependency
58 - Added support for endian conversion (RT 28618)
59 - Fixed mask behavior by making it a bit-wise regex (RT 28620 28635)
60 - Reduced range by 1 byte to match ref implementation (RT 28634)
61 - Added "--no-ask" switch to the mimeopen command
62 - Added "mime_applications_custom()" to set custom commands
63 - Made Magic load magic data when needed, not at startup
64 - Made MimeInfo load glob data when needed, not at startup
59 A special thanks to Chapman Flack for bug reports and patches.
60 - Added some empty pod declarations to satisfy Pod::Coverage (RT 33099)
61 - Fixed typo \xF7 => \x7F in ascii control char check (RT 30959)
62 - Adapted new File::BaseDir API
63 - Added DesktopEntry as a mandatory dependency
64 - Added support for endian conversion (RT 28618)
65 - Fixed mask behavior by making it a bit-wise regex (RT 28620 28635)
66 - Reduced range by 1 byte to match ref implementation (RT 28634)
67 - Added "--no-ask" switch to the mimeopen command
68 - Added "mime_applications_custom()" to set custom commands
69 - Made Magic load magic data when needed, not at startup
70 - Made MimeInfo load glob data when needed, not at startup
6571
6672 0.14 2007-06-08
67 - Changed syntax for open() to 3 argument form
68 - Fixed bug for filenames like "0"
69 - Fixed bug with "-l" for Win32
70 - Fixed bug with malformed utf8 chars in default() method
71 derived from suggestions by mcummings_gentoo.org and jonas_cpan.org
72 - Moved from Makefile.PL to Build.pl
73 - Changed syntax for open() to 3 argument form
74 - Fixed bug for filenames like "0"
75 - Fixed bug with "-l" for Win32
76 - Fixed bug with malformed utf8 chars in default() method derived from
77 suggestions by mcummings_gentoo.org and jonas_cpan.org
78 - Moved from Makefile.PL to Build.pl
7379
7480 0.13 2006-01-30
75 Version bump for File::MimeInfo to keep CPAN happy
76 - Fixed a bug with F:M::Applications when dir non-existent
81 Version bump for File::MimeInfo to keep CPAN happy
82 - Fixed a bug with F:M::Applications when dir non-existent
7783
7884 0.12 2005-10-08
79 Updated to version 0.13 of the shared mimeinfo specification
80 - Magic rules with priority 80 go above globs now
81 - Added mimetype_isa() to check for mimetype subclasses
82 - Added mimetype_canon() to check for mimetype aliases
83 - Added support for the inode/mount-point mimetype
84 - Added File::MimeInfo::Applications and the mimeopen script
85 - Changed the order of checking for inodetype "symlink" and "directory"
86 as suggested by Jens Luedicke
87 - Fixed a few inaccuracies in the documentation
85 Updated to version 0.13 of the shared mimeinfo specification
86 - Magic rules with priority 80 go above globs now
87 - Added mimetype_isa() to check for mimetype subclasses
88 - Added mimetype_canon() to check for mimetype aliases
89 - Added support for the inode/mount-point mimetype
90 - Added File::MimeInfo::Applications and the mimeopen script
91 - Changed the order of checking for inodetype "symlink" and "directory" as
92 suggested by Jens Luedicke
93 - Fixed a few inaccuracies in the documentation
8894
8995 0.11 2005-03-18
90 - Added an @DIRS to be able to overload the XDG_DATA_DIRS path
91 - Fixed the code to let "mimetype" determine the mime-type of STDIN
96 - Added an @DIRS to be able to overload the XDG_DATA_DIRS path
97 - Fixed the code to let "mimetype" determine the mime-type of STDIN
9298
93 2005-03-17
94 - Fixed a bug in the globs() method, added File::Basename to the
95 dependency list.
96 - Added the --all and --magic-only options to "mimetype"
99 2005-03-17
100 - Fixed a bug in the globs() method, added File::Basename to the dependency
101 list.
102 - Added the --all and --magic-only options to "mimetype"
97103
98 2005-03-16
99 - globs() now returns the matched extension when called in list context
100 - Added Cookbook.pm as a kind of FAQ document
101 - Applied part of a patch to support reverse lookup of extensions
102 which was also supplied by jgmyers at proofpoint.com
103 This adds the extensions() method and fixes a bug in a regex.
104 - Applied a spelling patch supplied by jgmyers at proofpoint.com
104 2005-03-16
105 - globs() now returns the matched extension when called in list context
106 - Added Cookbook.pm as a kind of FAQ document
107 - Applied part of a patch to support reverse lookup of extensions which was
108 also supplied by jgmyers at proofpoint.com
109 This adds the extensions() method and fixes a bug in a regex.
110 - Applied a spelling patch supplied by jgmyers at proofpoint.com
105111
106112 0.10 2004-02-08
107 - Stripped down test for IO objects, because it doesn't seem to be
108 platform independent enough
109 - ++'ing version number to keep CPAN satisfied
113 - Stripped down test for IO objects, because it doesn't seem to be platform
114 independent enough
115 - ++'ing version number to keep CPAN satisfied
110116
111117 0.9 2003-12-05
112 - Fixed magic() and default() to work on IO::something objects
113 - Added a "no warnings" in the default routine to suppress warnings when
114 input is latin2 (thus neither ascii or utf8). Not sure whether this
115 really fixes the problem but it at least ignores it.
116 The problem was reported by Daniel Raska.
118 - Fixed magic() and default() to work on IO::something objects
119 - Added a "no warnings" in the default routine to suppress warnings when
120 input is latin2 (thus neither ascii or utf8). Not sure whether this
121 really fixes the problem but it at least ignores it.
122 The problem was reported by Daniel Raska.
117123
118124 0.8 2003-10-22
119 Seems that the new version of the mime-info spec takes longer then
120 I expected, so I decided to release last weeks bug fixes.
121 - Fine tuned the method interface for describe()
122 - Made mimetype -d -l .. default to english for missing translations
123 - updated URL's for freedesktop
124 - Fixed small bug in Magic.pm causing a lot of warnings on
125 initialisation when using 'perl -w', reported by Steve Barton
125 Seems that the new version of the mime-info spec takes longer then I expected,
126 so I decided to release last weeks bug fixes.
127 - Fine tuned the method interface for describe()
128 - Made mimetype -d -l .. default to english for missing translations
129 - updated URL's for freedesktop
130 - Fixed small bug in Magic.pm causing a lot of warnings on initialisation when
131 using 'perl -w', reported by Steve Barton
126132
127133 0.7 2003-10-03
128 - Added File::MimeInfo::Rox
129 - ++'ing version number to keep CPAN satisfied
134 - Added File::MimeInfo::Rox
135 - ++'ing version number to keep CPAN satisfied
130136
131137 0.6 2003-09-04
132 - Emergency release because of a bug in the magic test file
138 - Emergency release because of a bug in the magic test file
133139
134140 0.5 2003-09-03
135 - added tests for magic typing
136 - fixed design mistake in the basedir file search
137 all xdg data dirs are now used, not only the first one found
138 - put basedir code in a separate package called File::BaseDir
139 - disabled utf8 binmode layer for perl versions prior to 5.8.0
141 - added tests for magic typing
142 - fixed design mistake in the basedir file search all xdg data dirs are now
143 used, not only the first one found
144 - put basedir code in a separate package called File::BaseDir
145 - disabled utf8 binmode layer for perl versions prior to 5.8.0
140146
141147 0.4 2003-08-27
142 - Added the --dir switch.
143 - Added File::MimeInfo::Magic that inherits from File::MimeInfo but
144 also does use the freedesktop magic file
145 - Shifted some code around in File::MimeInfo to make inheriting easier
146 - Made the mimetype script work with Magic by default
147 - Added the --debug switch to trace why a certain file is typed the
148 way it is
149 - Updated and reviewed the documentation
148 - Added the --dir switch.
149 - Added File::MimeInfo::Magic that inherits from File::MimeInfo but also does
150 use the freedesktop magic file
151 - Shifted some code around in File::MimeInfo to make inheriting easier
152 - Made the mimetype script work with Magic by default
153 - Added the --debug switch to trace why a certain file is typed the way it is
154 - Updated and reviewed the documentation
150155
151156 0.3 2003-08-24
152 - Moved file test operator stuff to a subroutine called inodetype()
153 - Actually implemented the --file-compat switch
154 - Added the -L and -i commandline switches for file(1) compatibility
155 - Fixed a few bugs with relative file names
156 - Changed the script 'mimeinfo' back to 'mimetype' because
157 rox has a '--mime-type' switch doing the same thing as this script.
158 - Added the describe() method for getting human readable descriptions
159 - Implemented the commandline switches --desc and --output-format
160 - Changed the script 'mimetype' to 'mimeinfo'
161 - added some commandline options to make this script a little
162 file(1) compat
163 - added some file test operators for determining types from the
164 inode/* class.
165 - use utf8 binmode for filehandles
157 - Moved file test operator stuff to a subroutine called inodetype()
158 - Actually implemented the --file-compat switch
159 - Added the -L and -i commandline switches for file(1) compatibility
160 - Fixed a few bugs with relative file names
161 - Changed the script 'mimeinfo' back to 'mimetype' because rox has a '--mime-type'
162 switch doing the same thing as this script.
163 - Added the describe() method for getting human readable descriptions
164 - Implemented the commandline switches --desc and --output-format
165 - Changed the script 'mimetype' to 'mimeinfo'
166 - added some commandline options to make this script a little file(1) compat
167 - added some file test operators for determining types from the inode/* class.
168 - use utf8 binmode for filehandles
166169
167170 0.2 2003-07-12
168 - bug fix for OO interface, forget to test the constructor :S
169 - added specified default behaviour
171 - bug fix for OO interface, forget to test the constructor :S
172 - added specified default behaviour
170173
171174 0.1 2003-07-11
172 - original version; created by h2xs 1.22 with options
173 -AX File::MMagic::Freedesktop
174 - implemented finding file type by glob folowing the
175 shared-mime-info-spec version 0.11
176 - decided to rename it File::MimeInfo because it is less cryptic
175 - original version; created by h2xs 1.22 with options -AX File::MMagic::Freedesktop
176 - implemented finding file type by glob folowing the shared-mime-info-spec version 0.11
177 - decided to rename it File::MimeInfo because it is less cryptic
33 "Jaap Karssenberg <pardus@cpan.org>"
44 ],
55 "dynamic_config" : 1,
6 "generated_by" : "ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version 2.132830",
6 "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240",
77 "license" : [
88 "perl_5"
99 ],
4949 "url" : "https://github.com/mbeijen/File-MimeInfo"
5050 }
5151 },
52 "version" : "0.26"
52 "version" : "0.27",
53 "x_contributors" : [
54 "Michiel Beijen <michiel.beijen@gmail.com>",
55 "Christian Ludwig <chrissicool@gmail.com>",
56 "Bernhard Rosenkränzer <bero@lindev.ch>",
57 "David Steinbrunner <dsteinbrunner@pobox.com>",
58 "Jitka Plesnikova <jplesnik@redhat.com>",
59 "Jonathan Dowland <jmtd@debian.org>",
60 "Sean Smith <ssmith@ncsgraphics.com>",
61 "Stefan Seifert <nine@detonation.org>",
62 "brian m. carlson <sandals@crustytoothpaste.net>"
63 ]
5364 }
22 author:
33 - 'Jaap Karssenberg <pardus@cpan.org>'
44 build_requires:
5 Carp: 0
6 Exporter: 0
7 Fcntl: 0
8 File::BaseDir: 0.03
9 File::DesktopEntry: 0.04
10 Pod::Usage: 0
5 Carp: '0'
6 Exporter: '0'
7 Fcntl: '0'
8 File::BaseDir: '0.03'
9 File::DesktopEntry: '0.04'
10 Pod::Usage: '0'
1111 configure_requires:
12 ExtUtils::MakeMaker: 6.30
12 ExtUtils::MakeMaker: '6.30'
1313 dynamic_config: 1
14 generated_by: 'ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version 2.132830'
14 generated_by: 'ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240'
1515 license: perl
1616 meta-spec:
1717 url: http://module-build.sourceforge.net/META-spec-v1.4.html
18 version: 1.4
18 version: '1.4'
1919 name: File-MimeInfo
2020 no_index:
2121 directory:
2222 - t
2323 - inc
2424 requires:
25 perl: 5.006001
25 perl: '5.006001'
2626 resources:
2727 bugtracker: https://github.com/mbeijen/File-MimeInfo/issues
2828 repository: https://github.com/mbeijen/File-MimeInfo
29 version: 0.26
29 version: '0.27'
30 x_contributors:
31 - 'Michiel Beijen <michiel.beijen@gmail.com>'
32 - 'Christian Ludwig <chrissicool@gmail.com>'
33 - 'Bernhard Rosenkränzer <bero@lindev.ch>'
34 - 'David Steinbrunner <dsteinbrunner@pobox.com>'
35 - 'Jitka Plesnikova <jplesnik@redhat.com>'
36 - 'Jonathan Dowland <jmtd@debian.org>'
37 - 'Sean Smith <ssmith@ncsgraphics.com>'
38 - 'Stefan Seifert <nine@detonation.org>'
39 - 'brian m. carlson <sandals@crustytoothpaste.net>'
3737 repository => 'https://github.com/mbeijen/File-MimeInfo',
3838 bugtracker => 'https://github.com/mbeijen/File-MimeInfo/issues',
3939 },
40 x_contributors => [
41 'Michiel Beijen <michiel.beijen@gmail.com>',
42 'Christian Ludwig <chrissicool@gmail.com>',
43 'Bernhard Rosenkränzer <bero@lindev.ch>',
44 'David Steinbrunner <dsteinbrunner@pobox.com>',
45 'Jitka Plesnikova <jplesnik@redhat.com>',
46 'Jonathan Dowland <jmtd@debian.org>',
47 'Sean Smith <ssmith@ncsgraphics.com>',
48 'Stefan Seifert <nine@detonation.org>',
49 'brian m. carlson <sandals@crustytoothpaste.net>',
50 ],
4051 },
4152 );
2323 http://freedesktop.org/Software/shared-mime-info
2424
2525 This module requires these other modules which can be obtained from
26 the [CPAN](https://metacpan.org) if they are not allready installed on
26 the [CPAN](https://metacpan.org) if they are not already installed on
2727 your system:
2828
2929 * Carp
77 use File::DesktopEntry;
88 require Exporter;
99
10 our $VERSION = '0.26';
10 our $VERSION = '0.27';
1111
1212 our @ISA = qw(Exporter);
1313 our @EXPORT = qw(
7171 $object->set(
7272 Type => 'Application',
7373 Name => $word,
74 NoDsiplay => 'true',
74 NoDisplay => 'true',
7575 Exec => $command,
7676 );
7777 my (undef, undef, $df) = File::Spec->splitpath($desktop_file);
1616 our @ISA = qw(Exporter File::MimeInfo);
1717 our @EXPORT = qw(mimetype);
1818 our @EXPORT_OK = qw(extensions describe globs inodetype magic);
19 our $VERSION = '0.26';
19 our $VERSION = '0.27';
2020 our $DEBUG;
2121
2222 our $_hashed = 0;
99 our @EXPORT = qw(mime_exec mime_system);
1010 our @EXPORT_OK = qw(suggest_script_name);
1111 our %EXPORT_TAGS = (magic => \@EXPORT);
12 our $VERSION = '0.26';
12 our $VERSION = '0.27';
1313 our @choicespath = (
1414 config_home('rox.sourceforge.net'),
1515 File::Spec->catdir($ENV{HOME}, 'Choices'),
173173
174174 L<File::MimeInfo>,
175175 L<File::MimeInfo::Magic>,
176 L<http://rox.sourceforge.net>
176 L<http://rox.sourceforce.net>
177177
178178 =cut
99 our @ISA = qw(Exporter);
1010 our @EXPORT = qw(mimetype);
1111 our @EXPORT_OK = qw(extensions describe globs inodetype mimetype_canon mimetype_isa);
12 our $VERSION = '0.26';
12 our $VERSION = '0.27';
1313 our $DEBUG;
1414
1515 our ($_hashed, $_hashed_aliases, $_hashed_subclasses);
2929 sub mimetype {
3030 my $file = pop;
3131 croak 'subroutine "mimetype" needs a filename as argument' unless defined $file;
32 croak 'You should use File::MimeInfo::Magic to check open filehandles' if ref $file;
3332 return
3433 inodetype($file) ||
3534 globs($file) ||
00 #!/usr/bin/perl
11
22 use strict;
3 our $VERSION = '0.26';
3 our $VERSION = '0.27';
44 $|++;
55
66 # ########## #
00 #!/usr/bin/perl
11
22 use strict;
3 our $VERSION = '0.26';
3 our $VERSION = '0.27';
44 $|++;
55
66 # ########## #
22
33 use Test::More;
44
5 plan skip_all => "Skip \$ENV{EXTENDED_TESTING} is not set\n";
5 if (!$ENV{EXTENDED_TESTING}) {
6 plan skip_all => "Skip \$ENV{EXTENDED_TESTING} is not set\n";
7 }
8
69 eval "use Test::Pod::No404s";
710 if ( $@ ) {
811 plan skip_all => 'Test::Pod::No404s required for testing POD';