Sha256: a935f59fb40fad66fb003aa05ba004315d3ef5c76cfb0f86316461eed2a131ae

Contents?: true

Size: 1.71 KB

Versions: 5

Compression:

Stored size: 1.71 KB

Contents

BagIt (for ruby)
================

[![Build Status](https://travis-ci.org/tipr/bagit.svg?branch=master)](http://travis-ci.org/tipr/bagit) [![Coverage Status](https://coveralls.io/repos/github/tipr/bagit/badge.svg?branch=master)](https://coveralls.io/github/tipr/bagit?branch=master)

This is a Ruby library and command line utility for creating BagIt archives based on the [BagItspec v0.97](https://confluence.ucop.edu/display/Curation/BagIt).

Supported Features:
-------------------
* Bag creation
* 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

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

Console Tool
------------
    # create a new bag/add files to existing bag
    bagit add -f file1 file2 -t tagfile1 tagfile2 ./path/to/bag	
    # validate
    bagit validate ./path/to/bag
    # for other commands
    bagit --help

Copyright © 2009, [Francesco Lazzarino](mailto:flazzarino@gmail.com).

Current maintainer: [Jamie Little](mailto:jamie@jamielittle.org).

Initial development sponsored by [Florida Center for Library Automation](http://www.fcla.edu).

See LICENSE.txt for terms.

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bagit-0.4.2 README.md
bagit-0.4.1 README.md
bagit-0.4.0 README.md
bagit-0.3.5 README.md
bagit-0.3.4 README.md