Skip to content

Instantly share code, notes, and snippets.

@tychobrailleur
Created July 18, 2011 08:02
Show Gist options
  • Save tychobrailleur/1088835 to your computer and use it in GitHub Desktop.
Save tychobrailleur/1088835 to your computer and use it in GitHub Desktop.
Nokogiri issue
require 'rubygems'
require 'optparse'
require 'nokogiri'
Dir.chdir(ARGV[0])
poms = File.join("**", "pom.xml")
Dir.glob(poms).each do
|p|
puts p
f = File.open(p)
puts 'parsing...' if $DEBUG
doc = Nokogiri::XML(f)
f.close
puts 'Done.'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment