Emit Optional::Dependencies error messages in a way simplifying c/p for cpanm
authorPeter Rabbitson <ribasushi@cpan.org>
Sat, 3 Jan 2015 16:30:14 +0000 (17:30 +0100)
committerPeter Rabbitson <ribasushi@cpan.org>
Sat, 3 Jan 2015 18:58:56 +0000 (19:58 +0100)
commit34d2deae20e4426d7953c062a967ed096d7116f8
tree7ba20cd715b62898e861a7fd61d47ddb4193156b
parentc052f3dd7e8d15c02fbe02f672c57f0c532830ea
Emit Optional::Dependencies error messages in a way simplifying c/p for cpanm

The contrived no-space-containing output is sadly necessary - cpanm only
considers an optspec if the module name is directly followed by ~

rabbit@Ahasver:~$ cpanm "SQL::Translator~ >= 0.11018"
SQL::Translator is up to date. (0.11020)
rabbit@Ahasver:~$ cpanm "SQL::Translator~ >=0.11018"
SQL::Translator is up to date. (0.11020)
rabbit@Ahasver:~$ cpanm "SQL::Translator ~ >= 0.11018"
--> Working on SQL::Translator
^C
Changes
lib/DBIx/Class/Optional/Dependencies.pm
xt/optional_deps.t