App-Slackeria

 view release on metacpan or  search on metacpan

lib/App/Slackeria/Plugin/GitHub.pm  view on Meta::CPAN


	if ( $tags->{error} ) {
		die( $tags->{error} );
	}

	if ( not keys %{$tags} ) {
		return {
			data => q{},
			href => $href,
		};
	}

	return {
		data => ( sort { versioncmp( $a, $b ) } keys %{$tags} )[-1],
		href => $href,
	};
}

1;

__END__

=head1 NAME

App::Slackeria::Plugin::GitHub - Check project on github.com

=head1 SYNOPSIS

In F<slackeria/config>

    [GitHub]
    owner = your github username

=head1 VERSION

version 0.12

=head1 DESCRIPTION

This plugin queries a project and its version on B<github.com>

=head1 CONFIGURATION

=over

=item href

Link to point to.  Defaults to "http://github.com/%s/%s", where the first %s
is replaced by B<owner>, and the second by B<name>

=item owner

Repository owner.  Mandatory

=back

=head1 DEPENDENCIES

Requires Net::GitHub(3pm) and Sort::Versions(3pm).

=head1 BUGS AND LIMITATIONS

None known.

=head1 SEE ALSO

slackeria(1)

=head1 AUTHOR

Copyright (C) 2011 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt>

=head1 LICENSE

  0. You just DO WHAT THE FUCK YOU WANT TO.



( run in 2.744 seconds using v1.01-cache-2.11-cpan-d8267643d1d )