diff options
-rw-r--r-- | Changelog | 6 | ||||
-rwxr-xr-x | bin/db-iris | 14 | ||||
-rw-r--r-- | lib/Travel/Status/DE/IRIS.pm | 6 | ||||
-rw-r--r-- | lib/Travel/Status/DE/IRIS/Result.pm | 6 | ||||
-rw-r--r-- | lib/Travel/Status/DE/IRIS/Stations.pm.PL | 6 |
5 files changed, 23 insertions, 15 deletions
@@ -1,3 +1,9 @@ +Travel::Status::DE::IRIS 1.42 - Wed Jan 15 2020 + + * Result: Fix TO_JSON method + * db-iris: Cache backend results by default + * db-iris: New options: --json and --no-cache + Travel::Status::DE::IRIS 1.41 - Sun Dec 29 2019 * Result: Add "wing_of" accessor diff --git a/bin/db-iris b/bin/db-iris index 8bd3148..fc7b435 100755 --- a/bin/db-iris +++ b/bin/db-iris @@ -6,7 +6,7 @@ use utf8; no if $] >= 5.018, warnings => 'experimental::smartmatch'; -our $VERSION = '1.41'; +our $VERSION = '1.42'; use DateTime; use DateTime::Format::Strptime; @@ -571,7 +571,7 @@ B<db-iris> [B<-rx>] [B<-d> I<date>] [B<-o> I<output-flags>] =head1 VERSION -version 1.41 +version 1.42 =head1 DESCRIPTION @@ -615,10 +615,12 @@ IRIS backend, larger ones will not return data. =item B<--json> -List departures as JSON. Outputs a JSON list containing one hash for each -departure. The B<--output> option has no effect when using B<--json>. +List results as JSON, see Travel::Status::DE::IRIS::Result(3pm) for a partial +documentation of arrival/departure keys. The B<--output> option has no effect +when using B<--json>. -Note that JSON output is NOT compatible between releases. Its structure is not +Note that JSON entries not mentioned in Travel::Status::DE::IRIS::Result(3pm) +are NOT guaranteed to be compatible between releases. Their structure is not part of the db-iris / Travel::Status::DE::IRIS versioning scheme; it may change in backwards-incompatible ways anytime. @@ -826,7 +828,7 @@ There are no known bugs at the moment. =head1 AUTHOR -Copyright (C) 2013-2019 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> +Copyright (C) 2013-2020 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> The station data used by this script is provided by DB Station&Service AG, Europaplatz 1, 10557 Berlin, Germany and available diff --git a/lib/Travel/Status/DE/IRIS.pm b/lib/Travel/Status/DE/IRIS.pm index 939601e..68edd17 100644 --- a/lib/Travel/Status/DE/IRIS.pm +++ b/lib/Travel/Status/DE/IRIS.pm @@ -6,7 +6,7 @@ use 5.014; no if $] >= 5.018, warnings => 'experimental::smartmatch'; -our $VERSION = '1.41'; +our $VERSION = '1.42'; use Carp qw(confess cluck); use DateTime; @@ -630,7 +630,7 @@ Travel::Status::DE::IRIS - Interface to IRIS based web departure monitors. =head1 VERSION -version 1.41 +version 1.42 =head1 DESCRIPTION @@ -801,7 +801,7 @@ L<https://github.com/derf/Travel-Status-DE-IRIS> =head1 AUTHOR -Copyright (C) 2013-2019 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> +Copyright (C) 2013-2020 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> =head1 LICENSE diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index 85fcacb..bbe6f7f 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -15,7 +15,7 @@ use List::Compare; use List::MoreUtils qw(none uniq firstval); use Scalar::Util qw(weaken); -our $VERSION = '1.41'; +our $VERSION = '1.42'; my %translation = ( 2 => 'Polizeiliche Ermittlung', @@ -839,7 +839,7 @@ arrival/departure received by Travel::Status::DE::IRIS =head1 VERSION -version 1.41 +version 1.42 =head1 DESCRIPTION @@ -1483,7 +1483,7 @@ Travel::Status::DE::IRIS(3pm). =head1 AUTHOR -Copyright (C) 2013-2019 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> +Copyright (C) 2013-2020 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> =head1 LICENSE diff --git a/lib/Travel/Status/DE/IRIS/Stations.pm.PL b/lib/Travel/Status/DE/IRIS/Stations.pm.PL index 758e236..e13d21f 100644 --- a/lib/Travel/Status/DE/IRIS/Stations.pm.PL +++ b/lib/Travel/Status/DE/IRIS/Stations.pm.PL @@ -35,7 +35,7 @@ use Text::LevenshteinXS qw(distance); # TODO switch to Text::Levenshtein::XS once AUR/Debian packages become available -our $VERSION = '1.41'; +our $VERSION = '1.42'; # Automatically generated, see share/stations.json my @stations = ( @@ -184,7 +184,7 @@ Travel::Status::DE::IRIS::Stations - Station name to station code mapping =head1 VERSION -version 1.41 +version 1.42 =head1 DESCRIPTION @@ -288,7 +288,7 @@ Travel::Status::DE::IRIS(3pm). Station data: Copyright (C) 2016 by DB Station&Service AG, Europaplatz 1, 10557 Berlin, Germany -Lookup code: Copyright (C) 2014-2019 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> +Lookup code: Copyright (C) 2014-2020 by Daniel Friesel E<lt>derf@finalrewind.orgE<gt> =head1 LICENSE |