Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed Galileo::Plugin::FlexMemorize in favor of Mojolicious::Plugin…
…::Memorize
  • Loading branch information
jberger committed Aug 27, 2013
1 parent 29d960f commit 0a54abc
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 60 deletions.
1 change: 1 addition & 0 deletions Build.PL
Expand Up @@ -12,6 +12,7 @@ my $builder = Module::Build->new(
requires => {
'perl' => '5.10.1',
'Mojolicious' => '3.92', # RFC 6901 compliant json pointers in tests
'Mojolicious::Plugin::Memorize' => 0,
'Mojolicious::Plugin::Humane' => '0.04',
'DBD::SQLite' => 0,
'DBIx::Class' => 0,
Expand Down
3 changes: 3 additions & 0 deletions Changes
@@ -1,5 +1,8 @@
Revision history for Perl module Galileo.

0.030 August 26, 2013
- Removed Galileo::Plugin::FlexMemorize in favor of Mojolicious::Plugin::Memorize

0.029 June 29, 2013
- Fixed page deletion bug introduced in 0.028 (chicoxyzzy++)
- Fixed model click handler bugs
Expand Down
1 change: 0 additions & 1 deletion MANIFEST
Expand Up @@ -43,7 +43,6 @@ lib/Galileo/files/templates/page/show.html.ep
lib/Galileo/files/templates/user_menu.html.ep
lib/Galileo/Menu.pm
lib/Galileo/Page.pm
lib/Galileo/Plugin/FlexMemorize.pm
lib/Galileo/Plugin/Modal.pm
lib/Galileo/User.pm
MANIFEST This list of files
Expand Down
5 changes: 1 addition & 4 deletions META.json
Expand Up @@ -37,6 +37,7 @@
"File::ShareDir" : "1.00",
"Mojolicious" : "3.92",
"Mojolicious::Plugin::Humane" : "0.04",
"Mojolicious::Plugin::Memorize" : "0",
"SQL::Translator" : "0",
"Term::Prompt" : "0",
"perl" : "v5.10.1"
Expand Down Expand Up @@ -92,10 +93,6 @@
"file" : "lib/Galileo/Page.pm",
"version" : 0
},
"Galileo::Plugin::FlexMemorize" : {
"file" : "lib/Galileo/Plugin/FlexMemorize.pm",
"version" : 0
},
"Galileo::Plugin::Modal" : {
"file" : "lib/Galileo/Plugin/Modal.pm",
"version" : 0
Expand Down
4 changes: 1 addition & 3 deletions META.yml
Expand Up @@ -52,9 +52,6 @@ provides:
Galileo::Page:
file: lib/Galileo/Page.pm
version: 0
Galileo::Plugin::FlexMemorize:
file: lib/Galileo/Plugin/FlexMemorize.pm
version: 0
Galileo::Plugin::Modal:
file: lib/Galileo/Plugin/Modal.pm
version: 0
Expand All @@ -73,6 +70,7 @@ requires:
File::ShareDir: 1.00
Mojolicious: 3.92
Mojolicious::Plugin::Humane: 0.04
Mojolicious::Plugin::Memorize: 0
SQL::Translator: 0
Term::Prompt: 0
perl: v5.10.1
Expand Down
4 changes: 2 additions & 2 deletions lib/Galileo.pm
@@ -1,7 +1,7 @@
package Galileo;
use Mojo::Base 'Mojolicious';

our $VERSION = '0.029';
our $VERSION = '0.030';
$VERSION = eval $VERSION;

use File::Basename 'dirname';
Expand Down Expand Up @@ -170,7 +170,7 @@ sub startup {
return $user->is_admin;
});

$app->plugin( 'Galileo::Plugin::FlexMemorize' );
$app->plugin( 'Memorize' );
$app->plugin( 'Galileo::Plugin::Modal' );

## Routing ##
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo/Menu.pm
Expand Up @@ -55,7 +55,7 @@ sub store {
{ key => $name }
);

$self->expire($name);
$self->memorize->expire($name);
$self->send({ text => j({
message => 'Changes saved',
success => \1,
Expand Down
2 changes: 1 addition & 1 deletion lib/Galileo/Page.pm
Expand Up @@ -62,7 +62,7 @@ sub store {
$schema->resultset('Page')->update_or_create(
$data, {key => 'pages_name'},
);
$self->expire('main');
$self->memorize->expire('main');
$self->send({ text => j({
message => 'Changes saved',
success => \1,
Expand Down
47 changes: 0 additions & 47 deletions lib/Galileo/Plugin/FlexMemorize.pm

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Galileo/files/templates/nav_menu.html.ep
@@ -1,4 +1,4 @@
%= flex_memorize main => begin
%= memorize main => begin
% my $menu = schema->resultset('Menu')->single({name => 'main'});
% my @pages = @{ Mojo::JSON->new->decode($menu->list) };
% my $rs = schema->resultset('Page');
Expand Down

0 comments on commit 0a54abc

Please sign in to comment.