Changeset 2291

Show
Ignore:
Timestamp:
06/24/07 05:52:26
Author:
miyagawa
Message:

Checking in changes prior to tagging of version 0.03. Changelog diff is:

=== Changes
==================================================================
--- Changes (revision 2860)
+++ Changes (local)
@@ -1,5 +1,9 @@

Revision history for Perl extension Geo::Coder
Google

+0.03 Sat Jun 23 11:52:05 PDT 2007
+ - Added ua() method and document it.
+ (Thanks to Beirne Konarski)
+

0.02 Sat Jul 1 12:27:38 JST 2006

- Fix charset= regexp to match with utf-8


Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Geo-Coder-Google/trunk/Changes

    r1868 r2291  
    11Revision history for Perl extension Geo::Coder::Google 
     2 
     30.03  Sat Jun 23 11:52:05 PDT 2007 
     4        - Added ua() method and document it. 
     5          (Thanks to Beirne Konarski) 
    26 
    370.02  Sat Jul  1 12:27:38 JST 2006 
  • Geo-Coder-Google/trunk/lib/Geo/Coder/Google.pm

    r1868 r2291  
    22 
    33use strict; 
    4 our $VERSION = '0.02'; 
     4our $VERSION = '0.03'; 
    55 
    66use Carp; 
     
    2121 
    2222    bless { key => $key, ua => $ua, host => $host }, $class; 
     23} 
     24 
     25sub ua { 
     26    my $self = shift; 
     27    if (@_) { 
     28        $self->{ua} = shift; 
     29    } 
     30    $self->{ua}; 
    2331} 
    2432 
     
    144152  } 
    145153 
     154=item ua 
     155 
     156Accessor method to get and set UserAgent object used internally. You 
     157can call I<env_proxy> for example, to get the proxy information from 
     158environment variables: 
     159 
     160  $coder->ua->env_proxy; 
     161 
     162You can also set your own User-Agent object: 
     163 
     164  $coder->ua( LWPx::ParanoidAgent->new ); 
     165 
    146166=back 
    147167 
  • Geo-Coder-Google/trunk/t/01_live.t

    r1868 r2291  
    99 
    1010plan tests => 2; 
    11  
    1211 
    1312{