SPECFILE = 'rbot.gemspec'
# The Rakefile is also used after installing the gem, to build
# the .mo files. Since in this case the SPECFILE is not available,
# we must (and can) skip defining the gem packaging tasks.
if File.exist? SPECFILE
spec = eval(File.read(SPECFILE), nil, SPECFILE)
SPECFILE = 'rbot.gemspec'
# The Rakefile is also used after installing the gem, to build
# the .mo files. Since in this case the SPECFILE is not available,
# we must (and can) skip defining the gem packaging tasks.
if File.exist? SPECFILE
spec = eval(File.read(SPECFILE), nil, SPECFILE)