public this repo is viewable by everyone
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
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