Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 11 commits
  • 6 files changed
  • 2 commit comments
  • 2 contributors
View
2  index.pl
@@ -8,4 +8,4 @@
CPANdeps::go();
-# print "Content-type: text/html\n\n<html><body><h1>Temporarily off-line</h1><p>Since being linked from search.cpan.org there has been too much traffic for my poor old server. I will be transferring this service to a new server very soon. In the mean time, why not take a look at <a href=http://cpantest.grango.org/>the CPAN-testers' wiki</a> which has HOWTOs on becoming a tester, and some very useful <a href=http://cpantest.grango.org/wiki/CPANAuthorNotes>notes for module authors</a>.";
+# print "Content-type: text/html; charset=UTF-8\n\n<html><body><h1>Temporarily off-line</h1><p>Since being linked from search.cpan.org there has been too much traffic for my poor old server. I will be transferring this service to a new server very soon. In the mean time, why not take a look at <a href=http://cpantest.grango.org/>the CPAN-testers' wiki</a> which has HOWTOs on becoming a tester, and some very useful <a href="http://cpantest.grango.org/wiki/CPANAuthorNotes">notes for module authors</a>.</p></body></html>";
View
8 lib/CPANdeps.pm
@@ -90,7 +90,7 @@ sub depended_on_by {
<h1>The CPAN Reverse Dependency Lister</h1>
<p>
-Enter a module or a distribution in the GET parameters and we will return the
+Enter a module or a distribution in the GET parameters and we will return the
CPAN distributions that depend on them. You can also fill on of these forms:
</p>
@@ -99,7 +99,7 @@ CPAN distributions that depend on them. You can also fill on of these forms:
<form method="get" action="">
<p>
-<b>Distribution:</b> <input name="dist" />
+<label for="dist">Distribution:</label> <input id="dist" name="dist" />
</p>
<p>
@@ -113,7 +113,7 @@ CPAN distributions that depend on them. You can also fill on of these forms:
<form method="get" action="">
<p>
-<b>Module:</b> <input name="module" />
+<label for="module">Module:</label> <input id="module" name="module" />
</p>
<p>
@@ -493,7 +493,7 @@ sub read_meta {
print META $meta;
close(META);
$parsed_meta = eval { YAML::Load($meta); };
- } elsif((my $res = $ua->request(HTTP::Request->new(GET => $METAjsonURL)))->is_success()) {
+ } elsif(($res = $ua->request(HTTP::Request->new(GET => $METAjsonURL)))->is_success()) {
warn("Fetching JSON\n");
$meta = $res->content();
open(META, ">$METAjsonfile") || die("Can't write $METAjsonfile\n");
View
1  robots.txt
@@ -1,2 +1,3 @@
User-agent: *
Disallow: /
+# there must be a line after the Disallow. Stupid file format
View
24 static/style.css
@@ -10,10 +10,10 @@ h1, p{
line-height:22px;
}
-a, img {
- border:0;
- color:#f00;
- text-decoration:none;
+a, img {
+ border:0;
+ color:#f00;
+ text-decoration:none;
}
h2 {
font-size:100%;
@@ -63,7 +63,11 @@ ul.depended_on a {
/* RESULTS TABLE */
fieldset.results {
- margin-bottom:5px;
+ margin-bottom:5px;
+}
+
+label {
+ font-weight:bold;
}
table.results {
@@ -80,7 +84,7 @@ table.results {
table.results a {
color:#000;
}
-
+
table.results tr.results_chances {
height:30px;
background-color:#f5f5f5;
@@ -98,7 +102,7 @@ table.results tr.key {
}
/* SEARCH FORM */
-fieldset.search {
+fieldset.search {
margin:25px 0 30px 0;
}
@@ -107,11 +111,11 @@ form.search {
padding: 0px;
margin:10px 0 0px 0;
}
- form.search table, tbody {
+ form.search table, tbody {
margin:0px auto;
}
- form.search table {
+ form.search table {
margin:0px auto;
}
@@ -181,4 +185,4 @@ table.donation {
}
#adverts li a {
color:#111;
- }
+ }
View
88 templates/cpandeps.tt2
@@ -16,7 +16,6 @@
})();
/* ]]> */
</script>
-</head>
<!-- google analytics -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
@@ -28,6 +27,7 @@ var pageTracker = _gat._getTracker("UA-15765130-1");
pageTracker._trackPageview();
} catch(err) {}
</script>
+</head>
<body>
<script type='text/javascript'><!--
@@ -71,11 +71,11 @@ pageTracker._trackPageview();
<h1> CPAN Dependencies </h1>
<div id="menu">
- <a href="https://github.com/DrHyde/CPANdeps" class="first">Source code</a>
- <a href=https://github.com/DrHyde/CPANdeps/issues/new>Report a bug in this site</a>
+ <a href="https://github.com/DrHyde/CPANdeps" class="first">Source code</a>
+ <a href="https://github.com/DrHyde/CPANdeps/issues/new">Report a bug in this site</a>
<a href="/static/credits.html">Credits</a>
- <a href=depended-on-by.pl>Reverse lookup</a>
- <a href=static/links.html class="last">Links</a>
+ <a href="depended-on-by.pl">Reverse lookup</a>
+ <a href="static/links.html" class="last">Links</a>
</div>
<p>Given a <strong>module name</strong>, this service will show you
@@ -88,31 +88,31 @@ pageTracker._trackPageview();
<fieldset class="search">
<legend>Search</legend>
-<form class="search" method=get action=.>
+<form class="search" method="get" action=".">
<table>
<tr>
- <th align=right>Module</th>
- <td><input type=text name=module value="[% module | html %]"></td>
- <th align=right>Perl</th>
- <td><select name=perl>
+ <th align="right"><label for="module">Module</label></th>
+ <td><input type="text" id="module" name="module" value="[% module | html %]" /></td>
+ <th align="right"><label for="perl">Perl</label></th>
+ <td><select id="perl" name="perl">
[% FOREACH thisperl = perls %]
- <option value="[% thisperl %]" [% IF thisperl == perl %] SELECTED [% END %]>[% thisperl %]
+ <option value="[% thisperl %]" [% IF thisperl == perl %] selected="selected" [% END %]>[% thisperl %]
[% END %]
</select></td>
- <th align=right>OS</th>
- <td><select name=os>
+ <th align="right"><label for="os">OS</label></th>
+ <td><select id="os" name="os">
[% FOREACH thisos = oses %]
- <option value="[% thisos %]" [% IF thisos == os %] SELECTED [% END %]>[% thisos %]
+ <option value="[% thisos %]" [% IF thisos == os %] selected="selected" [% END %]>[% thisos %]
[% END %]
</select></td>
</tr>
<tr>
- <td colspan=6>
- <input type=checkbox name=pureperl [% IF pureperl %] CHECKED [% END %]><span title="warn about modules which have a C component, ie those that aren't 'pure perl'">purity warnings</span><a style='color:#f00' href=static/purity.html>(?)</a>
- <input type=checkbox name=devperls [% IF devperls %] CHECKED [% END %]>Include dev builds of perl?
+ <td colspan="6">
+ <input type="checkbox" id="pureperl" name="pureperl" [% IF pureperl %] checked="checked" [% END %]/><label for="pureperl" title="warn about modules which have a C component, ie those that aren't 'pure perl'">purity warnings<a style='color:#f00' href="static/purity.html">(?)</a></label>
+ <input type="checkbox" id="devperls" name="devperls" [% IF devperls %] checked="checked" [% END %]/><label for="devperls">Include dev builds of perl?</label>
</td>
</tr>
- <tr><th colspan=6 align=right><input type=submit></th></tr>
+ <tr><th colspan="6" align="right"><input type="submit" /></th></tr>
</table>
</form>
</fieldset>
@@ -154,12 +154,12 @@ pageTracker._trackPageview();
[% END %]
[% END %]
[% IF modules.size %]
-
-<!-- CHANCES OF ALL TEST PASSING -->
+
+<!-- CHANCES OF ALL TEST PASSING -->
<tr> &nbsp; </tr>
<tr class="results_chances">
<th colspan="3" valign="bottom" align="center">Chance of all tests passing</th>
-
+
<td colspan="1" ><img src="static/green.png" height="16" width="[% successpc * 2 %]"><img src="static/red.png" height="16" width="[% 200 - successpc * 2 %]">
</td>
<td colspan="4">
@@ -169,13 +169,13 @@ pageTracker._trackPageview();
[% successpc.sprintf("%.1f") %]% (to 1dp)
[% ELSE %]
[% successpc.int %]%
- [% END %] <small>(<a style='color:#f00' href=static/overall-chance.html>note</a> this doesn't mean much)</small>
+ [% END %] <small>(<a style='color:#f00' href="static/overall-chance.html">note</a> this doesn't mean much)</small>
</td>
</tr>
[% ELSE %]
<tr>
<th>No results.</th>
- <td colspan=6>make sure you enter a valid module name</td>
+ <td colspan="6">make sure you enter a valid module name</td>
</tr>
[% END %]
<tr>
@@ -184,8 +184,8 @@ pageTracker._trackPageview();
</tr>
<tr class="key">
- <td colspan="8">
- Key :
+ <td colspan="8">
+ Key :
<img src="static/search.png" /> = Search
<img src="static/bug.png" /> = Bug reports
<img src="static/tick.png" /> = Test results
@@ -205,15 +205,15 @@ pageTracker._trackPageview();
<p>It relies on modules having META.yml or META.json files so it can work
out their dependencies, and is <strong>case-sensitive</strong>.
The perl version number is used to filter test results and also to
- <a href=/?module=XML%3A%3AFeed&perl=5.8.8>determine what's a core
+ <a href="/?module=XML%3A%3AFeed&amp;perl=5.8.8">determine what's a core
module</a> and what's not - some core modules
also exist separately on the CPAN, but we don't bother looking at
their dependencies. If you choose a version like X.Y as opposed to
X.Y.Z, then you'll get test results for all X.Y.* versions, and we
- <a href=/?module=XML%3A%3AFeed&perl=5.8>assume X.Y.<strong>0</strong>
+ <a href="/?module=XML%3A%3AFeed&amp;perl=5.8">assume X.Y.<strong>0</strong>
for figuring out what's in core</a>. If you
choose 'any version', then you get all test results and we
- <a href=/?module=XML%3A%3AFeed>divine
+ <a href="/?module=XML%3A%3AFeed">divine
core modules from perl <strong>5.005</strong></a>. Test results are
cached for performance and may be up to three days out of date.
Modules can depend
@@ -222,34 +222,34 @@ pageTracker._trackPageview();
<div id="footer">
<table class="donation">
- <TR>
- <TD WIDTH="100" ALIGN="CENTER">
+ <tr>
+ <td width="100" align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_xclick">
- <input type="hidden" name="business" value="david@cantrell.org.uk">
- <input type="hidden" name="item_name" value="CPANdeps">
- <input type="hidden" name="no_note" value="1">
- <input type="hidden" name="currency_code" value="EUR">
- <input type="hidden" name="tax" value="0">
- <input type="image" src="/static/paypal_donate_button.png" border="0" name="submit" width="100" height="48" alt="Make a donation with PayPal">
+ <input type="hidden" name="cmd" value="_xclick" />
+ <input type="hidden" name="business" value="david@cantrell.org.uk" />
+ <input type="hidden" name="item_name" value="CPANdeps" />
+ <input type="hidden" name="no_note" value="1" />
+ <input type="hidden" name="currency_code" value="EUR" />
+ <input type="hidden" name="tax" value="0" />
+ <input type="image" src="/static/paypal_donate_button.png" border="0" name="submit" width="100" height="48" alt="Make a donation with PayPal" />
</form>
- </TD>
+ </td>
<td>
<a class="FlattrButton" style="display:none;" href="http://deps.cpantesters.org/"></a>
<noscript><a href="http://flattr.com/thing/423225/CPANdeps" target="_blank">
<img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
</td>
- </TR>
- </TABLE>
+ </tr>
+ </table>
If you think this service rocks
incredibly hard, then I like
- <a href=http://www.cantrell.org.uk/david/wishlist/>shiny beads</a>,
+ <a href="http://www.cantrell.org.uk/david/wishlist/">shiny beads</a>,
but wouldn't say no to a little something to help defray costs either.
- <br><br>Hosted on <a href=http://www.uk2.net/dedicated-servers/>dedicated servers</a> from UK2.net
+ <br/><br/>Hosted on <a href="http://www.uk2.net/dedicated-servers/">dedicated servers</a> from UK2.net
- <br clear="both">
- [% debug.replace("\n","<br>").replace(" ","&nbsp;"); %]
+ <br clear="both"/>
+ [% debug.replace("\n","<br/>").replace(" ","&nbsp;"); %]
</div>
</body>
View
40 templates/moduleresult.tt2
@@ -1,8 +1,8 @@
<tr class='required_by$[% FOREACH r = module.required_by %][% r %]$[%END %]' onMouseover="this.bgColor='#f5f5f5'"onMouseout="this.bgColor='#FFFFFF'">
- <td valign=top>
+ <td valign="top">
[% IF module.has_children %]<a id='toggler_[% depcounter %]' href="javascript:toggle('[% module.name %]','toggler_[% depcounter %]')">-</a>[% END %]
</td>
-<td valign=top ><nobr>
+<td valign="top"><nobr>
[% FOREACH x = [1 .. module.indent] %]&nbsp;&nbsp;&nbsp;&nbsp;[% END %]
[% IF module.name == reqmodule %]
<a title="[% module.name %]'s META.yml file" href=http://search.cpan.org/src/[% module.author %]/[% module.distname %]-[% module.version %]/META.yml>[% module.name %]</a>
@@ -10,14 +10,14 @@
<a title="[% module.name %]'s dependency tree" href="?module=[% module.name %];perl=[% perl %];os=[% os | uri %];pureperl=[% pureperl %]">[% module.name %]</a>
[% END %]
[% IF module.warning %]
- <br>
+ <br />
[% FOREACH x = [1 .. module.indent] %]&nbsp;&nbsp;&nbsp;&nbsp;[% END %]
<small>[% module.warning %]</small>
[% END %]
</nobr>
</td>
-<td valign="top" ><nobr>
- <a title="search.cpan.org" href=http://search.cpan.org/search?query=[% module.distname %]&mode=all><img src="static/search.png" width="20" height="20"></a>
+<td valign="top"><nobr>
+ <a title="search.cpan.org" href=http://search.cpan.org/search?query=[% module.distname %]&mode=all><img src="static/search.png" width="20" height="20" /></a>
[%- bugtracker = module.parsed_meta.resources.bugtracker.web ||
module.parsed_meta.resources.bugtracker
%]
@@ -28,34 +28,34 @@
http://rt.cpan.org/Public/Dist/Display.html?Name=[% module.distname %]
[%- END -%]
'><img src="static/bug.png" width="20" height="20"></a>
- <a title="Detailed test results" href=http://www.cpantesters.org/show/[% module.distname %].html><img src="static/tick.png" width="20" height="20"></a>
+ <a title="Detailed test results" href="http://www.cpantesters.org/show/[% module.distname %].html"><img src="static/tick.png" width="20" height="20" /></a>
[% TRY %]
[% reversefile = 'db/reverse/' _ module.distname _ '-' _ module.version _ '.dd' %]
[% USE File(reversefile) %]
- <a title="is depended on by ..." href=depended-on-by.pl?dist=[% module.distname %]-[% module.version %]><img src="static/depended.png" width="20" height="20"></a>
+ <a title="is depended on by ..." href="depended-on-by.pl?dist=[% module.distname %]-[% module.version %]"><img src="static/depended.png" width="20" height="20" /></a>
[% CATCH File %]
[% END %]
[% IF !module.textresult %]
- <a title="Results by OS and perl version" href=http://matrix.cpantesters.org/?dist=[% module.distname %]><img alt="Results by OS and perl version" border=0 height=16 width=16 src=static/graph.png></a>
+ <a title="Results by OS and perl version" href="http://matrix.cpantesters.org/?dist=[% module.distname %]"><img alt="Results by OS and perl version" border="0" height="16" width="16" src="static/graph.png" /></a>
[% END %]
</nobr>
</td>
- <td valign=top>
+ <td valign="top">
[% IF pureperl && module.ispureperl == 'N' %]
<nobr>Not a pure perl module
- <a style='color:#f00' title="What does this mean?" href=static/purity.html>(?)</a></nobr>
+ <a style='color:#f00' title="What does this mean?" href="static/purity.html">(?)</a></nobr>
[% IF !module.textresult;
total = module.pass + module.fail + module.na + module.unknown;
END %]
[% ELSIF module.textresult %]
- <img alt="[% module.textresult | html %]" src=static/grey.png height=16 width=200>
+ <img alt="[% module.textresult | html %]" src="static/grey.png" height="16" width="200" />
[% ELSE %]
[% total = module.pass + module.fail + module.na + module.unknown %]
[% IF total == 0 %]
- <img alt="No results" src=static/grey.png height=16 width=200>
+ <img alt="No results" src="static/grey.png" height="16" width="200" />
[% ELSE %]
- <img alt="[% module.pass %] PASS" src=static/green.png height=16 width=[% module.pass * 200 / total %]><img alt="[% module.unknown%] UNKNOWN" src=static/yellow.png height=16 width=[% module.unknown * 200 / total %]><img alt="[% module.fail %] FAIL" src=static/red.png height=16 width=[% module.fail * 200 / total %]><img alt="[% module.na %] NA" src=static/blue.png height=16 width=[% module.na * 200 / total %]>
+ <img alt="[% module.pass %] PASS" src="static/green.png" height="16" width="[% module.pass * 200 / total %]" /><img alt="[% module.unknown%] UNKNOWN" src="static/yellow.png" height="16" width="[% module.unknown * 200 / total %]" /><img alt="[% module.fail %] FAIL" src="static/red.png" height="16" width="[% module.fail * 200 / total %]" /><img alt="[% module.na %] NA" src="static/blue.png" height="16" width="[% module.na * 200 / total %]" />
[% END %]
[% END %]
</td>
@@ -65,17 +65,17 @@
[% module.textresult || 'No results' %]
</td>
[% ELSE %]
- <td align=center>
- <font color=green>[% module.pass %]</font>
+ <td align="center">
+ <font color="green">[% module.pass %]</font>
</td>
- <td align=center>
+ <td align="center">
<font color="#ff6000">[% module.unknown %]</font>
</td>
- <td align=center>
- <font color=red>[% module.fail %]</font>
+ <td align="center">
+ <font color="red">[% module.fail %]</font>
</td>
- <td align=center>
- <font color=blue>[% module.na %]</font>
+ <td align="center">
+ <font color="blue">[% module.na %]</font>
</td>
[% END %]
</nobr></small></td>

Showing you all comments on commits in this comparison.

@DrHyde

Can I take it from this that you have a local copy of CPANdeps running?

@dolmen
Owner

Absolutely not! This is completely untested!
I found this just with perl -c.

Something went wrong with that request. Please try again.