Unverified Commit f37619e2 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Release v2.01

parent 8117d9db
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
Travel::Status::DE::VRR 2.01 - Fri May 17 2024

    * efa-m: Deprecate --efa-url in favour of --service. It is still supported,
      just not documented anymore.
    * EFA: Add new_p constructor for asynchronous operation with promises
    * EFA: Add static get_service function

Travel::Status::DE::VRR 2.00 - Sun Dec 03 2023

    * New dependency: DateTime
+2 −2
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ use warnings;
use 5.010;
use utf8;

our $VERSION = '2.00';
our $VERSION = '2.01';

binmode( STDOUT, ':encoding(utf-8)' );

@@ -430,7 +430,7 @@ B<efa-m> [B<-Lr>] [B<-d> I<dd.mm.yyyy>] [B<-t> I<hh:mm>]

=head1 VERSION

version 2.00
version 2.01

=head1 DESCRIPTION

+27 −2
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@ use warnings;
use 5.010;
use utf8;

our $VERSION = '2.00';
our $VERSION = '2.01';

use Carp qw(confess cluck);
use DateTime;
@@ -740,7 +740,7 @@ Travel::Status::DE::EFA - unofficial EFA departure monitor

=head1 VERSION

version 2.00
version 2.01

=head1 DESCRIPTION

@@ -806,6 +806,26 @@ Default: 10 seconds. Set to 0 or a negative value to disable it.

=back

=item my $status_p = Travel::Status::DE::EFA->new_p(I<%opt>)

Returns a promise that resolves into a Travel::Status::DE::EFA instance
($status) on success and rejects with an error message on failure. In addition
to the arguments of B<new>, the following mandatory arguments must be set.

=over

=item B<promise> => I<promises module>

Promises implementation to use for internal promises as well as B<new_p> return
value. Recommended: Mojo::Promise(3pm).

=item B<user_agent> => I<user agent>

User agent instance to use for asynchronous requests. The object must implement
a B<post_p> function. Recommended: Mojo::UserAgent(3pm).

=back

=item $status->errstr

In case of an HTTP request or EFA error, returns a string describing it. If
@@ -854,6 +874,11 @@ the following elements.

=back

=item Travel::Status::DE::EFA::service(I<$service>)

Returns a hashref describing the service I<$service>, or undef if it is not
known. See B<get_efa_urls> for the hashref layout.

=back

=head1 DIAGNOSTICS
+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ use 5.010;

use parent 'Class::Accessor';

our $VERSION = '2.00';
our $VERSION = '2.01';

Travel::Status::DE::EFA::Line->mk_ro_accessors(
	qw(direction mot name operator route type valid));
@@ -57,7 +57,7 @@ requested station

=head1 VERSION

version 2.00
version 2.01

=head1 DESCRIPTION

+2 −2
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ use 5.010;

use parent 'Class::Accessor';

our $VERSION = '2.00';
our $VERSION = '2.01';

Travel::Status::DE::EFA::Result->mk_ro_accessors(
	qw(countdown datetime delay destination is_cancelled info key line lineref
@@ -136,7 +136,7 @@ departure received by Travel::Status::DE::EFA

=head1 VERSION

version 2.00
version 2.01

=head1 DESCRIPTION

Loading