Commit 356222eb authored by Michael Witrant's avatar Michael Witrant

started new script

parent 2b5b7a0c
......@@ -2,3 +2,4 @@ source "http://rubygems.org"
gem "nokogiri"
gem "htmldiff"
gem "zippy"
GEM
remote: http://rubygems.org/
specs:
htmldiff (0.0.1)
nokogiri (1.5.9)
rubyzip (0.9.9)
zippy (0.2.1)
rubyzip (>= 0.9.1)
PLATFORMS
ruby
DEPENDENCIES
htmldiff
nokogiri
zippy
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler/setup'
require 'zippy'
opendocument_path = ARGV.first
raise "usage: #$0 <OpenDocument file>" unless opendocument_path
xml = nil
Zippy.open(opendocument_path) do |zip|
xml = zip['content.xml']
end
puts xml.size
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment