mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
11 lines
175 B
Ruby
11 lines
175 B
Ruby
require 'open-uri'
|
|
|
|
class WebVersionFinder
|
|
|
|
DEFAULT_URL = 'http://samhuri.net/version.txt'
|
|
|
|
def find_version(url = nil)
|
|
open(url || DEFAULT_URL).read.strip
|
|
end
|
|
|
|
end
|