Changeset 1842
- Timestamp:
- 11/24/06 09:03:30
- Files:
-
- branches/feature-geo/plagger/lib/Plagger/Plugin/Namespace/Geo.pm (modified) (1 diff)
- branches/feature-geo/plagger/t/plugins/Namespace-Geo/base.t (modified) (3 diffs)
- branches/feature-geo/plagger/t/samples/rss2-geo-point.xml (added)
- branches/feature-geo/plagger/t/samples/rss2-geo.xml (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/feature-geo/plagger/lib/Plagger/Plugin/Namespace/Geo.pm
r1841 r1842 17 17 # XXX for now RSS only, do the same for Atom 18 18 my $geo = $args->{orig_entry}->{entry}->{$geo_ns} || {}; 19 $geo = $geo->{Point}->{geo} if $geo->{Point}; 19 20 if (defined($geo->{lat}) && defined($geo->{long})) { 20 21 my $loc = Plagger::Location->new; branches/feature-geo/plagger/t/plugins/Namespace-Geo/base.t
r1841 r1842 4 4 5 5 test_plugin_deps; 6 plan tests => 2;6 plan tests => 4; 7 7 run_eval_expected; 8 8 … … 19 19 feed: 20 20 - file://$t::TestPlagger::BaseDirURI/t/samples/rss2-geo.xml 21 - file://$t::TestPlagger::BaseDirURI/t/samples/rss2-geo-point.xml 21 22 - module: Namespace::Geo 22 23 - module: Aggregator::Simple … … 25 26 is $feeds[0]->entries->[0]->location->latitude, 26.58; 26 27 is $feeds[0]->entries->[0]->location->longitude, -97.83; 28 is $feeds[1]->entries->[0]->location->latitude, 26.58; 29 is $feeds[1]->entries->[0]->location->longitude, -97.83;
