public
Description: Yet Another Planet Refactoring
Homepage: http://intertwingly.net/blog/2007/12/19/Yet-Another-Planet-Refactoring
Clone URL: git://github.com/rubys/mars.git
Search Repo:
Sam Ruby (author)
Thu Apr 03 17:55:30 -0700 2008
commit  594cd30192668c6310b3236b978d5d4a6d706fb7
tree    fb2c98375a3f69e66dc22da049a8c7e26438d717
parent  775bc2a397c7812ae67b9979f288c3c835aab059
mars / reconstitute.rb
100644 11 lines (9 sloc) 0.207 kb
1
2
3
4
5
6
7
8
9
10
11
require 'open-uri'
 
require 'planet/sift'
require 'planet/transmogrify'
 
ARGV.each do |arg|
  doc = Planet::Transmogrify.parse(open(arg))
  doc.attributes['xml:base'] = arg
  Planet.sift(doc)
  puts doc
end