summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-28 20:36:09 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-28 20:36:09 +0200
commitca55ab0cd25c776f7a4fd544884dd661a47ef73c (patch)
tree4e7ff861f8d02eb7aa769f4cafe84ff18bed9d3c
parent8cc41bfc9a5c02e93cd441ab31e3fa37e4c715ef (diff)
Release v0.140.14
-rw-r--r--Changelog14
-rwxr-xr-xbin/db-wagenreihung4
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm4
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung/Group.pm2
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung/Section.pm2
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung/Wagon.pm2
6 files changed, 21 insertions, 7 deletions
diff --git a/Changelog b/Changelog
index 2762137..479004e 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,17 @@
+Travel::Status::DE::DBWagenreihung 0.14 - Sun Apr 28 2024
+
+ * This module now explicitly treats carriages as groups, just like the
+ backend does. Each group contains at least one carriage and has a
+ distinct number, origin, destination, and train type / description.
+ * Add Travel::Status::DE::DBWagenreihung::Group module.
+ * DBWagenreihung: Add groups, carriages, and train_nos accessors.
+ * DBWagenreihung: origins, destinations: Return hashrefs with
+ "name" / "groups" / "sections" rather than "name" / "sections".
+ * DBWagenreihung: Remove train_descriptions, wagongroup_description,
+ wagongroup_subtype, and wagongroup_model accessors. Use $wr->groups and
+ $group->description / $group->desc_short instead.
+ This is a breaking change.
+
Travel::Status::DE::DBWagenreihung 0.13 - Sat Apr 27 2024
* DBWagenreihung: Add station accessor.
diff --git a/bin/db-wagenreihung b/bin/db-wagenreihung
index 068241b..e4e3a46 100755
--- a/bin/db-wagenreihung
+++ b/bin/db-wagenreihung
@@ -4,7 +4,7 @@ use warnings;
use 5.020;
use utf8;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
use Getopt::Long;
use List::Util qw(min);
@@ -189,7 +189,7 @@ B<db-wagenreihung> I<station> I<train-number>
=head1 VERSION
-version 0.13
+version 0.14
This is beta software: API and output format may change without notice.
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm
index e40c194..c6163cc 100644
--- a/lib/Travel/Status/DE/DBWagenreihung.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung.pm
@@ -15,7 +15,7 @@ use Travel::Status::DE::DBWagenreihung::Group;
use Travel::Status::DE::DBWagenreihung::Section;
use Travel::Status::DE::DBWagenreihung::Wagon;
-our $VERSION = '0.13';
+our $VERSION = '0.14';
Travel::Status::DE::DBWagenreihung->mk_ro_accessors(
qw(direction platform station train_no train_type));
@@ -778,7 +778,7 @@ Travel::Status::DE::DBWagenreihung - Interface to Deutsche Bahn carriage formati
=head1 VERSION
-version 0.13
+version 0.14
This is beta software. The API may change without notice.
diff --git a/lib/Travel/Status/DE/DBWagenreihung/Group.pm b/lib/Travel/Status/DE/DBWagenreihung/Group.pm
index a627b6e..dd98550 100644
--- a/lib/Travel/Status/DE/DBWagenreihung/Group.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung/Group.pm
@@ -7,7 +7,7 @@ use utf8;
use parent 'Class::Accessor';
-our $VERSION = '0.13';
+our $VERSION = '0.14';
Travel::Status::DE::DBWagenreihung::Group->mk_ro_accessors(
qw(id train_no type description desc_short origin destination has_sections)
diff --git a/lib/Travel/Status/DE/DBWagenreihung/Section.pm b/lib/Travel/Status/DE/DBWagenreihung/Section.pm
index 703bc41..5bbf1c9 100644
--- a/lib/Travel/Status/DE/DBWagenreihung/Section.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung/Section.pm
@@ -7,7 +7,7 @@ use utf8;
use parent 'Class::Accessor';
-our $VERSION = '0.13';
+our $VERSION = '0.14';
Travel::Status::DE::DBWagenreihung::Section->mk_ro_accessors(
qw(name start_percent end_percent length_percent start_meters end_meters length_meters)
diff --git a/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm b/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm
index 646028f..549a5ff 100644
--- a/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung/Wagon.pm
@@ -8,7 +8,7 @@ use utf8;
use parent 'Class::Accessor';
use Carp qw(cluck);
-our $VERSION = '0.13';
+our $VERSION = '0.14';
Travel::Status::DE::DBWagenreihung::Wagon->mk_ro_accessors(
qw(attributes class_type group_index has_ac has_accessibility
has_bahn_comfort has_bike_storage has_bistro has_compartments