Git::Wrapper::Plus::Support::Range - A record describing a range of supported versions
version 0.004011
my $range = Git::Wrapper::Plus::Support::Range->new( min => '1.5.0', # min_sha1 => ... # min_tag => ... max => '1.6.0', # max_sha1 => ... # max_tag => ... ); if ( $range->supports_version( $gwp->versions ) ) { print "Some feature is supported!" }
NOTE: Either min or max is mandatory, or both.
min
max
supports_version
Determines if the given range supports a version or not.
my $gg = Git::Wrapper::Plus->new( ... ); my $range = ...; if ( $range->supports_version( $gg->versions ) ) { $range is supported }
The minimum version this range supports
The maximum version this range supports
min_tag
The minimum tag that contained min_sha1. Annotative only, not used.
min_sha1
max_tag
The first tag that contained max_sha1. Annotative only, not used.
max_sha1
The sha1 this feature was added in. Annotative only, not used.
sha1
The sha1 this feature was removed in. Annotative only, not used.
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Git::Wrapper::Plus, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Wrapper::Plus
CPAN shell
perl -MCPAN -e shell install Git::Wrapper::Plus
For more information on module installation, please visit the detailed CPAN module installation guide.