lib/test_ids/allocator.rb in test_ids-0.4.1 vs lib/test_ids/allocator.rb in test_ids-0.5.0

- old
+ new

@@ -49,9 +49,12 @@ end # Otherwise generate the missing ones t['bin'] ||= allocate_bin t['softbin'] ||= allocate_softbin(t['bin']) t['number'] ||= allocate_number(t['bin'], t['softbin']) + t['bin'] = nil if t['bin'] == :none + t['softbin'] = nil if t['softbin'] == :none + t['number'] = nil if t['number'] == :none # Record that there has been a reference to the final numbers time = Time.now.to_f store['references']['bin'][t['bin'].to_s] = time if t['bin'] store['references']['softbin'][t['softbin'].to_s] = time if t['softbin'] store['references']['number'][t['number'].to_s] = time if t['number']