]> iEval git - www-offliberty.git/blobdiff - lib/WWW/Offliberty.pm
Bump version and update Changes
[www-offliberty.git] / lib / WWW / Offliberty.pm
index 1163d9ee21f1ddc3fb2808bd403031d63c9cc717..a5404b62893931281c055c68236493971fa99b80 100644 (file)
@@ -4,7 +4,7 @@ use 5.008009;
 use strict;
 use warnings;
 use parent qw/Exporter/;
-our $VERSION = '1.000001';
+our $VERSION = '1.000002';
 our @EXPORT_OK = qw/off/;
 
 use constant OFF_URL => 'http://offliberty.com/off02.php';
@@ -12,12 +12,12 @@ use constant OFF_URL => 'http://offliberty.com/off02.php';
 use HTML::TreeBuilder;
 use HTTP::Tiny;
 
-our $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => "http://offliberty.com/"});
+our $http = HTTP::Tiny->new(agent => "WWW-Offliberty/$VERSION ", default_headers => {Referer => 'http://offliberty.com/'});
 
 sub off{
        my ($url, @params) = @_;
        my $ret = $http->post_form(OFF_URL, {track => $url, @params});
-       die $ret->{reason} unless $ret->{success};
+       die $ret->{reason} unless $ret->{success}; ## no critic (RequireCarping)
        my $root = HTML::TreeBuilder->new_from_content($ret->{content});
        map { $_->attr('href') } $root->look_down(qw/_tag a class download/);
 }
This page took 0.027866 seconds and 4 git commands to generate.