Sha256: 0e5d78f5f33702ae3cef75fb98b9f0ce1f50511d08372e4468f8f2377223c84d
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
require_relative '../comparator/version' class OtherTagGenerator def tag_exists?(check_tag_type, tags_for_this_commit) tags_for_this_commit.any? {|tag| /^#{check_tag_type}-v\d+.\d+.\d*$/ =~ tag} end def next_tag(previous_tag_type, next_tag_type, tags_for_this_commit) tags_for_this_commit.select {|tag| /^#{previous_tag_type}-v\d+.\d+.\d*$/ =~ tag} .map {|tag| tag.sub(previous_tag_type, next_tag_type)} .map {|tag| tag.sub(/\n/, "")} .first end end
Version data entries
3 entries across 3 versions & 1 rubygems