[ Japanese / English ]
Author
Motohiro MATSUDA < >
License
Ruby License http://www.ruby-lang.org/ja/LICENSE.txt
Description
This is a ruby library to patch a XUpdate formatted document or commands, includes some utility functions to process patching.
Download
- Tar+Bzip2: ruby-xupdate-0.1.0.tar.bz2
- Tar+Gzip: ruby-xupdate-0.1.0.tar.gz
- Zip: ruby-xupdate-0.1.0.zip
Install
ruby setup.rb
How to Use
- as library
require 'xupdate/document' xupdate = XUpdate::Document.new(File.new('xupdate.xml')) target = REXML::Document.new(File.new(target.xml)) commands = XUpdate::Commands.new(xupdate, target) p result = commands.execute #show patched data as array p patched = commands.target_document #show patched xml as REXML::Document
require 'xupdate/document' xupdate = XUpdate::Document.new(File.new('xupdate.xml')) target = REXML::Document.new(File.new(target.xml)) p patched = xupdate.patch_with target #show patched xml as REXML::Document
$ xupdate xupdate.xml target.xml > patched.xml
ChangeLog
- 2008-01-08
- release 0.1.0 (release-0_1_0)
TODO
- implementation of xupdate:if