]> git.michaelhowe.org Git - pub/michael/national-rail-ticket-split.git/log
pub/michael/national-rail-ticket-split.git
11 years agoSlightly tidier code thanks to perltidy
Michael Howe [Wed, 9 Apr 2014 13:06:49 +0000 (14:06 +0100)]
Slightly tidier code thanks to perltidy

Reformat to (mostly) follow `perltidy -pbp -ce -l=100`

11 years agoTest for the correct time in the URL
Michael Howe [Wed, 9 Apr 2014 00:43:35 +0000 (01:43 +0100)]
Test for the correct time in the URL

The website doesn't always return the journey we want as the first
journey, so check it's what we're expecting.

Also print out the amount saved, in real terms and as a percentage.

(at this point I think I should learn how to do the breaking commits up
thing)

11 years agoprint -> say for newline goodness
Michael Howe [Tue, 8 Apr 2014 23:02:38 +0000 (00:02 +0100)]
print -> say for newline goodness

11 years agoMore fixes
Michael Howe [Tue, 8 Apr 2014 22:53:22 +0000 (23:53 +0100)]
More fixes

* document lack of error 500 handling
* check if the route is direct, die if not
* time how long it takes

11 years agoWhole bunch of tidying, including:
Michael Howe [Tue, 8 Apr 2014 22:38:38 +0000 (23:38 +0100)]
Whole bunch of tidying, including:

* rename to the more sensible split-route.pl
* documentation
* debug option - by default it's quiet

11 years agoIt works!
Michael Howe [Tue, 8 Apr 2014 21:16:56 +0000 (22:16 +0100)]
It works!

Needs lots of tidying up and error- and sanity-checking adding, but it
seems to be returning the information I expect.

11 years agoAnd the result of Monday's work
Michael Howe [Tue, 8 Apr 2014 08:05:26 +0000 (09:05 +0100)]
And the result of Monday's work

11 years agoCommit after Sunday's work, which I sort of forgot
Michael Howe [Mon, 7 Apr 2014 19:21:17 +0000 (20:21 +0100)]
Commit after Sunday's work, which I sort of forgot

Hence the less useful commit message.