lib/verdict/experiment.rb in verdict-0.9.0 vs lib/verdict/experiment.rb in verdict-0.10.0

- old
+ new

@@ -160,10 +160,14 @@ @storage.store_assignment(assignment) if should_store_assignment?(assignment) event_logger.log_assignment(assignment) assignment end + def cleanup + @storage.cleanup(handle.to_s) + end + def remove_subject_assignment(subject) @storage.remove_assignment(self, subject) end def switch(subject, context = nil) @@ -205,10 +209,10 @@ def to_json(options = {}) as_json(options).to_json end def fetch_subject(subject_identifier) - raise NotImplementedError, "Fetching subjects based in identifier is not implemented for experiment @{handle.inspect}." + raise NotImplementedError, "Fetching subjects based on identifier is not implemented for experiment #{@handle.inspect}." end def disqualify_empty_identifier? @disqualify_empty_identifier end