Re: [libxml-devel] bus error cause by bad XML

2009-03-16 Thread Aaron Patterson
1.2/lib/libxml/node.rb:100: [BUG] > Bus Error > ruby 1.8.6 (2008-03-03) [universal-darwin9.0] > > Abort trap This works fine for me. What version of libxml2 are you running? Use this command to find out: ruby -rubygems -e'require "libxml"; puts LibXML::XML::

Re: [libxml-devel] Better performance from find or parsing?

2009-02-10 Thread Aaron Patterson
! My answer is "it depends". :-( -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] Memory leak with 0.9.6 and 0.9.7

2009-01-07 Thread Aaron Patterson
ush(output); + VALUE string = Qnil; + if (output->conv) -return rb_str_new2((const char*) output->conv->content); +string = rb_str_new2((const char*) output->conv->content); else -return rb_str_new2((const char*) output->buffer->conten

Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread Aaron Patterson
solution. I'm not sure what bits of our code overlaps. I think our underlying C bits are too different. I'm all for sharing, but I like the project I have set up now. > Note sure if #2 or #3 are viable, but I'd be happy to give it some more > thought. I'm also happy

Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-19 Thread Aaron Patterson
th you). Great! Nokogiri has an MIT license, so go for it. :-) > So we're happy to work together on our end. We are too. Feel free to steal our code, or submit patches: http://github.com/tenderlove/nokogiri/tree/master We'd be happy to have you help. :-) Rig

Re: [libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-11-01 Thread Aaron Patterson
On Sat, Nov 01, 2008 at 11:56:50AM -0700, Trans wrote: > > > On Oct 30, 1:15 pm, Aaron Patterson <[EMAIL PROTECTED]> > wrote: > > nokogiri version 1.0.0 has been released! > > Very impressive project, Aaron! > > I've been building much the same thing

[libxml-devel] [ANN] nokogiri 1.0.0 Released

2008-10-30 Thread Aaron Patterson
doc.search('h3.r a.l', '//h3/[EMAIL PROTECTED]"l"]').each do |link| puts link.content end Changes: ### 1.0.0 / 2008-07-13 * 1 major enhancement * Birthday! * <http://nokogiri.rubyforge.org/> * <http://github.com/tenderlove/n

[libxml-devel] XML namespace

2008-07-31 Thread Aaron Patterson
I guess its a little late to find this, but the expat ruby wrapper is using the XML namespace. Just FYI! :-) http://rubyforge.org/projects/xmlparser/ -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel

Re: [libxml-devel] Libxml directory structure

2008-07-13 Thread Aaron Patterson
are: 1) each ruby class in its own file, and 2) each class under a directory corresponding to its module/class. For example, the class LibXML::Node::Set would live as "lib/libxml/node/set.rb". The LibXML::Node class would live as "lib/libxml/node.rb", and 'require'

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
y would print to, but that's just a nicety (e.g. > XML::Parser.register_error_handler($stdout)). -sc Ask and you shall receive Sean, I've submitted a patch that moves register_error_handler from C to Ruby, and lets you pass an IO object where error message may be written. http://rubyforge.org

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
On Fri, Jul 11, 2008 at 1:07 PM, Trans <[EMAIL PROTECTED]> wrote: > > On Jul 11, 3:21 pm, "Aaron Patterson" <[EMAIL PROTECTED]> > wrote: > >> Separate scripts are more intuitive than rake tasks? > > I understand what you thinking, but there are some c

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
On Fri, Jul 11, 2008 at 12:15 PM, Trans <[EMAIL PROTECTED]> wrote: > > > On Jul 11, 1:45 pm, "Aaron Patterson" <[EMAIL PROTECTED]> > wrote: > >> I've added a patch to the tracker that adds a test task and a build >> task to the rake file. >

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
reference to the lambda *on the class* (well, actually as a static VALUE). So if the error_handler was set somewhere else, it won't necessarily be nil (which is what that failing test asserts). -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
ox. Is this trunk or before > the libxml.rb patch? -sc setup.rb has never successfully run the tests for me, even before the libxml.rb patch. I'm on OS X. -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
r that adds a test task and a build task to the rake file. http://rubyforge.org/tracker/index.php?func=detail&aid=21172&group_id=494&atid=1973 If you apply that patch, you can just execute 'rake build' to build the extension, and 'rake test' to run the tests. Als

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
ect_file' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/collector/dir.rb:73:in `recursive_collect' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/test/unit/collector/dir.rb:58

Re: [libxml-devel] implementing in Ruby vs C

2008-07-11 Thread Aaron Patterson
t; Said differently, let sleeping dogs lie and don't waste effort unless effort > needs to be expended to fix something... patches welcome. *grin* > > How's that? -sc Perfect. I will submit patches. It does not seem like wasted effort to me because I w

Re: [libxml-devel] running tests from svn

2008-07-11 Thread Aaron Patterson
ENSE file for copyright and distribution information -require 'libxml_ruby' +require 'libxml/libxml_ruby' module XML::XMLParserOptions XML_PARSE_RECOVER = 1 # recover on errors @@ -131,4 +131,4 @@ def to_s "#{name} = #{value}" end -end \ No newline at end of file +

Re: [libxml-devel] implementing in Ruby vs C

2008-07-11 Thread Aaron Patterson
e in ruby, then you could write a c function to return the integer of xnode->type, then write all of your *? methods in ruby. -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

Re: [libxml-devel] implementing in Ruby vs C

2008-07-11 Thread Aaron Patterson
. By the way, I added a patch to the tracker to do some cleanups in the tests. http://rubyforge.org/tracker/?func=detail&aid=21162&group_id=494&atid=1973 -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel

[libxml-devel] implementing in Ruby vs C

2008-07-10 Thread Aaron Patterson
Hi! As I've started reading through the libxml-ruby code, I have run across methods implemented in C that could be implemented in Ruby. I would like to change them to be implemented in Ruby. Is anyone opposed to that? I think it would make coding easier, less buggy, and more fun! --

Re: [libxml-devel] running tests from svn

2008-07-10 Thread Aaron Patterson
2008/7/10 Charlie Savage <[EMAIL PROTECTED]>: > > > Aaron Patterson wrote: >> >> Hi! >> >> I'm trying to compile and run the tests from trunk. As far as I can >> tell, you just run setup.rb. Is that correct? The tests don't seem >>

[libxml-devel] running tests from svn

2008-07-10 Thread Aaron Patterson
ich doesn't exist on OS X. Is the require on the so file intentional? Thanks! -- Aaron Patterson http://tenderlovemaking.com/ ___ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel