Skip Menu |

This queue is for tickets about the Mojolicious-Command-generate-bootstrap_app CPAN distribution.

Report information
The Basics
Id: 105764
Status: new
Priority: 0/
Queue: Mojolicious-Command-generate-bootstrap_app

People
Owner: Nobody in particular
Requestors: Nicky.Ayoub [...] microchip.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Mojo::Loader->new() not found
Date: Wed, 8 Jul 2015 22:13:16 +0000
To: <bug-Mojolicious-Command-generate-bootstrap_app [...] rt.cpan.org>
From: <Nicky.Ayoub [...] microchip.com>
Hello, I had issues using the module on a current version of mojolicious. The Mojo::Loader has been changed so the following failed: sub render_base64_data { my ($self, $name) = (shift, shift); decode_base64( Mojo::Template->new->name("template $name from DATA section") ->render(Mojo::Loader->new->data(ref $self, $name), @_) ); } I modified it like so: use Mojo::Loader qw(data_section); sub render_base64_data { my ($self, $name) = (shift, shift); decode_base64(data_section $name, @_); } That seemed to do the trick for me. Regards, Nicky +--------------------------------------------------------+ Nick Ayoub : Microchip Technology : TEL 480-792-7275 CAD Sim : 2355 W. Chandler Blvd. : : Chandler AZ 85224-6199 : Nicky.Ayoub[@]Microchip.Com
Subject: [rt.cpan.org #105764] AutoReply: Mojo::Loader->new() not found
Date: Wed, 8 Jul 2015 23:08:02 +0000
To: <bug-Mojolicious-Command-generate-bootstrap_app [...] rt.cpan.org>
From: <Nicky.Ayoub [...] microchip.com>
My fix was premature. After some debugging this works for me: sub render_base64_data { my ($self, $name) = (shift, shift); my $cname = ref $self; my $d = data_section ($cname, $name); my $raw = decode_base64($d); return $raw; } Also, the secret method has been replaced with secrets and now takes a reference to an array: # set secret $self->secrets([$self->config->{$self->app->mode}->{session_secret}]); Nicky +--------------------------------------------------------+ Nick Ayoub : Microchip Technology : TEL 480-792-7275 CAD Sim : 2355 W. Chandler Blvd. : : Chandler AZ 85224-6199 : Nicky.Ayoub[@]Microchip.Com