lib/test_ids/allocator.rb in test_ids-1.2.0 vs lib/test_ids/allocator.rb in test_ids-1.2.1
- old
+ new
@@ -294,11 +294,11 @@
Origen.log.success " #{removed} #{name} references have been removed!"
end
end
end
- # Clear the :bins, :softbins and/or :numbers by setting the options for each item to true
+ # Clear the :bins, :softbins and/or :numbers and/or :ranges by setting the options for each item
def clear(options)
if options[:softbin] || options[:softbins]
store['assigned']['softbins'] = {}
store['manually_assigned']['softbins'] = {}
store['pointers']['softbins'] = nil
@@ -313,9 +313,12 @@
if options[:number] || options[:numbers]
store['assigned']['numbers'] = {}
store['manually_assigned']['numbers'] = {}
store['pointers']['numbers'] = nil
store['references']['numbers'] = {}
+ end
+ if options[:range] || options[:ranges]
+ store['pointers']['ranges'] = nil
end
end
# Saves the current allocator state to the repository
def save