Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5dabf26fe3 | |||
| b2baee05ef |
+2
-1
@@ -1,4 +1,5 @@
|
|||||||
b43527c
|
b43527c
|
||||||
60176fa
|
60176fa
|
||||||
8cd942b
|
8cd942b
|
||||||
83acd30
|
83acd30
|
||||||
|
b2baee0
|
||||||
+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 = 'b2baee0'
|
||||||
# @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