Raku Land

RakudoPrereq

github:raku-community-modules

Build Status

NAME

RakudoPrereq - Specify minimum required versions of Rakudo

SYNOPSIS

    use RakudoPrereq v2017.04; # specify minimum Rakudo version 2017.04

    # specify minimum Rakudo version 2017.04, with custom message
    # when user's Rakudo is too old
    use RakudoPrereq v2017.04, 'Your Raku is way too old, bruh!';

    # specify minimum Rakudo version 2017.04, use default message and die
    # when non-Rakudo compiler is used
    use RakudoPrereq v2017.04, '', 'rakudo-only';

    # specify minimum Rakudo version 2017.04, use custom message and die
    # when non-Rakudo compiler is used
    use RakudoPrereq v2017.04, 'your compiler is no good', 'rakudo-only';

    # specify minimum Rakudo version 2017.04, use default message and die
    # when non-Rakudo compiler is used and don't print location of `use`
    use RakudoPrereq v2017.04, '', 'rakudo-only no-where';

DESCRIPTION

Need to black-list non-Rakudo compilers or some Rakudo versions that implement the same language version? This module is for you!

If the program is run on a Rakudo that's too old, the module will print a message and exit with status 1

USAGE

The entire API is via the arguments specified on the use RakudoPrereq line.


REPOSITORY

Fork this module on GitHub: https://github.com/raku-community-modules/RakudoPrereq

BUGS

To report bugs or request features, please use https://github.com/raku-community-modules/RakudoPrereq/issues

AUTHOR

Zoffix Znet (http://perl6.party/)

LICENSE

You can use and distribute this module under the terms of the The Artistic License 2.0. See the LICENSE file included in this distribution for complete details.

The META6.json file of this distribution may be distributed and modified without restrictions or attribution.