[libaudio-mpd-perl] 01/08: Imported Upstream version 2.000
gregor herrmann
gregoa at debian.org
Wed Jun 11 17:42:49 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libaudio-mpd-perl.
commit eb0c9f17bc29c0614741da65fda1239a28ab0157
Author: gregor herrmann <gregoa at debian.org>
Date: Wed Jun 11 19:27:14 2014 +0200
Imported Upstream version 2.000
---
AUTHOR_PLEDGE | 13 ++
Build.PL | 35 +++-
Changes | 5 +
LICENSE | 2 +-
MANIFEST | 5 +-
META.json | 429 +++++++++++++++++++++++++++++++++++--------
META.yml | 399 ++++++++++++++++++++++++++++++----------
README | 4 +-
bin/mpd-dynamic | 8 +-
bin/mpd-rate | 9 +-
dist.ini | 4 +-
lib/Audio/MPD.pm | 15 +-
lib/Audio/MPD/Collection.pm | 13 +-
lib/Audio/MPD/Playlist.pm | 13 +-
lib/Audio/MPD/Types.pm | 14 +-
t/00-compile.t | 132 ++++++-------
t/000-report-versions-tiny.t | 15 +-
t/23-output.t | 2 +-
t/24-info.t | 2 +-
t/30-collection.t | 5 +-
t/release-has-version.t | 24 ---
t/release-kwalitee.t | 25 ---
t/release-minimum-version.t | 24 ---
t/release-pod-coverage.t | 12 +-
t/release-pod-syntax.t | 5 +-
25 files changed, 805 insertions(+), 409 deletions(-)
diff --git a/AUTHOR_PLEDGE b/AUTHOR_PLEDGE
new file mode 100644
index 0000000..70f72e6
--- /dev/null
+++ b/AUTHOR_PLEDGE
@@ -0,0 +1,13 @@
+
+# CPAN Covenant for Audio-MPD
+
+I, Jerome Quelin, hereby give modules at perl.org permission to grant co-maintainership
+to Audio-MPD, if all the following conditions are met:
+
+ (1) I haven't released the module for a year or more
+ (2) There are outstanding issues in the module's public bug tracker
+ (3) Email to my CPAN email address hasn't been answered after a month
+ (4) The requester wants to make worthwhile changes that will benefit CPAN
+
+In the event of my death, then the time-limits in (1) and (3) do not apply.
+
diff --git a/Build.PL b/Build.PL
index 63d2b9e..79907ab 100644
--- a/Build.PL
+++ b/Build.PL
@@ -1,4 +1,5 @@
+# This file was automatically generated by Dist::Zilla::Plugin::ModuleBuild v5.019.
use strict;
use warnings;
@@ -7,11 +8,7 @@ use Module::Build 0.3601;
my %module_build_args = (
"build_requires" => {
- "File::Find" => 0,
- "File::Temp" => 0,
- "Module::Build" => "0.3601",
- "Test::Corpus::Audio::MPD" => "1.113282",
- "Test::More" => "0.88"
+ "Module::Build" => "0.3601"
},
"configure_requires" => {
"Module::Build" => "0.3601"
@@ -21,7 +18,7 @@ my %module_build_args = (
"Jerome Quelin"
],
"dist_name" => "Audio-MPD",
- "dist_version" => "1.120610",
+ "dist_version" => "2.000",
"license" => "perl",
"module_name" => "Audio::MPD",
"recommends" => {},
@@ -48,10 +45,34 @@ my %module_build_args = (
"script_files" => [
"bin/mpd-dynamic",
"bin/mpd-rate"
- ]
+ ],
+ "test_requires" => {
+ "File::Spec" => 0,
+ "IO::Handle" => 0,
+ "IPC::Open3" => 0,
+ "List::AllUtils" => 0,
+ "Test::Corpus::Audio::MPD" => "1.113282",
+ "Test::More" => "0.88"
+ }
);
+my %fallback_build_requires = (
+ "File::Spec" => 0,
+ "IO::Handle" => 0,
+ "IPC::Open3" => 0,
+ "List::AllUtils" => 0,
+ "Module::Build" => "0.3601",
+ "Test::Corpus::Audio::MPD" => "1.113282",
+ "Test::More" => "0.88"
+);
+
+
+unless ( eval { Module::Build->VERSION(0.4004) } ) {
+ delete $module_build_args{test_requires};
+ $module_build_args{build_requires} = \%fallback_build_requires;
+}
+
my $build = Module::Build->new(%module_build_args);
$build->create_build_script;
diff --git a/Changes b/Changes
index 5fda173..b6a9764 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,10 @@
Changelog for Audio-MPD
+2.000 2014-06-11 14:31:10+02:00 Europe/Paris
+ - adapt to new Moose (rt#90682)
+ - fix test breakages due to mpd output changes (rt#91082)
+ - migrated to @AUthor::JQUELIN
+
1.120610 2012-03-01 09:31:01 Europe/Paris
- fix rt#75436 - mpd-rate and mpd-dynamic should fail gracefully when
no song is playing (florian)
diff --git a/LICENSE b/LICENSE
index 325172d..d45c554 100644
--- a/LICENSE
+++ b/LICENSE
@@ -22,7 +22,7 @@ This is free software, licensed under:
Version 1, February 1989
Copyright (C) 1989 Free Software Foundation, Inc.
- 51 Franklin St, Suite 500, Boston, MA 02110-1335 USA
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
diff --git a/MANIFEST b/MANIFEST
index bd6fd73..5ea491e 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,4 +1,6 @@
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.019.
AUTHORS
+AUTHOR_PLEDGE
Build.PL
Changes
LICENSE
@@ -27,9 +29,6 @@ t/25-settings.t
t/26-playback.t
t/30-collection.t
t/40-playlist.t
-t/release-has-version.t
-t/release-kwalitee.t
-t/release-minimum-version.t
t/release-pod-coverage.t
t/release-pod-syntax.t
weaver.ini
diff --git a/META.json b/META.json
index 0685fad..4c4decc 100644
--- a/META.json
+++ b/META.json
@@ -4,7 +4,7 @@
"Jerome Quelin"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300009, CPAN::Meta::Converter version 2.120351",
+ "generated_by" : "Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141520",
"license" : [
"perl_5"
],
@@ -24,6 +24,14 @@
"Module::Build" : "0.3601"
}
},
+ "develop" : {
+ "requires" : {
+ "Pod::Coverage::TrustPod" : "0",
+ "Test::Pod" : "1.41",
+ "Test::Pod::Coverage" : "1.08",
+ "version" : "0.9901"
+ }
+ },
"runtime" : {
"requires" : {
"Audio::MPD::Common::Item" : "0",
@@ -47,8 +55,10 @@
},
"test" : {
"requires" : {
- "File::Find" : "0",
- "File::Temp" : "0",
+ "File::Spec" : "0",
+ "IO::Handle" : "0",
+ "IPC::Open3" : "0",
+ "List::AllUtils" : "0",
"Test::Corpus::Audio::MPD" : "1.113282",
"Test::More" : "0.88"
}
@@ -57,19 +67,19 @@
"provides" : {
"Audio::MPD" : {
"file" : "lib/Audio/MPD.pm",
- "version" : "1.120610"
+ "version" : "2.000"
},
"Audio::MPD::Collection" : {
"file" : "lib/Audio/MPD/Collection.pm",
- "version" : "1.120610"
+ "version" : "2.000"
},
"Audio::MPD::Playlist" : {
"file" : "lib/Audio/MPD/Playlist.pm",
- "version" : "1.120610"
+ "version" : "2.000"
},
"Audio::MPD::Types" : {
"file" : "lib/Audio/MPD/Types.pm",
- "version" : "1.120610"
+ "version" : "2.000"
}
},
"release_status" : "stable",
@@ -82,17 +92,20 @@
"repository" : {
"type" : "git",
"url" : "git://github.com/jquelin/audio-mpd.git",
- "web" : "http://github.com/jquelin/audio-mpd"
+ "web" : "https://github.com/jquelin/audio-mpd"
},
"x_mailing_list" : "http://groups.google.com/group/audio-mpd"
},
- "version" : "1.120610",
+ "version" : "2.000",
"x_Dist_Zilla" : {
+ "perl" : {
+ "version" : "5.020000"
+ },
"plugins" : [
{
"class" : "Dist::Zilla::Plugin::MetaResources",
"name" : "MetaResources",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -103,92 +116,243 @@
}
},
"name" : "TestRequires",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
- "class" : "Dist::Zilla::Plugin::AutoVersion",
- "name" : "@Filter/AutoVersion",
- "version" : "4.300009"
+ "class" : "Dist::Zilla::Plugin::Git::NextVersion",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::NextVersion" : {
+ "first_version" : "0.001",
+ "version_by_branch" : "0",
+ "version_regexp" : "(?^:^v(.+)$)"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
+ "name" : "@Filter/Git::NextVersion",
+ "version" : "2.022"
},
{
"class" : "Dist::Zilla::Plugin::GatherDir",
"name" : "@Filter/GatherDir",
- "version" : "4.300009"
- },
- {
- "class" : "Dist::Zilla::Plugin::CompileTests",
- "name" : "@Filter/CompileTests",
- "version" : "1.112820"
- },
- {
- "class" : "Dist::Zilla::Plugin::HasVersionTests",
- "name" : "@Filter/HasVersionTests",
- "version" : "1.101420"
+ "version" : "5.019"
},
{
- "class" : "Dist::Zilla::Plugin::KwaliteeTests",
- "name" : "@Filter/KwaliteeTests",
- "version" : "2.03"
- },
- {
- "class" : "Dist::Zilla::Plugin::MinimumVersionTests",
- "name" : "@Filter/MinimumVersionTests",
- "version" : "2.0.1"
+ "class" : "Dist::Zilla::Plugin::Test::Compile",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::Compile" : {
+ "filename" : "t/00-compile.t",
+ "module_finder" : [
+ ":InstallModules"
+ ],
+ "script_finder" : [
+ ":ExecFiles"
+ ]
+ }
+ },
+ "name" : "@Filter/Test::Compile",
+ "version" : "2.042"
},
{
"class" : "Dist::Zilla::Plugin::PodCoverageTests",
"name" : "@Filter/PodCoverageTests",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Filter/PodSyntaxTests",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::ReportVersions::Tiny",
"name" : "@Filter/ReportVersions::Tiny",
- "version" : "1.03"
+ "version" : "1.10"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@Filter/PruneCruft",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::PruneFiles",
"name" : "@Filter/PruneFiles",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@Filter/ManifestSkip",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@Filter/AutoPrereqs",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::ExtraTests",
"name" : "@Filter/ExtraTests",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@Filter/NextRelease",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@Filter/PkgVersion",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::PodWeaver",
+ "config" : {
+ "Dist::Zilla::Plugin::PodWeaver" : {
+ "finder" : [
+ ":InstallModules",
+ ":ExecFiles"
+ ],
+ "plugins" : [
+ {
+ "class" : "Pod::Weaver::Plugin::EnsurePod5",
+ "name" : "@CorePrep/EnsurePod5",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Plugin::H1Nester",
+ "name" : "@CorePrep/H1Nester",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Name",
+ "name" : "Name",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Version",
+ "name" : "Version",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Region",
+ "name" : "prelude",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "SYNOPSIS",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "DESCRIPTION",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Generic",
+ "name" : "OVERVIEW",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "ATTRIBUTES",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "METHODS",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "MPD_CTRL",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "MPD_OUTPUT",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "MPD_INFO",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "MPD_SETTINGS",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "MPD_PLAYBACK",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "COLL_SONG",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "COLL_WHOLE",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "COLL_PICK",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "COLL_RELATIONS",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "PLAY_INFO",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "PLAY_ADDRM",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "PLAY_ORDER",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Collect",
+ "name" : "PLAY_MGMT",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Leftovers",
+ "name" : "Leftovers",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Region",
+ "name" : "postlude",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Authors",
+ "name" : "Authors",
+ "version" : "4.006"
+ },
+ {
+ "class" : "Pod::Weaver::Section::Legal",
+ "name" : "Legal",
+ "version" : "4.006"
+ }
+ ]
+ }
+ },
"name" : "@Filter/PodWeaver",
- "version" : "3.101641"
+ "version" : "4.005"
},
{
"class" : "Dist::Zilla::Plugin::Prepender",
@@ -198,12 +362,12 @@
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Filter/ExecDir",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Filter/ShareDir",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::Bugtracker",
@@ -218,47 +382,83 @@
{
"class" : "Dist::Zilla::Plugin::Repository",
"name" : "@Filter/Repository",
- "version" : "0.18"
+ "version" : "0.20"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
+ "config" : {
+ "Dist::Zilla::Plugin::MetaProvides::Package" : {
+ "finder_objects" : [
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : "@Filter/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
+ "version" : "5.019"
+ }
+ ]
+ },
+ "Dist::Zilla::Role::MetaProvider::Provider" : {
+ "inherit_missing" : "1",
+ "inherit_version" : "1",
+ "meta_noindex" : "1"
+ }
+ },
"name" : "@Filter/MetaProvides::Package",
- "version" : "1.12060501"
+ "version" : "2.000001"
},
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Filter/MetaConfig",
- "version" : "4.300009"
+ "version" : "5.019"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::HelpWanted",
+ "name" : "@Filter/HelpWanted",
+ "version" : "0.3.1"
},
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Filter/License",
- "version" : "4.300009"
+ "version" : "5.019"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Covenant",
+ "name" : "@Filter/Covenant",
+ "version" : "0.1.0"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Filter/MetaYAML",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Filter/MetaJSON",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::ModuleBuild",
+ "config" : {
+ "Dist::Zilla::Role::TestRunner" : {
+ "default_jobs" : 1
+ }
+ },
"name" : "@Filter/ModuleBuild",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@Filter/Readme",
- "version" : "4.300009"
+ "version" : "5.019"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
+ "name" : "@Filter/ReadmeAnyFromPod",
+ "version" : "0.141120"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Filter/Manifest",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::CheckChangeLog",
@@ -266,69 +466,139 @@
"version" : "0.01"
},
{
+ "class" : "Dist::Zilla::Plugin::TestRelease",
+ "name" : "@Filter/TestRelease",
+ "version" : "5.019"
+ },
+ {
"class" : "Dist::Zilla::Plugin::Git::Check",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Check" : {
+ "untracked_files" : "die"
+ },
+ "Dist::Zilla::Role::Git::DirtyFiles" : {
+ "allow_dirty" : [
+ "Changes",
+ "dist.ini",
+ "README.mkdn"
+ ],
+ "allow_dirty_match" : [],
+ "changelog" : "Changes"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Filter/Git::Check",
- "version" : "1.113560"
+ "version" : "2.022"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Commit" : {
+ "add_files_in" : [],
+ "commit_msg" : "v%v%n%n%c",
+ "time_zone" : "local"
+ },
+ "Dist::Zilla::Role::Git::DirtyFiles" : {
+ "allow_dirty" : [
+ "Changes",
+ "dist.ini",
+ "README.mkdn"
+ ],
+ "allow_dirty_match" : [],
+ "changelog" : "Changes"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Filter/Git::Commit",
- "version" : "1.113560"
- },
- {
- "class" : "Dist::Zilla::Plugin::Git::CommitBuild",
- "name" : "@Filter/Git::CommitBuild",
- "version" : "1.113560"
+ "version" : "2.022"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
- "name" : "@Filter/TagMaster",
- "version" : "1.113560"
- },
- {
- "class" : "Dist::Zilla::Plugin::Git::Tag",
- "name" : "@Filter/TagRelease",
- "version" : "1.113560"
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Tag" : {
+ "branch" : null,
+ "signed" : 0,
+ "tag" : "v2.000",
+ "tag_format" : "v%v",
+ "tag_message" : "v%v",
+ "time_zone" : "local"
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
+ "name" : "@Filter/Git::Tag",
+ "version" : "2.022"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
+ "config" : {
+ "Dist::Zilla::Plugin::Git::Push" : {
+ "push_to" : [
+ "origin"
+ ],
+ "remotes_must_exist" : 1
+ },
+ "Dist::Zilla::Role::Git::Repo" : {
+ "repo_root" : "."
+ }
+ },
"name" : "@Filter/Git::Push",
- "version" : "1.113560"
+ "version" : "2.022"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@Filter/UploadToCPAN",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "4.300009"
+ "version" : "5.019"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "4.300009"
+ "version" : "5.019"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":AllFiles",
+ "version" : "5.019"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : ":NoFiles",
+ "version" : "5.019"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::FinderCode",
+ "name" : "@Filter/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
+ "version" : "5.019"
}
],
"zilla" : {
@@ -336,8 +606,11 @@
"config" : {
"is_trial" : "0"
},
- "version" : "4.300009"
+ "version" : "5.019"
}
+ },
+ "x_author_pledge" : {
+ "version" : 1
}
}
diff --git a/META.yml b/META.yml
index c7765dd..6c1acca 100644
--- a/META.yml
+++ b/META.yml
@@ -3,63 +3,67 @@ abstract: 'class to talk to MPD (Music Player Daemon) servers'
author:
- 'Jerome Quelin'
build_requires:
- File::Find: 0
- File::Temp: 0
- Module::Build: 0.3601
- Test::Corpus::Audio::MPD: 1.113282
- Test::More: 0.88
+ File::Spec: '0'
+ IO::Handle: '0'
+ IPC::Open3: '0'
+ List::AllUtils: '0'
+ Module::Build: '0.3601'
+ Test::Corpus::Audio::MPD: '1.113282'
+ Test::More: '0.88'
configure_requires:
- Module::Build: 0.3601
+ Module::Build: '0.3601'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300009, CPAN::Meta::Converter version 2.120351'
+generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141520'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Audio-MPD
provides:
Audio::MPD:
file: lib/Audio/MPD.pm
- version: 1.120610
+ version: '2.000'
Audio::MPD::Collection:
file: lib/Audio/MPD/Collection.pm
- version: 1.120610
+ version: '2.000'
Audio::MPD::Playlist:
file: lib/Audio/MPD/Playlist.pm
- version: 1.120610
+ version: '2.000'
Audio::MPD::Types:
file: lib/Audio/MPD/Types.pm
- version: 1.120610
+ version: '2.000'
requires:
- Audio::MPD::Common::Item: 0
- Audio::MPD::Common::Output: 0
- Audio::MPD::Common::Stats: 0
- Audio::MPD::Common::Status: 0
- DB_File: 0
- Encode: 0
- Getopt::Euclid: 0
- IO::Socket::IP: 0
- Moose: 0
- Moose::Util::TypeConstraints: 0
- MooseX::Has::Sugar: 0
- MooseX::SemiAffordanceAccessor: 0
- Proc::Daemon: 0
- Time::HiRes: 0
- perl: 5.010
- strict: 0
- warnings: 0
+ Audio::MPD::Common::Item: '0'
+ Audio::MPD::Common::Output: '0'
+ Audio::MPD::Common::Stats: '0'
+ Audio::MPD::Common::Status: '0'
+ DB_File: '0'
+ Encode: '0'
+ Getopt::Euclid: '0'
+ IO::Socket::IP: '0'
+ Moose: '0'
+ Moose::Util::TypeConstraints: '0'
+ MooseX::Has::Sugar: '0'
+ MooseX::SemiAffordanceAccessor: '0'
+ Proc::Daemon: '0'
+ Time::HiRes: '0'
+ perl: '5.010'
+ strict: '0'
+ warnings: '0'
resources:
- X_mailing_list: http://groups.google.com/group/audio-mpd
+ Mailing_list: http://groups.google.com/group/audio-mpd
bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=Audio-MPD
homepage: http://search.cpan.org/dist/Audio-MPD/
repository: git://github.com/jquelin/audio-mpd.git
-version: 1.120610
+version: '2.000'
x_Dist_Zilla:
+ perl:
+ version: '5.020000'
plugins:
-
class: Dist::Zilla::Plugin::MetaResources
name: MetaResources
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -67,189 +71,384 @@ x_Dist_Zilla:
phase: test
type: requires
name: TestRequires
- version: 4.300009
+ version: '5.019'
-
- class: Dist::Zilla::Plugin::AutoVersion
- name: '@Filter/AutoVersion'
- version: 4.300009
+ class: Dist::Zilla::Plugin::Git::NextVersion
+ config:
+ Dist::Zilla::Plugin::Git::NextVersion:
+ first_version: '0.001'
+ version_by_branch: '0'
+ version_regexp: (?^:^v(.+)$)
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
+ name: '@Filter/Git::NextVersion'
+ version: '2.022'
-
class: Dist::Zilla::Plugin::GatherDir
name: '@Filter/GatherDir'
- version: 4.300009
- -
- class: Dist::Zilla::Plugin::CompileTests
- name: '@Filter/CompileTests'
- version: 1.112820
- -
- class: Dist::Zilla::Plugin::HasVersionTests
- name: '@Filter/HasVersionTests'
- version: 1.101420
- -
- class: Dist::Zilla::Plugin::KwaliteeTests
- name: '@Filter/KwaliteeTests'
- version: 2.03
+ version: '5.019'
-
- class: Dist::Zilla::Plugin::MinimumVersionTests
- name: '@Filter/MinimumVersionTests'
- version: 2.0.1
+ class: Dist::Zilla::Plugin::Test::Compile
+ config:
+ Dist::Zilla::Plugin::Test::Compile:
+ filename: t/00-compile.t
+ module_finder:
+ - ':InstallModules'
+ script_finder:
+ - ':ExecFiles'
+ name: '@Filter/Test::Compile'
+ version: '2.042'
-
class: Dist::Zilla::Plugin::PodCoverageTests
name: '@Filter/PodCoverageTests'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Filter/PodSyntaxTests'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::ReportVersions::Tiny
name: '@Filter/ReportVersions::Tiny'
- version: 1.03
+ version: '1.10'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@Filter/PruneCruft'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::PruneFiles
name: '@Filter/PruneFiles'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@Filter/ManifestSkip'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@Filter/AutoPrereqs'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::ExtraTests
name: '@Filter/ExtraTests'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::NextRelease
name: '@Filter/NextRelease'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@Filter/PkgVersion'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::PodWeaver
+ config:
+ Dist::Zilla::Plugin::PodWeaver:
+ finder:
+ - ':InstallModules'
+ - ':ExecFiles'
+ plugins:
+ -
+ class: Pod::Weaver::Plugin::EnsurePod5
+ name: '@CorePrep/EnsurePod5'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Plugin::H1Nester
+ name: '@CorePrep/H1Nester'
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Name
+ name: Name
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Version
+ name: Version
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Region
+ name: prelude
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: SYNOPSIS
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: DESCRIPTION
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Generic
+ name: OVERVIEW
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: ATTRIBUTES
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: METHODS
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: MPD_CTRL
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: MPD_OUTPUT
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: MPD_INFO
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: MPD_SETTINGS
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: MPD_PLAYBACK
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: COLL_SONG
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: COLL_WHOLE
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: COLL_PICK
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: COLL_RELATIONS
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: PLAY_INFO
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: PLAY_ADDRM
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: PLAY_ORDER
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Collect
+ name: PLAY_MGMT
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Leftovers
+ name: Leftovers
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Region
+ name: postlude
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Authors
+ name: Authors
+ version: '4.006'
+ -
+ class: Pod::Weaver::Section::Legal
+ name: Legal
+ version: '4.006'
name: '@Filter/PodWeaver'
- version: 3.101641
+ version: '4.005'
-
class: Dist::Zilla::Plugin::Prepender
name: '@Filter/Prepender'
- version: 1.112280
+ version: '1.112280'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Filter/ExecDir'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Filter/ShareDir'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::Bugtracker
name: '@Filter/Bugtracker'
- version: 1.111080
+ version: '1.111080'
-
class: Dist::Zilla::Plugin::Homepage
name: '@Filter/Homepage'
- version: 1.101420
+ version: '1.101420'
-
class: Dist::Zilla::Plugin::Repository
name: '@Filter/Repository'
- version: 0.18
+ version: '0.20'
-
class: Dist::Zilla::Plugin::MetaProvides::Package
+ config:
+ Dist::Zilla::Plugin::MetaProvides::Package:
+ finder_objects:
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: '@Filter/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
+ version: '5.019'
+ Dist::Zilla::Role::MetaProvider::Provider:
+ inherit_missing: '1'
+ inherit_version: '1'
+ meta_noindex: '1'
name: '@Filter/MetaProvides::Package'
- version: 1.12060501
+ version: '2.000001'
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Filter/MetaConfig'
- version: 4.300009
+ version: '5.019'
+ -
+ class: Dist::Zilla::Plugin::HelpWanted
+ name: '@Filter/HelpWanted'
+ version: 0.3.1
-
class: Dist::Zilla::Plugin::License
name: '@Filter/License'
- version: 4.300009
+ version: '5.019'
+ -
+ class: Dist::Zilla::Plugin::Covenant
+ name: '@Filter/Covenant'
+ version: 0.1.0
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Filter/MetaYAML'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@Filter/MetaJSON'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::ModuleBuild
+ config:
+ Dist::Zilla::Role::TestRunner:
+ default_jobs: 1
name: '@Filter/ModuleBuild'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::Readme
name: '@Filter/Readme'
- version: 4.300009
+ version: '5.019'
+ -
+ class: Dist::Zilla::Plugin::ReadmeAnyFromPod
+ name: '@Filter/ReadmeAnyFromPod'
+ version: '0.141120'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Filter/Manifest'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::CheckChangeLog
name: '@Filter/CheckChangeLog'
- version: 0.01
+ version: '0.01'
+ -
+ class: Dist::Zilla::Plugin::TestRelease
+ name: '@Filter/TestRelease'
+ version: '5.019'
-
class: Dist::Zilla::Plugin::Git::Check
+ config:
+ Dist::Zilla::Plugin::Git::Check:
+ untracked_files: die
+ Dist::Zilla::Role::Git::DirtyFiles:
+ allow_dirty:
+ - Changes
+ - dist.ini
+ - README.mkdn
+ allow_dirty_match: []
+ changelog: Changes
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Filter/Git::Check'
- version: 1.113560
+ version: '2.022'
-
class: Dist::Zilla::Plugin::Git::Commit
+ config:
+ Dist::Zilla::Plugin::Git::Commit:
+ add_files_in: []
+ commit_msg: v%v%n%n%c
+ time_zone: local
+ Dist::Zilla::Role::Git::DirtyFiles:
+ allow_dirty:
+ - Changes
+ - dist.ini
+ - README.mkdn
+ allow_dirty_match: []
+ changelog: Changes
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Filter/Git::Commit'
- version: 1.113560
- -
- class: Dist::Zilla::Plugin::Git::CommitBuild
- name: '@Filter/Git::CommitBuild'
- version: 1.113560
- -
- class: Dist::Zilla::Plugin::Git::Tag
- name: '@Filter/TagMaster'
- version: 1.113560
+ version: '2.022'
-
class: Dist::Zilla::Plugin::Git::Tag
- name: '@Filter/TagRelease'
- version: 1.113560
+ config:
+ Dist::Zilla::Plugin::Git::Tag:
+ branch: ~
+ signed: 0
+ tag: v2.000
+ tag_format: v%v
+ tag_message: v%v
+ time_zone: local
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
+ name: '@Filter/Git::Tag'
+ version: '2.022'
-
class: Dist::Zilla::Plugin::Git::Push
+ config:
+ Dist::Zilla::Plugin::Git::Push:
+ push_to:
+ - origin
+ remotes_must_exist: 1
+ Dist::Zilla::Role::Git::Repo:
+ repo_root: .
name: '@Filter/Git::Push'
- version: 1.113560
+ version: '2.022'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@Filter/UploadToCPAN'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: 4.300009
+ version: '5.019'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: 4.300009
+ version: '5.019'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':AllFiles'
+ version: '5.019'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: ':NoFiles'
+ version: '5.019'
+ -
+ class: Dist::Zilla::Plugin::FinderCode
+ name: '@Filter/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
+ version: '5.019'
zilla:
class: Dist::Zilla::Dist::Builder
config:
- is_trial: 0
- version: 4.300009
+ is_trial: '0'
+ version: '5.019'
+x_author_pledge:
+ version: 1
diff --git a/README b/README
index 21e3f54..1eef3d4 100644
--- a/README
+++ b/README
@@ -1,7 +1,7 @@
This archive contains the distribution Audio-MPD,
-version 1.120610:
+version 2.000:
class to talk to MPD (Music Player Daemon) servers
@@ -11,3 +11,5 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.019.
+
diff --git a/bin/mpd-dynamic b/bin/mpd-dynamic
index 90f5fa2..0249710 100755
--- a/bin/mpd-dynamic
+++ b/bin/mpd-dynamic
@@ -97,7 +97,7 @@ sub debug {
warn "$date $msg";
}
-
+__END__
=pod
@@ -107,7 +107,7 @@ mpd-dynamic - a dynamic playlist for mpd
=head1 VERSION
-version 1.120610
+version 2.000
=head1 DESCRIPTION
@@ -232,7 +232,3 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
-
-__END__
-
diff --git a/bin/mpd-rate b/bin/mpd-rate
index 9d94197..96c67c4 100755
--- a/bin/mpd-rate
+++ b/bin/mpd-rate
@@ -39,8 +39,7 @@ else { say exists $ratings{$song} ? $ratings{$song} : 0; }
untie %ratings;
-
-
+__END__
=pod
@@ -50,7 +49,7 @@ mpd-rate; - rate your songs for mpd-dynamic
=head1 VERSION
-version 1.120610
+version 2.000
=head1 DESCRIPTION
@@ -106,7 +105,3 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
-
-__END__
-
diff --git a/dist.ini b/dist.ini
index 88dfefd..18c1ef3 100644
--- a/dist.ini
+++ b/dist.ini
@@ -6,13 +6,11 @@ copyright_year = 2007
; -- static meta-information
[MetaResources]
-homepage = http://search.cpan.org/dist/Audio-MPD
-repository = http://github.com/jquelin/audio-mpd
x_mailing_list = http://groups.google.com/group/audio-mpd
[Prereqs / TestRequires]
Test::Corpus::Audio::MPD = 1.113282 ; software mixer, ipv6, genre tag
[@Filter]
--bundle = @JQUELIN
+-bundle = @Author::JQUELIN
-remove = ReportVersions
diff --git a/lib/Audio/MPD.pm b/lib/Audio/MPD.pm
index 4fbdc90..530ef29 100644
--- a/lib/Audio/MPD.pm
+++ b/lib/Audio/MPD.pm
@@ -11,11 +11,8 @@ use warnings;
use strict;
package Audio::MPD;
-{
- $Audio::MPD::VERSION = '1.120610';
-}
# ABSTRACT: class to talk to MPD (Music Player Daemon) servers
-
+$Audio::MPD::VERSION = '2.000';
use Audio::MPD::Common::Item;
use Audio::MPD::Common::Stats;
use Audio::MPD::Common::Status;
@@ -465,7 +462,7 @@ no Moose;
__PACKAGE__->meta->make_immutable;
1;
-
+__END__
=pod
@@ -475,7 +472,7 @@ Audio::MPD - class to talk to MPD (Music Player Daemon) servers
=head1 VERSION
-version 1.120610
+version 2.000
=head1 SYNOPSIS
@@ -778,7 +775,7 @@ You can look for information on this module at:
=item * Search CPAN
-L<http://search.cpan.org/dist/Audio-MPD>
+L<http://metacpan.org/release/Audio-MPD>
=item * See open / report bugs
@@ -814,7 +811,3 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
-
-__END__
-
diff --git a/lib/Audio/MPD/Collection.pm b/lib/Audio/MPD/Collection.pm
index 80c570f..85edf4b 100644
--- a/lib/Audio/MPD/Collection.pm
+++ b/lib/Audio/MPD/Collection.pm
@@ -11,11 +11,8 @@ use warnings;
use strict;
package Audio::MPD::Collection;
-{
- $Audio::MPD::Collection::VERSION = '1.120610';
-}
# ABSTRACT: class to query MPD's collection
-
+$Audio::MPD::Collection::VERSION = '2.000';
use Moose;
use MooseX::Has::Sugar;
use MooseX::SemiAffordanceAccessor;
@@ -224,7 +221,7 @@ no Moose;
__PACKAGE__->meta->make_immutable;
1;
-
+__END__
=pod
@@ -234,7 +231,7 @@ Audio::MPD::Collection - class to query MPD's collection
=head1 VERSION
-version 1.120610
+version 2.000
=head1 SYNOPSIS
@@ -416,7 +413,3 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
-
-__END__
-
diff --git a/lib/Audio/MPD/Playlist.pm b/lib/Audio/MPD/Playlist.pm
index 9e4867b..078a9e6 100644
--- a/lib/Audio/MPD/Playlist.pm
+++ b/lib/Audio/MPD/Playlist.pm
@@ -11,11 +11,8 @@ use warnings;
use strict;
package Audio::MPD::Playlist;
-{
- $Audio::MPD::Playlist::VERSION = '1.120610';
-}
# ABSTRACT: class to mess MPD's playlist
-
+$Audio::MPD::Playlist::VERSION = '2.000';
use Moose;
use MooseX::Has::Sugar;
use MooseX::SemiAffordanceAccessor;
@@ -184,7 +181,7 @@ no Moose;
__PACKAGE__->meta->make_immutable;
1;
-
+__END__
=pod
@@ -194,7 +191,7 @@ Audio::MPD::Playlist - class to mess MPD's playlist
=head1 VERSION
-version 1.120610
+version 2.000
=head1 SYNOPSIS
@@ -331,7 +328,3 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
-
-__END__
-
diff --git a/lib/Audio/MPD/Types.pm b/lib/Audio/MPD/Types.pm
index e78dcb4..08272d9 100644
--- a/lib/Audio/MPD/Types.pm
+++ b/lib/Audio/MPD/Types.pm
@@ -11,17 +11,15 @@ use warnings;
use strict;
package Audio::MPD::Types;
-{
- $Audio::MPD::Types::VERSION = '1.120610';
-}
# ABSTRACT: types used in the distribution
-
+$Audio::MPD::Types::VERSION = '2.000';
use Moose::Util::TypeConstraints;
-enum CONNTYPE => qw{ reuse once };
+enum CONNTYPE => [ qw{ reuse once } ];
1;
+__END__
=pod
@@ -31,7 +29,7 @@ Audio::MPD::Types - types used in the distribution
=head1 VERSION
-version 1.120610
+version 2.000
=head1 DESCRIPTION
@@ -60,7 +58,3 @@ This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
-
-
-__END__
-
diff --git a/t/00-compile.t b/t/00-compile.t
index b840c36..2845152 100644
--- a/t/00-compile.t
+++ b/t/00-compile.t
@@ -1,81 +1,81 @@
-#!perl
-#
-# This file is part of Audio-MPD
-#
-# This software is copyright (c) 2007 by Jerome Quelin.
-#
-# This is free software; you can redistribute it and/or modify it under
-# the same terms as the Perl 5 programming language system itself.
-#
-
+use 5.006;
use strict;
use warnings;
-use Test::More;
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.042
+use Test::More tests => 6 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
-use File::Find;
-use File::Temp qw{ tempdir };
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- # nothing to skip
- push @modules, $found;
- },
- 'lib',
+my @module_files = (
+ 'Audio/MPD.pm',
+ 'Audio/MPD/Collection.pm',
+ 'Audio/MPD/Playlist.pm',
+ 'Audio/MPD/Types.pm'
);
-sub _find_scripts {
- my $dir = shift @_;
-
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- # nothing to skip
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
-
- return @found_scripts;
-}
+my @scripts = (
+ 'bin/mpd-dynamic',
+ 'bin/mpd-rate'
+);
+
+# no fake home requested
+
+my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
+use File::Spec;
+use IPC::Open3;
+use IO::Handle;
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
+open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
+my @warnings;
+for my $lib (@module_files)
{
- # fake home for cpan-testers
- # no fake requested ## local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
+ # see L<perlfaq8/How can I capture STDERR from an external command?>
+ my $stderr = IO::Handle->new;
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]");
+ binmode $stderr, ':crlf' if $^O eq 'MSWin32';
+ my @_warnings = <$stderr>;
+ waitpid($pid, 0);
+ is($?, 0, "$lib loaded ok");
+
+ if (@_warnings)
+ {
+ warn @_warnings;
+ push @warnings, @_warnings;
}
}
+
+foreach my $file (@scripts)
+{ SKIP: {
+ open my $fh, '<', $file or warn("Unable to open $file: $!"), next;
+ my $line = <$fh>;
+
+ close $fh and skip("$file isn't perl", 1) unless $line =~ /^#!\s*(?:\S*perl\S*)((?:\s+-\w*)*)(?:\s*#.*)?$/;
+ my @flags = $1 ? split(' ', $1) : ();
+
+ my $stderr = IO::Handle->new;
+
+ my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, @flags, '-c', $file);
+ binmode $stderr, ':crlf' if $^O eq 'MSWin32';
+ my @_warnings = <$stderr>;
+ waitpid($pid, 0);
+ is($?, 0, "$file compiled ok");
+
+ # in older perls, -c output is simply the file portion of the path being tested
+ if (@_warnings = grep { !/\bsyntax OK$/ }
+ grep { chomp; $_ ne (File::Spec->splitpath($file))[2] } @_warnings)
+ {
+ warn @_warnings;
+ push @warnings, @_warnings;
+ }
+} }
+
+
+
+is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+
+
diff --git a/t/000-report-versions-tiny.t b/t/000-report-versions-tiny.t
index 3bfba17..860d8f1 100644
--- a/t/000-report-versions-tiny.t
+++ b/t/000-report-versions-tiny.t
@@ -8,13 +8,13 @@ use Test::More 0.88;
our $success = 0;
END { $success && done_testing; }
-my $v = "\n";
+# List our own version used to generate this
+my $v = "\nGenerated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.10\n";
eval { # no excuses!
# report our Perl details
my $want = '5.010';
- my $pv = ($^V || $]);
- $v .= "perl: $pv (wanted $want) on $^O from $^X\n\n";
+ $v .= "perl: $] (wanted $want) on $^O from $^X\n\n";
};
defined($@) and diag("$@");
@@ -54,10 +54,12 @@ eval { $v .= pmver('Audio::MPD::Common::Stats','any version') };
eval { $v .= pmver('Audio::MPD::Common::Status','any version') };
eval { $v .= pmver('DB_File','any version') };
eval { $v .= pmver('Encode','any version') };
-eval { $v .= pmver('File::Find','any version') };
-eval { $v .= pmver('File::Temp','any version') };
+eval { $v .= pmver('File::Spec','any version') };
eval { $v .= pmver('Getopt::Euclid','any version') };
+eval { $v .= pmver('IO::Handle','any version') };
eval { $v .= pmver('IO::Socket::IP','any version') };
+eval { $v .= pmver('IPC::Open3','any version') };
+eval { $v .= pmver('List::AllUtils','any version') };
eval { $v .= pmver('Module::Build','0.3601') };
eval { $v .= pmver('Moose','any version') };
eval { $v .= pmver('Moose::Util::TypeConstraints','any version') };
@@ -71,13 +73,12 @@ eval { $v .= pmver('strict','any version') };
eval { $v .= pmver('warnings','any version') };
-
# All done.
$v .= <<'EOT';
Thanks for using my code. I hope it works for you.
If not, please try and include this output in the bug report.
-That will help me reproduce the issue and solve you problem.
+That will help me reproduce the issue and solve your problem.
EOT
diff --git a/t/23-output.t b/t/23-output.t
index 3c7d773..09700cd 100644
--- a/t/23-output.t
+++ b/t/23-output.t
@@ -62,7 +62,7 @@ SKIP: {
my $error = $mpd->status->error;
skip "detection method doesn't always work - depends on timing", 1
unless defined $error;
- like( $error, qr/^problems/, 'disabling output' );
+ like( $error, qr/^problems|All audio outputs are disabled/, 'disabling output' );
}
#
diff --git a/t/24-info.t b/t/24-info.t
index 44f4589..af031c3 100644
--- a/t/24-info.t
+++ b/t/24-info.t
@@ -64,7 +64,7 @@ is( $song->file, 'title.ogg', 'song() defaults to current song' );
#
# testing songid.
-$song = $mpd->songid(1);
+$song = $mpd->songid(2);
isa_ok( $song, 'Audio::MPD::Common::Item::Song', 'songid() returns an AMC::Item::Song object' );
is( $song->file, 'dir1/title-artist-album.ogg', 'songid() returns the wanted song' );
$song = $mpd->songid; # default to current song
diff --git a/t/30-collection.t b/t/30-collection.t
index 2052f57..42fe50f 100644
--- a/t/30-collection.t
+++ b/t/30-collection.t
@@ -12,6 +12,7 @@ use strict;
use warnings;
use Audio::MPD;
+use List::AllUtils qw{ any };
use Test::More;
# are we able to test module?
@@ -86,7 +87,7 @@ is( $list[1], 'our album', 'all_albums return strings' );
# note: mpd 0.14 also returns empty artists
@list = $coll->all_artists;
is( scalar @list, 2, 'all_artists return the artists' );
-is( $list[0], 'dir1-artist', 'all_artists return strings' );
+ok( any { $_ eq 'dir1-artist' } @list, 'all_artists return strings' );
#
@@ -94,7 +95,7 @@ is( $list[0], 'dir1-artist', 'all_artists return strings' );
# note: mpd 0.14 also returns empty titles
@list = $coll->all_titles;
is( scalar @list, 4, 'all_titles return the titles' );
-like( $list[0], qr/-title$/, 'all_titles return strings' );
+ok( any { /-title$/ } @list, 'all_titles return strings' );
#
diff --git a/t/release-has-version.t b/t/release-has-version.t
deleted file mode 100644
index 2b20b27..0000000
--- a/t/release-has-version.t
+++ /dev/null
@@ -1,24 +0,0 @@
-#!perl
-#
-# This file is part of Audio-MPD
-#
-# This software is copyright (c) 2007 by Jerome Quelin.
-#
-# This is free software; you can redistribute it and/or modify it under
-# the same terms as the Perl 5 programming language system itself.
-#
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-
-use Test::More;
-
-eval "use Test::HasVersion";
-plan skip_all => "Test::HasVersion required for testing version numbers"
- if $@;
-all_pm_version_ok();
diff --git a/t/release-kwalitee.t b/t/release-kwalitee.t
deleted file mode 100644
index 7cadfaf..0000000
--- a/t/release-kwalitee.t
+++ /dev/null
@@ -1,25 +0,0 @@
-#!perl
-#
-# This file is part of Audio-MPD
-#
-# This software is copyright (c) 2007 by Jerome Quelin.
-#
-# This is free software; you can redistribute it and/or modify it under
-# the same terms as the Perl 5 programming language system itself.
-#
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-
-# This test is generated by Dist::Zilla::Plugin::Test::Kwalitee
-use strict;
-use warnings;
-use Test::More; # needed to provide plan.
-eval "use Test::Kwalitee";
-
-plan skip_all => "Test::Kwalitee required for testing kwalitee" if $@;
diff --git a/t/release-minimum-version.t b/t/release-minimum-version.t
deleted file mode 100644
index b7c5a8d..0000000
--- a/t/release-minimum-version.t
+++ /dev/null
@@ -1,24 +0,0 @@
-#!perl
-#
-# This file is part of Audio-MPD
-#
-# This software is copyright (c) 2007 by Jerome Quelin.
-#
-# This is free software; you can redistribute it and/or modify it under
-# the same terms as the Perl 5 programming language system itself.
-#
-
-BEGIN {
- unless ($ENV{RELEASE_TESTING}) {
- require Test::More;
- Test::More::plan(skip_all => 'these tests are for release candidate testing');
- }
-}
-
-
-use Test::More;
-
-eval "use Test::MinimumVersion";
-plan skip_all => "Test::MinimumVersion required for testing minimum versions"
- if $@;
-all_minimum_version_from_metayml_ok();
diff --git a/t/release-pod-coverage.t b/t/release-pod-coverage.t
index 70ed49d..3ca9c2b 100644
--- a/t/release-pod-coverage.t
+++ b/t/release-pod-coverage.t
@@ -15,15 +15,9 @@ BEGIN {
}
}
+# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests.
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.08";
-plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
- if $@;
-
-eval "use Pod::Coverage::TrustPod";
-plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
- if $@;
+use Test::Pod::Coverage 1.08;
+use Pod::Coverage::TrustPod;
all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
diff --git a/t/release-pod-syntax.t b/t/release-pod-syntax.t
index 7702def..a4ec950 100644
--- a/t/release-pod-syntax.t
+++ b/t/release-pod-syntax.t
@@ -15,9 +15,8 @@ BEGIN {
}
}
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
use Test::More;
-
-eval "use Test::Pod 1.41";
-plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+use Test::Pod 1.41;
all_pod_files_ok();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libaudio-mpd-perl.git
More information about the Pkg-perl-cvs-commits
mailing list