Extend config/version.rb with more informations (#5061)

This gives installations not using git checkouts
to provide all the informations needed for the
internal version checks and version display in
the dashboard.

The build:stamp rake task was extended to also
add the new informations.
This commit is contained in:
darix
2017-08-28 18:24:56 +02:00
committed by Sam
parent d70ecf1c53
commit 4b5724ec02
3 changed files with 42 additions and 18 deletions

View File

@ -7,7 +7,7 @@ module DiscourseUpdates
DiscourseVersionCheck.new(
installed_version: Discourse::VERSION::STRING,
installed_sha: (Discourse.git_version == 'unknown' ? nil : Discourse.git_version),
installed_describe: `git describe --dirty --match "v[0-9]*"`,
installed_describe: Discourse.full_version,
git_branch: Discourse.git_branch,
updated_at: nil
)
@ -17,7 +17,7 @@ module DiscourseUpdates
critical_updates: critical_updates_available?,
installed_version: Discourse::VERSION::STRING,
installed_sha: (Discourse.git_version == 'unknown' ? nil : Discourse.git_version),
installed_describe: `git describe --dirty --match "v[0-9]*"`,
installed_describe: Discourse.full_version,
missing_versions_count: missing_versions_count,
git_branch: Discourse.git_branch,
updated_at: updated_at