From db42b8ca5476f8b5e6197e96040c5f350db928d1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 11 Aug 2015 16:33:00 +0200 Subject: rename title/description to infoscreen (we're not just a fakedisplay anymore) --- README | 4 ++-- index.pl | 6 +++--- t/01-basic.t | 2 +- templates/layouts/default.html.ep | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README b/README index a42bcd0..c3287bd 100644 --- a/README +++ b/README @@ -1,5 +1,5 @@ -db-fakedisplay - Show train departures, as seen on the displays on most main stations -------------------------------------------------------------------------------------- +db-fakedisplay - Infoscreen for DB departures +--------------------------------------------- * diff --git a/index.pl b/index.pl index a835c69..52f7851 100644 --- a/index.pl +++ b/index.pl @@ -18,7 +18,7 @@ sub get_results_for { my ( $backend, $station, %opt ) = @_; my $cache = Cache::File->new( - cache_root => '/tmp/db-fake', + cache_root => '/tmp/db-fakedisplay', default_expires => $refresh_interval . ' sec', lock_level => Cache::File::LOCK_LOCAL(), ); @@ -166,7 +166,7 @@ sub handle_request { : $Travel::Status::DE::DeutscheBahn::VERSION; $self->stash( departures => [] ); - $self->stash( title => 'db-fakedisplay' ); + $self->stash( title => 'db-infoscreen' ); $self->stash( version => $VERSION ); if ( not( $template ~~ [qw[clean json marudor_v1 marudor multi single]] ) ) @@ -678,7 +678,7 @@ app->config( hypnotoad => { accepts => 10, listen => ['http://*:8092'], - pid_file => '/tmp/db-fake.pid', + pid_file => '/tmp/db-fakedisplay.pid', workers => $ENV{VRRFAKEDISPLAY_WORKERS} // 2, }, ); diff --git a/t/01-basic.t b/t/01-basic.t index 7a32d55..da7b654 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -5,6 +5,6 @@ use FindBin; require "$FindBin::Bin/../index.pl"; my $t = Test::Mojo->new; -$t->get_ok('/')->status_is(200)->content_like(qr/db-fakedisplay/); +$t->get_ok('/')->status_is(200)->content_like(qr/db-infoscreen/); done_testing(); diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index cf347aa..9942170 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -1,7 +1,7 @@ - <%= stash('title') // 'db-fakedisplay' %> + <%= stash('title') // 'db-infoscreen' %> % if ($self->stash('refresh_interval')) { @@ -170,12 +170,12 @@ nur Züge via Bochum oder Hamm)
  • Handyfreundliches Interface von @marudor
  • DeutscheBahn IRIS und betriebsstellen.pdf
  • -
  • vrr-fakedisplay
  • +
  • vrr-infoscreen
  • -db-fakedisplay +db-infoscreen v<%= stash('version') // '???' %>
    % } -- cgit v1.2.3