Skip to content

Commit 2dda7f0

Browse files
Clar Fonhiyuki2578
authored andcommitted
Remove pre from version, add extra suffix variable (mastodon#11407)
1 parent d7dd55b commit 2dda7f0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/mastodon/version.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ def patch
1616
2
1717
end
1818

19-
def pre
20-
nil
19+
def flags
20+
''
2121
end
2222

23-
def flags
23+
def suffix
2424
''
2525
end
2626

2727
def to_a
28-
[major, minor, patch, pre].compact
28+
[major, minor, patch].compact
2929
end
3030

3131
def to_s
32-
[to_a.join('.'), flags].join
32+
[to_a.join('.'), flags, suffix].join
3333
end
3434

3535
def repository

0 commit comments

Comments
 (0)