OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

cap-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [ANN] RCAP 1.2.0 Released (Common Alerting Protocol API for Ruby)


= Overview

The Common Alerting Protocol is a lightweight standard to facilitate
the distribution of alerting data. RCAP is an implementation of the
CAP document protocol in Ruby. It allows for the creation of CAP
messages from Ruby applications and the parsing of external messages.

RCAP currently supports CAP 1.0, 1.1 and 1.2.

= What's new in 1.2.0

Added Resource#deference_uri! (for CAP 1.1 and CAP 1.2) which will
download the resource given by Resource#uri and store it as Base64
encoded data in Resource#deref_uri. Resource#digest and Resource#size
will also be automatically calculated whenever Resource#deref_uri is
set, either with dereference_uri! or with deref_uri=.

= Example of Resource#dereference_uri!

    require 'rcap'
    include RCAP::CAP_1_2

    resource = Resource.new( resource_desc: 'Example PDF', uri:
'http://www.example.com/example.pdf' )
    resource.dereference_uri!
    resource.deref_uri =   "PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM......
    resource.digest     =  "0c211d9e32595cc92fbc604d5458f5b1ad92bd88"
    resource.size         = 12388

= Resources

* The RCAP project page can be found at http://www.aimred.com/projects/rcap
* The RCAP API documentation can be found at
http://www.aimred.com/projects/rcap/api
* A public git repository can be found at http://github.com/farrel/RCAP
* A CAP validator based on RCAP is available at http://capvalidator.heroku.com

Farrel
-- 
Aimred - Ruby Development and Consulting
http://www.aimred.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]