tipr/bagit — pull request #11 by malakai97 (2014-01-20 19:20:05+00:00)
Title: Update valid.rb

Remove use of $1 global.
Add support for sha2 family.
Add reasonable error message in case algorithm could not be understood.
Add return false if no algorithm could be understood.