From d59bef6021782d05f2f07a38e2cdfd6f16ba1680 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 18 Aug 2017 18:00:18 +0300 Subject: [PATCH] Fix tests, bump version and update Changes --- Changes | 4 ++++ README | 2 +- lib/WWW/Offliberty.pm | 2 +- t/50-network.t | 8 ++++---- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Changes b/Changes index 23cc60f..bb33ad6 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,9 @@ Revision history for Perl extension WWW::Offliberty. +1.000006 2017-08-18T18:00+08:00 + - Change test video from Youtube to Vimeo as Offliberty's Youtube + support is broken + 1.000005 2017-05-20T13:31+01:00 - Change test video *again* to one that's unlikely to be deleted diff --git a/README b/README index 996d2ce..7bbf8f9 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -WWW-Offliberty version 1.000004 +WWW-Offliberty version 1.000006 =============================== Offliberty is a service that takes a URL to some media (for example a diff --git a/lib/WWW/Offliberty.pm b/lib/WWW/Offliberty.pm index b2fdbcd..0edd0ef 100644 --- a/lib/WWW/Offliberty.pm +++ b/lib/WWW/Offliberty.pm @@ -4,7 +4,7 @@ use 5.008009; use strict; use warnings; use parent qw/Exporter/; -our $VERSION = '1.000005'; +our $VERSION = '1.000006'; our @EXPORT_OK = qw/off/; our $OFF_URL = 'http://offliberty.com/off03.php'; diff --git a/t/50-network.t b/t/50-network.t index 98d0c68..7392c85 100644 --- a/t/50-network.t +++ b/t/50-network.t @@ -7,11 +7,11 @@ use Test::More tests => 4; use WWW::Offliberty qw/off/; my @results; -@results = off "https://youtube.com/watch?v=dQw4w9WgXcQ"; -cmp_ok @results, '>=', 1, 'youtube'; +@results = off 'https://vimeo.com/45196609'; +cmp_ok @results, '>=', 1, 'vimeo'; -@results = off "https://youtube.com/watch?v=dQw4w9WgXcQ", video_file => 1; -is @results, 2, 'youtube, video_file => 1'; +@results = off 'https://vimeo.com/45196609', video_file => 1; +is @results, 2, 'vimeo, video_file => 1'; like $results[1], qr/\.mp4/, 'video URL contains ".mp4"'; unlike $results[0], qr/offwarning/, 'audio URL doesn\'t contain "offwarning"'; -- 2.39.5