README.mkd in ruby-gumbo-1.0.1 vs README.mkd in ruby-gumbo-1.0.2
- old
+ new
@@ -4,11 +4,44 @@
`ruby-gumbo` is a ruby binding for the Gumbo HTML5 parser.
## Installation
-Create the gem with `rake package`, then install it with `gem install` (the
-gem file is in the `pkg` directory).
+`ruby-gumbo` can be directly installed from http://rubygems.org:
+
+ gem install ruby-gumbo
+
+Or you can create the gem with `rake package`, then install it with `gem
+install` (the gem file is in the `pkg` directory).
+
+## Example
+
+```ruby
+require 'net/http'
+
+html = Net::HTTP.get URI.parse('http://example.org')
+Gumbo::parse(html) {|doc| doc.dump_tree}
+```
+
+Result:
+
+```
+<HTML>
+ <HEAD>
+ <TITLE>
+ <META charset>
+ <META http-equiv content>
+ <META name content>
+ <STYLE type>
+ <BODY>
+ <DIV>
+ <H1>
+ <P>
+ <P>
+ <A href>
+```
+
+You can find more examples in the `examples` directory.
## Contact
If you have found a bug, have an idea or a question, email me at
<khaelin@gmail.com>.