blib/lib/Comics/Plugin/GoneIntoRapture.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #! perl
2  
3 use strict;
4 use warnings;
5  
6 package Comics::Plugin::GoneIntoRapture;
7  
8 #### NOTE: Requires OK from Oath/Tumbler.
9  
10 use parent qw(Comics::Fetcher::Single);
11  
12 our $VERSION = "1.01";
13  
14 our $name = "Gone into Rapture";
15 our $url = "http://goneintorapture.com/";
16  
17 # Can't get it to work anymore.
18 our $disabled = 1;
19  
20 our $pattern =
21 qr{ <figure \s+ class="photo-hires-item"> \s+
22 <a .*? > \s*
23 <img \s+
24 src="(?<url>https?://.*?.media.tumblr.com/.*?/
25 (?<image>.+?\.\w+))" \s+
26 (?: alt|title )=
27 }sx;
28  
29 # Important: Return the package name!
30 __PACKAGE__;