Skip to content

Commit

Permalink
fix reply->not_found
Browse files Browse the repository at this point in the history
  • Loading branch information
jberger committed Jan 25, 2015
1 parent c5ddf5d commit f409164
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ my $builder = Module::Build->new(

requires => {
'perl' => '5.10.1',
'Mojolicious' => '4.63', # secrets
'Mojolicious' => '5.41', # reply->not_found
'Mojolicious::Plugin::Memorize' => 0,
'Mojolicious::Plugin::Humane' => '0.07',
'DBD::SQLite' => 0,
Expand Down
4 changes: 4 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Revision history for Perl module Galileo

0.0038 2015-01-25
- Fixed compatibility with recent Mojolicious
- Bumped dependency to 5.41

0.0037 2014-10-13
- Fix installation bug causing installation of version 1 rather than the most current
- Removed ability to upgrade from unversioned schemas (pre version 0.012)
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo.pm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package Galileo;
use Mojo::Base 'Mojolicious';

our $VERSION = '0.037';
our $VERSION = '0.038';
$VERSION = eval $VERSION;

use File::Basename 'dirname';
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo/Command/setup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ sub run {
my $contents = pop;
my %args = @_;

$self->include( #TODO use render_to_string when Mojo 5.00 is required
$self->render_to_string(
template => 'setup/control_group',
'control_group.contents' => ref $contents ? $contents->() : $contents,
'control_group.label' => $args{label} || '',
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo/Page.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sub show {
if ($self->session->{username}) {
$self->redirect_to("/edit/$name");
} else {
$self->render_not_found;
$self->reply->not_found;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo/Plugin/Modal.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sub register {
$app->helper( modal => sub {
my ($self, $id, $body) = @_;
$body = $body->() if ref $body;
return $self->include( #TODO use render_to_string when Mojo 5.00 is required
return $self->render_to_string(
template => 'galileo_modal',
'galileo.modal.id' => $id,
'galileo.modal.body' => $body,
Expand Down

0 comments on commit f409164

Please sign in to comment.