Skip to content

Commit

Permalink
v0.04
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.kwiki.org/kwiki/trunk/src/ingy/pQuery@354 4b3b33bc-d223-0410-9309-b363ae52eedd
  • Loading branch information
ingy committed Mar 15, 2008
1 parent 6e22f89 commit 25f79da
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 27 deletions.
7 changes: 7 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
version: 0.04
date: Sat Mar 15 02:53:57 GMT 2008
changes:
- Bugs in MANIFEST
- More porting

---
version: 0.03
date: Thu Mar 13 04:14:09 GMT 2008
Expand Down
4 changes: 4 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ t/contructors.t
t/document1.html
t/dom.t
t/each.t
t/end.t
t/find.t
t/html.t
t/ideas
t/misc.t
t/TestpQuery.pm
t/text.t
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ METHODS
If this method is passed an integer, it will return that specific
element from the array of elements in the pQuery object.

This method will fetch the HTML content of the URL and return a
HTML::Response object.
Givn a URL, this method will fetch the HTML content of the URL and
return a HTML::Response object.

my $html = pQuery.get("http://google.com")->content;

Expand Down
20 changes: 10 additions & 10 deletions lib/pQuery.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use pQuery::DOM;

use base 'Exporter';

our $VERSION = '0.03';
our $VERSION = '0.04';

our @EXPORT = qw(pQuery PQUERY);

Expand Down Expand Up @@ -216,15 +216,15 @@ sub end {
}

# XXX - Not really ported yet.
# sub find {
# my $this = shift;
# my $selector = shift or return;
# my $elems = [];
# $this->each(sub {
# _find_elems($_, $selector, $elems);
# });
# return $this->pushStack($elems);
# }
sub find {
my $this = shift;
my $selector = shift or return;
my $elems = [];
$this->each(sub {
_find_elems($_, $selector, $elems);
});
return $this->pushStack($elems);
}

# sub find {
# my ($this, $selector) = @_;
Expand Down
4 changes: 1 addition & 3 deletions t/dom.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use Test::More tests => 33;
use strict;
use warnings;
use t::TestpQuery tests => 33;

use pQuery::DOM;

Expand Down
4 changes: 1 addition & 3 deletions t/each.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use Test::More tests => 1;
use strict;
use warnings;
use t::TestpQuery tests => 1;

use pQuery;

Expand Down
4 changes: 1 addition & 3 deletions t/find.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use Test::More tests => 2;
use strict;
use warnings;
use t::TestpQuery tests => 2;

use pQuery;

Expand Down
4 changes: 1 addition & 3 deletions t/html.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use Test::More tests => 7;
use strict;
use warnings;
use t::TestpQuery tests => 7;

use pQuery;

Expand Down
4 changes: 1 addition & 3 deletions t/text.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use Test::More tests => 1;
use strict;
use warnings;
use t::TestpQuery tests => 1;

use pQuery;

Expand Down

0 comments on commit 25f79da

Please sign in to comment.