Skip to content

Commit

Permalink
allow build with perl 5.22.0
Browse files Browse the repository at this point in the history
  • Loading branch information
oetiker committed Apr 15, 2020
1 parent d0dd4fd commit a900760
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.31.4 2020-04-15 17:11:24 +0200 Tobias Oetiker <tobi@oetiker.ch>

- self regression
- allow build with Perl 5.22.0

0.31.3 2020-04-10 08:31:35 +0200 Tobias Oetiker <tobi@oetiker.ch>

- eval not evan regression

0.31.2 2020-03-27 14:50:51 +0100 Tobias Oetiker <tobi@oetiker.ch>

- explicitly request the qx1 protocol for rpc as the default has changed to 2.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use 5.022001;
use 5.022000;

use strict;
use warnings;
Expand Down
2 changes: 1 addition & 1 deletion lib/CallBackery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use CallBackery::Plugin::Doc;
use CallBackery::Database;
use CallBackery::User;

our $VERSION = '0.31.2';
our $VERSION = '0.31.4';
use Mojo::Base 'Mojolicious';

=head2 config
Expand Down
4 changes: 2 additions & 2 deletions lib/CallBackery/Controller/RpcService.pm
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ sub handleUpload {
}
my $name = $self->param('name');
if (not $name){
return self->render(text=>encode_json({exception=>{message=>'Plugin Name missing',code=>3934}}));
return $self->render(text=>encode_json({exception=>{message=>'Plugin Name missing',code=>3934}}));
}

my $upload = $self->req->upload('file');
Expand Down Expand Up @@ -480,7 +480,7 @@ sub handleUpload {
}
return $self->render(text=>encode_json({exception=>{message=>$@,code=>9999}}));
}
if (evan { blessed $return and $return->isa('Mojo::Promise')}){
if (eval { blessed $return and $return->isa('Mojo::Promise')}){
$return->then(sub {
$self->render(text=>encode_json(shift));
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* ************************************************************************
q/* ************************************************************************
qooxdoo - the new era of web development
Expand Down

0 comments on commit a900760

Please sign in to comment.