A ruby implementation of the DPN BagIt spec, which is itself an extension of the BagIt spec. Built on top of tipr/bagit.
This project is currently quite rough. At present, only deserialization from .tar and validation work.
Add this line to your application's Gemfile:
gem 'dpn-bagit'
And then execute:
$ bundle
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!
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)