Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LQDN Adminsys
amendments
Commits
356222eb
Commit
356222eb
authored
Mar 31, 2013
by
Michael Witrant
Browse files
started new script
parent
2b5b7a0c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Gemfile
View file @
356222eb
...
...
@@ -2,3 +2,4 @@ source "http://rubygems.org"
gem
"
nokogiri
"
gem
"
htmldiff
"
gem
"
zippy
"
Gemfile.lock
0 → 100644
View file @
356222eb
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
extract_amendments.rb
0 → 100755
View file @
356222eb
#!/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment