Skip to content

Commit

Permalink
import Feed-Find 0.05 from CPAN
Browse files Browse the repository at this point in the history
git-cpan-module:   Feed-Find
git-cpan-version:  0.05
git-cpan-authorid: BTROTT
git-cpan-file:     authors/id/B/BT/BTROTT/Feed-Find-0.05.tar.gz
  • Loading branch information
Benjamin Trott authored and schwern committed Dec 11, 2009
1 parent 20fc77a commit 1376c2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# $Id: Changes 799 2004-12-31 21:32:44Z btrott $
# $Id: Changes 1787 2005-01-09 06:18:25Z btrott $

Revision history for Feed::Find

0.04
0.05 2005.01.08
- Fixed bug where base URI would be unset if there was a <base>
tag without an href attribute.

0.04 2004.12.31
- Added Feed::Find->find_in_html to perform the same auto-discovery
on a chunk of HTML already in memory.

Expand Down
2 changes: 1 addition & 1 deletion META.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Feed-Find
version: 0.04
version: 0.05
abstract: Syndication Feed Discovery
author: Benjamin Trott <ben+cpan@stupidfool.org>
license: perl
Expand Down
6 changes: 3 additions & 3 deletions lib/Feed/Find.pm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $Id: Find.pm 1753 2005-01-01 00:57:41Z btrott $
# $Id: Find.pm 1769 2005-01-03 17:45:19Z btrott $

package Feed::Find;
use strict;
Expand All @@ -9,7 +9,7 @@ use HTML::Parser;
use URI;

use vars qw( $VERSION );
$VERSION = '0.04';
$VERSION = '0.05';

use constant FEED_MIME_TYPES => [
'application/x.atom+xml',
Expand Down Expand Up @@ -68,7 +68,7 @@ sub _find_links {
if $IsFeed{$type} &&
($rel{alternate} || $rel{'service.feed'});
} elsif ($tag eq 'base') {
$p->{base_uri} = $attr->{href};
$p->{base_uri} = $attr->{href} if $attr->{href};
} elsif ($tag =~ /^(?:meta|isindex|title|script|style|head|html)$/) {
## Ignore other valid tags inside of <head>.
} elsif ($tag eq 'a') {
Expand Down

0 comments on commit 1376c2a

Please sign in to comment.