Skip to content

Commit

Permalink
Replace CPAN ratings site with redirects to metacpan
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Feb 3, 2022
1 parent 899068c commit 9192e57
Show file tree
Hide file tree
Showing 33 changed files with 123 additions and 1,548 deletions.
7 changes: 2 additions & 5 deletions .modules
Expand Up @@ -4,16 +4,13 @@

local::lib

# for cpanratings
# for cpanratings, maybe something else ...
DBI
DBD::mysql
DBIx::Class
DBIx::Class::Helper::Row::ToJSON
XML::RSS
Template::Plugin::XML::RSS
DateTime::Format::ISO8601
Encode
String::Truncate
URI::Encode

# general
Template::Plugin::JSON
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM harbor.ntppool.org/perlorg/base-os:3.14.1
FROM harbor.ntppool.org/perlorg/base-os:3.15.0-1

# Note that this only builds dependencies and such, it doesn't
# actually include the site code etc itself. The site code
Expand Down
20 changes: 0 additions & 20 deletions apache/conf/sites/cpanratings.tmpl
Expand Up @@ -9,16 +9,6 @@
PerlHandler CPANRatings::Control::Basic->super
</Location>

<Location /logout>
SetHandler perl-script
PerlHandler CPANRatings::Control::Logout->super
</Location>

<Location /rate>
SetHandler perl-script
PerlHandler CPANRatings::Control::Rate->super
</Location>

<Location /search>
SetHandler perl-script
PerlHandler CPANRatings::Control::Search->super
Expand All @@ -34,21 +24,11 @@

[% END %]

<Location /csv/all_ratings.csv>
SetHandler perl-script
PerlHandler CPANRatings::Control::ShowAll->super
</Location>

<Location /index.rss>
SetHandler perl-script
PerlHandler CPANRatings::Control::RecentRSS->super
</Location>

<Location /api>
SetHandler perl-script
PerlHandler CPANRatings::Control::API->super
</Location>

<Location /static/>
SetHandler perl-script
PerlHandler PerlOrg::Control::Basic
Expand Down
11 changes: 4 additions & 7 deletions docs/cpanratings/about.html
Expand Up @@ -36,17 +36,14 @@ <h3>Contact</h3>
</script>
</div>

<p>
Report issues in
the <a href="https://github.com/perlorg/perlweb/issues?labels=cpanratings&amp;sort=created&amp;direction=desc&amp;state=open&amp;page=1">issue
tracker</a> or <a href="http://www.perl.org/siteinfo.html">email
us</a>.
</p>

<h3>Release Notes</h3>

<ul>

<li>February 2022: Redirect pages to MetaCPAN.</li>

<li>June 2018: Disable adding new reviews pending MetaCPAN features.</li>

<li>July 2012: HTML markup fixes.</li>

<li>June 2011: Run on Plack, better formatting, better javascript,
Expand Down
2 changes: 0 additions & 2 deletions docs/cpanratings/display/bare_list.html

This file was deleted.

21 changes: 0 additions & 21 deletions docs/cpanratings/display/list.html

This file was deleted.

50 changes: 0 additions & 50 deletions docs/cpanratings/display/short_review.html

This file was deleted.

7 changes: 0 additions & 7 deletions docs/cpanratings/display/show_list.html

This file was deleted.

22 changes: 0 additions & 22 deletions docs/cpanratings/index.html

This file was deleted.

10 changes: 0 additions & 10 deletions docs/cpanratings/rate/rate_error.html

This file was deleted.

111 changes: 0 additions & 111 deletions docs/cpanratings/rate/rate_form.html

This file was deleted.

12 changes: 0 additions & 12 deletions docs/cpanratings/rate/rate_submitted.html

This file was deleted.

11 changes: 0 additions & 11 deletions lib/CPANRatings/API.pm

This file was deleted.

18 changes: 0 additions & 18 deletions lib/CPANRatings/API/Base.pm

This file was deleted.

37 changes: 0 additions & 37 deletions lib/CPANRatings/API/Helpful.pm

This file was deleted.

0 comments on commit 9192e57

Please sign in to comment.