Manifest reader in Ruby

Manifest files are incorporated in jar files to help describe them.
In the OSGi world, they have a critical mission: describe the OSGi bundle that the jar becomes, giving its name, its transitive dependencies and its execution parameters.

I initiated some time ago a project named Manifest in Rubyforge, licensed under the Apache 2 License.
Assaf helped put some meat on the bones with his reader used in the Buildr tests (source, around line 41).
I added some more code to parse the OSGi attributes. For example, when you parse the org.eclipse.compare plugin, you can query it like this:

manifest.sections.first["Require-Bundle"]["org.eclipse.core.expressions"]["bundle-version"]

This returns "[3.3.0,4.0.0)".

The first release is tagged 0.0.1, and you can install it with rubygems:

gem install manifest
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • Digg
  • co.mments
  • Slashdot
  • SphereIt
  • Reddit
  • Furl
  • Technorati
  • NewsVine
  • Simpy
  • StumbleUpon
  • Ma.gnolia

2 Responses to “Manifest reader in Ruby”


  1. 1 Alex Kravets

    This is very useful project, thanks!

  2. 2 Antoine Toulme

    Thanks Alex, I hope it comes handy for you! Don’t hesitate to mail the Manifest google group in case you have questions, comments, or suggestions.

Leave a Reply