Update for recent version of Mojolicious
Change-Id: I176b60f209ea16588e425a0ebfa398747cb42f5c
diff --git a/Changes b/Changes
index f5fc334..0b7ebb8 100755
--- a/Changes
+++ b/Changes
@@ -1,4 +1,4 @@
-0.40 2020-12-07
+0.40 2020-12-17
- Modernize ES and fix in-loops.
- add roll() method to state object.
- Fix wrong hint-mirror behaviour in Firefox.
@@ -16,6 +16,7 @@
(which broke the vc demo).
- Improve RegEx-Button in vc builder.
- Added 'Troubleshooting' section to Readme.
+ - Update for Mojolicious >= 8.66.
0.39 2020-10-07
- Add information on secret file to Readme.
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 1b0bfb2..ac69b8b 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -298,7 +298,7 @@
# Match route
# Corpus route
my $corpus = $r->get('/corpus')->to('search#corpus_info')->name('corpus');
- my $doc = $r->route('/corpus/:corpus_id/:doc_id');
+ my $doc = $r->any('/corpus/:corpus_id/:doc_id');
my $text = $doc->get('/:text_id')->to('search#text_info')->name('text');
my $match = $doc->get('/:text_id/:match_id')->to('search#match_info')->name('match');
};
diff --git a/t/settings.t b/t/settings.t
index 9eb0655..c3fb722 100644
--- a/t/settings.t
+++ b/t/settings.t
@@ -32,12 +32,12 @@
});
$t->get_ok('/settings')
- ->text_is('a[href~/settings/oauth]','OAuth Token Management')
+ ->text_is('a[href*=/settings/oauth]','OAuth Token Management')
->text_is('h1 span', 'Settings')
;
$t->get_ok('/settings/oauth')
- ->text_is('a[href~/settings/oauth]','OAuth Token Management')
+ ->text_is('a[href*=/settings/oauth]','OAuth Token Management')
->text_is('h1 span', 'Settings')
->text_is('p#abc', 'My Settings')
;