lib/test_ids/allocator.rb in test_ids-0.2.0 vs lib/test_ids/allocator.rb in test_ids-0.2.1
- old
+ new
@@ -138,11 +138,11 @@
git? && config.on_completion == :publish
end
def git?
if config.repo
- !!(config.repo =~ /git/i)
+ !!(config.repo =~ /\.git$/)
end
end
# Returns the next available bin in the pool, if they have all been given out
# the one that hasn't been used for the longest time will be given out
@@ -260,10 +260,10 @@
if number =~ /(s+)/
max_softbin_size = Regexp.last_match(1).size
if softbin.size > max_softbin_size
fail "Softbin number (#{softbin}) overflows the test number algorithm (#{algo})"
end
- number = number.sub(/s+/, softbin.rjust(max_bin_size, '0'))
+ number = number.sub(/s+/, softbin.rjust(max_softbin_size, '0'))
end
if number =~ /(x+)/
max_counter_size = Regexp.last_match(1).size
refs = store['references']['number']
i = 0