copyright_holder = יובל קוג'מן (Yuval Kogman)
copyright_year = 2009
+[FileFinder::Filter / all_files_but_using_5.10_features]
+finder = :TestFiles
+skip = t/given_when.t
+skip = t/when.t
+
[@Author::ETHER]
installer = MakeMaker
Authority.authority = cpan:NUFFIN
; tests optionally require 5.010
-AutoPrereqs.skip[0] = ^perl$
-; tests for optional Sub::Name stuff
-AutoPrereqs.skip[1] = ^Sub::Name$
-AutoPrereqs.skip[2] = ^Sub::Util$
-; tests optionally require Capture::Tiny
-AutoPrereqs.skip[3] = ^Capture::Tiny$
--remove = Test::MinimumVersion ; t/given_when.t implies needing 5.010
+AutoPrereqs.skip = ^perl$
+MinimumPerl.test_finder = all_files_but_using_5.10_features
-remove = Test::CleanNamespaces
-[RemovePrereqs]
-remove = perl ; 5.010 prereq found in t/*when.t
-
-[Prereqs]
-perl = 5.006
-
-[Prereqs / TestRecommends]
-Capture::Tiny = 0.12 ; capture_stderr
+; TODO: make this an option of [Test::MinimumVersion]
+[Substitute]
+file = xt/release/minimum-version.t
+code = s/^(all_minimum_version_ok\([^)]+)(\s*\);)/$1, { skip => [qw(t\/given_when\.t t\/when\.t)] }$2/
-[Prereqs / TestSuggests]
-Sub::Util = 0
+[Prereqs::Soften]
+to_relationship = suggests
+copy_to = develop.requires
+module = Capture::Tiny ; capture_stderr
+module = Sub::Name
+module = Sub::Util