This project is currently quite rough. At present, only deserialization from .tar and validation work.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install dpn-bagit
require 'dpn-bagit' bag = DPN::Bagit::Bag.new(location_of_bag) if bag.empty? == false if bag.valid? fixity = bag.fixity uuid = bag.uuid size = bag.size else puts bag.errors end end bag = DPN::Bagit::SerializedBag.new(location_of_tarball).unserialize!
- Fork it ( https://github.com/malakai97/dpn-bagit/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request