EEML-Ruby

A Ruby wrapper around the Extended Environments Markup Language (www.eeml.org)

Licensed under the MIT license (See COPYING file for details)

Author: James Smith ([email protected] / www.floppy.org.uk)

Homepage: github.com/Floppy/eeml-ruby

Documentation: rdoc.info/projects/Floppy/eeml-ruby

INSTALLATION

1) Enable gems from gemcutter, if you haven’t already done so:

> sudo gem install gemcutter
> sudo gem tumble

2) Install gem

> sudo gem install eeml-simple

STATUS

The code can current create EEML at a level equivalent to the “complete” EEML example at eeml.org/xml/005/complete.xml, and parse the “minimal” level at eeml.org/xml/005/minimal.xml

To parse EEML: call EEML::Environment#from_eeml(your_eeml_string), and you will get back an EEML::Environment object containing a number of EEML::Data objects.

To create EEML: create an EEML::Environment object, add one or more EEML::Data objects to it, and call EEML::Environment#to_eeml.

EXAMPLES

The file examples/simple_server.rb contains a simple WEBrick server which serves an EEML document. This allows a site like Pachube (www.pachube.com) to fetch EEML data from your system.