update version code and update info
This commit is contained in:
+3
-3
@@ -18,7 +18,7 @@ require 'net/http'
|
|||||||
require 'uri'
|
require 'uri'
|
||||||
|
|
||||||
# @type const RELEASE_SERIAL_CODE: String
|
# @type const RELEASE_SERIAL_CODE: String
|
||||||
RELEASE_SERIAL_CODE = '60176fa'
|
RELEASE_SERIAL_CODE = '83acd30'
|
||||||
# @type const CHANNEL: String
|
# @type const CHANNEL: String
|
||||||
CHANNEL = 'master'
|
CHANNEL = 'master'
|
||||||
# @type const VERSION_LIST_URL: String
|
# @type const VERSION_LIST_URL: String
|
||||||
@@ -42,7 +42,6 @@ class UpdateManager
|
|||||||
end
|
end
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
MethodExecutor.record('error', 'updates', "Failed to fetch version list: #{e}")
|
MethodExecutor.record('error', 'updates', "Failed to fetch version list: #{e}")
|
||||||
nil
|
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|
||||||
@@ -65,7 +64,8 @@ class UpdateManager
|
|||||||
end
|
end
|
||||||
|
|
||||||
latest = lines.last
|
latest = lines.last
|
||||||
MethodExecutor.record('info', 'updates', "Newer version #{latest} available (current: #{RELEASE_SERIAL_CODE}).")
|
MethodExecutor.record('info', 'updates',
|
||||||
|
"Newer version #{latest} available (current: #{RELEASE_SERIAL_CODE}), use git to update.")
|
||||||
{ type: :NewerAvailable, version: latest }
|
{ type: :NewerAvailable, version: latest }
|
||||||
end
|
end
|
||||||
# rubocop:enable Metrics/MethodLength
|
# rubocop:enable Metrics/MethodLength
|
||||||
|
|||||||
Reference in New Issue
Block a user