Skip to content

Commit 5826a6c

Browse files
committed
Don't include RCs in the version list
Release candidates have the API of the release and they're not interesting for posterity anyhow.
1 parent c4a2732 commit 5826a6c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/docurium.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ def show_warnings(data)
252252
end
253253

254254
def get_versions
255-
VersionSorter.sort(@repo.tags.map { |tag| tag.name.gsub(%r(^refs/tags/), '') })
255+
releases = @repo.tags
256+
.map { |tag| tag.name.gsub(%r(^refs/tags/), '') }
257+
.delete_if { |tagname| tagname.match(%r(-rc\d*$)) }
258+
VersionSorter.sort(releases)
256259
end
257260

258261
def parse_headers(index, version)

0 commit comments

Comments
 (0)