Changeset 354

Show
Ignore:
Timestamp:
03/14/08 19:55:07 (2 months ago)
Author:
ingy
Message:
v0.04
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/ingy/pQuery/Changes

    r351 r354  
     1--- 
     2version: 0.04 
     3date:    Sat Mar 15 02:53:57 GMT 2008 
     4changes: 
     5- Bugs in MANIFEST 
     6- More porting 
     7 
    18--- 
    29version: 0.03 
  • trunk/src/ingy/pQuery/MANIFEST

    r347 r354  
    2626t/dom.t 
    2727t/each.t 
     28t/end.t 
    2829t/find.t 
    2930t/html.t 
     31t/ideas 
     32t/misc.t 
     33t/TestpQuery.pm 
    3034t/text.t 
  • trunk/src/ingy/pQuery/README

    r351 r354  
    214214    element from the array of elements in the pQuery object. 
    215215 
    216     This method will fetch the HTML content of the URL and return a 
    217     HTML::Response object. 
     216    Givn a URL, this method will fetch the HTML content of the URL and 
     217    return a HTML::Response object. 
    218218 
    219219        my $html = pQuery.get("http://google.com")->content; 
  • trunk/src/ingy/pQuery/lib/pQuery.pm

    r353 r354  
    99use base 'Exporter'; 
    1010 
    11 our $VERSION = '0.03'; 
     11our $VERSION = '0.04'; 
    1212 
    1313our @EXPORT = qw(pQuery PQUERY); 
     
    217217 
    218218# XXX - Not really ported yet. 
    219 # sub find { 
    220 #     my $this = shift; 
    221 #     my $selector = shift or return; 
    222 #     my $elems = []; 
    223 #     $this->each(sub { 
    224 #         _find_elems($_, $selector, $elems); 
    225 #     }); 
    226 #     return $this->pushStack($elems); 
    227 #
     219sub find { 
     220    my $this = shift; 
     221    my $selector = shift or return; 
     222    my $elems = []; 
     223    $this->each(sub { 
     224        _find_elems($_, $selector, $elems); 
     225    }); 
     226    return $this->pushStack($elems); 
     227
    228228 
    229229# sub find { 
  • trunk/src/ingy/pQuery/t/dom.t

    r346 r354  
    1 use Test::More tests => 33; 
    2 use strict; 
    3 use warnings; 
     1use t::TestpQuery tests => 33; 
    42 
    53use pQuery::DOM; 
  • trunk/src/ingy/pQuery/t/each.t

    r328 r354  
    1 use Test::More tests => 1; 
    2 use strict; 
    3 use warnings; 
     1use t::TestpQuery tests => 1; 
    42 
    53use pQuery; 
  • trunk/src/ingy/pQuery/t/find.t

    r328 r354  
    1 use Test::More tests => 2; 
    2 use strict; 
    3 use warnings; 
     1use t::TestpQuery tests => 2; 
    42 
    53use pQuery; 
  • trunk/src/ingy/pQuery/t/html.t

    r344 r354  
    1 use Test::More tests => 7; 
    2 use strict; 
    3 use warnings; 
     1use t::TestpQuery tests => 7; 
    42 
    53use pQuery; 
  • trunk/src/ingy/pQuery/t/text.t

    r328 r354  
    1 use Test::More tests => 1; 
    2 use strict; 
    3 use warnings; 
     1use t::TestpQuery tests => 1; 
    42 
    53use pQuery;