Sha256: 04c0c4c939292491332a8530e557c12cd4ce13754ad511f6d2810bf83549783f
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
BagIt (for ruby) ================ [![Build Status](https://secure.travis-ci.org/no-reply/bagit.png)](http://travis-ci.org/no-reply/bagit) Based on the [BagItspec v0.97](https://confluence.ucop.edu/display/Curation/BagIt). Supported Features: ------------------- * bag compiling * manifest & tagmanifest generation * generation of tag files bag-info.txt and bagit.txt * fetching remote files (fetch.txt) * bag validation Installation ------------ % gem install bagit validatable The rubyforge gem is deprecated. Example: making a bag --------------------- require 'bagit' # make a new bag at base_path bag = BagIt::Bag.new base_path # make a new file bag.add_file("samplefile") do |io| io.puts "Hello Bag!" end # generate the manifest and tagmanifest files bag.manifest! Example: validating an existing bag ----------------------------------- bag = BagIt::Bag.new existing_base_path if bag.valid? puts "#{existing_base_path} is valid" else puts "#{existing_base_path} is not valid" end TODO ---- * command line tools for common tasks * better holy bag (fetch.txt) generation * better error reporting. --- Copyright © 2009, [Francesco Lazzarino](mailto:flazzarino@gmail.com). Current Maintainer: [Tom Johnson](mailto:thomas.johnson@oregonstate.edu). Sponsored by [Florida Center for Library Automation](http://www.fcla.edu). See LICENSE.txt for terms.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bagit-0.3.0.pre | README.md |