Skip to content

Commit 7fe8d42

Browse files
committed
Rename who_pumpkin as perl_releasers
1 parent 75b666d commit 7fe8d42

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

lib/pause_2017/PAUSE/Web/Config.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ our %Actions = (
8686
desc => "Your rights as a user of PAUSE",
8787
has_title => 1,
8888
},
89-
who_pumpkin => {
90-
x_mojo_to => "public#pumpkin",
91-
verb => "List of pumpkins",
89+
perl_releasers => {
90+
x_mojo_to => "public#perl_releasers",
91+
verb => "Approved Perl releasers",
9292
priv => "public",
9393
cat => "02serv/05",
9494
desc => "A list, also available as YAML",

lib/pause_2017/PAUSE/Web/Controller/Public.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ sub privacy_policy {
168168
$c->serve_pause_doc("doc/privacy-policy.md")
169169
}
170170

171-
sub pumpkin {
171+
sub perl_releasers {
172172
my $c = shift;
173173
my $pause = $c->stash(".pause");
174174
my $mgr = $c->app->pause;
@@ -191,7 +191,7 @@ sub pumpkin {
191191
die "not supported OF=$output_format"
192192
}
193193
}
194-
$pause->{pumpkins} = \@hres;
194+
$pause->{perl_releasers} = \@hres;
195195
}
196196

197197
sub admin {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
% layout 'layout';
2+
% my $pause = stash(".pause") || {};
3+
4+
<p>Approved Perl releasers: <%= join ", ", @{$pause->{perl_releasers} || []} %></p>
5+
<p><a href="<%= my_url->query(ACTION => "perl_releasers", OF => "YAML") %>" style="text-decoration: none;">
6+
<span class="orange_button">YAML</span>
7+
</a></p>

lib/pause_2017/templates/public/pumpkin.html.ep

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ subtest 'get' => sub {
2525
my ($path, $user) = @$test;
2626
my $t = Test::PAUSE::Web->new(user => $user);
2727

28-
$t->get_ok("$path?ACTION=who_pumpkin")
29-
->text_like("body", qr/Registered pumpkins:\s+BAR, FOO/);
28+
$t->get_ok("$path?ACTION=perl_releasers")
29+
->text_like("body", qr/Approved Perl releasers:\s+BAR, FOO/);
3030

31-
$t->get_ok("$path?ACTION=who_pumpkin&OF=YAML");
31+
$t->get_ok("$path?ACTION=perl_releasers&OF=YAML");
3232
my $list_amp = YAML::Syck::Load( $t->content );
3333
is_deeply( $list_amp, [qw/BAR FOO/], "YAML output works" );
3434

3535
SKIP: {
3636
skip "; is not supported anymore", 1;
37-
$t->get_ok("$path?ACTION=who_pumpkin;OF=YAML");
37+
$t->get_ok("$path?ACTION=perl_releasers;OF=YAML");
3838
my $list_sem = YAML::Syck::Load( $t->content );
3939
is_deeply( $list_sem, [qw/BAR FOO/], "YAML output works" );
4040
}

0 commit comments

Comments
 (0)