lib/bagit/valid.rb in bagit-0.1.0 vs lib/bagit/valid.rb in bagit-0.2.0
- old
+ new
@@ -1,13 +1,12 @@
-require 'rubygems'
require 'validatable'
module BagIt
class Bag
include Validatable
- validates_true_for :consistency, :logic => lambda { complete? }
- validates_true_for :completeness, :logic => lambda { consistent? }
+ validates_true_for :consistency, :logic => Proc.new { complete? }
+ validates_true_for :completeness, :logic => Proc.new { consistent? }
end
module Validity
# Return true if the manifest cover all files and all files are