Changeset 102
Legend:
- Unmodified
- Added
- Removed
-
trunk/README
r65 r102 13 13 works. 14 14 15 == An Overview 16 17 Let's clear up what Hpricot is. 18 19 # Hpricot is *a standalone library*. It requires no other libraries. Just Ruby! 20 # While priding itself on speed, Hpricot *work hard to sort out bad HTML* and 21 pays a small penalty in order to get that right. So that's slightly more important 22 to me than speed. 23 # *If you can see it in Firefox, then Hpricot should parse it.* That's 24 how it should be! Let me know the minute it's otherwise. 25 # Primarily, Hpricot is used for reading HTML and tries to sort out troubled 26 HTML by having some idea of what good HTML is. Some people still like to use 27 Hpricot for XML reading, but *remember to use the Hpricot::XML() method* for that! 28 15 29 == The Hpricot Kingdom 16 30 … … 21 35 * http://code.whytheluckystiff.net/svn/hpricot/trunk is the main Subversion 22 36 repository for Hpricot. You can get the latest code there. 37 * http://code.whytheluckystiff.net/doc/hpricot is the home for the latest copy of 38 this reference. 23 39 * See COPYING for the terms of this software. (Spoiler: it's absolutely free.) 24 40 … … 39 55 candidate build here: 40 56 41 $ gem install hpricot --source code.whytheluckystiff.net57 $ gem install hpricot --source http://code.whytheluckystiff.net 42 58 43 59 The development gem is usually in pretty good shape actually. You can also … … 241 257 *Also, :fixup_tags is canceled out by the :xml option.* This is because :fixup_tags makes assumptions based how HTML is 242 258 structured. Specifically, how tags are defined in the XHTML 1.0 DTD. 243 244 == Digging Around for More Handy Methods245 246 If you're looking around for more helpful methods to -
trunk/Rakefile
r63 r102 8 8 9 9 NAME = "hpricot" 10 REV = File.read(".svn/entries")[/committed-rev="(\d+)"/, 1] rescue nil10 REV = `svn info`[/Revision: (\d+)/, 1] rescue nil 11 11 VERS = ENV['VERSION'] || "0.4" + (REV ? ".#{REV}" : "") 12 12 CLEAN.include ['ext/hpricot_scan/*.{bundle,so,obj,pdb,lib,def,exp}', 'ext/hpricot_scan/Makefile', 13 13 '**/.*.sw?', '*.gem', '.config'] 14 RDOC_OPTS = ['--quiet', '--title', 'The Hpricot Reference', '--main', 'README', '--inline-source'] 14 15 15 16 desc "Does a full compile, test run" … … 43 44 Rake::RDocTask.new do |rdoc| 44 45 rdoc.rdoc_dir = 'doc/rdoc' 45 # rdoc.options += RDOC_OPTS 46 # rdoc.template = "extras/flipbook_rdoc.rb" 46 rdoc.options += RDOC_OPTS 47 47 rdoc.main = "README" 48 rdoc.title = "Hpricot Documentation"49 48 rdoc.rdoc_files.add ['README', 'CHANGELOG', 'COPYING', 'lib/**/*.rb'] 50 49 end … … 56 55 s.platform = Gem::Platform::RUBY 57 56 s.has_rdoc = true 57 s.rdoc_options += RDOC_OPTS 58 58 s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"] 59 59 s.summary = "a swift, liberal HTML parser with a fantastic library"
