Compare commits
2 Commits
c22feaaf1d
...
5dabf26fe3
| Author | SHA1 | Date | |
|---|---|---|---|
| 5dabf26fe3 | |||
| b2baee05ef |
+2
-1
@@ -1,4 +1,5 @@
|
||||
b43527c
|
||||
60176fa
|
||||
8cd942b
|
||||
83acd30
|
||||
83acd30
|
||||
b2baee0
|
||||
+3
-3
@@ -18,7 +18,7 @@ require 'net/http'
|
||||
require 'uri'
|
||||
|
||||
# @type const RELEASE_SERIAL_CODE: String
|
||||
RELEASE_SERIAL_CODE = '60176fa'
|
||||
RELEASE_SERIAL_CODE = 'b2baee0'
|
||||
# @type const CHANNEL: String
|
||||
CHANNEL = 'master'
|
||||
# @type const VERSION_LIST_URL: String
|
||||
@@ -42,7 +42,6 @@ class UpdateManager
|
||||
end
|
||||
rescue StandardError => e
|
||||
MethodExecutor.record('error', 'updates', "Failed to fetch version list: #{e}")
|
||||
nil
|
||||
end
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
|
||||
@@ -65,7 +64,8 @@ class UpdateManager
|
||||
end
|
||||
|
||||
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 }
|
||||
end
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
|
||||
Reference in New Issue
Block a user