11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/quartz/validations.rb', line 11
def self.check_go_quartz_version
current_pulse = File.read(File.join(File.dirname(__FILE__), '../../go/quartz/quartz.go'))
installed_pulse = File.read(File.join(ENV['GOPATH'],
'src/github.com/DavidHuie/quartz/go/quartz/quartz.go'))
if current_pulse != installed_pulse
STDERR.write <<-EOS
Warning: the version of Quartz in $GOPATH does not match
the version packaged with the gem. Please update the Go
Quartz package.
EOS
end
end
|