Bump version, improve how version is stored for better commit history (#2526)
This commit is contained in:
parent
b48f2cbc8b
commit
b48c9013aa
4 changed files with 30 additions and 4 deletions
|
@ -1,5 +1,31 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Mastodon
|
||||
VERSION = '1.2.2'
|
||||
module Version
|
||||
module_function
|
||||
|
||||
def major
|
||||
1
|
||||
end
|
||||
|
||||
def minor
|
||||
3
|
||||
end
|
||||
|
||||
def patch
|
||||
0
|
||||
end
|
||||
|
||||
def pre
|
||||
nil
|
||||
end
|
||||
|
||||
def to_a
|
||||
[major, minor, patch, pre].compact
|
||||
end
|
||||
|
||||
def to_s
|
||||
to_a.join('.')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue