Fix: バージョン表記の末尾にドットがつく場合がある問題 (#904)
This commit is contained in:
parent
fd63d63885
commit
a41f51501c
1 changed files with 2 additions and 2 deletions
|
@ -55,12 +55,11 @@ module Mastodon
|
|||
def to_s_of_mastodon
|
||||
components = [to_a.join('.')]
|
||||
components << "-#{prerelease}" if prerelease.present?
|
||||
components << "+#{build_metadata_of_mastodon}" if build_metadata_of_mastodon.present?
|
||||
components.join
|
||||
end
|
||||
|
||||
def build_metadata
|
||||
['kmyblue', to_s_of_kmyblue, build_metadata_of_mastodon].compact.join('.')
|
||||
['kmyblue', to_s_of_kmyblue].compact.join('.')
|
||||
end
|
||||
|
||||
def build_metadata_of_mastodon
|
||||
|
@ -75,6 +74,7 @@ module Mastodon
|
|||
components = [to_a.join('.')]
|
||||
components << "-#{prerelease}" if prerelease.present?
|
||||
components << "+#{build_metadata}" if build_metadata.present?
|
||||
components << "+#{build_metadata_of_mastodon}" if build_metadata_of_mastodon.present?
|
||||
components.join
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue