Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Twitter-Lite CPAN distribution.

Report information
The Basics
Id: 50313
Status: resolved
Priority: 0/
Queue: Net-Twitter-Lite

People
Owner: MMIMS [...] cpan.org
Requestors: blair.christensen [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Use "created_at" instead of "time" in documentation
The Net::Twitter::Lite documentation refers to "$status->{time}". That key does not appear to be present but "$status->{created_at}" does exist. This patch updates "README" and "src/net-twitter-lite.tt2".
Subject: net-twitter-lite-created_at.patch
diff --git a/README b/README index d986c19..f8c1fa4 100644 --- a/README +++ b/README @@ -17,7 +17,7 @@ SYNOPSIS eval { my $statuses = $nt->friends_timeline({ since_id => $high_water, count => 100 }); for my $status ( @$statuses ) { - print "$status->{time} <$status->{user}{screen_name}> $status->{text}\n"; + print "$status->{created_at} <$status->{user}{screen_name}> $status->{text}\n"; } }; warn "$@\n" if $@; diff --git a/src/net-twitter-lite.tt2 b/src/net-twitter-lite.tt2 index 3572b7c..e8c972c 100644 --- a/src/net-twitter-lite.tt2 +++ b/src/net-twitter-lite.tt2 @@ -462,7 +462,7 @@ This document describes Net::Twitter::Lite version [% VERSION %] eval { my $statuses = $nt->friends_timeline({ since_id => $high_water, count => 100 }); for my $status ( @$statuses ) { - print "$status->{time} <$status->{user}{screen_name}> $status->{text}\n"; + print "$status->{created_at} <$status->{user}{screen_name}> $status->{text}\n"; } }; warn "$@\n" if $@;
Thanks, Blair. Fixed in the repos. It will be in the next CPAN release. http://github.com/semifor/net-twitter-lite/commit/811876be02aa72591deffe11a5bf099f07bac011