Changes | 05 |
MANIFEST | 22 |
META.json | 123144 |
META.yml | 112126 |
Makefile.PL | 54 |
README | 22 |
bin/text-vimcolor | 11 |
dist.ini | 28 |
lib/Text/VimColor.pm | 33 |
t/00-report-prereqs.dd | 13 |
t/all-syntax-groups.t | 1319 |
t/bin.t | 910 |
t/lib/TVC_Share.pm | 012 |
t/lib/TVC_Test.pm | 06 |
t/share-dir.t | 13 |
t/untie-std-handles.t | 12 |
xt/author/eol.t | 01 |
xt/author/no-tabs.t | 01 |
xt/release/changes_has_content.t | 410 |
19 files changed (This is a version diff) | 316352 |
@@ -1,5 +1,10 @@
Revision history for Text-VimColor
+0.26 2015-03-21T04:14:25Z
+
+ - Fix test failures for vim 6.
+ - Use Test::File::ShareDir to simplify testing.
+
0.25 2015-02-28T23:41:39Z
- Add 'all_syntax_groups' option to enable additional syntax groups
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.031.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.033.
Changes
LICENSE
MANIFEST
@@ -43,6 +43,7 @@ t/data/tvctestsyn.xml
t/encoding.t
t/html.t
t/input_filename.t
+t/lib/TVC_Share.pm
t/lib/TVC_Test.pm
t/new.t
t/override-options.t
@@ -56,7 +57,6 @@ xt/author/critic.t
xt/author/eol.t
xt/author/no-tabs.t
xt/author/pod-spell.t
-xt/release/changes_has_content.t
xt/release/cpan-changes.t
xt/release/dist-manifest.t
xt/release/distmeta.t
@@ -5,7 +5,7 @@
"Randy Stauner <rwstauner@cpan.org>"
],
"dynamic_config" : 1,
- "generated_by" : "Dist::Zilla version 5.031, CPAN::Meta::Converter version 2.143240",
+ "generated_by" : "Dist::Zilla version 5.033, CPAN::Meta::Converter version 2.150001",
"license" : [
"perl_5"
],
@@ -60,7 +60,8 @@
"Test::Pod::Coverage" : "1.08",
"Test::Spelling" : "0.12",
"Test::Synopsis" : "0",
- "Test::Version" : "1"
+ "Test::Version" : "1",
+ "XML::Parser" : "0"
}
},
"runtime" : {
@@ -96,6 +97,7 @@
"IO::Handle" : "0",
"IPC::Open3" : "0",
"Path::Class" : "0.04",
+ "Test::File::ShareDir::Dist" : "0",
"Test::More" : "0.88",
"lib" : "0",
"perl" : "5.006"
@@ -105,7 +107,7 @@
"provides" : {
"Text::VimColor" : {
"file" : "lib/Text/VimColor.pm",
- "version" : "0.25"
+ "version" : "0.26"
}
},
"release_status" : "stable",
@@ -121,7 +123,7 @@
"web" : "https://github.com/rwstauner/Text-VimColor"
}
},
- "version" : "0.25",
+ "version" : "0.26",
"x_Dist_Zilla" : {
"perl" : {
"version" : "5.020000"
@@ -140,12 +142,12 @@
}
},
"name" : "@Author::RWSTAUNER/Git::NextVersion",
- "version" : "2.029"
+ "version" : "2.030"
},
{
"class" : "Dist::Zilla::Plugin::GenerateFile",
"name" : "@Author::RWSTAUNER/GenerateManifestSkip",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::GatherDir",
@@ -165,37 +167,37 @@
}
},
"name" : "@Author::RWSTAUNER/GatherDir",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::PruneCruft",
"name" : "@Author::RWSTAUNER/PruneCruft",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::ManifestSkip",
"name" : "@Author::RWSTAUNER/ManifestSkip",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::PruneFiles",
"name" : "@Author::RWSTAUNER/PruneDevelCoverDatabase",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::PruneFiles",
"name" : "@Author::RWSTAUNER/PruneCodeStatCollection",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::PruneFiles",
"name" : "@Author::RWSTAUNER/PruneTags",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::PkgVersion",
"name" : "@Author::RWSTAUNER/PkgVersion",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Authority",
@@ -205,7 +207,7 @@
{
"class" : "Dist::Zilla::Plugin::NextRelease",
"name" : "@Author::RWSTAUNER/NextRelease",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Git::Describe",
@@ -358,12 +360,12 @@
{
"class" : "Dist::Zilla::Plugin::License",
"name" : "@Author::RWSTAUNER/License",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Readme",
"name" : "@Author::RWSTAUNER/Readme",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::ReadmeAnyFromPod",
@@ -401,12 +403,12 @@
{
"class" : "Dist::Zilla::Plugin::AutoPrereqs",
"name" : "@Author::RWSTAUNER/AutoPrereqs",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::MetaNoIndex",
"name" : "@Author::RWSTAUNER/MetaNoIndex",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::MetaProvides::Package",
@@ -416,7 +418,7 @@
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : "@Author::RWSTAUNER/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
- "version" : "5.031"
+ "version" : "5.033"
}
]
},
@@ -437,27 +439,27 @@
{
"class" : "Dist::Zilla::Plugin::MetaConfig",
"name" : "@Author::RWSTAUNER/MetaConfig",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::MetaYAML",
"name" : "@Author::RWSTAUNER/MetaYAML",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::MetaJSON",
"name" : "@Author::RWSTAUNER/MetaJSON",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::ExecDir",
"name" : "@Author::RWSTAUNER/ExecDir",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::ShareDir",
"name" : "@Author::RWSTAUNER/ShareDir",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::MakeMaker",
@@ -467,7 +469,7 @@
}
},
"name" : "@Author::RWSTAUNER/MakeMaker",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Test::ReportPrereqs",
@@ -475,49 +477,66 @@
"version" : "0.020"
},
{
- "class" : "Dist::Zilla::Plugin::Test::ChangesHasContent",
- "name" : "@Author::RWSTAUNER/Test::ChangesHasContent",
- "version" : "0.007"
- },
- {
"class" : "Dist::Zilla::Plugin::Test::PodSpelling",
"name" : "@Author::RWSTAUNER/Test::PodSpelling",
"version" : "2.006008"
},
{
- "class" : "Dist::Zilla::Plugin::Test::NoTabs",
+ "class" : "Dist::Zilla::Plugin::Test::EOL",
"config" : {
- "Dist::Zilla::Plugin::Test::NoTabs" : {
- "filename" : "xt/author/no-tabs.t",
+ "Dist::Zilla::Plugin::Test::EOL" : {
+ "filename" : "xt/author/eol.t",
"finder" : [
":InstallModules",
":ExecFiles",
":TestFiles"
- ]
+ ],
+ "trailing_whitespace" : "1"
}
},
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::NoTabs",
- "version" : "0.13"
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::EOL",
+ "version" : "0.17"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::MetaTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/MetaTests",
+ "version" : "5.033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::Synopsis",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Synopsis",
+ "version" : "2.000006"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Test::MinimumVersion",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion",
+ "version" : "2.000006"
},
{
"class" : "Dist::Zilla::Plugin::PodSyntaxTests",
"name" : "@Author::RWSTAUNER/@TestingMania/PodSyntaxTests",
- "version" : "5.031"
+ "version" : "5.033"
},
{
- "class" : "Dist::Zilla::Plugin::Test::UnusedVars",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::UnusedVars",
- "version" : "2.000007"
+ "class" : "Dist::Zilla::Plugin::Test::Perl::Critic",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Perl::Critic",
+ "version" : "3.000"
},
{
- "class" : "Dist::Zilla::Plugin::PodCoverageTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/PodCoverageTests",
- "version" : "5.031"
+ "class" : "Dist::Zilla::Plugin::MojibakeTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/MojibakeTests",
+ "version" : "0.7"
},
{
- "class" : "Dist::Zilla::Plugin::Test::Pod::LinkCheck",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Pod::LinkCheck",
- "version" : "1.001"
+ "class" : "Dist::Zilla::Plugin::Test::Kwalitee",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::Kwalitee" : {
+ "filename" : "xt/release/kwalitee.t",
+ "skiptest" : []
+ }
+ },
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Kwalitee",
+ "version" : "2.11"
},
{
"class" : "Dist::Zilla::Plugin::Test::Compile",
@@ -542,30 +561,14 @@
"version" : "2.051"
},
{
- "class" : "Dist::Zilla::Plugin::Test::EOL",
- "config" : {
- "Dist::Zilla::Plugin::Test::EOL" : {
- "filename" : "xt/author/eol.t",
- "finder" : [
- ":InstallModules",
- ":ExecFiles",
- ":TestFiles"
- ],
- "trailing_whitespace" : "1"
- }
- },
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::EOL",
- "version" : "0.17"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Synopsis",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Synopsis",
- "version" : "2.000006"
+ "class" : "Dist::Zilla::Plugin::Test::DistManifest",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::DistManifest",
+ "version" : "2.000005"
},
{
- "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes",
- "version" : "0.009"
+ "class" : "Dist::Zilla::Plugin::Test::Version",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Version",
+ "version" : "0.003001"
},
{
"class" : "Dist::Zilla::Plugin::Test::Portability",
@@ -573,35 +576,19 @@
"version" : "2.000006"
},
{
- "class" : "Dist::Zilla::Plugin::Test::Kwalitee",
- "config" : {
- "Dist::Zilla::Plugin::Test::Kwalitee" : {
- "filename" : "xt/release/kwalitee.t",
- "skiptest" : []
- }
- },
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Kwalitee",
- "version" : "2.11"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::MinimumVersion",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion",
- "version" : "2.000006"
- },
- {
- "class" : "Dist::Zilla::Plugin::Test::Version",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Version",
- "version" : "0.003001"
+ "class" : "Dist::Zilla::Plugin::PodCoverageTests",
+ "name" : "@Author::RWSTAUNER/@TestingMania/PodCoverageTests",
+ "version" : "5.033"
},
{
- "class" : "Dist::Zilla::Plugin::Test::Perl::Critic",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::Perl::Critic",
- "version" : "3.000"
+ "class" : "Dist::Zilla::Plugin::Test::CPAN::Changes",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes",
+ "version" : "0.009"
},
{
- "class" : "Dist::Zilla::Plugin::Test::DistManifest",
- "name" : "@Author::RWSTAUNER/@TestingMania/Test::DistManifest",
- "version" : "2.000005"
+ "class" : "Dist::Zilla::Plugin::Test::Pod::LinkCheck",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::Pod::LinkCheck",
+ "version" : "1.001"
},
{
"class" : "Dist::Zilla::Plugin::Test::CPAN::Meta::JSON",
@@ -609,19 +596,29 @@
"version" : "0.003"
},
{
- "class" : "Dist::Zilla::Plugin::MetaTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/MetaTests",
- "version" : "5.031"
+ "class" : "Dist::Zilla::Plugin::Test::UnusedVars",
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::UnusedVars",
+ "version" : "2.000007"
},
{
- "class" : "Dist::Zilla::Plugin::MojibakeTests",
- "name" : "@Author::RWSTAUNER/@TestingMania/MojibakeTests",
- "version" : "0.7"
+ "class" : "Dist::Zilla::Plugin::Test::NoTabs",
+ "config" : {
+ "Dist::Zilla::Plugin::Test::NoTabs" : {
+ "filename" : "xt/author/no-tabs.t",
+ "finder" : [
+ ":InstallModules",
+ ":ExecFiles",
+ ":TestFiles"
+ ]
+ }
+ },
+ "name" : "@Author::RWSTAUNER/@TestingMania/Test::NoTabs",
+ "version" : "0.13"
},
{
"class" : "Dist::Zilla::Plugin::Manifest",
"name" : "@Author::RWSTAUNER/Manifest",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::CheckExtraTests",
@@ -646,7 +643,7 @@
{
"class" : "Dist::Zilla::Plugin::TestRelease",
"name" : "@Author::RWSTAUNER/TestRelease",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Git::Check",
@@ -669,7 +666,7 @@
}
},
"name" : "@Author::RWSTAUNER/@Git/Check",
- "version" : "2.029"
+ "version" : "2.030"
},
{
"class" : "Dist::Zilla::Plugin::Git::Commit",
@@ -694,7 +691,7 @@
}
},
"name" : "@Author::RWSTAUNER/@Git/Commit",
- "version" : "2.029"
+ "version" : "2.030"
},
{
"class" : "Dist::Zilla::Plugin::Git::Tag",
@@ -702,7 +699,7 @@
"Dist::Zilla::Plugin::Git::Tag" : {
"branch" : null,
"signed" : 0,
- "tag" : "v0.25",
+ "tag" : "v0.26",
"tag_format" : "v%v",
"tag_message" : "v%v",
"time_zone" : "local"
@@ -712,7 +709,7 @@
}
},
"name" : "@Author::RWSTAUNER/@Git/Tag",
- "version" : "2.029"
+ "version" : "2.030"
},
{
"class" : "Dist::Zilla::Plugin::Git::Push",
@@ -728,17 +725,17 @@
}
},
"name" : "@Author::RWSTAUNER/@Git/Push",
- "version" : "2.029"
+ "version" : "2.030"
},
{
"class" : "Dist::Zilla::Plugin::ConfirmRelease",
"name" : "@Author::RWSTAUNER/ConfirmRelease",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::UploadToCPAN",
"name" : "@Author::RWSTAUNER/UploadToCPAN",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::InstallRelease",
@@ -748,7 +745,7 @@
{
"class" : "Dist::Zilla::Plugin::Encoding",
"name" : "BinaryFiles",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -759,7 +756,7 @@
}
},
"name" : "Prereqs",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Prereqs",
@@ -770,7 +767,18 @@
}
},
"name" : "RuntimeRecommends",
- "version" : "5.031"
+ "version" : "5.033"
+ },
+ {
+ "class" : "Dist::Zilla::Plugin::Prereqs",
+ "config" : {
+ "Dist::Zilla::Plugin::Prereqs" : {
+ "phase" : "develop",
+ "type" : "requires"
+ }
+ },
+ "name" : "DevelopRequires",
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::OSPrereqs",
@@ -793,7 +801,7 @@
}
},
"name" : "RemovePrereqs",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::GatherDir",
@@ -809,7 +817,7 @@
}
},
"name" : "GatherTestDotVim",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::Run::AfterBuild",
@@ -826,49 +834,62 @@
"version" : "0.034"
},
{
+ "class" : "Dist::Zilla::Plugin::Run::AfterRelease",
+ "config" : {
+ "Dist::Zilla::Plugin::Run::Role::Runner" : {
+ "fatal_errors" : 1,
+ "run" : [
+ "perl -0777 -p -i -e 's{^(# NAME\\n)}{[![Build Status](https://travis-ci.org/rwstauner/Text-VimColor.svg?branch=master)](https://travis-ci.org/rwstauner/Text-VimColor)\\n[![Coverage Status](https://coveralls.io/repos/rwstauner/Text-VimColor/badge.svg?branch=master)](https://coveralls.io/r/rwstauner/Text-VimColor?branch=master)\\n\\n$1}s' README.mkdn"
+ ]
+ }
+ },
+ "name" : "Run::AfterRelease",
+ "version" : "0.034"
+ },
+ {
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":InstallModules",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":IncModules",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":TestFiles",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ExecFiles",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":ShareFiles",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":MainModule",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":AllFiles",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : ":NoFiles",
- "version" : "5.031"
+ "version" : "5.033"
},
{
"class" : "Dist::Zilla::Plugin::FinderCode",
"name" : "@Author::RWSTAUNER/MetaProvides::Package/AUTOVIV/:InstallModulesPM",
- "version" : "5.031"
+ "version" : "5.033"
}
],
"zilla" : {
@@ -876,7 +897,7 @@
"config" : {
"is_trial" : "0"
},
- "version" : "5.031"
+ "version" : "5.033"
}
},
"x_authority" : "cpan:RWSTAUNER",
@@ -11,6 +11,7 @@ build_requires:
IO::Handle: '0'
IPC::Open3: '0'
Path::Class: '0.04'
+ Test::File::ShareDir::Dist: '0'
Test::More: '0.88'
lib: '0'
perl: '5.006'
@@ -24,7 +25,7 @@ configure_requires:
strict: '0'
warnings: '0'
dynamic_config: 1
-generated_by: 'Dist::Zilla version 5.031, CPAN::Meta::Converter version 2.143240'
+generated_by: 'Dist::Zilla version 5.033, CPAN::Meta::Converter version 2.150001'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -49,7 +50,7 @@ no_index:
provides:
Text::VimColor:
file: lib/Text/VimColor.pm
- version: '0.25'
+ version: '0.26'
recommends:
Term::ANSIColor: '3'
requires:
@@ -71,7 +72,7 @@ resources:
bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=Text-VimColor
homepage: https://github.com/rwstauner/Text-VimColor
repository: https://github.com/rwstauner/Text-VimColor.git
-version: '0.25'
+version: '0.26'
x_Dist_Zilla:
perl:
version: '5.020000'
@@ -86,11 +87,11 @@ x_Dist_Zilla:
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::RWSTAUNER/Git::NextVersion'
- version: '2.029'
+ version: '2.030'
-
class: Dist::Zilla::Plugin::GenerateFile
name: '@Author::RWSTAUNER/GenerateManifestSkip'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::GatherDir
config:
@@ -105,31 +106,31 @@ x_Dist_Zilla:
prune_directory: []
root: .
name: '@Author::RWSTAUNER/GatherDir'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::PruneCruft
name: '@Author::RWSTAUNER/PruneCruft'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::ManifestSkip
name: '@Author::RWSTAUNER/ManifestSkip'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::PruneFiles
name: '@Author::RWSTAUNER/PruneDevelCoverDatabase'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::PruneFiles
name: '@Author::RWSTAUNER/PruneCodeStatCollection'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::PruneFiles
name: '@Author::RWSTAUNER/PruneTags'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::PkgVersion
name: '@Author::RWSTAUNER/PkgVersion'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Authority
name: '@Author::RWSTAUNER/Authority'
@@ -137,7 +138,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::NextRelease
name: '@Author::RWSTAUNER/NextRelease'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Git::Describe
name: '@Author::RWSTAUNER/Git::Describe'
@@ -257,11 +258,11 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::License
name: '@Author::RWSTAUNER/License'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Readme
name: '@Author::RWSTAUNER/Readme'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::ReadmeAnyFromPod
name: '@Author::RWSTAUNER/ReadmeAnyFromPod'
@@ -290,11 +291,11 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::AutoPrereqs
name: '@Author::RWSTAUNER/AutoPrereqs'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::MetaNoIndex
name: '@Author::RWSTAUNER/MetaNoIndex'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::MetaProvides::Package
config:
@@ -303,7 +304,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::FinderCode
name: '@Author::RWSTAUNER/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
- version: '5.031'
+ version: '5.033'
Dist::Zilla::Role::MetaProvider::Provider:
inherit_missing: '1'
inherit_version: '1'
@@ -317,69 +318,82 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::MetaConfig
name: '@Author::RWSTAUNER/MetaConfig'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::MetaYAML
name: '@Author::RWSTAUNER/MetaYAML'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::MetaJSON
name: '@Author::RWSTAUNER/MetaJSON'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::ExecDir
name: '@Author::RWSTAUNER/ExecDir'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::ShareDir
name: '@Author::RWSTAUNER/ShareDir'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::MakeMaker
config:
Dist::Zilla::Role::TestRunner:
default_jobs: 1
name: '@Author::RWSTAUNER/MakeMaker'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Test::ReportPrereqs
name: '@Author::RWSTAUNER/Test::ReportPrereqs'
version: '0.020'
-
- class: Dist::Zilla::Plugin::Test::ChangesHasContent
- name: '@Author::RWSTAUNER/Test::ChangesHasContent'
- version: '0.007'
- -
class: Dist::Zilla::Plugin::Test::PodSpelling
name: '@Author::RWSTAUNER/Test::PodSpelling'
version: '2.006008'
-
- class: Dist::Zilla::Plugin::Test::NoTabs
+ class: Dist::Zilla::Plugin::Test::EOL
config:
- Dist::Zilla::Plugin::Test::NoTabs:
- filename: xt/author/no-tabs.t
+ Dist::Zilla::Plugin::Test::EOL:
+ filename: xt/author/eol.t
finder:
- ':InstallModules'
- ':ExecFiles'
- ':TestFiles'
- name: '@Author::RWSTAUNER/@TestingMania/Test::NoTabs'
- version: '0.13'
+ trailing_whitespace: '1'
+ name: '@Author::RWSTAUNER/@TestingMania/Test::EOL'
+ version: '0.17'
+ -
+ class: Dist::Zilla::Plugin::MetaTests
+ name: '@Author::RWSTAUNER/@TestingMania/MetaTests'
+ version: '5.033'
+ -
+ class: Dist::Zilla::Plugin::Test::Synopsis
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Synopsis'
+ version: '2.000006'
+ -
+ class: Dist::Zilla::Plugin::Test::MinimumVersion
+ name: '@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion'
+ version: '2.000006'
-
class: Dist::Zilla::Plugin::PodSyntaxTests
name: '@Author::RWSTAUNER/@TestingMania/PodSyntaxTests'
- version: '5.031'
+ version: '5.033'
-
- class: Dist::Zilla::Plugin::Test::UnusedVars
- name: '@Author::RWSTAUNER/@TestingMania/Test::UnusedVars'
- version: '2.000007'
+ class: Dist::Zilla::Plugin::Test::Perl::Critic
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Perl::Critic'
+ version: '3.000'
-
- class: Dist::Zilla::Plugin::PodCoverageTests
- name: '@Author::RWSTAUNER/@TestingMania/PodCoverageTests'
- version: '5.031'
+ class: Dist::Zilla::Plugin::MojibakeTests
+ name: '@Author::RWSTAUNER/@TestingMania/MojibakeTests'
+ version: '0.7'
-
- class: Dist::Zilla::Plugin::Test::Pod::LinkCheck
- name: '@Author::RWSTAUNER/@TestingMania/Test::Pod::LinkCheck'
- version: '1.001'
+ class: Dist::Zilla::Plugin::Test::Kwalitee
+ config:
+ Dist::Zilla::Plugin::Test::Kwalitee:
+ filename: xt/release/kwalitee.t
+ skiptest: []
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Kwalitee'
+ version: '2.11'
-
class: Dist::Zilla::Plugin::Test::Compile
config:
@@ -398,69 +412,52 @@ x_Dist_Zilla:
name: '@Author::RWSTAUNER/@TestingMania/Test::Compile'
version: '2.051'
-
- class: Dist::Zilla::Plugin::Test::EOL
- config:
- Dist::Zilla::Plugin::Test::EOL:
- filename: xt/author/eol.t
- finder:
- - ':InstallModules'
- - ':ExecFiles'
- - ':TestFiles'
- trailing_whitespace: '1'
- name: '@Author::RWSTAUNER/@TestingMania/Test::EOL'
- version: '0.17'
- -
- class: Dist::Zilla::Plugin::Test::Synopsis
- name: '@Author::RWSTAUNER/@TestingMania/Test::Synopsis'
- version: '2.000006'
+ class: Dist::Zilla::Plugin::Test::DistManifest
+ name: '@Author::RWSTAUNER/@TestingMania/Test::DistManifest'
+ version: '2.000005'
-
- class: Dist::Zilla::Plugin::Test::CPAN::Changes
- name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes'
- version: '0.009'
+ class: Dist::Zilla::Plugin::Test::Version
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Version'
+ version: '0.003001'
-
class: Dist::Zilla::Plugin::Test::Portability
name: '@Author::RWSTAUNER/@TestingMania/Test::Portability'
version: '2.000006'
-
- class: Dist::Zilla::Plugin::Test::Kwalitee
- config:
- Dist::Zilla::Plugin::Test::Kwalitee:
- filename: xt/release/kwalitee.t
- skiptest: []
- name: '@Author::RWSTAUNER/@TestingMania/Test::Kwalitee'
- version: '2.11'
- -
- class: Dist::Zilla::Plugin::Test::MinimumVersion
- name: '@Author::RWSTAUNER/@TestingMania/Test::MinimumVersion'
- version: '2.000006'
- -
- class: Dist::Zilla::Plugin::Test::Version
- name: '@Author::RWSTAUNER/@TestingMania/Test::Version'
- version: '0.003001'
+ class: Dist::Zilla::Plugin::PodCoverageTests
+ name: '@Author::RWSTAUNER/@TestingMania/PodCoverageTests'
+ version: '5.033'
-
- class: Dist::Zilla::Plugin::Test::Perl::Critic
- name: '@Author::RWSTAUNER/@TestingMania/Test::Perl::Critic'
- version: '3.000'
+ class: Dist::Zilla::Plugin::Test::CPAN::Changes
+ name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Changes'
+ version: '0.009'
-
- class: Dist::Zilla::Plugin::Test::DistManifest
- name: '@Author::RWSTAUNER/@TestingMania/Test::DistManifest'
- version: '2.000005'
+ class: Dist::Zilla::Plugin::Test::Pod::LinkCheck
+ name: '@Author::RWSTAUNER/@TestingMania/Test::Pod::LinkCheck'
+ version: '1.001'
-
class: Dist::Zilla::Plugin::Test::CPAN::Meta::JSON
name: '@Author::RWSTAUNER/@TestingMania/Test::CPAN::Meta::JSON'
version: '0.003'
-
- class: Dist::Zilla::Plugin::MetaTests
- name: '@Author::RWSTAUNER/@TestingMania/MetaTests'
- version: '5.031'
+ class: Dist::Zilla::Plugin::Test::UnusedVars
+ name: '@Author::RWSTAUNER/@TestingMania/Test::UnusedVars'
+ version: '2.000007'
-
- class: Dist::Zilla::Plugin::MojibakeTests
- name: '@Author::RWSTAUNER/@TestingMania/MojibakeTests'
- version: '0.7'
+ class: Dist::Zilla::Plugin::Test::NoTabs
+ config:
+ Dist::Zilla::Plugin::Test::NoTabs:
+ filename: xt/author/no-tabs.t
+ finder:
+ - ':InstallModules'
+ - ':ExecFiles'
+ - ':TestFiles'
+ name: '@Author::RWSTAUNER/@TestingMania/Test::NoTabs'
+ version: '0.13'
-
class: Dist::Zilla::Plugin::Manifest
name: '@Author::RWSTAUNER/Manifest'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::CheckExtraTests
name: '@Author::RWSTAUNER/CheckExtraTests'
@@ -480,7 +477,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::TestRelease
name: '@Author::RWSTAUNER/TestRelease'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Git::Check
config:
@@ -497,7 +494,7 @@ x_Dist_Zilla:
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::RWSTAUNER/@Git/Check'
- version: '2.029'
+ version: '2.030'
-
class: Dist::Zilla::Plugin::Git::Commit
config:
@@ -516,21 +513,21 @@ x_Dist_Zilla:
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::RWSTAUNER/@Git/Commit'
- version: '2.029'
+ version: '2.030'
-
class: Dist::Zilla::Plugin::Git::Tag
config:
Dist::Zilla::Plugin::Git::Tag:
branch: ~
signed: 0
- tag: v0.25
+ tag: v0.26
tag_format: v%v
tag_message: v%v
time_zone: local
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::RWSTAUNER/@Git/Tag'
- version: '2.029'
+ version: '2.030'
-
class: Dist::Zilla::Plugin::Git::Push
config:
@@ -541,15 +538,15 @@ x_Dist_Zilla:
Dist::Zilla::Role::Git::Repo:
repo_root: .
name: '@Author::RWSTAUNER/@Git/Push'
- version: '2.029'
+ version: '2.030'
-
class: Dist::Zilla::Plugin::ConfirmRelease
name: '@Author::RWSTAUNER/ConfirmRelease'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::UploadToCPAN
name: '@Author::RWSTAUNER/UploadToCPAN'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::InstallRelease
name: '@Author::RWSTAUNER/InstallRelease'
@@ -557,7 +554,7 @@ x_Dist_Zilla:
-
class: Dist::Zilla::Plugin::Encoding
name: BinaryFiles
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -565,7 +562,7 @@ x_Dist_Zilla:
phase: runtime
type: requires
name: Prereqs
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Prereqs
config:
@@ -573,7 +570,15 @@ x_Dist_Zilla:
phase: runtime
type: recommends
name: RuntimeRecommends
- version: '5.031'
+ version: '5.033'
+ -
+ class: Dist::Zilla::Plugin::Prereqs
+ config:
+ Dist::Zilla::Plugin::Prereqs:
+ phase: develop
+ type: requires
+ name: DevelopRequires
+ version: '5.033'
-
class: Dist::Zilla::Plugin::OSPrereqs
config:
@@ -589,7 +594,7 @@ x_Dist_Zilla:
- inc::VimCommand
- Win32::Console::ANSI
name: RemovePrereqs
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::GatherDir
config:
@@ -602,7 +607,7 @@ x_Dist_Zilla:
prune_directory: []
root: t/.vim
name: GatherTestDotVim
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::Run::AfterBuild
config:
@@ -614,46 +619,55 @@ x_Dist_Zilla:
name: Run::AfterBuild
version: '0.034'
-
+ class: Dist::Zilla::Plugin::Run::AfterRelease
+ config:
+ Dist::Zilla::Plugin::Run::Role::Runner:
+ fatal_errors: 1
+ run:
+ - "perl -0777 -p -i -e 's{^(# NAME\\n)}{[![Build Status](https://travis-ci.org/rwstauner/Text-VimColor.svg?branch=master)](https://travis-ci.org/rwstauner/Text-VimColor)\\n[![Coverage Status](https://coveralls.io/repos/rwstauner/Text-VimColor/badge.svg?branch=master)](https://coveralls.io/r/rwstauner/Text-VimColor?branch=master)\\n\\n$1}s' README.mkdn"
+ name: Run::AfterRelease
+ version: '0.034'
+ -
class: Dist::Zilla::Plugin::FinderCode
name: ':InstallModules'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':IncModules'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':TestFiles'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ExecFiles'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':ShareFiles'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':MainModule'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':AllFiles'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: ':NoFiles'
- version: '5.031'
+ version: '5.033'
-
class: Dist::Zilla::Plugin::FinderCode
name: '@Author::RWSTAUNER/MetaProvides::Package/AUTOVIV/:InstallModulesPM'
- version: '5.031'
+ version: '5.033'
zilla:
class: Dist::Zilla::Dist::Builder
config:
is_trial: '0'
- version: '5.031'
+ version: '5.033'
x_authority: cpan:RWSTAUNER
x_contributors:
- 'Geoff Richards <geoffr@cpan.org>'
@@ -6,8 +6,7 @@
# 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 file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.031.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.033.
use strict;
use warnings;
@@ -64,10 +63,11 @@ my %WriteMakefileArgs = (
"IO::Handle" => 0,
"IPC::Open3" => 0,
"Path::Class" => "0.04",
+ "Test::File::ShareDir::Dist" => 0,
"Test::More" => "0.88",
"lib" => 0
},
- "VERSION" => "0.25",
+ "VERSION" => "0.26",
"test" => {
"TESTS" => "t/*.t"
}
@@ -90,6 +90,7 @@ my %FallbackPrereqs = (
"Path::Class" => "0.04",
"Symbol" => 0,
"Term::ANSIColor" => "1.03",
+ "Test::File::ShareDir::Dist" => 0,
"Test::More" => "0.88",
"constant" => 0,
"lib" => 0,
@@ -118,5 +119,3 @@ package
MY;
use File::ShareDir::Install qw(postamble);
}
-
-
@@ -1,7 +1,7 @@
This archive contains the distribution Text-VimColor,
-version 0.25:
+version 0.26:
Syntax highlight text using Vim
@@ -13,5 +13,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.031.
+This README file was generated by Dist::Zilla::Plugin::Readme v5.033.
@@ -168,7 +168,7 @@ text-vimcolor - Use Text:VimColor from the command line
=head1 VERSION
-version 0.25
+version 0.26
=head1 SYNOPSIS
@@ -9,8 +9,6 @@ copyright_year = 2011
[@Author::RWSTAUNER]
; declare prereqs used by inc/ even though they're currently all core modules
AutoPrereqs.configure_finder = :IncModules
-; current default, but very important. the lib/auto tree only exists to enable `prove -lv`
-GatherDir.follow_symlinks = 0
GatherDir.exclude_match[0] = corpus/profile-vim/results
Prepender.skip[0] = corpus/simple_test.pl
@@ -26,6 +24,10 @@ Term::ANSIColor = 1.03
; bright colors added in 3.0
Term::ANSIColor = 3
+[Prereqs / DevelopRequires]
+; optional test requirements
+XML::Parser = 0
+
[OSPrereqs / MSWin32]
Win32::Console::ANSI = 0
@@ -47,5 +49,9 @@ run = perl -i -pe '/^(use ExtUtils::MakeMaker)/ and print qq/use inc::VimCommand
; fix generated Copyright statements to include GEOFFR's work
run = perl -i -pe '$geoffr = q[2002-2006 by Geoff Richards.]; /\Q$geoffr\E/ and $already=1; $already or s/^(#?)(\s*This software is copyright \(c\))( \d+ by Randy Stauner\.)/$1$2 $geoffr\n$1\n$1$2$3/' %d/lib/Text/VimColor.pm %d/bin/text-vimcolor %d/README* %d/LICENSE README*
+; FIXME: Use a plugin for this
+[Run::AfterRelease]
+run = perl -0777 -p -i -e 's{^(# NAME\n)}{[![Build Status](https://travis-ci.org/rwstauner/Text-VimColor.svg?branch=master)](https://travis-ci.org/rwstauner/Text-VimColor)\n[![Coverage Status](https://coveralls.io/repos/rwstauner/Text-VimColor/badge.svg?branch=master)](https://coveralls.io/r/rwstauner/Text-VimColor?branch=master)\n\n$1}s' README.mkdn
+
[%PodWeaver]
-StopWords.include = ansi html xml DOCTYPE XHTML XSL XSLT XSL-FO pdf inline stylesheet filetype unencoded
@@ -13,11 +13,11 @@ use warnings;
use strict;
package Text::VimColor;
-# git description: v0.24-8-g0f6a6ca
+# git description: v0.25-8-g77558c1
our $AUTHORITY = 'cpan:RWSTAUNER';
# ABSTRACT: Syntax highlight text using Vim
-$Text::VimColor::VERSION = '0.25';
+$Text::VimColor::VERSION = '0.26';
use constant HAVE_ENCODING => ($] >= 5.008001); # PerlIO::encoding & utf8::is_utf8
use IO::File;
@@ -573,7 +573,7 @@ Text::VimColor - Syntax highlight text using Vim
=head1 VERSION
-version 0.25
+version 0.26
=head1 SYNOPSIS
@@ -24,7 +24,8 @@ do { my $x = {
'Test::Pod::Coverage' => '1.08',
'Test::Spelling' => '0.12',
'Test::Synopsis' => '0',
- 'Test::Version' => '1'
+ 'Test::Version' => '1',
+ 'XML::Parser' => '0'
}
},
'runtime' => {
@@ -60,6 +61,7 @@ do { my $x = {
'IO::Handle' => '0',
'IPC::Open3' => '0',
'Path::Class' => '0.04',
+ 'Test::File::ShareDir::Dist' => '0',
'Test::More' => '0.88',
'lib' => '0',
'perl' => '5.006'
@@ -6,19 +6,25 @@ use Test::More;
use lib 't/lib';
use TVC_Test;
-my $linked = Text::VimColor->new(
- string => "()",
- filetype => 'vim',
-)->marked;
-
-my $unlinked = Text::VimColor->new(
- all_syntax_groups => 1,
- string => "()",
- filetype => 'vim',
-)->marked;
-
-is($linked->[0][0], 'Special', 'The Delimiter group is linked to Special by default');
-is($unlinked->[0][0], 'Delimiter', 'The Delimiter group is used if it has its own coloring');
+sub marked {
+ return Text::VimColor->new(
+ string => '#include <stdio.h>',
+ filetype => 'c',
+ @_
+ )->marked;
+}
+
+sub first_syntax_group {
+ marked(@_)->[0][0];
+}
+
+is first_syntax_group(),
+ 'PreProc',
+ 'linked to default group';
+
+is first_syntax_group(all_syntax_groups => 1),
+ 'Include',
+ 'more specific group is used with all_syntax_groups enabled';
is ansi_color('String'), ansi_color('Constant'),
'String is linked to Constant';
@@ -3,23 +3,24 @@
use strict;
use warnings;
use Test::More;
+use lib 't/lib';
+use TVC_Test;
use Path::Class;
- use Config;
- my $thisperl = $Config{perlpath};
- if ($^O ne 'VMS'){
- $thisperl .= $Config{_exe}
- unless $thisperl =~ m/$Config{_exe}$/i;
- }
-
my $script = file(bin => 'text-vimcolor')->stringify;
-like qx{$thisperl -Ilib $script --format xml t/data/hello.c},
+sub run {
+ perl(qq{$script @_});
+}
+
+{
+ like run(qw{--format xml t/data/hello.c}),
qr{<syn:PreProc>\#include </syn:PreProc><syn:Constant><stdio\.h></syn:Constant>},
"$script output html ok";
-like qx{$thisperl -Ilib $script --format xml --all-syntax-groups t/data/hello.c},
+ like run(qw{--format xml --all-syntax-groups t/data/hello.c}),
qr{<syn:Include>\#include </syn:Include><syn:String><stdio\.h></syn:String>},
"$script output html ok";
+}
done_testing;
@@ -0,0 +1,12 @@
+use strict;
+use warnings;
+
+package # no_index
+ TVC_Share;
+
+# Use a separate module to initiate the test share dir
+# so that we can pass a simple -MTVC_Share to perl for subprocesses.
+
+use Test::File::ShareDir::Dist { 'Text-VimColor' => 'share/' };
+
+1;
@@ -6,6 +6,11 @@ package # hide from indexer
TVC_Test;
use Path::Class 0.04 qw( file dir ); # mkpath
+use TVC_Share;
+
+sub perl {
+ qx{$^X -Ilib -It/lib -MTVC_Share @_};
+}
# don't allow user-customized syntax files to throw off test results
$ENV{HOME} = dir('t')->absolute;
@@ -33,6 +38,7 @@ our @EXPORT = qw(
ansi_color
file
dir
+ perl
slurp_data
syntax_type_exists
tvc
@@ -3,11 +3,13 @@
use strict;
use warnings;
use Test::More;
-use Text::VimColor;
+use lib 't/lib';
+use TVC_Test;
my %files =
map { ($_ => Text::VimColor->dist_file($_)) }
qw(
+ define_all.vim
light.css
light.xsl
mark.vim
@@ -1,7 +1,8 @@
use strict;
use warnings;
use Test::More;
-use Text::VimColor;
+use lib 't/lib';
+use TVC_Test;
# windows prints everything when STDIN is tied, don't know why
plan skip_all => "Skipped on windows"
@@ -20,6 +20,7 @@ my @files = (
't/encoding.t',
't/html.t',
't/input_filename.t',
+ 't/lib/TVC_Share.pm',
't/lib/TVC_Test.pm',
't/new.t',
't/override-options.t',
@@ -20,6 +20,7 @@ my @files = (
't/encoding.t',
't/html.t',
't/input_filename.t',
+ 't/lib/TVC_Share.pm',
't/lib/TVC_Test.pm',
't/new.t',
't/override-options.t',
@@ -1,41 +0,0 @@
-#!perl
-
-use Test::More tests => 2;
-
-note 'Checking Changes';
-my $changes_file = 'Changes';
-my $newver = '0.25';
-my $trial_token = '-TRIAL';
-
-SKIP: {
- ok(-e $changes_file, "$changes_file file exists")
- or skip 'Changes is missing', 1;
-
- ok(_get_changes($newver), "$changes_file has content for $newver");
-}
-
-done_testing;
-
-# _get_changes copied and adapted from Dist::Zilla::Plugin::Git::Commit
-# by Jerome Quelin
-sub _get_changes
-{
- my $newver = shift;
-
- # parse changelog to find commit message
- open(my $fh, '<', $changes_file) or die "cannot open $changes_file: $!";
- my $changelog = join('', <$fh>);
- close $fh;
-
- my @content =
- grep { /^$newver(?:$trial_token)?(?:\s+|$)/ ... /^\S/ } # from newver to un-indented
- split /\n/, $changelog;
- shift @content; # drop the version line
-
- # drop unindented last line and trailing blank lines
- pop @content while ( @content && $content[-1] =~ /^(?:\S|\s*$)/ );
-
- # return number of non-blank lines
- return scalar @content;
-}
-